LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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



Reply
 
Search this Thread
Old 06-22-2004, 11:07 PM   #1
the bishop
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Rep: Reputation: 0
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.
 
Old 06-22-2004, 11:31 PM   #2
artistikone
Member
 
Registered: Jul 2003
Distribution: slackware-current
Posts: 76

Rep: Reputation: 15
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.
 
Old 06-23-2004, 12:14 AM   #3
the bishop
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Original Poster
Rep: Reputation: 0
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?
 
Old 06-23-2004, 01:11 AM   #4
the bishop
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Original Poster
Rep: Reputation: 0
also, can I run this on bootup? and if so, how -- I'm fairly new to linux - doh!
 
Old 06-23-2004, 02:44 AM   #5
artistikone
Member
 
Registered: Jul 2003
Distribution: slackware-current
Posts: 76

Rep: Reputation: 15
#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?
 
Old 06-23-2004, 03:24 AM   #6
the bishop
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Original Poster
Rep: Reputation: 0
NICE - that is exactly what I was looking for ... thanks a million!
 
Old 06-23-2004, 05:27 PM   #7
the bishop
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC questions partyk1d24 Linux - Networking 5 10-08-2005 03:56 PM
A few pesky little questions about VNC VBAHole22 Linux - Networking 2 06-13-2004 06:39 PM
Questions on Headless VNC installation hecresper Fedora - Installation 0 01-23-2004 05:48 PM
VNC server Kocil Mandriva 2 08-22-2003 08:25 AM
vnc server questions spyder Linux - Software 4 06-06-2003 05:00 PM


All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration