How to control your raspberry using mac on-board tools (VNC-Connection)


VNC

VNC (Virtual Network Computing) is a great way to control your raspberry pi remote from your MacBook. So you no longer have to plug in any keyboard or display into your raspberry. In this Step by Step guide we will only use on-board software, so that its not necessary to install any vnc-viewer. Let’s get Started… 🙂

1. Step

Connect via SSH or open a terminal session directly on the raspberry. You don’t know how to get a ssh connection working?-Check out this article?

2. Step

Install tightvncserver. You can do this by easily typing in the following prompt.

sudo apt-get install tightvncserver

VNC2

advert.ssh
click on the ad to learn how to set up a ssh connection on your mac

VNC12

Step 3

To accept press “Enter”. This will take a while, but you should come up with the following result:

VNC13

4. Step

Start you VNC-Server by typing in PI’s Terminal.

vncserver :1 -geometry 1280×800 -depth 24

This prompt also sets the resolution to the one of your MAC (1280*800).

VNC14

5. Step

Now you need to set a password, which we will need later. (In this example we will set it to: 12345678)
Verify your password.

VNC15

6. Step

You will be asked if you would like to set a view only password.

 type in: n. ( short form of no)

When everything worked fine you will see this:

VNC16

7. Step

Open up your Finder press CMD + K
Type in:

vnc:// YOUR-IP:590 + The Number you got In the step before. In my case vnc://192.168.2.102:5901

VNC17

8. Step

You will be asked for the password you set in Step 5. In our case: 12345678. Select Connect.

VNC18

9. Step

et voilá…All you have to do now is admire your result:-)

VNC19

You have questions; you need help?- Just leave a comment and we will try our best.

Cheers Alex

The article picture was again taken from openclipart.org

Advertisements

6 thoughts on “How to control your raspberry using mac on-board tools (VNC-Connection)

  1. Thnx for this great tutorial. Everything worked fine. I wish other tutorials were as good as your’s. The only problem I had was that accessing RPi from the terminal caused the following error message:

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the RSA key sent by the remote host is
    ef:7b:3a:0b:8e:1a:18:33:f4:1e:00:96:76:c1:e9:60.
    Please contact your system administrator.
    Add correct host key in /Users/ABCD/.ssh/known_hosts to get rid of this message.
    Offending RSA key in /Users/ABCD/.ssh/known_hosts:2
    RSA host key for 192.168.0.6 has changed and you have requested strict checking.
    Host key verification failed.

    I didn’t now what to do and I still don’t have any idea how to overcome this hint.

    Erti

    Like

Leave a Reply

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