Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 have search this board and also google for automatically start vncserver at startup. Have found a lot of problems and also solutions. However, it doesn't work on my maschine.
I have a fresh install of RedHat9. Using the gui setup guide. I have choose server install and have add X, gnome and other things I need. For my testing, I have done all tings as root!
All work fine. Runlevel is 3 (init 3). If i start vncserver by tpying 'vncserver' the service start and remote access work fine.
Now, I want to start vncserver each time redhat is starting. Thats the problem.
My steps:
- startx
- in the gui I go to System Settings -> Server Settings -> Services
- Editing Runlevel 3, activate vncserver
- At /etc/rc.d/init.d/ the vncserver file exists
- also at /etc/rc.d/rc3.d the file S91vncserver exists
During startup, is says vncserver starting ... OK
But the vncserver isn't started :-(
The vncserver logfile contains only data form my last manually start.
Another idea (found on google) was this:
- go to /etc/init.d
- create 'vncstart' file and add the text "vncserver"
- chmod a+x vncstart
- goto /etc/init.d/rc3.d
- ln -s /etc/init.d/vncstart S30vncstart
- go to /etc/init.d
- create 'vncstop' file
- add text "cvsserver -kill:1"
- chmod a+x vncstop
- goto /etc/init.d/rc3.d
- ln -s /etc/init.d/vncstop K30vncstop
Also without luck :-(
I'm new to linux, but I think it is really nice. Lot of things work fine, but vncserver doesn't like me.
I hope someone can assistance me. Thanks a lot in advance.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
first of all, perhaps it would be simpler to star at runlevel 5 for x and switch to a console, then put in /etc/rc.local the command to start vncserver, rc.loal is loaded after all the other startup scripts
my rc.local contains only the two lines (and also comments):
touch /var/lock/subsys/local
vncserver
vncserver doesn't start. I have here three machines where I have trying to run vncserver automatically. Suddenly, manually start work always fine, automatic fail.
Any ideas?
I can't find any error messages. Where I have to take a look? As I mentioned, in the vncserver log file there is only the log date from the last manual start.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
hmm, i just noticed, you have redhat, try running 'setup' at the cnsole
select 'system services'
and see if vncserver is an option, if so, checking it should allow vnc to start automatically
My steps:
- startx
- in the gui I go to System Settings -> Server Settings -> Services
- Editing Runlevel 3, activate vncserver
- At /etc/rc.d/init.d/ the vncserver file exists
- also at /etc/rc.d/rc3.d the file S91vncserver exists
and
Quote:
hmm, i just noticed, you have redhat, try running 'setup' at the cnsole
select 'system services'
and see if vncserver is an option, if so, checking it should allow vnc to start automatically
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.