Vncserver on Fedora Core 4

I’m posting this article to document the setup and configuration of vncserver on my Fedora Core 4 desktop. I’ve had a hard time finding the right documentation online. So, I’m making this document available to anyone who might be looking for help configuring the vncserver on the Fedora Core 4 and 5 platform. And now, Fedora 6 as well. Let’s get started.

1. If you haven’t installed the vncserver yet, type in the following commands from the bash console to start the installation process.

yum -install vnc-server

2. The following commands takes you to your home directory and starts the vncserver configuration. You’ll be prompted to enter your vncserver password twice. Vncserver will then create several files in the .vnc directory underneath your home directory.

cd
vncserver

3. Change directory to .vnc directory and edit the xstartup file and remove the “#” uncommenting the following lines:

unset SESSION MANAGER
exec /etc/X11/xinit/xinitrc

cd .vnc
vi xstartup

Save the file by typing “:wq”

4. If the firewall is NOT installed, skip the next two steps. Otherwise, login as root. Change directory to /etc/sysconfig. Edit the iptables firewall.

su
cd /etc/sysconfig
vi iptables

Add the following rules:

-A RH-Firewall-1-INPUT -m state --state NEW
-m tcp -p tcp --dport 5901:5909 -j ACCEPT

Save the file by typing “:wq”

5. Restart the firewall.

/sbin/service iptables restart

6. Start the vncserver with the following options. If successful, you will see a message stating the server has been started.

vncserver -geometry 1024x768 -depth 16 :1

7. Now access the vncserver from another machine, using either a Windows or Linux machine. You can use the vncviewer program which is available for both Windows and Linux platforms.

From Linux, enter the following command:

vncviewer hostname:1

From Windows, start vncserver application and type hostname:1 in the dialog box.

Enter your vncserver password!

Addendum:

8. Perform the following commands to make the vncserver server start at boot time. Login as root. Change directory to /etc/sysconfig.

su
cd /etc/sysconfig
vi vncservers

Edit the vncservers file and type in the following:

VNCSERVERS="1:user1 2:user2"
VNCSERVERARGS[1]="-geometry 1276x968 -depth 16"
VNCSERVERARGS[2]="-geometry 1024x768 -depth 16"

Save the file and reboot. I tried restarting vncserver via Services without rebooting, but it didn’t work for me. So, a reboot is necessary. The vncserver should start automatically after each reboot.

9. Finally, if you like to run the vncserver on several runlevels other than the default 5, perform the following commands.

Check status of vncserver:

chkconfig --list vncserver

If you like to activate vncserver on different runlevels, for example 3, 4 and 5.

chkconfig --level 345 vncserver on

10. That’s it.

Tadalist.com

I found a website called Tadalist.com which keeps track of your todo list. You can share your todo list with family, friends, co-workers or the rest of the world. The service is free courtesy of 37signals.com. Give it a try. You might like it. Sign up!

1 Billion

Apple has reached 1 billion downloaded songs from its iTunes Music store. Of course, I made a contribution downloading less than ten songs from the popular music library. That’s a billion dollars folks. Congratulations, Apple!

Fixing Grub

I have a dual boot desktop with Windows XP and Fedora Core 4 running side by side. I recently re-installed Windows XP. Unfortunately, Windows XP wiped out the Grub configuration making the Fedora inaccessible and unbootable.

[Read more...]

Instant Rails Problems

I was playing around with with RubyonRails the other night. I’m quite amazed on what this application framework can do. I saw the tutorial demo when someone created a blogging web application in 15 minutes with just 58 lines of code!

[Read more...]

PALM 2-1 Stock Split

Shareholders of PALM as of Feb 28 will receive a 2-1 split on March 15. Palm shares have surged 31% over the last two months. Today, PALM is up $1.37 closing at $37.95. The split will bring the total number of shares to about 100 million.

T-Mobile Hotspot

I had a little trouble logging in to T-Mobile Hotspot today. I called customer support. I figured to be on hold for at least 5 minutes. I was surprised to be connected to a real person right away. The problem was solved in less than 30 seconds. I’m impressed. Way to go T-Mobile.

Electrical Tape

Who would have thought? I have been having laptop problems lately with my Fujitsu S6210. Here’s some early postings: 1, 2, 3. I searched high and low for what’s been causing the problem. Well, apparently I didn’t search high enough. As it turns out, I read in this forum that several people have had the same issue.

[Read more...]

Alternate Style Sheets

I just implemented Alternate Style Sheets for the Black-Letterhead theme. If you haven’t seen alternate style sheets in action, just click on the following links below.

[Read more...]

Black-Letterhead 1.1

I just updated the Black-Letterhead theme (you are looking at it) to version 1.1. I’m making it available to anyone interested in using it with their WordPress installation. To learn more about the theme, visit the Black-Letterhead pages.