Remote VNC and SSH to your Raspberry Pi from a Mac

06/05/2012

This article will show you how to setup your Raspberry for remote SSH and VNC control.

If you don’t have enough room on your desk for a monitor and keyboard for your Raspberry Pi then a remote SSH and VNC can be an option.

Assuming you are using the Debian distro and default user name and password of pi:raspberry.

UPDATE

If you are using the Raspbian distro then the easiest way to enable SSH is to use rasp-config.

Enabling SSH

By default the SSH is off. To enable SSH, logon to your PI and type:

sudo bash
cd /boot
mv boot_enable_ssh.rc boot.rc

Reboot your Pi.

You need to make a note of your Pi’s ip address. To find this out type:

ifconfig

On your Mac start the Terminal.app and type:

ssh -lpi 192.168.1.21

Replace the ip address with your own Pi’s one. It will then ask for the password, type:

raspberry

Installing VNC Server

Connect to your Raspberry Pi via SSH or type in locally.

sudo apt-get install tightvncserver

This will install the VNC server. Run startx in the background.

startx & 

Start the VNC server, it will then ask for a password. Enter a password of your choice.

tightvncserver

On your Mac install a VNC client such as Chicken of the VNC. Start the client and enter the ip address of your Raspberry Pi and the password from the server install.

This should connect to your Raspberry Pi and allow remote control.

Not sure why the colour are wrong at the moment.

 

 

Short URL:

Tags: , ,

5 Responses to Remote VNC and SSH to your Raspberry Pi from a Mac

  1. Calgarian on 07/05/2012 at 22:12

    Great idea. Thanks.

  2. Tony Pottinger on 10/07/2012 at 19:29

    Just a query.

    Can this and the FDTI breakout console be used with Windows and/or Linux?

  3. admin on 10/07/2012 at 19:32

    To use the FTDI in Windows or Linux download the correct driver at:
    http://www.ftdichip.com/Drivers/VCP.htm

  4. Page Bowers on 04/03/2013 at 21:21

    I get a “bad port ‘i’” response. Why?

  5. Moe on 26/04/2013 at 13:02

    Thank you for sharing, works great on my RPi :-)