我已经下载并安装了 HDSentinel GUI tar 包,但在应用程序面板中看不到它。我在哪里可以找到它?
我已经安装它如下:
tar -xvf hdsentinel_gui64bit.tar.xz
cd HDSentinel_GUI
sudo ./install.sh
install.sh 的内容:
#!/bin/bash
clear
echo ""
echo "Unzip the HDSentinel_GUI archive to /home/your user name/HDSentinel_Light/"
echo ""
##Unzip the HDSentinel_GUI archive
unzip HDSentinel_GUI.zip -d ~/
echo ""
echo "Copy icon the icon folder"
echo ""
##Copy icon the icon folder
sudo cp ~/HDSentinel_GUI/HDSentinel_GUI.ico -t /usr/share/icons
echo "Set owner and permission for icon"
echo ""
##Set owner and permission for icon
sudo chmod 444 /usr/share/icons/HDSentinel_GUI.ico
echo "Make directory 'usr/share/bin' if not present"
echo ""
##make directory usr/share/bin if not present
sudo mkdir -p /usr/share/bin
echo "Premission for folder"
echo ""
##premission for folder
sudo chmod -R a+rwx /usr/share/bin
echo "Copy to bin library"
echo ""
##Copy the bin folder
sudo cp ~/HDSentinel_GUI/HDSentinel_GUI -t /usr/share/bin
sudo cp ~/HDSentinel_GUI/HDSentinel -t /usr/share/bin
echo "Set premission for application"
echo ""
##Set premission for application
sudo chmod a+rwx /usr/share/bin/HDSentinel_GUI
sudo chmod a+rwx /usr/share/bin/HDSentinel
echo "Make directory for user menu if not present"
echo ""
##Make directory for user menu if not present
sudo mkdir -p ~/.local/share/applications
echo "Copy launcher to user menu"
echo ""
##Copy launcher to user menu
sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop -t ~/.local/share/applications
echo "Set premission for menu launcher"
echo ""
##set premission for menu launcher
sudo chmod a+rwx ~/.local/share/applications/Hard_Disk_Sentinel_GUI.desktop
echo "Copy launcher to Asztal if present"
echo ""
##copy launcher to desktop
##sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop -t ~/Asztal
##echo "Copy launcher to Desktop if present"
echo ""
##copy launcher to desktop eng
##sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop -t ~/Desktop
echo ""
##echo "Set premission for launcher (Desktop)"
echo ""
##Set premission for launcher
##sudo chmod a+rwx ~/Desktop/Hard_Disk_Sentinel_GUI.desktop
echo ""
##echo "Set premission for launcher (Asztal)"
echo ""
##set premission for launcher
##sudo chmod a+rwx ~/Asztal/Hard_Disk_Sentinel_GUI.desktop
echo "Remove install temp directory (/home/your user name/HDSentinel_GUI/)"
##Remove ~/HDSentinel_GUI directory
rm -d -rf ~/HDSentinel_GUI
该脚本将可执行文件复制到
/usr/share/bin/
:“启动器”(一个
.desktop
文件)被复制到/.local/share/applications/
.显然,安装脚本存在一些错误,即。桌面启动器中没有
.zip
文件~/
。 我们修复了此聊天室中的错误。以下是我们遵循的步骤:
重新安装应用程序:
该
~/
目录现在有一个名为HD_Sentinel_GUI
.接下来,我们在桌面和应用程序概览中创建了一个启动器文件:
接下来,我们赋予文件可执行权限,这样它就不会被文本编辑器打开:
接下来,我们为应用程序概览创建了一个桌面启动器:
现在,该应用程序显示为启动器并且按预期工作!