Those notes are the results of my whereabouts, grabbed here and there on the net. My Laptop is running OSX.

System install

Using a SD reader device connected to your machine, an ethernet cable, an hdmi cable and at least an USB mouse device.

System Install guide for mac is available on the raspberrypi.org site.

RPI System configuration

  1. Update your pi config using sudo raspi-config
  2. sudo apt-get update && sudo apt-get upgrade

AFP / Netatalk

# sh
sudo apt-get install netatalk

Bonjour, Apple’s Zero Configuration protocol

Depending on your version of Netatalk, you may need to install avahi-daemon.

# sh
sudo apt-get install avahi-daemon

Add a “share screen” finder option

Run sudo nano /etc/avahi/services/rfb.service

# xml
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name replace-wildcards="yes">%h</name>
  <service>
    <type>_rfb._tcp</type>
    <port>5901</port>
  </service>
</service-group>

VNC

# sh
sudo apt-get install tightvncserver

create a vnc password using tightvncpasswd

run vncserver vncserver :1

In the finder, use ⌘+k to connect to vnc://raspberrypi.local:5901

Auto-login

Using the pi user

  1. sudo nano /etc/inittab
  2. comment 1:2345:respawn:/sbin/getty 115200 tty
  3. replace by 1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
  4. Save and Quit

Auto StartX (Run LXDE)

In Terminal:

# sh
sudo nano /etc/rc.local

Scroll to the bottom and add the following above exit 0:

# sh
su -l pi -c startx

Direct thunderbold ethernet connection (local network)

I’ve had real problems using a simple ethernet cable to connect the RPI with my laptop, to ssh into. Trying to arp, nmap and plug/unplug cable, renew DHCP, whether you have a static IP defined with your router or not.

Restarting my laptop have solved the connection problem. Cache might be the culprit…

Sources

Created on 18-06-2014 by Eric le bihen

comments powered by Disqus