ssh, rsync, git, terminal-gcc,
and terminal-g++
on android.
I first downloaded and installed Terminal IDE.
I then configured the applications I care about:
vim
ssh:
The Terminal IDE documentation seems to be trying to explain how to set up your tablet so that another machine can ssh into it, but I merely want to ssh out of it.
# in Terminal IDE: cd ~ mkdir .ssh chmod 700 .ssh cd .ssh dropbearkey -t rsa dropbear_rsa_host_key dropbearkey -y -f dropbear_rsa_host_key # copy and paste output into myremote.name.org:~/.ssh/authorized_keys # dropbear doesn't understand ~/.ssh/config, so create scripts. # first make a script called e.g. ~/bin/ssh-with-default-key # with contents like: #!/system/bin/sh # call this as: # $ ssh-with-default-key -l username myremote.name.org exec ssh -i ~/.ssh/id_rsa "$@" # Then create e.g. ~/bin/ssh-stampede as #!/system/bin/sh exec ssh-with-default-key -l alec stampede.tacc.utexas.edu
rsync:
To satisfy an unusual port requirement, I created this script ~/bin/rsync-people:
#!/system/bin/sh # Use this script like this: # $ rsync-people localfile people.danlj.org:remotefile # or # $ rsync-people people.danlj.org:remotefile localfile set -x exec rsync --rsh="ssh -i /data/data/com.spartacusrex.spartacuside/files/.ssh/id_rsa -l alec -p 2222" "$@"
Having trouble with other machines that I use.
git:
# added ssh key to github: | clicked on "Account Settings" icon in upper right corner | clicked on "SSH Keys" in panel on left # in terminalIDE: git clone git@github:alecjohnson/iPic3D
terminal-gcc, terminal-g++:
Run install_gcc
Adding an account to K9 on my android tablet was tricky:
* Hit the "<[Dog]" button in the upper left hand corner twice. * Press the menu button on the tablet. * Select "Add account".
I could not get K9 to send gmail until I used the Outgoing settings below.
K9 settings for gmail (modified from this source): (menu button → Settings → Account settings → ...) Incoming Server (Account settings → Fetching mail → Incoming server): Username: my.email@gmail.com Password: myPassword IMAP server: imap.gmail.com Security Type: SSL/TLS (always) Authentication Type: PLAIN Port: 993 Checked the Auto-detect IMAP namespace box Outgoing Server: (Account settings → Sending mail → Outgoing server): SMTP server: smtp.gmail.com Security Type: SSL/TLS (always) Port: 465 [rather than 587] Checked the "Require Sign-in." box. [fails without this] Authentication type: PLAIN Username: my.email@gmail.com Password: mypassword
I could not get K9 to send mail from my KU Leuven account until I used the Outgoing settings below.
K9 settings for KULeuven (based on this source): (menu button → Settings → Account settings → ...) Incoming Server (Account settings → Fetching mail → Incoming server): Username: u00XXXXX Password: myPassword IMAP server: imaps.kuleuven.be Security Type: SSL/TLS (always) Authentication Type: PLAIN Port: 993 Checked the Auto-detect IMAP namespace box Outgoing Server: (Account settings → Sending mail → Outgoing server): SMTP server: smtps.kuleuven.be Security Type: SSL/TLS (always) Port: 433 Checked the "Require Sign-in." box. [fails without this] Authentication type: AUTOMATIC Username: u00XXXXX Password: myPassword
Getting Android's built-in Email client to receive and send email required similar settings.
Android Email settings for gmail (based again on this source): Incoming Server (menu button → Settings → [Select my.email@gmail.com] → Incoming settings) Username: my.email@gmail.com Password: myPassword IMAP server: imap.gmail.com Security Type: "SSL (Accept all certificates)" worked. Port: 993 Outgoing Server: (menu button → Settings → [Select my.email@gmail.com] → Outgoing settings) SMTP server: smtp.gmail.com Security Type: "SSL" worked Port: 465 Checked the "Require Sign-in." box. [fails without this] Authentication type: PLAIN Username: my.email@gmail.com Password: mypassword Android Email settings for KU Leuven (based again on this source): Incoming Server (menu button → Settings → [Select my.email@department.kuleuven.be] → Incoming settings) Username: u00XXXXX Password: myPassword IMAP server: imaps.kuleuven.be Security Type: "SSL (Accept all certificates)" worked. Port: 993 Outgoing Server: (menu button → Settings → [Select my.email@department.kuleuven.be] → Incoming settings) SMTP server: smtps.kuleuven.be Security Type: "SSL" worked Port: 465 Checked the "Require Sign-in." box. Username: u00XXXXX Password: myPassword