An issue with sudo

vafa at aol.com.au vafa at aol.com.au
Sun Nov 9 02:31:16 UTC 2008


I already downloaded and installed TeXlive 2008 from tug.org/texlive

by default it is installed in /usr/local

after installation, if I would open a terminal and say xelatex, it would not recognise the command, so this what I did:(creating a custom .xesession)

1)? Open a terminal by opening the Applications menu, select Accessories, and then click Terminal. 

2) To begin editing your script, type the following command at the prompt: 

gedit ~/.xinitrc

3) Put the following texts inside the tex editor:

PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH; export PATH &
MANPATH=/usr/local/texlive/2008/texmf/doc/man:$MANPATH; export MANPATH &
INFOPATH=/usr/local/texlive/2008/texmf/doc/info:$INFOPATH; export INFOPATH &
exec gnome-session

4) save the file and then cose it

5) write the following command in terminal:

chmod +x ~/.xinitrc

6) write the following command in terminal:

ln -s ~/.xinitrc ~/.xsession


after restarting my computer, I opened a terminal and wrote xelatex. This time fortunately it recognised my TeXLive installation. but if I write the following command in terminal:

sudo texhash

it gives:

sudo: texhash: command not found

but if I just say texhash, it recognises the command very well as follow:

texhash: /usr/local/texlive/2008/texmf: directory not writable. Skipping...
texhash: /usr/local/texlive/2008/texmf-config: directory not writable. Skipping...
texhash: /usr/local/texlive/2008/texmf-dist: directory not writable. Skipping...
texhash: /usr/local/texlive/2008/texmf-doc: directory not writable. Skipping...
texhash: /usr/local/texlive/2008/../texmf-local: directory not writable. Skipping...
texhash: /usr/local/texlive/2008/texmf-var: directory not writable. Skipping...
texhash: Done.


So can you please say what I need to do so that ubuntu recognises sudo texhash

Thanks

________________________________________________________________________
Get a FREE AOL Email account with unlimited storage. Experience Email and instant messaging together - chat while you mail and mail while you chat! Register for your free email account at http://free.aol.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20081108/24acc51e/attachment.html>


More information about the ubuntu-users mailing list