One of the coolest applications available for Android is ConnectBot – though I say this as an owner of a G1, which has a hardware keyboard. I doubt it would be as useful if I were restricted to an on screen keyboard only. Something which makes ConnectBot even more useful is GNU screen (of course screen extremely useful all the time, not just when used in conjunction with ConnectBot).
Something which I’ve added to make all this even more usable is a script which reconnects a specific screen session when I connect to one of my servers using ConnectBot.
#!/bin/sh # Do stuff when I connect from my phone if screen -ls | grep g1gir then screen -x g1gir exit 0 else screen -c .screen-g1gir -S g1gir exit 0 fi
Nice and simple
. This takes advantage of ConnectBot’s post-login automation setting to launch the script, which I have placed in ~/.local/bin/ on my server. I’m also loading a custom screen configuration which starts some programs for me (that’s what -c does) but this part is optional.