The first method:
Download the Sublime Text 2 & Extract it:
32-bit:
$ wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2
Tar vxjf "Sublime Text 2.0.1.tar.bz2"
64-bit:
$ 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
Although this method can be used, but later update version is not easy to upgrade, so recommend another method.
The second method:
This method needs to add the PPA source, if not added please refer to the appendix of the scenario
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 is installing the Sublime Text 3 Beta As discussed in the update above, use this command instead of Apt-get instal L 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
Now you can use the sublime text.
Appendix: Adding PPA under Debian
Reference text:
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-need to execute command type
$ sudo add-apt-repository ppa:ppa-name
Kali Linux 2.0 installation Sublime text 2