Skip to content

Instantly share code, notes, and snippets.

@rava-dosa
Forked from martijnvandijk/install.md
Created December 2, 2017 13:50
Show Gist options
  • Save rava-dosa/d98af2d3af1c2dabea1a2837c3c56357 to your computer and use it in GitHub Desktop.
Save rava-dosa/d98af2d3af1c2dabea1a2837c3c56357 to your computer and use it in GitHub Desktop.
Installing Sublime Text 2 in linux without root access

##first, grab our tarball for 32bit
wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2.tar.bz2
for 64bit
wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2

##create your personal apps folder mkdir ~/apps ##extract sublime text into your apps folder tar -xvzf Sublime*.tar.bz2 -C ~/apps/ ##create ~/bin mkdir ~/bin ##put a link into ~/bin ln -s ~/apps/Sublime\ Text\sublime_text ~/bin/sublime

##create a menu shortcut sublime ~/.local/share/applications/sublime-text-2.desktop paste the file in, and save. If the shortcut doesn't show up in your menu, log out, and log in again.

[Desktop Entry]
Name=Sublime Text 2
Comment=Edit text files
Exec=~/bin/sublime %U
Icon=~/apps/Sublime\ Text\ 2/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;
MimeType=text/plain;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment