Upgrading Fedora - Remote Desktop Configuration (part a)

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on September 13th, 2009

Welcome to the tutorial guide. The guide will provide a user with instructions and information on how to configure a remote desktop. If you would like to configure the remote desktop, then simply go to:
-Desktop
- Preferences
- Remote Desktop
-Remote Desktop Preferences
Sharing ->
Allow other users to view your desktop (Checked)
Allow other users to control your desktop (Checked)
Security ->
Ask you for confirmation (Un-Checked)
Require the user to enter this password: (Checked)
Password: Specify the password

(Please note that Remote Desktop only works when there is a GNOME login session)

Connecting into remote Fedora desktop
If you would like to know how to connect into remote Fedora desktop, then simply follow the steps as below.
Please note that following assumption is made
Remote Fedora machine: 192.166.0.2
vncviewer -fullscreen 192.166.0.2:0
-If you want to quit vncviewer, then simply press ‘F8′ and then Quit viewer

Remote conection Script by fedorajim
-please open a teminal window and switch to root by running following command:
su -c ‘gedit /usr/local/bin/remote2someone’
-now, please add the following text to the text editor
#!/bin/bash
# Written by fedorajim
# enter the IP address ofthe remote PC
IPADDRESS=”$(zenity –entry –title “Enter IP Address” –text “Enter the IP Address of the remore PC:”)”
echo $IPADDRESS
#Enter the username you aregoing to login with
UserName=”$(zenity –entry –title “Enter User Name” –text “Enter the User Name to connect with:”)”
echo $UserName
# opens a new terminal window and connects to remote PC
function ssh_Remote_PC
{
gnome-terminal -x ssh -L 5911:$IPADDRESS:5901 $UserName@$IPADDRESS
}
function View_Remote_PC
{
gnome-terminal -x vncviewer localhost:11
}
#################################################
selection=
until [ “$selection” = “0″ ]; do
echo “”
echo “######################”
echo “1 - Make Remote Connection”
echo “2 - display Remote Desktop”
echo “0 - exit program”
echo “”
echo -n “Enter selection: “
read selection
echo “”
#####################
# Commands executed #
#####################
case $selection in
1 ) $(ssh_Remote_PC) ;;
2 ) $(View_Remote_PC) ;;
0 ) exit ;;
* ) echo “Please enter 1, 2 or 0″
esac
done
-please do not forget to save by clicking on save
-after saving, you can close the text editor
-now, you need to right click the desktop and choose create launcher by adding the following to the Create Launcher dialog
• Name: remote2someone
• Comment: ssh remote connection
• Command: /usr/local/bin/remote2someone
• Type: application
• Run in Terminal: Checked
• Icon: click the Icon button and choose a icon

-in the end, please click save.

Backing up the files
Please ensure that you backup the files. This can be done by running following command:
grub
grub> md5crypt
Password: ****** (Fedora)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
grub> quit
su -c ‘cp /boot/grub/menu.lst /boot/grub/menu.lst_backup’
su -c ‘gedit /boot/grub/menu.lst’
-now, please search for this section

## password [’–md5′] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command ‘lock’
# e.g. password topsecret
# password –md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

-after finding the mentioned section, please add the following line below it
password –md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
-now, find the section as mentioned below:

title Fedora, kernel 2.6.10-5-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot

-please replace the section with the following lines
#title Fedora, kernel 2.6.10-5-386 (recovery mode)
#root (hd0,1)
#kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single
#initrd /boot/initrd.img-2.6.10-5-386
#savedefault
#boot
-now, please do not forget to save the edited file

If you followed the steps and guidance as provided in this tutorial guide, then you would have configured the Remote Desktop.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Leave a Comment