kali linux 2.0安装sublime text 2

第一种方法:

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://1128.www.qixoo.qixoo.com/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源,如果不能添加请参考附录里的方案
Add the Sublime Text 2 Repository to your Synaptic Package Manager:

$ sudo add-apt-repository ppa:webupd8team/sublime-text-2
Update:

$ sudo apt-get update
Install Sublime Text 2:

$ 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
Create alias files (if not present):

$ sudo cp qkxue.net/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 /

    $ cp add-apt-repository.sh.txt /usr/sbin/add-apt-repository

 

3.  Change permissions to execute

    $ 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

上一篇:Spring MVC之视图解析器和URL-Pattern的配置方案


下一篇:jQuery给同一个元素两个点击事件