timbro321
Posts: 39
Joined: Fri May 25, 2012 6:49 pm

Remote Desktop? HOW?

Sun Sep 30, 2012 8:31 am

Hello my fellow forum members,

I have seen quite a few people have a 'remote desktop' using their Raspberry Pis.... HOW DO YOU DO THIS? I was wondering if anyone knew of a fool proof tutorial that is noob friendly? I do not want to only be able to view the terminal... Is it possible to view the GUI as well?

Thanks in advance
;)

User avatar
malakai
Posts: 1382
Joined: Sat Sep 15, 2012 10:35 am
Contact: Website

Re: Remote Desktop? HOW?

Sun Sep 30, 2012 8:36 am

http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)

aaa801
Posts: 428
Joined: Mon Jun 04, 2012 9:06 pm
Location: Berkshire

Re: Remote Desktop? HOW?

Sun Sep 30, 2012 10:20 am

jezus thats the "right way" to do it but its bloated as hell

apt-get install xrdp

thatl put up a rdp compatible server on the pi

AdRiley
Posts: 17
Joined: Wed Oct 26, 2011 9:27 pm

Re: Remote Desktop? HOW?

Tue Oct 23, 2012 2:13 pm

Thanks for the pointer to xrdp. I wrote up a full step by step guide for anyone else who is interested:

http://www.raspberrypiblog.com/2012/10/ ... -from.html
www.raspberrypiblog.com

Djtucker
Posts: 2
Joined: Fri Nov 30, 2012 4:44 am

Re: Remote Desktop? HOW?

Fri Nov 30, 2012 4:48 am

Can you do this in reverse? Can the raspberry pi control my desktop?

Djtucker
Posts: 2
Joined: Fri Nov 30, 2012 4:44 am

Re: Remote Desktop? HOW?

Fri Nov 30, 2012 11:00 pm

Anybody?

aaa801
Posts: 428
Joined: Mon Jun 04, 2012 9:06 pm
Location: Berkshire

Re: Remote Desktop? HOW?

Sat Dec 01, 2012 1:00 am

Yes, use vnc

canibalimao
Posts: 557
Joined: Tue Aug 07, 2012 8:48 pm
Location: Portugal

Re: Remote Desktop? HOW?

Fri Dec 07, 2012 7:35 pm

AdRiley wrote:Thanks for the pointer to xrdp. I wrote up a full step by step guide for anyone else who is interested:

http://www.raspberrypiblog.com/2012/10/ ... -from.html
With this we can connect to RPi desktop with a TV, or we also need to start X on the RPi before launch the remote desktop in windows?

thebigJC
Posts: 3
Joined: Sun Jul 01, 2012 6:58 pm

Re: Remote Desktop? HOW?

Sat Dec 08, 2012 11:46 pm

with regards to raspberry pi viewing windows desktop remotely the easiest way i found is using remmina:

type into terminal:
sudo apt-get install remmina

when you open remmina type the windows pc ip in the server field and you're good to go.
(to find ip on windows click start type cmd in search bar press enter, type ipconfig in console and it will display your ip)

sorry if i've overexplained here, or someone beat me to it, anyway im currently using this exact method and using rpi as a sort of wireless keyboard and mouse connector for my pc, though more expensive and considerably slower

pererikl
Posts: 4
Joined: Mon Dec 31, 2012 2:21 pm

Re: Remote Desktop? HOW?

Mon Dec 31, 2012 2:28 pm

AdRiley wrote:Thanks for the pointer to xrdp. I wrote up a full step by step guide for anyone else who is interested:

http://www.raspberrypiblog.com/2012/10/ ... -from.html
Excelent just what i wanted!

But...
I get login failed when useing same credentials as in raspi it self.
Image

scottcjordan
Posts: 6
Joined: Sat Jun 30, 2012 11:12 pm

Re: Remote Desktop? HOW?

Mon Dec 31, 2012 8:54 pm

Mac users and those with similar X11-enabled machines have it especially easy.

In a terminal on your remote computer, ssh to your Raspberry Pi using the -X key. For example, I have my Raspberry Pi set up with a dynamic dns provider so I can access it from anywhere, so my login looks like:

Code: Select all

ssh -X [my username].[dyndns account name].dyndns.org
After you're logged in, issue

Code: Select all

/etc/X11/Xsession
...this starts the Raspberry Pi's GUI desktop on your remote computer.

(The first time you do this, you'll get a message that "xauth: file /Users/[username]/.Xauthority does not exist". Ignore this-- the necessary file will be created automatically.)

When you're done with the desktop, just type ctrl-C in the original terminal window, and the desktop will vanish.

The desktop will stick in the Space in which it is originally invoked. On my Retina Macbook Pro, it's full-screen and seems to take advantage of my display's resolution well.


Note: OS X as of Mountain Lion does not include X11. Instead, add it from http://xquartz.macosforge.org/landing/ so this or other X11 applications can work. See http://support.apple.com/kb/HT5293 for more information.

rcjrman
Posts: 2
Joined: Tue Jan 01, 2013 1:09 am

Re: Remote Desktop? HOW?

Tue Jan 01, 2013 1:18 am

I'm using X11 with ssh 192.... and my user name. I keep getting:

Read from socket failed: Connection reset by peer

Not sure what's going on. I powered up Pi and logged in as default. I haven't run startx yet.

Any ideas? I'd rather not set up for windows remote.

Thanks,
RC

pererikl
Posts: 4
Joined: Mon Dec 31, 2012 2:21 pm

Re: Remote Desktop? HOW?

Tue Jan 01, 2013 11:06 am

scottcjordan wrote:In a terminal on your remote computer, ssh to your Raspberry Pi...
When doing that i get the same error as with xrdp. Ar there any demands for the pwd to be used remotely?
====
login as: pi
[email protected]'s password:
Access denied
===

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4248
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Remote Desktop? HOW?

Tue Jan 01, 2013 11:10 am

raspi_config has a menu item to enable SSH. Supposedly it is enabled already on the latest Raspbians, but I clicked it anyway.

User avatar
aTao
Posts: 1084
Joined: Wed Dec 12, 2012 10:41 am
Location: Howlin Eigg

Re: Remote Desktop? HOW?

Tue Jan 01, 2013 12:27 pm

scottcjordan wrote:Mac users and those with similar X11-enabled machines have it especially easy.

In a terminal on your remote computer, ssh to your Raspberry Pi using the -X key. For example, I have my Raspberry Pi set up with a dynamic dns provider so I can access it from anywhere, so my login looks like:

Code: Select all

ssh -X [my username].[dyndns account name].dyndns.org
After you're logged in, issue

Code: Select all

/etc/X11/Xsession
...this starts the Raspberry Pi's GUI desktop on your remote computer.

(The first time you do this, you'll get a message that "xauth: file /Users/[username]/.Xauthority does not exist". Ignore this-- the necessary file will be created automatically.)

When you're done with the desktop, just type ctrl-C in the original terminal window, and the desktop will vanish.

The desktop will stick in the Space in which it is originally invoked. On my Retina Macbook Pro, it's full-screen and seems to take advantage of my display's resolution well.


Note: OS X as of Mountain Lion does not include X11. Instead, add it from http://xquartz.macosforge.org/landing/ so this or other X11 applications can work. See http://support.apple.com/kb/HT5293 for more information.
Close, real close, but for the cigar...
Exiting the desktop by typing ctrl-c does close the desktop but... several settings remain: fonts, skins, desktop background in effect a whole unch of look-and-feel suff. Any ideas how to exit and revert to what has become comfortable (yeah, I could get used to it but....)
Thanks
>)))'><'(((<

rcjrman
Posts: 2
Joined: Tue Jan 01, 2013 1:09 am

Re: Remote Desktop? HOW?

Wed Jan 02, 2013 2:55 am

rcjrman wrote:I'm using X11 with ssh 192.... and my user name. I keep getting:

Read from socket failed: Connection reset by peer

Not sure what's going on. I powered up Pi and logged in as default. I haven't run startx yet.

Any ideas? I'd rather not set up for windows remote.

Thanks,
RC
I figured it out. I was trying to run this command to reset the keys:

rm /etc/ssh/ssh_host_* && dpkg-reconfigure openssh-server

I think something happened and it only ran the rm portion.

It worked fine when I ran dpkg-reconfigure openssh-server.

RC

User avatar
pa4kw
Posts: 8
Joined: Sun Oct 14, 2012 12:42 pm

Re: Remote Desktop? HOW?

Sun Jan 06, 2013 5:36 pm

Hello,


I'm running the raspbian wheezy and just configured it in the cli...without mouse.
static ip adress. more...?? i don't remember...
After boot it connects directly to my wireless network, completely headless.

On my MAC: (Macbook Pro with MacOs 10.5.8)
I go to the X11 terminal (application,..utilities) on the mac (10.5.8) and do following commands:

ssh -X 'user'@'raspi-ip-adress'
enter the 'user'-password
and start the x-session with lxsession&
The pi desktop appears on my mac and i can see for a few seconds the raspi screen. too short to see what is going on...
The 'raspi screen' disappears and the X11 session is closed on the mac...

What I'm doing wrong???

The raspi and mac are connected via wifi to my home network...

A normal ssh to the raspi is working fine, also tightvncserver is installed, this works also good...
bur for playing with the raspi i want to have also ssh -X running...

I tried to disable the tightvncserver, but it don't change anything...
on another laptop with redhat 6 installed, it is working ...on a windoze-machine not tried...
now to the mac specialists to give me the right hint...

Hans
Samuel Finley Breese Morse (April 27, 1791 – April 2, 1872) was an American inventor.

http://www.dailymotion.com/video/x1wltc_morse-vs-sms_fun

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4248
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Remote Desktop? HOW?

Sun Jan 06, 2013 10:35 pm

I've just tried it under Linux Mint (ancient version) and it's suboptimal there too: it takes over the entire display including the icon bar and system tray.

Try just starting the applications you need from the command line, ie don't use "lxsession&", but use "leafpad&" or "idle&". Not quite as easy, but usable.

jfornango
Posts: 113
Joined: Fri Sep 14, 2012 7:46 pm
Location: St. Louis, MO USA
Contact: Yahoo Messenger

Re: Remote Desktop? HOW?

Sat Jan 12, 2013 4:41 am

Hmm... trying to get it running through PuTTY from my XP box. It gets me logged in, but no GUI.
I'm only wearing black until they find something darker.

User avatar
pa4kw
Posts: 8
Joined: Sun Oct 14, 2012 12:42 pm

Re: Remote Desktop? HOW?

Sat Jan 12, 2013 6:10 am

When you connect from a windows box, use Xming with Putty...
With Putty alone you cannot use 'ssh -X' to share the xsession
Macos has already linux rinning (almost hidden),and a linuxbox connects directly to the raspi
Samuel Finley Breese Morse (April 27, 1791 – April 2, 1872) was an American inventor.

http://www.dailymotion.com/video/x1wltc_morse-vs-sms_fun

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4248
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Remote Desktop? HOW?

Sat Jan 12, 2013 1:12 pm

pa4kw wrote:Macos has already linux rinning
[pedantic]MacOS is not Linux, it is BSD Unix.[/pedantic]
From the user point of view it's the same thing, but the OS kernel is totally different.

EBENEZR
Posts: 1
Joined: Mon Jan 14, 2013 12:42 pm

Re: Remote Desktop? HOW?

Tue Jan 29, 2013 3:36 pm

I started using xming but it constantly hangs (wheezy) ... anyone else get this? Even more importantly, any remedy for the problem?

llcooljoke
Posts: 1
Joined: Sat Mar 02, 2013 6:33 am

Re: Remote Desktop? HOW?

Sat Mar 02, 2013 6:43 am

Djtucker wrote:Can you do this in reverse? Can the raspberry pi control my desktop?
This is a question I am very curious as to a detailed answer to.

Raspberry Pi is capable, but not able to run certain power-hungry programs that could easily be ran on a remote server on another computer.

Can the Pi connect to Windows-based operating systems and control the desktops in such a way that those programs can be run? I have seen lots of people suggest playing Blu-Ray quality movies streaming from another PC, but what about other stuff like World of Warcraft, or Steam in general?

I am not talking about achieving full playability as if you were on your desktop, but at least minimal capability to do things like check auctions in various games, chat with guild members in game, or watch a game of League of Legends or Starcraft II in spectator mode with a controllable camera.

Would that be possible? Is it really as simple as setting up a VNC server on the Windows PC and accessing it from the Pi?

Pensee
Posts: 14
Joined: Wed Dec 28, 2011 12:37 pm
Contact: Website

Re: Remote Desktop? HOW?

Sat Mar 02, 2013 3:17 pm

Mac screen on my Pi. (session running on Mac and displayed on Pi)

I would like to have my Mac screen on my Pi, using screen sharing (built in 10.8.2).
tested and work perfectly with 2 Macs.

My main Mac have 2 users simultaneously, the idea is to display on Rpi one of this user (keyboard mouse) , look into different vnc solution, but in fact I don't really understand if a vnc client is enouth or if you need more ressource like remote desktop solution. which one for the Pi ?

does anybody have already done that ? link to tutorial ?

Thx

major
Posts: 1
Joined: Fri Dec 27, 2013 5:28 pm

Re: Remote Desktop? HOW?

Fri Dec 27, 2013 5:43 pm

I plan to use it as a proxy from mining bitcoins (instead of leaving my computer on 24/7), and would like to monitor it every so often. Will be running a single terminal window on the pi (auto boots to 'desktop'), then log in via remote desktop from windows machine. Although the pi seems to show up as if I just restarted the unit, or logged in with nothing running?

What I want and am misunderstanding the terminology? If I have a webrowser, text document and 'python games' open on the pi, if I login via windows remote desktop, shouldn't those same windows be open? Not the mention when I move the mouse and keyboard on the remote window, shouldn't they move in the exact same manner on the pi (second physical) screen as well?

Am I missing something?

Return to “Off topic discussion”