Connect To Ubuntu 12

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

3/12/2015

ConnecttoUbuntu12.04(PrecisePangolin)viaWindowsRemoteDesktopLiberianGeek
LINUX

LIBERIAN GEEK
Tutorials for newbies!

WINDOWS

WORDPRESS

BLOGGING

Google Indonesia
Jadwal padat? Sibuk bukan main

ABOUT-US

ADVERTISE
144

11

34

Perluas di sini

Connect to Ubuntu 12.04 (Precise Pangolin) via Windows Remote Desktop


Posted by Richard W on 6 May 2012, 11:22 am

Want to connect to Ubuntu 12.04 from Windows 7 via Remote Desktop Connection? Well, its now easy to do it with xRDP server. In the past, it was
almost impossible to do but thanks to xRDP, you can easily use Microsoft RDP to connect to Ubuntu without any configuration.
All you need to do is install the xrdp package, then open Remote Desktop Connection from Windows and connect. Thats it, nothing to configure.
Without wasting anymore of your time, lets get going.
Objectives:
Connect to Ubuntu from Windows via RDP Protocol
Enjoy!
To get started, press Ctrl Alt T on your keyboard to open Terminal. When it opens, run the commands below to install xRDP package.
sudoaptgetinstallxrdp

Next, open Windows Remote Desktop Connection and type Ubuntu hostname or IP address.

When prompted, type your Ubuntu username and password to connect.

Enjoy!

https://www.liberiangeek.net/2012/05/connecttoubuntu1204precisepangolinviawindowsremotedesktop/

1/7

3/12/2015

ConnecttoUbuntu12.04(PrecisePangolin)viaWindowsRemoteDesktopLiberianGeek

If you have a problem connecting, run the commands below and restart Ubuntu, then try again.
echo"gnomesessionsession=ubuntu2d">~/.xsession

Or install gnome session fallback.


sudoaptgetinstallgnomesessionfallback

Please share if you like it on:


Twitter

Facebook

Google+

Get Our Latest Updates

Filed underHow-To/Tips, Linux | TaggedUbuntu 12.04 Precise Pangolin | 66 Comments | Permalink

66 Comments
Hey

Dihego
January 29, 2013 at 10:11 PM

I have installed this nice software im encoutering a problem where it asks me for the Login Keyrin password. How do I obtain that? im able to manage
all folders but it keeps on poping up

Dear Dihego,
Sean Brisbane
February 7, 2013 at 3:04 PM

Your login keyring is something that you can safely ignore, but you must have set up a keyring and password at some time in the past. Things like
Ubuntu one will try to use the login keyring to get a password to connect to the cloud storage service etc.
If you want to get rid of the keyring:
rm /home/{user}/.gnome2/keyrings/*
Next time you will probably be asked to set a new password.

Your help
Shawn
is so greatly
F
appreciated! Thank you!
February 5, 2013 at 5:24 PM

This is incredible.
Sean Brisbane
Now that this works well it makes using Ubuntu in an Entrprise cloud environment that much more attractive.
February 7, 2013 at 3:00 PM

I am quite frankly amazed at how well this worked straight away.

It is not flakdroid
accepting my login and password?
February 13, 2013 at 1:30 PM

I can connect,
natty_nik
but I dont see the menu. All I see is the desktop background. Also, I cant open up a terminal.
February 15, 2013 at 10:39 AM

Same asBKJ
above.. All I see is the background. No menu cant open terminal.
February 15, 2013 at 4:04 PM

Same here
padir
pity cause this would be awesome
February 16, 2013 at 7:29 PM

got it working
padir by selecting console
February 16, 2013 at 7:37 PM

https://www.liberiangeek.net/2012/05/connecttoubuntu1204precisepangolinviawindowsremotedesktop/

2/7

3/12/2015

ConnecttoUbuntu12.04(PrecisePangolin)viaWindowsRemoteDesktopLiberianGeek

Can youAlospain
explain it sir ?
March 1, 2013 at 9:05 AM

what console
nogi did you use?
March 7, 2013 at 11:05 PM

i got thetakobaba
same problem but after i used the cammands as writer wrote down
April 15, 2013 at 8:53 AM

sudo apt-get install gnome-session-fallback


echo gnome-session session=ubuntu-2d > ~/.xsession
and it started working

Still doesnt
Sar work
May 9, 2013 at 1:52 AM

try this Jiemurat


May 13, 2013 at 4:47 AM

sudo apt-get install gnome-session-fallback


echo gnome-session session=gnome-fallback > ~/.xsession
sudo /etc/init.d/xrdp restart

Thank You.
Shekhar
It Works :)
August 19, 2014 at 1:26 PM

most useful
David
linux tip ive ever read (and the easiest to implement)
February 17, 2013 at 11:52 PM

Great! Thanks
Muhammad
Dude Sholihin
February 19, 2013 at 1:28 AM

Super! Thanks
Riccardo
Dude
February 28, 2013 at 10:25 AM

Hello, Pavan
March 9, 2013 at 12:00 AM

Is it for 12,04? Because i followed above all steps but no luck. Here am using 10.04.
Thanks & Regards,
Pavan

Thanks Jordan
for the post!
March 15, 2013 at 7:32 PM

I was able to RDP in but had a number of permission issues.


ex: USB drive would not mount when in an RDP session.
I found a fix here:
http://ubuntuforums.org/showthread.php?t=1138337
The recommended steps are:
Create a blank .Xauthority file in the home directory of the user you are connecting with (not necessary if file already exists). Be sure to log in as that
user (either graphically, or via the terminal), then run:
touch ~/.Xauthority
chmod 600 ~/.Xauthority

just triedmustapha
it out today on a windows hyper-V set up worked without any issues
April 3, 2013 at 6:49 AM

Hi all, Marcelo Caldas


April
10, from
2013 ata11:40
AM
Im trying
this
Win2008
r2, but Im getting an error saying:

Because of a security error, the client could not connect to the remote computer. Verify that you are logged on to the network, and then try
connecting again.
does anyone successfully made this work on win2008 r2? or seeing this error and fixed it somehow?
thanks,
Marcelo Caldas.

https://www.liberiangeek.net/2012/05/connecttoubuntu1204precisepangolinviawindowsremotedesktop/

3/7

3/12/2015

ConnecttoUbuntu12.04(PrecisePangolin)viaWindowsRemoteDesktopLiberianGeek

Guys, if Nostromo
you are using ufw then you need to allow incoming port 3389 (GRE) from whatever IPs (or local subnet e.g. 192.168.1.0/24) you want to
access.

April 12, 2013 at 4:43 AM

My slightly different prob is that if I RDP from more than 1 PC, it creates a 2nd/3rd session/shell which doesnt see the GUI instances of various
running programs. This is, obviously, a bit annoying, as I can see those progs in the process list clearly. Any suggestions on how to re-attach to a
previous RDP session?

Incredible
Vinutha
Easy steps to access ubuntu GUI.
30, help
2013 at 11:44 AM
Thanks May
for ur

Hi,I did all


ttcoding
the steps in my computer(ubuntu 12,04) but I still only can see the the desktop background and cant see menu,cant open terminal
Junecan
5, 2013
10:06 click.
AM
.However,I
useatright

Could you tell why?

Note that
Thorin
in order for Windows to connect to ubuntu with this solution, you must also have samba installed (sudo apt-get install samba). I imagine
June 5,trying
2013 at to
12:26
most people
doPM
this already had smb shares or something that required it anyway, but it happens I was setting this up first thing after

installing ubuntu 12.04.

Thanks Justin
for the post, much appreciated from a Linux noob!
June 6, 2013 at 1:36 PM

1.Open Terminal
Onkel and install the xrdp
June 8, 2013 at 3:20 AM

#sudo apt-get install xrdp


2.Finding the X11RDP binary..
#sudo apt-get build-dep xserver-xorg-core
#sudo apt-get install automake1.7 automake 1.9
3.Download X11rdp Source :
#wget http://server1.xrdp.org/xrdp/x11rdp_xorg71.tar.gz
then,
#tar xvf x11rdp_xorg71.tar.gz
4.Make a Directory to Store the Built Binary files.
#sudo mkdir /opt/X11rdp
#cd x11rdp_xorg71
#sudo sh buildx.sh /opt/X11rdp
5.If everything is done with no errors then enter below command from your current location :
#cd /opt/X11rdp/bin
then
#ls -lh
6.Now the X11rdp Binary has been Compiled.
#sudo ln -s /opt/X11rdp/bin/X11rdp /usr/bin/X11rdp
7.to check your binary runs without crashing
#/usr/bin/X11rdp :1
Now you are Ready to take Remote Session of your Ubuntu system via

Not working
Jaimefor
Cruz
me. I can use a linux laptop and remote in with Remmina Remote Desktop just fine, but every time I use a Windows computer with
JuneFailed
18, 2013to
at 9:17
PM
RDP, I get
connect.
Cant figure out why. Help!

Just discovered
Jaime Cruz
why it wasnt working, and Ive got it working now. The firewall was blocking port 3389. Once I opened it up for incoming traffic, it
26, 2013 at 5:02 PM
worked June
perfectly.

It worked
Arun
for me. great help
July 17, 2013 at 12:53 AM

https://www.liberiangeek.net/2012/05/connecttoubuntu1204precisepangolinviawindowsremotedesktop/

4/7

3/12/2015

ConnecttoUbuntu12.04(PrecisePangolin)viaWindowsRemoteDesktopLiberianGeek

Thanks Anjan
a lot. it helped me to connect my raspberry pi remotely! But how to stop the srdp server later? just pkill xrdp ?
July 22, 2013 at 2:01 PM

Very nice,
Basti
works perfect with
July 23, 2013 at 6:13 AM

echo gnome-session session=ubuntu-2d > ~/.xsession


Or install gnome session fallback.
sudo apt-get install gnome-session-fallback

I get theWolfgang
message Failed to load session ubuntu-2d.
August
3, 2013
at 6:39 AM
I have done
the
following
steps on Ubuntu 13.04:
1) sudo apt-get install xrdp
2) echo gnome-session session=ubuntu-2d > ~/.xsession
3) sudo apt-get install gnome-session-fallback
Initially I have only done step 1, this gave me thepurple background only.
What should I try to load the session?

@Wolfgang
Akshay
August 7, 2013 at 3:42 AM

echo gnome-session session=gnome-session-fallback > ~/.xsession

I am using
John
Ubuntu 13.04 as well and using a blank .Xauthority with perm set to 0600 I have tried both echo gnome-session session=gnomeAugust 13, 2013
at 10:39 AM and echo gnome-session session=ubuntu-2d > ~/.xsession to work. I also get failed to load session error messages.
session-fallback
> ~/.xsession
Note I have gnome-session-fallback installed as well.

Hi guys,Marco
August
at 10:39 PM
I managed
to 13,
get2013
it working
following similar steps to everyone else:
1) Installed XRDP:

sudo apt-get install xrdp


2) opened up a terminal and entered:
echo gnome-session session=ubuntu-2d > .xsession
3) run remote desktop in windows 7.
Without step 2, I would get a blank screen. With step 2, I can now see icons, and I can use the linux. I couldnt access the terminal. So I had to create a
shortcut on the desktop. Also, the close/minimize/maximize buttons on the top LHS of the window arent present. Other than that, works like a
charm!
Does anyone know why the buttons are gone?

Hello, I have
Toni installed and am able to access ubuntu successfully. The display is not working correctly. I can open terminals, web pages, doc etc but
27, 2013
at 2:08
PM
can not September
read menus
as the
display
is screwed up any suggestions.

The [echo
Will
gnome-session session=ubuntu-2d > ~/.xsession] worked a treat! I could not RD into Ubuntu and so glad I found your page Thanks!
September 29, 2013 at 12:51 PM

Hi,

Aaron
October 12, 2013 at 4:49 AM

Works fine with Windows XP SP3 running RDP ver 6.1.7600. Total black screen using Windows 7 running RDP ver 6.2.9200? Just sits minimized in
taskbar, seems connected but cant open/maximize etc. Can only kill it. Go figure, any ideas anyone?
thanks

This website
Abdoulaye
works Camara
for all versions of ubuntu but must be run as root
October 17, 2013 at 7:23 PM

http://askubuntu.com/questions/226329/run-rdp-server-on-ubuntu-12-10

Hi guys,Tecoberg
October 20, 2013 at 3:44 AM

I installed the Ubuntu 13.10 Desktop x64 and it cant open the Unit GUI.
The xrdp works becouse it ask me user/password. After that is show me the X cursor and the desktop from X. Nothing more.
Ive been using xrdp to access the Ubuntu 12.4.3 Desktop x 64 and it works nice.
I installed int the follow order:
sudo apt-get install xrdp
echo gnome-session session=ubuntu-2d > ~/.xsession
sudo apt-get install gnome-session-fallback
I tried to change .xsession to gnome-session session=gnome-fallback but it dint help.

https://www.liberiangeek.net/2012/05/connecttoubuntu1204precisepangolinviawindowsremotedesktop/

5/7

3/12/2015

ConnecttoUbuntu12.04(PrecisePangolin)viaWindowsRemoteDesktopLiberianGeek

I tried to change .xsession to gnome-session session=gnome-fallback but it dint help.


best regards,

Hi Tecoberg,
Jasper
I have been searching for a solution as well. Today I found this website which solved my problems.
October 30, 2013 at 2:27 PM

http://c-nergy.be/blog/?p=3518
Good luck!

Can youMichael
use thisMcLeod
to go from Ubuntu into a Windows computer?
November 1, 2013 at 6:10 PM

Can it work
kfir on Ubuntu 13? Cause I tried it and it didnt work.
November 20, 2013 at 5:07 PM

Cant get
oscar
this sarte
to work. Tried using the FQDN of a remote Ubuntu 12.04 web server and even its IP address but my Windows 7 RD still cannot connect.
28, 2013
1:23 PMhas no problem connecting and thats how I entered all the commands as root. I even restarted the server,
HoweverNovember
my Bitvise
SSHat client
reconnected using my Bitvise SSH client, restarted xrdp but still no success with Win7 RD.

Any other trick I can try?


Thanks much.

thank you
BamZ1

December 6, 2013 at 2:02 AM

Can we Ron
change
Anderson
the listening port from 3389 to something else?
December 10, 2013 at 2:07 PM

Thanks.

all I get LEANDRO


is a screen with black and white dots :X
December 24, 2013 at 8:13 AM

Many thanks!
Maz 2393
Considering you wrote this article in 2012 and date now is 2014! Its still proving to be a place to come to have ones prayers answered!
January
7, 2014 at ubuntu
9:37 AM from Win 7
In this case
accessing
worked like a dream! Many thanks

Super helpful
FosterGeek.
Shampine
Works perfectly and now gives me access to Ubuntu anywhere in the domain. Linux is sweet!
January 7, 2014 at 10:23 AM

thanks, le
worked like a charm
February 3, 2014 at 12:37 AM

Worked Brian
great,Sthanks. But, I cannot figure out how to stop my session from timing out. If I start an analyses and walk away, the session times out and
2014analysis
at 5:40 PMdies. How do change the session time out to never?
logs meFebruary
off and9,the

Worked Keith
like a Greenberg
charm thank you very much :)
March 15, 2014 at 6:32 AM

While logging
ratan to Ubuntu machine using Windows Remote Desktop Connection, click on the module and change it from sesman-Xvnc to console.
March
25, 2014 atit12:27
AM for me
and enter
password.
worked

http://prntscr.com/394hl3
Vedant Chawla
April
11, 2014 at 4:52 PM
this error
show
please help us

Can connect,
Bill but all I get is a screen full of tiny black and white dots. No desktop no nothing.
May 1, 2014 at 5:15 PM

I get theDallas
black and white dots also when rdp. did you find a fix ?
September 3, 2014 at 1:44 PM

failed tovk
load session ubuntu
May 15, 2014 at 5:43 AM

failed tovk
load session
May 15, 2014 at 6:12 AM

https://www.liberiangeek.net/2012/05/connecttoubuntu1204precisepangolinviawindowsremotedesktop/

6/7

3/12/2015

ConnecttoUbuntu12.04(PrecisePangolin)viaWindowsRemoteDesktopLiberianGeek

thx just idit


what i was looking for to install on my server !
May 22, 2014 at 2:49 PM

Als ik mijn
honor
emailD'hooge
wil controleren op Ubuntu moet ik steeds inlooggen. Ik heb een paswoord aangemaakt bij het starten van Ubuntu maar dat wordt
May 27,voor
2014 at
4:05
AM van een bericht.
niet herkend
het
lezen

bij het openen


honorvan
D'hooge
email-berichtn in Ubuntu moet ik steeds een wachtwoord ingeven. Bij de installatie van Ubuntu op deze XP computer heb ik een
Mayingegeven
27, 2014 at 4:11
AM dat is niet het juiste gewenst paswoord. Hoe geraak ik op de site waar je dat paswoord kan aanmaken?
paswoord
maar

Hi,
Jeremy S
1, 2014 at 9:42
AM
I have a September
ubuntu machine
running
12.04. The machine only has vga-out. My monitor only has digital ports. So I am unable connect my ubuntu machine
to a monitor. I have it on plugged into my wifi router.
I used my windows 8.1 laptop (Remote desktop connection) to successfully connect to my Ubuntu machine using sesman-xVNC. The login is
successful, but I land on the desktop screen with no icons/launcher, etc
Pressing ctrl-alt-T does nothing, neither does right-clicking. I cant launch a Terminal. I would love to try some of the commands suggested above, but
am unable until I can get Terminal launched.
Has anyone experienced this and if so, how did you solve the problem?
Thanks,
Jeremy

Hi Jeremy
C Knook
S,
September 11, 2014 at 2:13 AM

Try remote connect via ssh (use putty.exe) to have a remote prompt or buy a vga-to-digit convertor cable.. (dx.com)

Great guide!
GavinReally helpful.
October 7, 2014 at 6:15 AM

I have one small problem though. I connect remotely, put the username and password for the Ubuntu and it connects but all is displays is the
background, the icons arent there so there is nothing. No matter how long I wait, no icons show up. Anything I could do to fix this?

2014 Liberian Geek

https://www.liberiangeek.net/2012/05/connecttoubuntu1204precisepangolinviawindowsremotedesktop/

7/7

You might also like