Remote connection to Raspberry Pi


8 posts
by markus102994 » Tue Dec 25, 2012 10:34 pm
I'm trying to connect to my raspberry pi via ssh and xserver with Linux Mint. I've done it successfully with Windows, Putty, and Xming. It's to my understanding that Linux comes with an xserver utility. I've attached some screen shots to show the steps that I've taken to try to connect. I think there's a glitch with terminal because after I exit the window and open another, the text I type does not show up. Anyway, this is my current dilemma and any help would be appreciated.
Thank You!
Attachments
screenshot2.png
screenshot2.png (59.96 KiB) Viewed 1475 times
screenshot1.png
screenshot1.png (52.44 KiB) Viewed 1475 times
Posts: 2
Joined: Tue Dec 25, 2012 10:04 pm
by jheaton5 » Wed Dec 26, 2012 12:03 am
In your first screen shot you used the command
Code: Select all
$ startlxde
.
That is the wrong command. Use
Code: Select all
$ startx
instead.
User avatar
Posts: 23
Joined: Mon Dec 24, 2012 3:33 pm
by markus102994 » Wed Dec 26, 2012 2:56 am
I know the
Code: Select all
$ startlxde
is the command to push the GUI through xserver with Xming in Windows. I tried just loading
Code: Select all
$ startx
and this is what came up:
Attachments
screenshot3.gif
screenshot3.gif (45.58 KiB) Viewed 1437 times
Posts: 2
Joined: Tue Dec 25, 2012 10:04 pm
by AndyD » Wed Dec 26, 2012 3:37 am
When you connect to your Pi from another Linux machine running X, you don't need to run either startlxde or startx. You are using ssh -X to log in to your Pi, you are using X11 forwarding. You should be able to run any X application on your Pi and the window will appear on your desktop Linux machine. For example, you should be able to run pistore.
Linux Mint already has a Display Manager/Window Manager running on the X11 server (the default is MDM I believe). By running startlxde you are trying to start another Display Manager. There can only be one display manager active at a time. When using Xming you can run in different modes (http://www.straightrunning.com/XmingNotes/manual.php), some of these modes allow you to run an external Display Manager, others don't.
Posts: 974
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
by efflandt » Wed Dec 26, 2012 4:58 am
I have not run Mint for awhile, so not sure how that is laid out as far as panels/taskbar. I am using 64-bit Ubuntu 12.04 on my desktop which has a top panel and unity panel on left side. To run X session from ssh to the Pi, I do lxsession & (ignore the errors) and the lxde taskbar appears at the bottom of my screen. Note that I do not see my lxde Desktop icons, but can run any X programs on the Pi from the lxde menus or taskbar and they appear in Ubuntu.

If mint has its own taskbar at the bottom, that may end up covered up by the lxde taskbar.

Closing the remote lxde session is somewhat problematic. Logging out of lxde does not seem to work, I have to log out of ssh (Ctrl+D) and then Ctrl+C to close the lxde session.
Posts: 359
Joined: Mon Dec 03, 2012 2:47 am
Location: Elgin, IL USA
by kiranghag » Wed Dec 26, 2012 6:24 am
i am using "screens" for headless cli connections
Posts: 4
Joined: Thu May 31, 2012 3:58 am
by pluggy » Wed Dec 26, 2012 10:22 am
This works on Ubuntu 12.04. Mint should be broadly similar

viewtopic.php?p=120876#p120876

The post by 'perpe' dated Wed Jul 11, 2012 10:26 am

Its basically allowing the Xserver to be used by anyone and then a single command to connect to the remote machine. It doesn't need any changes at the Pi end on recent versions of Raspbian.
Don't judge Linux by the Pi.......
User avatar
Posts: 2864
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
by AndyD » Thu Dec 27, 2012 1:10 am
Well there you go ... I didn't know you could do that ... colour me corrected :oops:
Posts: 974
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia