[Tutorial] Installing VNC for Centos 6 (VPS)
by grumpy on Sep.15, 2011, under General
How to Install VNC on Centos 6 (VPS)
Well, I usually don’t make these tutorials because there are often tons out there already available. However, I found the existing ones incomplete or inadequate to actually complete the task. So, this is meant to start from the very very fresh starting point.
First, let’s install essentials to run a VNC – the desktop.
You can choose any desktop environment you like, but this tutorial is going to focus with XFCE. (Who can afford to install Gnome/KDE on a VPS anyway?)
CentOS 6 by default does not come with specific desktop environment package information, so, we need to add that first if you plan to use any other than default.
For example for XFCE you need to…
1 2 | wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm rpm -ivh epel-release-6-5.noarch.rpm |
Now you should have the package info for xfce4 and you can confirm this by doing either of below
1 2 | yum search xfce4 yum groupinfo Xfce |
Next, install the actual desktop along with necessary parts for it.
1 | yum groupinstall Desktop Fonts Xfce |
That will take a while…
Next, we move onto installing the actual VNC
1 | yum install -y tigervnc-server |
We also need users to actually run the VNC environment since we don’t want to run it under root.
1 2 | useradd testuser passwd testuser |
now login to testuer via new SSH connection… or if you’re lazy…
1 | su -l testuser |
Now create a password for your VNC
1 | vncpasswd |
You should now be able to confirm that the vnc password file has been created
1 2 | cd .vnc ls |
should have ‘passwd’ in there.
You should now edit the VNC server configurations
1 | nano /etc/sysconfig/vncservers |
If you don’t have nano, you can use any other editor or install nano as well.
1 2 | VNCSERVERS="1:testuser" VNCSERVERARGS[1]="-geometry 1024x786" |
This will allow the vncserver to start with a resolution of 1204×786 with testuser on :1.
Now start your VNC as root
1 | service vncserver start |
It will run each vncservers you defined in the above file.
To stop/restart, you can…
1 2 | service vncserver stop service vncserver restart |
If you’d like your VNC to start at boot:
1 | /sbin/chkconfig vncserver on |
And that’s it!
Please be warned that this is an unsecured line to your VNC. If you suspect that someone’s snooping on your traffic, be sure to secure it by having an SSH tunnel or similar methods. But I’m going to end my tutorial here.
~Grumpy
———————————————
———————————————
———————————————
With that done… You probably want to install some essentials to actually use the VNC. And bunch of really useful ones are in RPM Forge.
Below are two links for RPM Forge for 32bit and 64bit relatively.
1 2 | i686 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm x86_64 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm |
You’ll need to download that and install it.
1 2 | wget [above link] rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm |
You can test that RPM forge is working by installing something like..
1 | yum install htop |
Firefox
1 | yum install firefox |
Flash Plugin
1 | yum install flash-plugin |
etc…
Virpus!
by grumpy on Aug.14, 2010, under Random Review
Hello! Well, anyone visiting this front page (grumpyland.com) probably didn’t notice. Some visiting certain subdomains certainly have. But I have moved some of my hosting from my previous hosting, Hostgator (which is still active and hosting several other sites) to this new Virpus. It’s a VPS running with full WHM/cPanel.
I hope everything goes smoothly for the next month while I try this one out. If not, time for more shopping! Which is…. rather quite time consuming.
Google Analytics
by grumpy on Mar.25, 2010, under General
Click more!
(continue reading…)
Where’s the new design?
by grumpy on Nov.22, 2009, under General
Well, I wrote in April that I’m going to be putting up a new layout/design for this website. It’s November now and it clearly hasn’t happened. What happened? Well, nothing happened. That’s why it’s not here.
I did try to do it for a couple of hours, then lots of more fun things jumped on me! Like games for example! I guess the priority of this website’s designs are just put on very low since the traffic here is barely existing anyways. (Why are you reading this?) But, I thought it would be worth while to at least mention on the progress of the job. It’s an indefinite hiatus. Or more likely, I will actually go with another design if I eventually and actually do make a new one.