Differences
This shows you the differences between two versions of the page.
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 | + | ====== How to Install and Configure |
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. |