startx with vncserver


Forum: X and Fluxbox
Topic: startx with vncserver
started by: clrsrc

Posted by clrsrc on Aug. 08 2005,17:21
actually i'm running DSL without Monitor and Keyboard,
login through ssh console.

How to startx and having access through vncclient ?

Does anyone has got an idea ?

Posted by mikshaw on Aug. 08 2005,19:07
As far as I know, vncserver automatically starts an x session.
Posted by clrsrc on Aug. 08 2005,19:45
when logged in with ssh i've typed ps -aux to see if X Server is running,it's not running

OK,
typed startx and it's running
stopped server,added vncserver & in .xinitrc,restart
ps -aux , vncserver not running
stopped server,removed vncserver & in .xinitrc,
added Xvnc & , restart
ps -aux , vncserver not running

Posted by mikshaw on Aug. 09 2005,00:00
You shouldn't need to bother with xinitrc, since you're not starting x as normal.  VNCserver is a wrapper that starts X for you.  As long as you've got it configured properly, the command "vncserver" or "vncserver :0" should start up vncserver with a useable X session.

You might need to create or edit ~/.vnc/xstartup and add fluxbox to that, or you could just get a blank screen and an xterm.

Posted by clrsrc on Aug. 09 2005,15:59
thx,vncserver is running as expected



:)

Posted by clivesay on Sep. 02 2005,19:01
Do you mind sharing how you got it running at boot time? I tried putting the two commands in .xinitrc put it gets a permission denied and tried in bootlocal but it's not running when I check ps ax. I would appreciate a little guidance. Thanks

Chris

Posted by mikshaw on Sep. 02 2005,20:02
Putting it in .xinitrc will not work because it starts its own x session.
Putting it in bootlocal won't work because you have not yet logged in when the script runs.

Replace "startx" with "vncserver" in /home/dsl/.bash_profile and it should start automatically when you log in.

Posted by clivesay on Sep. 02 2005,20:16
Thanks, Mik. I get permission denied errors from home/dsl/.vnc and X doesn't start. Does it need to be sudo vncserver?

Chris

Posted by mikshaw on Sep. 02 2005,20:31
Shouldn't need to be, since it is running a server for your personal desktop.  Also, /home/dsl/.vnc should be owned by dsl, so you shouldn't get a permission error for it.
Posted by Ruthje on Sep. 24 2005,14:31
Quote (mikshaw @ Aug. 08 2005,20:00)
You shouldn't need to bother with xinitrc, since you're not starting x as normal.  VNCserver is a wrapper that starts X for you.  As long as you've got it configured properly, the command "vncserver" or "vncserver :0" should start up vncserver with a useable X session.

You might need to create or edit ~/.vnc/xstartup and add fluxbox to that, or you could just get a blank screen and an xterm.

I did this and in xstartup there already was a fluxbox. When I want to connect to the vncserver it asks for a password. I search the forum but nobody has this error.
I already created a password for dsl and root, because with ftp it also asks for a password but this hadn't any succes.

Posted by mikshaw on Sep. 24 2005,15:13
As far as I know, VNC uses its own authentication.  Use the 'vncpasswd' command to create a passwd file, which defaults to $HOME/.vnc/passwd
Posted by Multitudes on Sep. 25 2005,17:44
I found the default psw to be  "damnsmall".
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.