/ Published in: Other
Install Sublime Text 2 from PPA on Ubuntu
Expand |
Embed | Plain Text
Add webupd8 Sublime Text 2 PPA and creat symlink (http://www.webupd8.org/2011/03/sublime-text-2-ubuntu-ppa.html): $ sudo add-apt-repository ppa:webupd8team/sublime-text-2 Update apt-get: $ sudo apt-get update Install Sublime Text 2: $ sudo apt-get install sublime-text or $ sudo apt-get install sublime-text-dev Create symlink (subl, or whatever you please): $ sudo ln -s ~/Applications/Sublime\ Text\ 2/sublime_text /usr/local/bin/subl ----------------------------------------------------------------------------- Install Package Control (http://wbond.net/sublime_packages/package_control): from Sublime Text 2 console (ctrl + `): import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation' ----------------------------------------------------------------------------- Adding a launcher/desktop icon: Create a new file on the desktop called sublime.desktop. Add contents (subl, or whatever you please): [Desktop Entry] Name=Sublime Text 2 GenericName=Text Editor Comment=Edit text files Exec=subl Terminal=false Type=Application StartupNotify=true MimeType=text/plain; Icon=/path/to/icon Categories=GNOME;GTK;Utility;TextEditor;
You need to login to post a comment.
