LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-04-2006, 04:10 PM   #1
sectioneight
LQ Newbie
 
Registered: Oct 2006
Location: BC, Canada
Distribution: Debian, Redhat
Posts: 17

Rep: Reputation: 0
Exclamation Xvnc autostart with Redhat


Hi there,

I have now tried a million and one ways to get Xvnc to start automatically. I have tried with xinetd, with the Xserver file, and many more.

I need Xvnc to start automatically when X Windows starts and display the desktop or the X login screen. I am using Gnome.

I have been googling this for 2 days now, and nothing that anyone has said has worked. Maybe I am just missing something, I do not know.

I really need to remotely administrate this box, and any help would be much appreciated.

Thank you for your time.
 
Old 10-04-2006, 04:49 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
How is Xvnc confgiured. Run a seperate desktop or redisplay current display:0.
Which link have you followed to get the most done. All depends on where some files are or which ones you choose.

This one does a good job with vnc. http://fedoranews.org/tchung/vnc/

Brian
 
Old 10-04-2006, 05:56 PM   #3
sectioneight
LQ Newbie
 
Registered: Oct 2006
Location: BC, Canada
Distribution: Debian, Redhat
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1
How is Xvnc confgiured. Run a seperate desktop or redisplay current display:0.
Which link have you followed to get the most done. All depends on where some files are or which ones you choose.

This one does a good job with vnc.

Brian
Thanks for the quick reply,

I have gone this route with the one you posted, the only problem is that the service does not start back up on its own. I have to actually log into X Windows and run "service vncserver start" once again.


I have followed so many links now, the main 2 I have tried is the xinetd way, by adding into

/etc/services:
vnc 5901/tcp

and into /etc/xinetd.d/vnc:
vnc
{
disabled = no
server = /usr/bin/Xvnc
server_args = blah blah
..
..
}

I have also tried the Xservers file in /etc/X11/xdm/Xserver:

:1 local /usr/bin/Xvnc blah blah blah

and anytime I reboot and "ps x | grep vnc" it does not return anything, until I start the vnc server back up again.



Any other ideas ?
 
Old 10-04-2006, 06:03 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Still a bit confused with your setup but I normally use the command chkconfig to set the runlevels for the services to start. So for a vncserver I do this. First /etc/init.d/vncserver exist.

To start the service.
service vncserver start

To make autostart on boot
chkconfig --level 345 vncserver on

chkconfig will set the S option infront of the vncserver script in runlevel 3 which is the scripts in /etc/rc3.d to runlevel 5 /etc/rc5.d

Brian
 
Old 10-04-2006, 06:14 PM   #5
sectioneight
LQ Newbie
 
Registered: Oct 2006
Location: BC, Canada
Distribution: Debian, Redhat
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1
Still a bit confused with your setup but I normally use the command chkconfig to set the runlevels for the services to start. So for a vncserver I do this. First /etc/init.d/vncserver exist.

To start the service.
service vncserver start

To make autostart on boot
chkconfig --level 345 vncserver on

chkconfig will set the S option infront of the vncserver script in runlevel 3 which is the scripts in /etc/rc3.d to runlevel 5 /etc/rc5.d

Brian

Wow, you sir, are a genius. Sorry I forgot to mention I'm a total newb to linux heh. Thank you very much, case FINALLY closed.

Actually, one more question if you have time...

Is there anyway to point the vnc server to show the login screen as opposed to a desktop, so the vnc user can login as whomever they wish ?
 
Old 10-04-2006, 07:06 PM   #6
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Ok, you want to set it up to display :0. Add the lines describe in this link.
http://www.cs.princeton.edu/~gwallac...vnc-linux.html
http://www.realvnc.com/products/free/4.1/x0.html

Once added restart the X server and now there will be the default X that comes up which is display :0 and if you leave yours at display:1. All you nned to do is use :0 instead of :1 on the vnc client app.

Brian
 
Old 10-05-2006, 11:47 AM   #7
sectioneight
LQ Newbie
 
Registered: Oct 2006
Location: BC, Canada
Distribution: Debian, Redhat
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1
Ok, you want to set it up to display :0. Add the lines describe in this link.
http://www.cs.princeton.edu/~gwallac...vnc-linux.html
http://www.realvnc.com/products/free/4.1/x0.html

Once added restart the X server and now there will be the default X that comes up which is display :0 and if you leave yours at display:1. All you nned to do is use :0 instead of :1 on the vnc client app.

Brian

Thank you once again sir, the second link worked out perfectly.
 
  


Reply

Tags
autostart, linux, redhat, vnc, xvnc


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
starting Xvnc mickeyboa Fedora 0 08-28-2004 02:28 PM
Xvnc Positioning neophile Linux - Software 0 10-07-2003 10:55 AM
Xvnc Positioning neophile Linux - Games 0 10-07-2003 09:12 AM
Xvnc not started ?? init-5 Linux - Software 8 09-21-2003 05:08 PM
Redhat 9 - How do I uninstall apache + how do I add apache to autostart? praefex Linux - Software 2 07-29-2003 12:21 PM


All times are GMT -5. The time now is 09:16 AM.

Main Menu
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