Skip to content

Instantly share code, notes, and snippets.

@lukehedger
Last active August 9, 2018 04:43
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukehedger/220102d248b754f8ba4dba964439a84f to your computer and use it in GitHub Desktop.
Save lukehedger/220102d248b754f8ba4dba964439a84f to your computer and use it in GitHub Desktop.
Setup VNC between Raspberry Pi and OSX

RaspberryPi

Setup

Install images

https://www.raspberrypi.org/documentation/installation/installing-images/mac.md

diskutil list
diskutil unmountDisk /dev/disk<N>
sudo dd bs=1m if=image.img of=/dev/rdisk<N>
<Ctrl+T>

IP

https://www.raspberrypi.org/documentation/remote-access/ip-address.md

brew install nmap
nmap -snP 192.168.0.0/24

SSH

https://www.raspberrypi.org/documentation/remote-access/ssh/unix.md

ssh pi@IP
# pwd: raspberry

VNC

https://www.raspberrypi.org/documentation/remote-access/vnc/README.md

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tightvncserver

Start VNC

tightvncserver
vncserver :1 -geometry 1920x1080 -depth 24

Stop VNC

vncserver -kill :1

Remote into rPi

open vnc://pi@IP:5901

Shutdown

sudo poweroff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment