LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to auto start VNC server on reboot (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-auto-start-vnc-server-on-reboot-4175457825/)

Red_Hat 04-11-2013 03:13 PM

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

Air-Global 04-11-2013 04:57 PM

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.

Red_Hat 04-12-2013 08:05 AM

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.....

Air-Global 04-12-2013 10:59 AM

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 ;)

Red_Hat 04-12-2013 12:30 PM

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?

Air-Global 04-12-2013 04:06 PM

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 :)


All times are GMT -5. The time now is 08:41 AM.