

# Only KDE 4 seems to use GenericName, so we reuse the KDE strings. bashrc will add ~/bin to your $PATH the next time your shell launches.ĥ) Make a file called sktop in ~/.local/share/applications/ and paste the following inside. You need to do something like sudo chown -R yourusername:yourusername /home/yourusername/.config/sublime-text-2ġ) undo all the steps in the linked webpage in reverse order.ġa) if you didn't save a copy of your original defaults.list then open a terminal and run sudo cp /usr/share/applications/defaults.list /usr/share/applications/ & cat /usr/share/applications/ | sed "s/sublime\.desktop/sktop/g" | sudo tee /usr/share/applications/defaults.listĢ) get the version of sublime you want and extract it to the current directory.ģ) in bash cd to the directory where you extracted sublimeĤa) if you want to be able to run sublime from the command line then run mkdir -p ~/bin & ln -s ~/.local/Sublime\ Text\ 2/sublime_text ~/bin/sublime.

from the sudo shell), so the editor's config directory (in ~/.config/sublime-text-2) is owned by root now. What probably happened is that you started it the first time with superuser privileges (i.e. This does not explain, however, the problems with permissions you're having - SublimeText stores all its settings in your home folder anyway, so even if you installed it system-wide it should not have problems. The article also does some shell integration, such as registering sublime_text as a default editor and adding an icon, and I was too lazy to do that - however, I'm sure that it can be done without messing with system-wide settings. This does not require root privileges at all and the editor runs just fine. Ln -s ~/wherever/sublime/is/sublime_text ~/binĪfter which you'll be able to run Sublime Text by typing sublime_text in the console, from any directory. However, there's a much lazier solution which I am personally using - just unpack SublimeText somewhere in your home directory, create a bin directory in your home directory and symlink sublime_text executable into that directory: mkdir ~/bin Webupd8 maintains a PPA for SublimeText2, so you can just use that.
WHY CANT I DOWNLOAD SUBLIME TEXT INSTALL
deb file and install it - this way package manager would be aware of the package. A simple typo in a plugin could destroy all data on your machine.Ī proper solution, if you want to install the program system-wide, would be to find/build a. Running the program as root is even wronger, especially in the case of SublimeText which has its own package manager which basically downloads stuff from Internet and lets it run on your computer.
WHY CANT I DOWNLOAD SUBLIME TEXT UPGRADE
This directory is managed by Ubuntu's package manager and messing with it is going to cause you trouble at some point or another - for example, the next time you upgrade your system Sublime will likely be removed without a trace. Manually copying stuff which does not come from Ubuntu repositories into /usr is WRONG. This helped me and I hope it helps everyone else as well!īasically, your problem is that you're using a wrong article :) If it was on an SE site I would down-vote it. Sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublimeĬheck out this nice script on Github(" Install Sublime Text on Fedora.") that you can run, just make sure to edit the "*.tar.bz2" in the script to download the latest version of Sublime Text! #!/usr/bin/env bash Tar vxjf Sublime\ Text\ 2.0.2\ 圆4.tar.bz2 Sudo apt-get install sublime-text-installer Install via the Package Manager(apt-get):įor Sublime-Text-2: sudo add-apt-repository ppa:webupd8team/sublime-text-2įor Sublime-Text-3: sudo add-apt-repository ppa:webupd8team/sublime-text-3
