Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
#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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.