GNULinuxACMTeam / installing_software_on_linux

Installing Software on Linux
Apache License 2.0
0 stars 0 forks source link

Run sublime text as root the first time? #1

Closed stevelaskaridis closed 9 years ago

stevelaskaridis commented 9 years ago

@alexdor Why do you have to run sublime text as root for the first time?

alexdor commented 9 years ago

@stevelaskaridis You have to run it as root for the first time in order to complete the installation. If you install it manually, not with "apt-get install sublime-text", this step isn't required.

stevelaskaridis commented 9 years ago

What does it do, however, to complete the installation that requires opening it as root?

Note that you are installing it from a third party repo and running it as sudo. Under other circumstances, this would not be wise ... On 16 Dec 2014 21:43, "Alexandros" notifications@github.com wrote:

@stevelaskaridis https://github.com/stevelaskaridis in order to complete the installation. If you install it manually and not with apt-get you don't have to run it as root for the first time.

Reply to this email directly or view it on GitHub https://github.com/GNULinuxACMTeam/installing_software_on_linux/issues/1#issuecomment-67219089 .

alexdor commented 9 years ago

When you install it with "apt-get" the files "PackageSetup.pyc" and "sublime_plugin.pyc" are missing from the "opt" folder so the application shows an error when you try to run it. In order to write those files to the "opt" folder you need to be root, so by running the app for the first time with "sudo" the missing files are installed.

I know that running apps from third party repositories as root can be suspicious although the alternatives are to install it manually or to install it with "apt-get" then download the file from the site extract it copy the missing files and the paste them to the "opt" folder. So considering that the "web upd 8" is known for good repositories and that the alternatives are not as good as the "apt-get install sublime-text" I decided to do it this way. Although because you are right and running an app from a third party repo as root seems suspicious I have also included a second way for installation with the form of comments.