LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vnc server questions (https://www.linuxquestions.org/questions/linux-software-2/vnc-server-questions-196613/)

the bishop 06-22-2004 10:07 PM

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.

artistikone 06-22-2004 10:31 PM

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.

the bishop 06-22-2004 11:14 PM

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?

the bishop 06-23-2004 12:11 AM

also, can I run this on bootup? and if so, how -- I'm fairly new to linux - doh!

artistikone 06-23-2004 01:44 AM

#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?

the bishop 06-23-2004 02:24 AM

NICE - that is exactly what I was looking for ... thanks a million!

the bishop 06-23-2004 04:27 PM

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.