LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-11-2013, 03:13 PM   #1
Red_Hat
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Rep: Reputation: Disabled
Unable to auto start VNC server on reboot


I have red hat 5.9. I have VNC server working fine, however I'm unable to automate its start upon reboot.

I've followed the steps in this link: https://access.redhat.com/site/solutions/7238 . I can manually start the server using the command below, but can't get it to autostart upon reboot.

#vncserver
or
#service vncserver start (vncserver is name of script in /etc/init.d/)

Any advice greatly appreciated!

-Richard
 
Old 04-11-2013, 04:57 PM   #2
Air-Global
Member
 
Registered: Dec 2012
Location: Holland
Distribution: Fedora 18 & CentOS 6.3
Posts: 61

Rep: Reputation: 8
So, the simple question is:

Do you mean that you tried the command
Code:
chkconfig vncserver on
with no result?


Could you then run:
Code:
chkconfig --list
And post the output here.
 
Old 04-12-2013, 08:05 AM   #3
Red_Hat
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Yes, "chkconfig vncserver on" did not work.

Code:
#chkconfig --list vncserver 
vncserver       0:off   1:off   2:on    3:on    4:on    5:on    6:off
Any help greatly appreciared.....
 
Old 04-12-2013, 10:59 AM   #4
Air-Global
Member
 
Registered: Dec 2012
Location: Holland
Distribution: Fedora 18 & CentOS 6.3
Posts: 61

Rep: Reputation: 8
Ok, all is as it should be.

Could you check your boot log (/var/log/boot.log)
And see if that reports anything about your vncserver. And again, post it here
 
Old 04-12-2013, 12:30 PM   #5
Red_Hat
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for your help on this matter.

the boot.log file is completely empty (size=0 bytes), is that normal?


Anything else I can try?
 
Old 04-12-2013, 04:06 PM   #6
Air-Global
Member
 
Registered: Dec 2012
Location: Holland
Distribution: Fedora 18 & CentOS 6.3
Posts: 61

Rep: Reputation: 8
No worries about the help mate, thats what im here for


About the empty file, it could be that if your system is on long enough it renamed the file to boot.log.* (* representing a number). If there are other files look inside them. But i've never experienced a RedHat system doing this.

You could also check the /var/log/messages
But those can be a pain to read, easiest is to restart and then look inside the latest edited messages file for a line with vnc in it :P


A Second idea:
Is your SELinux security on?
Run (from command line/terminal)
Code:
selinuxenabled && echo enabled || echo disabled
If its enabled it might be a good idea to restart your system with it disabled and see if the VNCServer starts. If it does it might be a SELinux issue, which is 'harder' to solve, but easy to locate.

To disable SELinux allowing a reboot:
In the file /etc/selinux/config
Replace:
Code:
SELINUX=enforcing
By:
Code:
SELINUX=permissive
If that doens't help, you can then enable it again by putting the original line in again
 
  


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
How to auto start bash file when server reboot? nxerx Red Hat 5 09-19-2009 11:54 AM
How do I get VNC to start on Reboot? niner710 Linux - Newbie 2 05-26-2008 08:09 PM
How to auto start my sql server upon reboot? john_d13 Slackware 6 01-17-2006 02:11 PM
samba auto start on reboot vMatthews Debian 4 11-08-2005 06:40 PM
Red Hat 9.1 + VNC Auto Start JustMe5551212 Linux - Newbie 8 09-26-2003 09:51 PM


All times are GMT -5. The time now is 04:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration