element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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 8309 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 11 years ago in reply to clem57 +3
    Being correct and being easy to understand are not always the same
  • e14 Contributor
    e14 Contributor over 11 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 11 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..
Parents
  • johnbeetem
    johnbeetem over 11 years ago

    I didn't know about the -Y option, so thank you for sharing.  It looks a lot easier than setting up DISPLAY=xxx on the remote (client) machine and adding xhost on the local (server) machine.

     

    Yes, the client/server nomenclature seems backwards for X Windows since you're interacting with the X Windows screen (the server) and your program (the client) may be on another machine.  Usually the client is local and the server is remote, but the opposite is true of X Windows.  Fortunately, I had to figure this out back in 1990 so I'm used to it now :-)

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

    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. I am not a "partisan", I was Windows developer for more than 15 years, member of the MSDN and for some things only Windows is the right OS, but for others it is is not. Absolutely. Not only but I see reading and following the posts - consider only those on Element14 - that most of the problems and issues of the developers depends on the use of Windows while with a simple and not so difficult change the entire world can assume totally different colors. Microsoft can continue saying that Windows is the better and more diffused operating system but Andorid is Linux + java, smarpthones are linux-based in 90% of the cases. Don't forget that the same Mac and iOS are linux machines, Micro controllers too and so on ...

     

    Sounds strange.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 11 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
  • balearicdynamics
    balearicdynamics over 11 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
  • clem57
    clem57 over 11 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
Comment
  • clem57
    clem57 over 11 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
Children
No Data
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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube