server-administration:centos5-vnc-x11
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| server-administration:centos5-vnc-x11 [2010-08-25 12:45:23] – Approved garrett.plasky | server-administration:centos5-vnc-x11 [2011-07-01 12:12:07] (current) – Approved garrett.plasky | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| The instructions below will walk you through the process of installing the X window system, GNOME desktop environment, | The instructions below will walk you through the process of installing the X window system, GNOME desktop environment, | ||
| - | <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</ |
| - | # 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 ' | 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 ' | ||
| - | <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 ' | Next we will drop down to the system user ' | ||
| - | <code console> | + | <sxh shell>su wkst |
| - | # su wkst | + | vncserver</ |
| - | # vncserver | + | |
| - | </code> | + | |
| Next you need to edit / | Next you need to edit / | ||
| - | <code console> | + | <sxh shell>unset SESSION_MANAGER |
| - | unset SESSION_MANAGER | + | exec / |
| - | exec / | + | |
| - | </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</ |
| - | # 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. | ||
server-administration/centos5-vnc-x11.txt · Last modified: by garrett.plasky
