标签:
参考原文:
http://www.codeproject.com/Articles/582849/InstallingplusSublimeplusTextplus-plusonplusLinuxp
第一种方法:
Download the Sublime Text 2 & Extract it:
32位:
$ wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2
tar vxjf "Sublime Text 2.0.1.tar.bz2"
64位:
$ wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2
tar vxjf "Sublime Text 2.0.1x64.tar.bz2"
Add a Sym link:
$ sudo ln -s "~apps/Sublime Text 2/sublime_text" /usr/bin/sub1
这种方法虽然可以用,但以后的更新版本不方便升级,所以推荐另一种方法。
第二种方法:
这种方法需要添加ppa源,如果不能添加请参考附录里的方案
$ sudo add-apt-repository ppa:webupd8team/sublime-text-2
$ sudo apt-get update
$ sudo apt-get install sublime-text
If you are installing the Sublime Text 3 Beta as discussed in the update above, use this command instead of apt-get install sublime-text:
$sudo apt-get install sublime-text-installer
$ sudo cp /usr/bin/sublime-text /usr/bin/sublime-text
$ sudo cp /usr/bin/sublime-text /usr/bin/sub1
现在就可以使用sublime text了。
附录:在debian下添加ppa
参考原文:
https://blog.anantshri.info/howto-add-ppa-in-debian
1.Download file
$ wget http://blog.anantshri.info/content/uploads/2010/09/add-apt-repository.sh.txt
2.Save this file in /usr/sbin/
$ cp add-apt-repository.sh.txt /usr/sbin/add-apt-repository
3. Change permissions to execute
$ chmod o+x /usr/sbin/add-apt-repository
4. Change ownership to root
$chown root:root /usr/sbin/add-apt-repository
5. Now when ever you need to execute command type
$ sudo add-apt-repository ppa:ppa-name
kali linux 2.0安装sublime text 2
标签:
原文地址:http://www.cnblogs.com/scplee/p/4975585.html