Sunday, March 30, 2008

Enable remote destop between Fedora Core 7 PCs

Some more handy tips for Fedora home users:

Enabling remote desktops at home.

1. I did this step first and I don't think it worked so leave it out next time but, having done it, I can't not document it in case it is critical.

I went to the System->Administration->Login window command from the main menu;
Went to the "Remote" tab;
Chose style- same as local;

Essentially, this was to allow remote login. Not sure if this was replaced by the steps below or augmented by them.

2. As per the helpful document in http://homepage.ntlworld.com/daniel.rigal/xdmvnc.html

# Edit /etc/X11/xdm/xdm-config. Comment out the last line saying:

DisplayManager.requestPort: 0

by adding an "!" on the front.

# Edit /etc/X11/xdm/Xaccess. Uncomment the line:

#* #any host can get a login window

by removing the first "#".

# The next file to edit depends on which XDM version you are using. For GDM based systems (e.g. RedHat) edit: /etc/X11/gdm/gdm.conf. For KDM based systems (e.g. FC7) edit: /usr/share/config/kdm/kdmrc. If unsure, editing both will do no harm.

In either case, find the section:

[Xdmcp]
Enable=false

Change "false" to "true" or "1".

Underneath this (i.e. somewhere inside the [Xdmcp] section), make sure you have a line which says:

Port=177

If it is commented out then uncomment it. If it says Port=0 then change it to say Port=177. If it is missing entirely then add it.

# You now need to restart the XDM/KDM/GDM process to make it notice the changes. The easiest way to do this is: "init 3; init 5". Note that this will crash any X desktop you (or any other users) are running on the machine at the time. If you prefer not to do this, you can kill and restart the processes manually.

3. Firewalls

On both systems, I enabled the following ports:

177 (UDP)
6000-6005 (TCP)

No comments: