dd if=/dev/zero of=/.swap bs=1024 count=245761 mkswap /.swap swapon /.swapTo have it auto enable,
echo -e "/.swap\tnone\tswap\tsw\t0\t0">>/etc/fstaband I create a rc.local in /etc/init.d with
#!/bin/sh swapon -aand add a link to it in the default runlevel 2 "ln -s /etc/init.d/rc.local /etc/rc2.d/S99local"
First I generate a specific SSH key on the N800 using 'ssh-keygen -f ~/.ssh/sshforward -t rsa' with no passphrase. Note I create this key for this one specific purpose and use different keys that do have. passphrases to login to other places.
I have access to the server middleman.com that has a static IP address and I create an account sshforward that has shell /bin/false and no password set. In the home directory for sshforward, create .ssh/authorized_keys with the line 'no-pty,no-agent-forwarding ssh-rsa xxxxKEY_HERExxx user@n800'. This should only allow the user sshforward to login via the one key and even with the key, the user should never be able to get a shell. In /etc/ssh/sshd_config, set the option "GatewayPorts yes" (and restart sshd) to allow remote hosts to connect to the forwarded port.
On the N800, I execute via a shortcut ssh -i /home/user/.ssh/sshforward -N -R 1234:localhost:22 sshforward@middleman.com. This forwards the port 1234 on middleman.com to the ssh port on the N800.
Then from my primary machine, I ssh middleman.com -p 1234 to access the N800. To simplify things, I create an entry in ~/.ssh/config with
Host n800 Hostname middleman.com Port 1234 HostKeyAlias n800 CheckHostIP no User userso that I can just type ssh n800 and it works.
I also set up sshfs so that I can mount the n800 filesystem over ssh via 'sshfs n800:/ ~/mnt/n800'
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> <busconfig> <policy user="bin"> <allow eavesdrop="true"/> </policy> </busconfig>
To debug the program if it fails, try running dbus-monitor to look on dbus for error messages. Also, make sure that you don't try setting the client to use fullscreen resolution as it doesn't work properly yet (above screenshot was made fullscreen in a different way).
-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.6 (GNU/Linux) mQGiBEdPoKkRBADEWyAjHrc7/MhGhkpAs6daR4hQlm2wKEiezx5t4WKJLUdPahqt 1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