Wednesday 13 May 2009

Script for getnet

Run this on the computer for automatic access to the interboob

#!/bin/bash

USER=`id -nu`

ssh smokey@192.168.0.1 sudo usermod -s /bin/bash internet
ssh-keygen -t rsa -f keyfile
sudo cp keyfile* /etc/ssh/
ssh-copy-id -i /etc/ssh/keyfile.pub internet@192.168.0.1

if [ -f /root/.ssh/known_hosts ]
then
cat ~/.ssh/known_hosts | sudo tee -a /root/.ssh/known_hosts
else
sudo mkdir /root/.ssh
sudo cp ~/.ssh/known_hosts /root/.ssh/known_hosts
fi

echo '#!/bin/bash
if iwconfig | grep -c interboob
then
nohup ssh -i /etc/ssh/keyfile -N -D 8080 internet@192.168.0.1 > /dev/null 2>&1 &
fi' | sudo tee /etc/network/if-up.d/dogetnet

sudo chmod +x /etc/network/if-up.d/dogetnet

ssh smokey@192.168.0.1 sudo usermod -s /usr/sbin/nologin internet



Tuesday 12 May 2009

Key exchange

You are on A you want to ssh into B

Generate keys on A ssh-keygen -t rsa -f keyfilename

Copy Public key to B (.ssh/authorized_keys) something like ssh-copy-id -i publickeyfile user@B

Use Private key in A .ssh/config looks like this

Host B
IdentityFile privatekey
Port 22
RSAAuthentication Yes
ForwardX11 yes
ForwardAgent no

Wednesday 6 May 2009

Start here:

http://wiki.eeeuser.com/ubuntu_9.04

Next:
http://rhau.se/2009/03/27/ubuntu-904-on-the-asus-eee-pc-1000h-with-acpi-and-wifiwlan-working/

And:

http://blog.bokhorst.biz/1712/computers-en-internet/installing-ubuntu-jaunty-jackalope-asus-eee-pc/

And:
http://www.informatik.uni-bremen.de/~elmurato/EeePC/

And:
http://www.jpierre.com/2009/04/installing-ubuntu-netbook-remix-904-jaunty-jackelope-on-eee-pc-the-howto-guide/

And:

http://forum.eeeuser.com/viewtopic.php?pid=566834