pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Vncserver auto startup



On Mon, 21 Jan 2008 10:24:52 -0600
"Nguyen, Son N." <sn.nguyen%ngc.com@localhost> wrote:

> 
> Any one know how to startup vncserver automatically.
> I put a line su <user-name> -c "/usr/pkg/bin/vncserver" in
> /etc/rc.local.
> It starts when the PC bootup but in the vnc log file says that x
> server could not start.
> If I login and start the cmd vncserver then it works.
> 
The reasons why are lost somewhere in the depths of my mind, but I used
the following:

ENV=/home/$LOGNAME/.env SHELL=/bin/ksh \
PATH=$PATH:/usr/pkg/bin:$HOME/bin vncserver -depth 16 :$1


                --Steve Bellovin, http://www.cs.columbia.edu/~smb



Home | Main Index | Thread Index | Old Index