第一次安装软件,发现linux系统安装软件全是文件夹,无从下手,现在总结如下:
step 1:
添加路径。gedit ~/.bashrc,在最后加上 export PATH=$PATH:~/scitools/bin/linux64(文件解压后的路径)
step 2:
在文件解压后的路径,终端输入
cd bin/linux64/
./understand
step 3:
然后开始正常步骤安装
这样就能顺利的运行understand了。
成功后没有图标,每次都输入命令行太麻烦
开始自己设置
在终端中运行如下命令:
(1) cd /usr/share/applications
(2) sudo gedit 应用程序名字.desktop
(3) 在弹出的文本里添加:
[Desktop Entry]
Type=Application
Name=名字
Comment=描述
Icon=/应用程序所在文件夹/icon.xpm
Exec=/应用程序所在文件夹/应用程序 %F
Terminal=false
Categories=Development;
其中主要的是Icon和Exec,前者是图标,后者是应用程序.
如:
[Desktop Entry]
Type=Application
Name=understand
Comment=scitools
Icon=/home/myname/scitools/bin/linux64/understand_64.png
Exec=/home/myname/scitools/bin/linux64/understand %F
Terminal=false
Categories=Development;
其中,红色字体为understand所在位置,Icon 为图标所在路径,Name 为你想要显示在 Launcher 中的名称,Comment 为说明。这个“ %F”是干嘛的,其实,这个就是能够让这个程序显示在"以其它方式启动"的列表中的意思!前面有空格!!别忘拉!
(4) 到/usr/share/applications文件夹内,双击understand,等该程序启动后,在启动器上选择固定到启动器。关闭understand后,在启动器上点击understand,便可以正常启动。可以放在桌面哦~