LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vncserver: couldn't find "xauth" on your PATH. (https://www.linuxquestions.org/questions/linux-software-2/vncserver-couldnt-find-xauth-on-your-path-387681/)

ziggie216 11-29-2005 04:17 PM

vncserver: couldn't find "xauth" on your PATH.
 
Code:

root@linuxbox:~# /etc/rc.d/rc.vncserver
vncserver: couldn't find "xauth" on your PATH.

root@linuxbox:~# whereis xauth
xauth: /usr/X11R6/bin/xauth /usr/bin/X11/xauth /usr/X11/bin/xauth /usr/X11/man/man1/xauth.1x.gz

Ok so made some change to the rc.vncserver
Code:

root@linuxbox:~# more /etc/rc.d/rc.vncserver
#!/bin/sh
PATH=$PATH:/usr/X11R6/bin:/usr/bin/X11:/usr/X11/bin && export PATH
/bin/su username -c "/usr/local/bin/vncserver :1 -geometry 1024x768"

root@linuxbox:~# /etc/rc.d/rc.vncserver
vncserver: couldn't find "xauth" on your PATH.

what path is it asking for?

bathory 11-30-2005 09:06 AM

It should be better change the PATH in /etc/profile (this affects all users), or in ~/.bashrc for a specific user.
Or in your script first run "su username", then define the new PATH and last run your command.

dolvmin 11-30-2005 11:34 AM

Re: vncserver: couldn't find "xauth" on your PATH.
 
Quote:

Originally posted by ziggie216
Code:

root@linuxbox:~# /etc/rc.d/rc.vncserver
vncserver: couldn't find "xauth" on your PATH.

root@linuxbox:~# whereis xauth
xauth: /usr/X11R6/bin/xauth /usr/bin/X11/xauth /usr/X11/bin/xauth /usr/X11/man/man1/xauth.1x.gz

Ok so made some change to the rc.vncserver
Code:

root@linuxbox:~# more /etc/rc.d/rc.vncserver
#!/bin/sh
PATH=$PATH:/usr/X11R6/bin:/usr/bin/X11:/usr/X11/bin && export PATH
/bin/su username -c "/usr/local/bin/vncserver :1 -geometry 1024x768"

root@linuxbox:~# /etc/rc.d/rc.vncserver
vncserver: couldn't find "xauth" on your PATH.

what path is it asking for?

~/home/{user}/.vnc/*.*

Did you try first typing in vncserver and entering your password? Each users must initialize a server with a password before they can request a login. This is done only once per user. The server generates the xauth following this. Sounds as if this wasn't done.


All times are GMT -5. The time now is 07:28 PM.