[UPDATE]: If you are trying to remotely connect to your Ubuntu box from Windows computer, then I highly recommend X2Go, which enables you to access a graphical desktop over a low bandwidth (or high bandwidth) connection. It works much better than other remote control programs. Check my post for more information.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Recently I am working on a research project that requires me to use Ubuntu, so I installed Ubuntu 14.04, the LTS (Long Time Support) version. But this Ubuntu computer is in a different building from my office where my development Window 7 computer is located, so I need to remotely connect to the Ubuntu computer from my Windows computer. After some searching around, I came across to this YouTube video showing how to the exact thing I need.
If you are not able to watch the video for any reason, here are the steps you need to follow to remotely connect to Ubuntu 14.04 from Windows 7/8:
1. Install MATE desktop environment in Ubuntu 14.04 computer
Why do you need to install this? Well, the built-in Unity 3D environment does not work in remote desktop connection, so you will get a blank screen if you remotely connect to Ubuntu with Unity 3D. MATE is a 2D environment and it works well with remote desktop connection. If you don’t want to use MATE, you can use other 2D desktop environment, such as Lubuntu, Xubuntu, etc.
To install MATE in Ubuntu 14.04, follow the official installation guide: http://wiki.mate-desktop.org/download
2. Install xrdp package in Ubuntu 14.04 by using the following command (or use Ubuntu Software Center):
sudo apt-get install xrdp
3. In your home directory, create a file called “.xsession” (without the quote marks), then add this line in it:
mate-session
This line of code tells Ubuntu to switch to MATE 2D environment instead of the built-in Unity when remotely connected. The file must be in the home directory of the user who is trying to remotely connect to Ubuntu.
4. Restart xrdp service
sudo service xrdp restart
Now you will be able to remotely connect to Ubuntu 14.04 from Windows 7/8 by using Remote Desktop Connection.
Note:
By default, xrdp will create a new session whenever a remote connection is made, this can create problem when you disconnect and reconnect, because you will lose your work in the previous session. To avoid this, you will need to modify the initialization file of xrdp. The file is called xrdp.ini located at /etc/xrdp/ folder. Under “xrdp1” section in the file, you can specify a static port number, such as 5914, or change it to “ask-1” which will prompt you to enter the port number when you try to connect. If you use the second option, then you will need to remember the previous port number when you try to reconnect in order to connect to the same session.
Hope this helps.
I used this method which did allow me to connect with the Wondows RDP in Win7. However, all I see is a blank screen so I must have missed something.
Thanks for the info.
@Thomas,
Are you using Unity in Ubuntu? xrdp does not support Unity and it is usually the reason of the blank screen. You need to follow the step 1 in my post to install MATE first.
There is another tool for remotely connecting to Ubuntu, called X2Go, and I find it is much better than xrdp. Here is the link to my post about X2Go. https://learningpenguin.net/2014/10/28/use-x2go-remotely-connect-ubuntu-14-04-windows-78/
Thank you very much, followed the instructions and got it running in no time.
Problem is I cannot do too many things I need to do, like install programs or mount drives… So how do I get remote sudo access now?
Thank you for the info and in advance
@Carlos, please read the updated information on the top of the original post regarding using X2Go to remotely connect to Ubuntu.
many thanks for the simple and very useful tutorial, I went trough the steps and all worked like a charm.
– hamid
Hi,
I use Linux Mint 17.1 Mate x64 and your tutorial works, but I have one failure.
After I connect per RPD from Windows 7 or a ThinClient, I lost the connection to Linux Mint after random time or if I run applications like evolution. 🙁
@Shadow,
Please try to use X2Go to remotely connect to your Linux box. Here is the link to my post about X2Go: https://learningpenguin.net/2014/10/28/use-x2go-remotely-connect-ubuntu-14-04-windows-7-8/
Thanks that works with x2go client on Windows 7 but i can not use this with our ThinClients. 🙁
Will this help? http://wiki.x2go.org/doku.php/wiki:advanced:tce:install
It explains how to set up a X2Go Thin Client Environment.
If the above does not help, then you can join X2Go user mailing list and ask other users/developers for more help. Here is the mailing list link: http://wiki.x2go.org/doku.php/news:latest-list-postings, and choose “User List (x2go-user)” to subscribe.
I don´t know we use this Thinclient: IGEL UD3-130 LX
Hi again,
I have run the steps from http://wiki.x2go.org/doku.php/wiki:advanced:tce:install but it does not install dhcp3 and the igel can not get an ip.
@Shadow,
Sorry, it is way beyond my knowledge, so I suggest you to subscribe to X2Go’s mailing list (in your case, you may need to subscribe to the developer’s mailing list) and ask the question there. Maybe some developer can give you some ideas.