istoyanov
December 1st, 2008, 06:55 AM
This might go as well into the general help forum, but since my question is about using "sudo", I decided to post it here.
I have installed some local software (actually TeXLive2008, by using sudo ./install-tl[1]) and added the installed binaries to the path (using ~/.profile). Sofar everything runs OK, but when I try to upgrade the TeX distribution through the tlmgr script[2] by prepending sudo to the command, it seems that the shell doesn't get the existing $PATH and the command isn't found. However, when I run tlmgr as a regular user it complains about missing rights.
My question is: how should I run the (local) binaries through sudo, but keeping the environment of the user? What would be the *recommended* way doing this?
[1] http://www.tug.org/texlive/quickinstall.html
[2] http://www.tug.org/texlive/tlmgr.html
NOTE: I have *no* root account active as per Ubuntu's defaults
I have installed some local software (actually TeXLive2008, by using sudo ./install-tl[1]) and added the installed binaries to the path (using ~/.profile). Sofar everything runs OK, but when I try to upgrade the TeX distribution through the tlmgr script[2] by prepending sudo to the command, it seems that the shell doesn't get the existing $PATH and the command isn't found. However, when I run tlmgr as a regular user it complains about missing rights.
My question is: how should I run the (local) binaries through sudo, but keeping the environment of the user? What would be the *recommended* way doing this?
[1] http://www.tug.org/texlive/quickinstall.html
[2] http://www.tug.org/texlive/tlmgr.html
NOTE: I have *no* root account active as per Ubuntu's defaults