Computer Software

How to connect to the Raspberry Pi from another computer

On the Pi:

sudo adduser <yourcatsname”>e.g. sudo adduser wilkie

The Pi will ask you to enter a password.

You have to enter

sudo raspi-config

to start the config program. Choose the option to start the SSH server.

Click on “Wifi Config”. The IP address of your Pi will be displayed on the bottom line.

If you are not on WiFi type: ifconfig wlan0 It will say e.g.: inet addr:192.168.1.37

 

On Windows

Start the Putty program. Click the option where it says “SSH”, and enter the IP address of your Pi.

Tip: if you have a smartphone or tablet, determine the Pi’s IP address using the Fing app.

Putty

If this connects successfully, you will see:

Raspberry Pi login

The default login is ‘pi’ and the default password is ‘raspberry’.   If you type ‘Pi’ you will not be able to login, because this user account will not exist.

On Linux

 

On your LInux computer: ssh @ “your ip address” e.g. ssh wilkie@192.168.1.37 or ssh jmri@192.168.1.37  (if JMRI is the user account you wish to connect to)

You will see: The authenticity of host ‘192.168.1.37 (192.168.1.37)’ can’t be established. ECDSA key fingerprint is blah blah blah Are you sure you want to continue connecting (yes/no)? y Please type ‘yes’ or ‘no’: yes Warning: Permanently added ‘192.168.1.37’ (ECDSA) to the list of known hosts. wilkie@192.168.1.37’s password: Linux wilkiepi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l Blah Blah Blah

Once you are operating your Model B Pi from your Linux machine, you can type:

 sudo apt-get install tightvncserver

The Raspberry Pi3 comes with VNC pre-installed, so you only need to do this on an original Model B running Wheezy.  (A Model B running Jessie is a bit slow using VNC, in which case you may care to boot the Model B up from a Wheezy image and follow the instruction above).

Model B Wheezy: Once installed, you’ll need to start the VNC server on the Pi. (Jessie different procedure see here)

On the Raspberry Pi website the following information is given

ENABLING VNC SERVER

On your Raspberry Pi, run the following commands to make sure you have the latest version of VNC Connect:

sudo apt-get update
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer

However if you do this and use RealVNC, it encrypts the connection which slows the Pi down.  If you don’t mind your connection not being encrypted, use TightVNC which is noticeable quicker.

sudo apt-get install tightvncserver

 

Now enable VNC Server. You can do this graphically or at the command line.

 vncserver :1 -geometry 1024x768 -depth 16 

Note only have to enter this if the screen on your R-Pi has a different aspect ratio to the Remote Desktop.

Tip: You can connect to to a Raspberry Pi which has been booted up to just a command line (i.e. with no graphical use interface showing on the screen). In this instance the vnc server will create a ‘virtual desktop’ which will only be visible on the remote machine.

To create and connect to a virtual desktop:

  • On your Raspberry Pi (using Terminal or via SSH), run vncserver. Make note of the IP address/display number that VNC Server will print to your Terminal (e.g. 192.167.5.34:1).

 

 

 

 

 

 

 

 

 

 

 

 

 

Open a new BASH window on your Linux. Start the VNC viewer program. Further reading: http://elinux.org/RPi_Remote_Access

Advertisements

Need Help? Type Here (sends an email to my tablet)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s