pkgsrc-Users archive

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

RE: Vncserver auto startup

I included my PATH but it did not work. 
An other solution, which I use it now, is that automatic login and start
the cmd.     

-----Original Message-----
From: Steven M. Bellovin [] 
Sent: Friday, January 25, 2008 8:06 AM
To: Nguyen, Son N.
Subject: Re: Vncserver auto startup

On Mon, 21 Jan 2008 10:24:52 -0600
"Nguyen, Son N." <> 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,

Home | Main Index | Thread Index | Old Index