I recently upgraded one of my remote servers from Ubuntu 12.04 to Ubuntu 13.10. Since it is a personal server I installed a desktop and decided to access it remotely from Windows as I had always done in Ubuntu 12.04 and much to my dismay I kept getting stuck with a blank grey skin instead of getting my desktop.
I am all for the use of the command line but in the world of CAPCHTAs and other human test schemes it is often times useful to have a desktop installed especially on a personal server. I also have nothing against VNC but sometimes you might need/want to access your server without installing additional server on your Windows desktop. Thankfully I found a solution but not before spending a good two hours trying to solve the problem.
Why I bought the server and why you might need it too
So I bought this server while ago from oneprovider.com ( aka online.net) had Ubuntu 12.04 LTS installed on it because-well that was the right thing to do. I have a couple of servers but this is sort of a personal one. I find it very useful, as might you, to have a dedicated server of my own for a lot of reasons:
- I do not have to be worried some one is going to hog the hardware as with a VPS.
- I use it as some sort of guinea pig for all my experiments.
- Unlike with Amazon’s Web service I do not get billed per hour or have to keep a complex and detailed schedule of disk and other resources that I have used.
- It is a perfect way to experiment and learn new things without really breaking everything. I use the server to keep my compiling skills sharp.
- Great internet connection. In a country where ISPs still very much want to charge me per gigabyte (and some per megabyte) this is a good way to keep a lid on some of my escapades without having to pay a fortune for internet. The server has a shared 1Gps connection. Now tell me where you will get that here in Zimbabwe.
- It is really cheap at 9.9 Euro (Us $13) per month. The specifications will not blow your mind but they are decent for personal use.
Anyway long story short with the impending release of Ubuntu 14.04 LTS that is coming next year I decided to upgrade my server to the latest release of Ubuntu so as to familiarise myself with some of the changes that might be incorporated in the Long term release. It seems however that remote desktop connection is somehow broken in Ubuntu 13.10. After taking several sorties to the internet for hours I am glad to say I have come up with a solution.
How to access your Ubuntu 13.10 desktop remotely from Windows.
- Using a ssh client like putty login into your server and install the xrdp package using the command: sudo apt-get install xrdp
- Restart your machine (you can use the command: sudo shutdown -r now) This is all you needed to do in the previous versions of Ubuntu but it seems some gnome packages are broken.
- The solution is to ditch the Unity desktop and to install the Xfce desktop instead. Use the following commands to install Xfce4:
- sudo add-apt-repository ppa:xubuntu-dev/xfce-4.10
- sudo apt-get update
- sudo apt-get install xfce4
- Now configure your server to use xfce: echo xfce4-session>~/.xsession
- Now restart the xrdp daemon: sudo service xrdp restart
You can now login into your remote server from a Windows machine using the built in Remote desktop client. Hopefully this will save some people the trouble of having to scour the internet looking for the solution. As usual you can leave all criticisms, additional advice, questions and corrections in the comment section.