Remote Desktop from windows to Linux

Source: Internet
Author: User
Tags change settings
Introduction

You may well have read my first part to this Article. If not then you can read itHere. Part two of my remote access experiment has now been completed. my idea was to run a remote Linux desktop on my Windows XP computer. this allowed me to access two operating systems at the same time. the remote Linux machine wocould be running with a power and a network cable and wocould be administered remotely. after much work this has now been completed. the aim of this article is to provide information on making a remote connection from windows to Linux.

Initial preparation

In order to perform this I required the following equipment:

Windows XP Computer (celeon D 2.8 GHz, 1 gb ddr ram, 60 GB hard drive, radeon 9250 graphics)
Linux computer (AMD athlon 1800 + XP, 256 mb ram, 20 GB hard drive, SIS integrated graphics)
A network. (Belkin router)

I also required the following software:

Windows XP Pro (for the Local Computer)
Fedora Core (available as a downloadHere)
Putty (the Secure Shell program availableHere)
A vnc Program (this allows you to view a remote graphical desktop. It is availableHere)

Recently I have upgraded my ageing network from 10 Mb/s to 100 Mb/s. this increased the speed of my network drastically. I have chosen to install the Fedora Core three distribution of Linux and Windows XP Professional. this Guide may well work with other Linux distributions with a little modification.

Installation of Fedora Core three

First of all I needed to install linux onto the remote machine. in order to do this I hooked up the computer to my monitor and other peripherals and set about the installation. I booted from the fedora DVD and booted into a graphical installation. I chose a custom install and selected to install everything for simplicity. you can also choose the various options which include laptop, server, workstation or custom.

Preparing for disconnection

If you have not configured the firewall now is the time to do so. To do this in Fedora Core 3:

ClickApplicationsAnd selectSystem ToolsThen click onTerminal.
Type in the command'Lokkit'And pressEnter. The lokkit configuration program will launch.
Enable
The firewall andTabToCustomiseAnd pressEnteR.
Choose to allow incomingSSHAnd then selectOK. PressEnterAnd then finally selectOKThen pressEnterAgain. This will set a rule which will allow remote accessSSH(Secure Shell Server) to your Linux box.

Tip: If you are going to be running your Linux machine without the mouse keyboard or monitor, you may need to change settings in your BIOS to prevent an error occurring due to the lack of peripherals being connecting. I find the easiest way is to look in the computer bios and set the errors setting to ignore all errors. this shoshould then let the machine boot without anything connected into it.

With this now completed. Shut down the Linux machine and connect it in a convenient place.

Making the connection

Now that your Windows computer is setup and your Linux box is up and running you are now ready to administer the Linux machine remotely. you will require a program that will allow you to make a connection to the Linux machine via ssh. an example of such a program is putty. you can download the programHere. Once you have a program to connect to your Linux box launch it and enter the IP address of your Linux machine. You shoshould be presented with something like below:

Login withUsernameYou specified and pressEnter. Note in Linux that user names are case sensitive. Next enter yourPasswordAnd pressEnter. You shoshould now have remotely logged into your Linux machine.

Tip:I wocould recommend logging in as a normal user. Setting up a remote Linux desktop for root is dangerous and can compromise the security of your system.

More preparation work

Now we have established a secure connection to the Linux box, we can now run a Remote Desktop.

Simply typeVncserverAnd pressEnter. You will be asked to enter a password to access your desktop. Once you have entered a password PressEnter. Your screen shoshould look similar to the screen shot below.

Tip:Ensure you enter a secure password that isn' t easy to guess. this will help protect your system from unauthorised access. secure passwords often contain a mix of letters and numbers and upper and lower case characters.



Look at the number in the text that follows log file. in the example above it is/home/root /. VNC/Server: 10. log. the number represents the screen number, this will need to be specified when we connect to the Linux Desktop. we are almost ready to make the graphical connection to the Linux server. to allow this will require remote access software such as real VNC. you can find someHere. Install the remote access program and then launch it. You will be presented with a screen that looks like the screen shot below.

EnterIP addressOf your Linux machine andScreen numberAs in the screen shot above on the right. ClickOK. What you shoshould now have displayed is a remote connection to your Linux machine and a terminal that will allow you to run programs. this is all well and good but we can also have the remote machine display a fully functional Linux desktop on your local computer. to do this we need to go back to the SSH screen we have loaded. type in the Command VI/** Your username here **/. VNC/xstartup. PressEnter. Your screen will look like the one below.

DeleteThe#Before"Unset session_manager"And"Exec/etc/X11/xinit/xinitrc". To do this pressInsertThen move the cursor to the appropriate position. When you have made the necessary deletions enter: WQ. W saves the file and Q quits the editor. You will now return to the original terminal window.

As we have made changes to the remote desktop screen, we will need to kill the screen we just launched and then start the server up again. To do this:

Enter the commandVncserver-kill: 1And pressEnter. (Number 1 being the screen number)
This will stop the VNC server.
Finally type the commandVncserverAnd pressEnter.
As before, connect to the server enteringIP addressAndScreen number.

Tip:If you want to run your vncserver in a different screen resolution, enter the command vncserver-geometry 120x1024 (or the resolution you require) IEVncserver-GeometryYour resolution.

Continuing the connection

Once your vncserver has restarted and is running again you shoshould be looking at a graphical desktop like below:

You now have a fully functional Linux Desktop running on your windows computer. Perfect for learning about the operating system or if you feel adventurous, running implements different programs. If you require any support then you canContact usAnd we will be happy to help you,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.