Skip to content

Instantly share code, notes, and snippets.

@martijnvandijk
Last active June 23, 2019 06:26
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save martijnvandijk/6778929 to your computer and use it in GitHub Desktop.
Save martijnvandijk/6778929 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;
@dyackson
Copy link

For untarring a tar.bz2 I think you need to use "j" and not "z" so the entire line would be
tar -xvjf Sublime*.tar.bz2 -C ~/apps/

@Aelshafei
Copy link

./sublime_text: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.11' not found (required by ./sublime_text) ./sublime_text: /usr/lib64/libstdc++.so.6: versionGLIBCXX_3.4.9' not found (required by ./sublime_text)
./sublime_text: /lib64/libc.so.6: version `GLIBC_2.11' not found (required by ./sublime_text)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment