vnc server questions
I am trying to startup my linux box and have it automatically execute vncserver. for whatever reason, when I try to execute it as the normal user, it won't work. It WILL work if I su to root, but then when I connect into the machine via VNC it shows roots desktop, not the normal users.
Cliffs Notes: I would like to have my linux start up, run vncserver under my normal user on KDE. |
Are you trying to be able to vnc into your :0 display? IE vnc into the current active X session? If so, take a look at http://www.karlrunge.com/x11vnc/ , it works great for me. Anytime I want to vnc into my box at home, I just ssh in, run 'x11vnc -display :0 -rfbauth .vnc/passwd' which then allows me to vnc into my active x session. The -rfbauth .vnc/passwd is for requiring a password.
|
sweet. I'll have a look at that directly. one other question, when I tried to run the vncpasswd as my normal user, it errored out, and said something about not being able to access a certain file, but it worked under root, so I just copied the ./vnc/passwd file from the root dir to the normal user dir, is that acceptable?
|
also, can I run this on bootup? and if so, how -- I'm fairly new to linux - doh!
|
#1 Yes, that should work fine.
#2 You could add the 'x11vnc -display :0 -rfbauth .vnc/passwd -bg' to your startup session in whichever WindowManager you use. This will load it into the background when your X session starts. Which WindowManager do you use? |
NICE - that is exactly what I was looking for ... thanks a million!
|
Sorry - didn't see the question there. I use KDE, and have a script running from the autostart directory in .kde -- seems to work good so far, now on to the real test of making this a headless machine :)
|
All times are GMT -5. The time now is 12:28 PM. |