View Single Post
Old 11-20-2011, 09:25 PM   #1
r04r
Junior Member
r04r began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2011
Device: Kindle 3
Getting IRC (Irssi) to work on your Kindle

Just got IRC to work so I figured I'd share. First of all, this is what the end result should look like with a slightly modified theme to look good (subjective) on the Kindle.

This guide will assume some unix knowledge, as you shouldn't be messing with this if you lack it. For steps 1 through 4 see their respective threads for details.

1. Jailbreak your kindle
2. Install usbnetworking, to get a shell on your kindle. (Optional if you want to type everything on your kindle's terminal emulator. I prefer just SSHing in over WiFi)
3. Install launchpad
4. Install the fullscreen kindle terminal emulator
5. Install optware
5.1 In addition to directories created in the post above, also do:
mkdir /mnt/loc/opt/includes
ln -s /mnt/loc/opt/includes /opt/includes
5.2 Add
/path/to/your/local.ext3 /mnt/loc ext3 loop,noatime 0 0
to /etc/fstab and verify with mount -a
6. Add/replace the following to your /etc/profile and /mnt/us/myts/profile
alias ipkg='ipkg -t /opt/tmp'
alias fmount='mount -a'
export TERM=linux
export TERMINFO=/etc/terminfo
export PATH=$PATH:/opt/bin
7. Change root's home directory to outside of /tmp, e.g. /mnt/loc/root. Do so by editing /etc/passwd
8. ipkg update && ipkg install perl && ipkg install irssi
9. Irssi should be able to run now, but won't be great for usage on the kindle yet. To solve this we need to add a theme file, change a few keybindings and add a script to filter out markup from IRC as the terminal emulator doesn't like those.
9.1 Get the theme here and place it as $HOME/.irssi/kindle.theme
9.2 Get the script here (slightly modified from original) and place it as $HOME/.irssi/scripts/autorun/cleanpublic.pl
9.3 Start irssi, and run
/set theme kindle
and set up some keybindings (see) to switch between channels. Personally I use F1-10 for this. You can figure out keycodes by starting cat, and then pressing the keys and see what shows up.
/BIND ^[[11~ key F1
/BIND ^[[12~ key F2
/BIND ^[[13~ key F3
/BIND ^[[14~ key F4
/BIND ^[[15~ key F5
/BIND ^[[17~ key F6 ; Skip of 16~ is intentional
/BIND ^[[18~ key F7
/BIND ^[[19~ key F8
/BIND ^[[20~ key F9
/BIND ^[[21~ key F10
/BIND F1 change_window 1
/BIND F2 change_window 2
/BIND F3 change_window 3
/BIND F4 change_window 4
/BIND F5 change_window 5
/BIND F6 change_window 6
/BIND F7 change_window 7
/BIND F8 change_window 8
/BIND F9 change_window 9
/BIND F10 change_window 10
/save
9.4 Tune some settings:
/set colors off
/set hide_text_style on
/save
10. Enjoy. I may have forgotten a few things in this guide as I didn't keep track of my steps while I was doing this, but this should be it.

Last edited by r04r; 11-20-2011 at 09:43 PM.
r04r is offline   Reply With Quote