Looking for help -- automatically starting VNC as a
cbeerse "at" hiscom.nl
Fri Jun 14 09:18:01 2002
> -----Original Message-----
> From: Michael Khusid [mailto:mkhusid "at" ansoft.com]
> Folks, I tried to make vnc start as a non-root and I had little luck.
> Could anyone please help me?
> The script runs perfectly from interactive shell. but when I
> am running
> it from rc.d, it comes out with the xauth not found in the path error.
> The system is Solaris 8.
Generally, actions from rc.d (or init or init.d, which are the same)
generally don't do a login, the just do a 'su' to change the rights and end
up with a strange, minimal or alternate environment.
The best thing I have found for this purpose is this setup:
It starts Xvnc from inetd, not from init.
I guess the vncserver package in RedHat 7.2 has something like you try to
startup. You can get those packages from www.redhat.com or ftp.redhat.com.
This has several flaws and I prefer the inetd approach.
An other idea is to do a command like `rsh localhost -l <user> vncserver :7`
This does a login as the user's and then starts vncserver as if the user
does it manually.
The startup problems on Solaris have been addressed before, check the
archive to find a permanent solution.