![我找不到已安装的应用程序(HDSentinel_GUI)](https://linux22.com/image/944211/%E6%88%91%E6%89%BE%E4%B8%8D%E5%88%B0%E5%B7%B2%E5%AE%89%E8%A3%85%E7%9A%84%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%EF%BC%88HDSentinel_GUI%EF%BC%89.png)
我已经下载并安装了 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
答案1
显然,安装脚本存在一些错误,例如,没有用于桌面启动器的 .zip
文件。~/
我们修复了这个聊天室。
以下是我们遵循的步骤:
重新安装应用程序:
cd /tmp && wget https://www.hdsentinel.com/hdslin/hdsentinel_gui64bit.tar.xz && tar -xvf hdsentinel_gui64bit.tar.xz && cd HDSentinel_GUI && sudo ./install.sh
该
~/
目录现在有一个名为的目录HD_Sentinel_GUI
。接下来,我们在桌面创建一个启动器文件和应用程序概览:
sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop ~/Desktop
接下来,我们授予该文件可执行权限,以便它不会用文本编辑器打开:
sudo chmod +x ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop
接下来,我们为应用程序概览创建了一个桌面启动器:
sudo cp ~/Desktop/Hard_Disk_Sentinel_GUI.desktop /usr/share/applications/
现在,该应用程序作为启动器出现并按预期运行!
答案2
该脚本将可执行文件复制到/usr/share/bin/
:
sudo cp ~/HDSentinel_GUI/HDSentinel_GUI -t /usr/share/bin
sudo cp ~/HDSentinel_GUI/HDSentinel -t /usr/share/bin
“启动器”(.desktop
文件)被复制到/.local/share/applications/
。
sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop -t ~/.local/share/applications