element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog Pi and ssh connection without sacrificing the GUI advantages
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: balearicdynamics
  • Date Created: 8 May 2015 8:26 AM Date Created
  • Views 6731 views
  • Likes 9 likes
  • Comments 29 comments
Related
Recommended
  • clipboard-sharing
  • x-server
  • gui
  • resource-saving
  • ssh
  • raspberry-pi
  • shell
  • wheezy
  • raspbian
  • interacting

Pi and ssh connection without sacrificing the GUI advantages

balearicdynamics
balearicdynamics
8 May 2015

There is something that I use almost intensively on the Linux environments and after testing this feature on Pi SSH connection I have decided to make this post. Frankly I am not sure if I have find nothing about the -Y feature mentioned around Element14 because it's so obvious to be silly or it is really a very few used feature. Apologise if it is the first case image

 

This feature has been tested with raspian wheezy on all the Raspberry PI models included the first version no more available on the market

 

Enabling the ssh protocol for remote communication with raspi-config on the Pi this affects also the linux X-Server. As the Linux GUI is a server, as a matter of fact it has the server features we can expect. So, launching the Pi remote connection from a terminal on your main computer call the command with this option:

 

$>ssh -Y pi@[xxx.xxx.xxx.xxx]

 

where [xxx.xxx.xxx.xxx] is the device network IP address. That's all!

I saw in many demo and presentations the use of the VLC application to show the Pi desktop somewhere else with the board connected in headless mode (without a directly connected monitor), mostly for screen-capture purposes. You should take in account that this is a more reliable option for at least two main reasons:

 

  1. You will use the user interface only when it is really needed.
  2. As Pi respect a laptop or PC has less resources, you use less memory and less resources in this way because only the specific process(es) you are using are consuming memory and CPU to manage the graphic interface.

 

The following image shows the MPIDE and the file-open launched from the the Pi while it is connected via ssh from a Mac desktop.

 

image

 

Another important aspect representing a great advantage respect any other method to manage the Pi GUI in this way, is that the clipboard sharing. This means that you can copy pieces of text  from the main computer and paste them to the Pi currently running application. The following image shows the sentence I have put in blue in above in this post, pasted in the leafpad Pi text-editor application. Then, the Pi applications continue working on the Pi device (storage, OS etc.). This is great when copying and pasting documents, moving images and so on.

 

image

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 10 years ago in reply to clem57 +3
    Being correct and being easy to understand are not always the same
  • Former Member
    Former Member over 10 years ago in reply to shabaz +3
    shabaz wrote: This only works if your computer is a Mac or a Linux box, because (as far as I know) Windows does not ship with X client app. There are (probably free) downloadable ones, for Windows though…
  • clem57
    clem57 over 10 years ago in reply to Workshopshed +2
    Actually the term server is anyone providing a service and a client is anyone consuming a service. This can be hardware or software services..
  • mconners
    mconners over 9 years ago

    Great write up Balearic Dynamics , I must have missed it. Clem alerted me to it when commenting on this post

     

    Taking Advantage of X Windows on Raspberry Pi

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • johnbeetem
    johnbeetem over 10 years ago in reply to balearicdynamics

    Enrico Miglino wrote:

     

    What I mean was not a criticism on Windows respect Linux. Simply what I mean is that when I need to manage a certain environment, I think that the best is to find all the tools - and today most of the cases are costless - that better fit.

    Well, I'm completely unembarassed about criticizing Windows.  GNU/Linux has been my primary development platform since 2011 and I would hate to go back to Windows.  Basically, Unix was created by a couple of expert programmers to make it easier and more efficient to write programs.  Windows was thrown together as a hodge-podge to make money for Bill Gates.  They have both been extremely successful for these individual purposes.

     

    So what took me so long to switch to GNU/Linux?  Well, it wasn't because of having to learn something new.  I had first used Unix in the late 1970s, long before MS-DOS and Windows.  It was because for a long time you really had to be an expert system admin to manage a GNU/Linux system.  I want to be a user-space developer and not a system guru.  However, thanks to Ubuntu and others it's now really easy to install GNU/Linux and there's very little management a normal users needs to do.  So there's really no "ease of use" reason to avoid GNU/Linux.

     

    On the other hand, my experience with Windows is that it's really hard to keep a Windows machine going because of its vunerability to malware.  IMO if you don't have system staff that can keep your Windows machine clean, you'd better stay away from it or at least never, ever hook it up to the Internet.  Since I'm an independent consultant without system staff, I stay away from Windows whenever possible.  This is my own experience -- YMMV.

     

    For most users, there's no good reason to use Windows.  For office software Libre Office and other FLOSS software does the job quite nicely.  There is some engineering software that only runs on Windows, such as Cypress PSoC Creator.  This is unfortunate, because it means that there are nifty technologies out there like PSoC that I probably won't get a chance to try unless I get desperate enough to fire up an off-line Windows machine and install software from CD-ROM.  That's OK for me -- there's plenty of other technology available from vendors like Xilinx who realize that having GNU/Linux versions of their tools is good for business.

     

    JMO/YMMV

     

    P.S.  Thanks again for showing us "ssh -Y".  It's a really easy way to do X Windows on a remote RasPi.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 10 years ago in reply to balearicdynamics

    Enrico,

         If more people were open to other ideas, there would be fewer arguments on semantics. I am glad you understand a solution is only as good as the people that can apply it.

    Clem

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to shabaz

    What I mean was not a criticism on Windows respect Linux. Simply what I mean is that when I need to manage a certain environment, I think that the best is to find all the tools - and today most of the cases are costless - that better fit. If for tenth of years I have used something, or not something else, it does not matter if today I see that this is the better solution. I see that this means to keep continuously updated and studying new things but if not so what is the sense to presume to create innovation?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 10 years ago in reply to balearicdynamics

    Enrico Miglino wrote:

     

    The point is, in my personal opinion, that for some strange reason most of the engineer involved in the electronic development, especially with stuff like Arduino, Yun, Rasperry Pi and so on uses Windows as they development platform. That is unfortunately the less performant, less adapt and less reliable system just to develop open source applications based on Linux.

    ..

    Sounds strange.

     

    It's not strange at all that many engineers use Windows. It is the worlds most popular desktop OS - by a massive margin.

     

    But, I'll try not to digress into an Windows/Mac/Linux preference - because often those same engineers are equally happy to use Linux where it makes sense.I think the discussion was about X.

    It's nice to have cross-platform options for using X (e.g. for the times that X does make sense - it doesn't make sense always), and now the comments to the post do list some methods to do this for Windows users too, rather than just Mac users. And it also now lists some other options - VNC and remote desktop for example, for the times one really does need a remote view of a desktop, and some benefits/disadvantages were discussed.

     

    If X makes sense for you, for running an IDE, then this is great!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube