Tags:
create new tag
view all tags

Accessing the Raspberry Pi from the PC

In order to access the Raspberry Pi the easiest method is ssh. On a Linux Laptop everything is already installed for you and all you need is this command:

ssh -X yourUserName@yourRaspberryPi

  • where -X is used for X11 forwarding (accesses the X server on the laptop to display windows created by the Raspberry Pi program
  • yourRaspberryPi is either the Raspberry Pi's host name or its IP address
On Windows this is a little more tricky. You will need PuTTY, the ssh client in Windows and an X server like Xming.

Xming should be running before you start and you will see this on the little icon on the task bar (the X icon)

Then start putty and enter your userUserName@yourRaspberryPi where yourUserName is the user name on the Raspberry Pi and yourRaspberryPi is either the hostname of your RPi or its IP address (see below)

Then click on the + next to SSH and then on X11. This window will appear:

Check X11 forwarding and put ":0.0" into the X display location field. Then click on the Session category to get back to the first window and click the open button. Now you should get connected to the Raspberry Pi and you can start any program on the RPi and get the windows the RPI program creates on your Laptop screen. In the example below I started idle, the IDE for Python.

Now you can type in your Python commands or edit and run your Python program.

-- Uli Raich - 2018-03-08

Comments


Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng X11.png r1 manage 44.3 K 2018-03-08 - 14:25 UliRaich  
PNGpng putty.png r1 manage 41.8 K 2018-03-08 - 14:25 UliRaich  
PNGpng screen.png r1 manage 712.9 K 2018-03-08 - 14:25 UliRaich  
PNGpng xserver.png r1 manage 11.1 K 2018-03-08 - 14:25 UliRaich  
Topic revision: r1 - 2018-03-08 - UliRaich
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback