#!/bin/sh

# burger = the hostname (or use IP)
# 10.0.0.3 is my laptop
#
# To set up a VNC password on N900 run: `x11vnc -storepasswd`
#
#
# To set up ssh for "user", edit /etc/passwd and change
# the "user" line to have a "*" instead of a "!". You may
# need to set a password with the `passwd` command as well.
# Then copy over your id_rsa.pub from your laptop to
# /home/user/.ssh/authorized_keys and make sure it is all
# chowned to user:users
#
# You need to install x11vnc on the maemo device. I think it is
# in extras-testing
#
# You will also need a VNC viewer on your laptop. I'm using
# tigervnc on Fedora 12.

ssh -n user@burger \
	"x11vnc -usepw \
	-display :0 \
	-desktop burger \
	-allow 10.0.0.3 -nolookup \
	-q \
	-bg \
	-o /home/user/vnc-log \
	"

# -cursor_drag

# doesn't work:
#	-ssl \
# Perhaps an ssh tunnel would be better, but may greatly
# increase the load on the n900

vncviewer burger

