Article
在Cenots7双击运行程序
Linux本来就是作为服务器来运行的,双击运行程序的需求比较少。但是还是有一些,同时也没有Windows桌面快捷方式那么的方便。
在Centos7中建立"快捷方式"双击运行,需要建立一个desktop类型的文件:
[root@k8s ~] cat ~/Desktop/Cassandra.desktop
[Desktop Entry]
Name=Cassandra
Comment=Launch Cassandra
Exec=su - hadoop /home/hadoop/apache-cassandra-2.2.10/bin/cassandra -f
Terminal=true
Type=Application
右键创建快捷的方式,在Centos7上面没有找到。
In Gnome :
- right click on the desktop and ‘create launcher’
- browse to the script location and give a name
# 参考
- https://unix.stackexchange.com/questions/189777/how-to-launch-shell-script-with-double-click-in-centos-7
- https://askubuntu.com/questions/138908/how-to-execute-a-script-just-by-double-clicking-like-exe-files-in-windows
–END
Related
Related posts
-
基于对象存储的 Spark 数据读写实战:从末尾追加到任意更新
2025-10-28
-
科学上网(续)
2018-06-09
-
使用Sphinx生成/管理文档
2017-11-16
-
windows run ubuntu
2017-10-29