On Fri, Jul 19, 2013 at 3:29 PM, Stéphanie Vilayphiou wrote:
So I tried to run first-setup.sh in /opt/context as root. First of all, I have troubles with rsync connections through first-setup.sh.
""" rsync: failed to connect to contextgarden.net: Connection timed out (110) rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.7]
Does anyone else have that problem? Does root user get proper DNS settings? I can check the server logs, but it's more likely that there are some weird server settings on your side if it works for regular user and only fails when you run sudo. Another (not likely, but possible) option is that you actually run a different binary when you use sudo.
So I copy/pasted the files from the single-user install in /opt/context/. Then Context runs only if I source it with: "source /opt/context/tex/setuptex" but putting it in my $PATH doesn't work and it disappears from my path when I come back to su. """ root@erba-web1:~# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin root@erba-web1:~# PATH=$PATH:/opt/context/tex/texmf-linux-64/bin root@erba-web1:~# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/context/tex/texmf-linux-64/bin root@erba-web1:~# exit $ sudo su root@erba-web1:/home/admin_esad# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin """
This is expected.
(actually this $PATH thing doesn't work either on my local machine, I have to source it every time I want to use it...)
Any idea?
What distribution is running on the server? See for example http://askubuntu.com/questions/128413/setting-the-path-so-it-applies-to-all-... You need to edit some configuration file that applies path to all users. I would suggest hardcoding the path in that system setting rather than sourcing setuptex. Please also be careful about setting TEXMFCACHE path. Personally I would create a texmf.cnf file somewhere next to texmf-foo trees setting that variable to something that won't clash between users (each user needs his own TEXMFCACHE path). Mojca