#!/bin/sh # where kterm is installed KTERM=/mnt/us/extensions/kterm/ # colour scheme, 0=black on white, 1=white on black COLOUR=1 # font size FONT=7 # username on your Pi USER=username # hostname of your Pi HOST=hostname # run the Extend commands to mount /opt/ so we can get to /opt/bin/ssh /mnt/us/extend/unmount.sh /mnt/us/extend/mount.sh # copy the privkey to a place where we can set the perms to 600 to make ssh happy cp /mnt/us/extensions/kindleberrypi/etc/id /var/tmp/_id chmod 600 /var/tmp/_id # set orientation to landscape lipc-set-prop com.lab126.winmgr orientationLock R # ${KTERM}/bin/kterm -c ${COLOUR} -s ${FONT} -e "/opt/bin/ssh -o StrictHostKeyChecking=no -i /var/tmp/_id -l ${USER} ${HOST}" # run after exit to make sure the keyboard is gone killall matchbox-keyboard