Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
server-administration:centos5-vnc-x11 [2010-08-23 19:14:23]
garrett.plasky created
server-administration:centos5-vnc-x11 [2011-07-01 19:12:07]
garrett.plasky Approved
Line 1: Line 1:
-====== How to Install and configure X11 with remote VNC access on Centos 5 ======+====== How to Install and Configure X11 with Remote VNC Access on Centos 5 ======
  
 The instructions below will walk you through the process of installing the X window system, GNOME desktop environment, and configuring VNC so that you can access it remotely. The instructions below will walk you through the process of installing the X window system, GNOME desktop environment, and configuring VNC so that you can access it remotely.
  
-<code console> +<sxh shell>yum -y upgrade 
-yum -y upgrade +yum -y groupinstall "GNOME Desktop Environment" 
-yum -y groupinstall "GNOME Desktop Environment" +yum -y install vnc-server</sxh>
-yum -y install vnc-server +
-</code>+
  
 As a general rule of thumb you should never run X windows as root. In this example we will add a system user with the username 'wkst' and configure X windows to run under that user. As a general rule of thumb you should never run X windows as root. In this example we will add a system user with the username 'wkst' and configure X windows to run under that user.
  
-<code console> +<sxh shell>adduser wkst</sxh>
-adduser wkst +
-</code>+
  
 Next you need to set a password for the user wkst: Next you need to set a password for the user wkst:
  
-<code console> +<sxh shell>passwd wkst</sxh>
-passwd wkst +
-</code>+
  
 Next we will drop down to the system user 'wkst' using su and configure VNC. When running the vncserver binary you will again be asked to set a password.  This will be the password you use in your VNC client. Next we will drop down to the system user 'wkst' using su and configure VNC. When running the vncserver binary you will again be asked to set a password.  This will be the password you use in your VNC client.
  
-<code console> +<sxh shell>su wkst 
-su wkst +vncserver</sxh>
-vncserver +
-</code>+
  
 Next you need to edit /home/wkst/.vnc/xstartup and uncomment the following two lines: Next you need to edit /home/wkst/.vnc/xstartup and uncomment the following two lines:
  
-<code console> +<sxh shell>unset SESSION_MANAGER 
-unset SESSION_MANAGER +exec /etc/X11/xinit/xinitrc</sxh>
-exec /etc/X11/xinit/xinitrc +
-</code>+
  
 Next we want to restart VNC so the changes take affect Next we want to restart VNC so the changes take affect
  
-<code console> +<sxh shell>vncserver -kill :1 
-vncserver -kill :1 +vncserver</sxh>
-vncserver +
-</code>+
  
 That's it, you can now connect to your server using the server IP address with a :1 (the display port) at the end of it using your VNC client. That's it, you can now connect to your server using the server IP address with a :1 (the display port) at the end of it using your VNC client.