kali 安装 sublime

上一篇 / 下一篇  2019-10-15 16:55:11 / 个人分类:linux

安装sublime主要分为几步:
1.官网下载linux版
2.tar -xf .tar.bz2
说明一下第二步,如果-zvxf提示报错,报错内容如下:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
就直接去掉z参数或者zv
3.查看解压出来文件夹里面的.desktop文件并记录下Exec=/opt/sublime_text/sublime_text
命令行操作:
root@kali:~/Downloads/sublime_text_3# cat sublime_text.desktop 
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;

[Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text/sublime_text -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;
4.将.desktop(类似于windows下的exe)文件复制到/usr/share/applications
命令行如下:
root@kali:~/Downloads/sublime_text_3# cp sublime_text.desktop /usr/share/applications

5.将解压出来的文件夹 复制到 第三步中 Exec后面的路径下
命令行如下:
root@kali:~/Downloads# cp -r sublime_text_3 /opt/
root@kali:~/Downloads# cd /opt

6.重命名文件夹(因为现在/opt/目录下的文件夹是sublime_text_3和第三步记录的不一致 Exec=/opt/sublime_text/sublime_text
命令行操作如下:
root@kali:/opt# mv sublime_text_3/ sublime_text

7.就可以搜索到sublime了




TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar