Auto start VNCServer in RHEL V5 during system bootup

1. Set VNC password:
vncpasswd

2. Start the vncserver with root user by using the command vncserver :1

3. Add following lines in xstartup file located in /root/.vnc directory:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

4. Replace the highlighted letters in the xstartup file:

xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &

with the following:

xterm -geometry 1024×768+10+10 -ls -title “$VNCDESKTOP Desktop” &
startx &

5. Switch user to root account and edit file vncservers located at /etc/sysconfig.  Add following lines at the bottom of the file:

VNCSERVERS=”1:root”
VNCSERVERARGS[1]=”-geometry 1024×768″

6. Set auto run vncserver daemon upon system boot up:
chkconfig –level 5 vncserver on

7. Restart the machine

Advertisements

About Ishtiaque

I am IBM Certified Infrastructure Systems Architect, TOGAF 9 Certified, ITIL V3 Foundation certified and Oracle Certified Export in Java Web Component Developer with over 10 years of support and development experience in IBM middleware software and Java. Additionally, have a sound grip in databases, Linux and OpenStack administration. I hold the following certifications: IBM Certified Infrastructure Systems Architect TOGAF 9 Certified Oracle Certified Expert, Java EE6 Web Component Developer Oracle Certified Professional – Java 6 Programmer ITIL v3 Foundation Certified IBM Certified Solution Architect – Cloud Computing Infrastructure V1 IBM Certified System Administrator – WebSphere Portal V8, V7, V6.1, V6 IBM Certified System Administrator – WebSphere Application Server V7, V6.1 IBM Certified System Administrator – AIX V7 IBM Certified System Administrator – WebSphere MQ V7 IBM Certified Deployment Professional – Business Process Manager Advanced V7.5 IBM Certified Solution Advisor – Cloud Computing Architecture V3 IBM Certified Solution Developer – WebSphere Portal V5.1
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s