N800 custom packages

From GuardianiUS

Contents

<< Back to my n800 page


[edit] Things I packaged personally (but didn't write)

[edit] Patch

Click to Download Patch This is the ubiquitous patch program for maemo and the n800. Must have to development on-tablet.

[edit] IRSSI

Click to Download IRSSI This is a simple cli build of IRSSI with no Perl support for the n800/os2007.

[edit] AutoSSH

Click to Download AutoSSH Use AutoSSH to automatically reconnect your SSH session. Useful when hopping between WiFi hotspots frequently. Just set the AUTOSSH_POLL environment variable suitably low and AutoSSH will reconnect your SSH session for you once you connect to a new hotspot. I use the following script to start AutoSSH (where 'myhost' is the host I want to connect to):

#!/bin/sh
export AUTOSSH_POLL=10
export AUTOSSH_PATH=/usr/bin/ssh
/usr/bin/autossh -M 20000 myhost

[edit] Bluetooth ALSA

These packages implement an alpha quality A2DP system. It plays without skipping on my n800, but it uses an excessive amount of CPU and none of the convenient graphical players support alsa right now. These packages are provided here mainly for my development purposes. Feel free to give them a try though.

[edit] Step 1: Download Packages

You'll need the following packages:
Click to Download SBC
Click to Download Plugz
Click to Download Mplayer w/ALSA and libmp3 support

[edit] Step 2: Turn on Bluetooth Radio

First, make sure you turn your Bluetooth radio on. You can do this from the control panel, I think.

[edit] Step 3: Find Headset Address

Next, we need to find our A2DP headset's BT address. So put the headset into pairing mode, log into an xterm and do this:

hcitool scan

The address will look something like 00:14:CF:03:17:8C

[edit] Step 4: Get Sample .a2dprc

Then, log into an xterm on your n800 and download the sample a2dprc:

wget http://www.guardiani.us/sample.a2dprc
cp sample.a2dprc ~/.a2dprc

[edit] Step 5: Setup Headset Address

Next, please edit ~/.a2dprc to contain the address of your headset on the address= line:

NOTE: If you have VIM installed and know how to use it, run the following command. Otherwise, please use a text editor that you are comfortable with to edit the file /home/user/.a2dprc

vim ~/.a2dprc

[edit] Step 6: Create .asoundrc

create ~/.asoundrc with simply (copy and paste everything in the box below to create the file):

cat > ~/.asoundrc <<EOTXT
pcm.a2dpd2 {
  type a2dpd
}
EOTXT

[edit] Step 7: Edit hcid.conf

Next, as root, take "rswitch" out of the lp setting in the following file (This step eliminates a lot of skipping during playback!):

vim /etc/bluetooth/hcid.conf

[edit] Step 8: Reboot

Then reboot to restart hcid:

reboot

[edit] Step 9: Run a2dpd daemon

Finally, run a2dp daemon as non-root user:

a2dpd

[edit] Step 10: Listen to Music

Now, to listen to some music over a2dp, try this:

mplayer -ac ffmp3 -ao alsa:device=a2dpd2 /media/mmc1/mp3/green_day/american_idiot/holiday.mp3

Now all we need is a graphical player like canola that will start a2dpd for us, allow us to choose our output device (a2dp,headphones,or speakers), and allow us to pick our music graphically. Oh wait, I already wrote that! It's called Kagu Media Player!

[edit] GTick

Click to Download GTick I haven't played an instrument for a very long time, but someone on ITT needed a metronome.

[edit] Things other people packaged and wrote, but aren't commonly available on maemo.org

[edit] OpenMoko Scroll Widget Example

Here's a little treat. Want to play with OpenMoko's inertial finger scroll widget on your n800? Look no further!

First, click to install the libmokoui2 deb. This contains the openmoko UI library: libmokoui2

Next, grab the moko-finger-scroll binary, here. You might want to do this in an xterm, like so:

wget http://www.guardiani.us/moko-finger-scroll
chmod 700 moko-finger-scroll
./moko-finger-scroll

And there you go. You should be looking at the OpenMoko Finger Scroll Widget. :)

Want to write some code in scratchbox that uses the OpenMoko Finger Scroll Widget? Install the developer libmokoui2 deb here. The example source code for the finger scroll widget can be viewed here.

[edit] rsync

rsync I use this for making filesystem backups. Seems to be packaged for mistrel/OS 2006, but it works fine with bora/OS 2007. The original can be found here.

[edit] acmonitor

Click to Download acmonitor I stumbled across this excellent little tool on 2007-05-19 while asking around in #maemo. A fellow named derf wrote it, and it's home URL is here. The author's own description: "Plug it in, change your settings, unplug it, change your settings, plug it back in, it goes back to whatever it was last time it was plugged in. It tracks brightness and blank time. And while plugged in will periodically ping www.google.com to keep your net connection up."

[edit] netdate

Click to Download netdate I found this on 2007-05-11 while asking around in #maemo. A fellow named keesj packaged it, though I think the original source code has been around for quite a while. It provides a quick, easy way to sync time with an NTP server. You'll want to set it suid as root after installing:

chmod 4755 /usr/sbin/netdate

[edit] Xournal

First install original author's repository so you can install the necessary deps:

Repository: http://www.bgran.net/etrunko/apt
Distribution: mistral
Component: user

Then install the deb below (you may have to install the deps manually from the application manager first. Attempt to install the package below to see what these deps are, if any):

Click to Download Xournal This is a much better alternative to MaemoPad+. See here for Henry's site (the fellow who did the porting work.)

[edit] Wishlist

I hope to get around to packaging these myself someday. But I don't want to do the work if I don't have to. Please let me know if you've seen a maemo package for any of these apps floating around.

[edit] TilEm

Link

[edit] Audible.com Player

I listen to a lot of audio books, so in order for my n800 to be a useful MP3 player, I need an audible client.

[edit] Thumbs sized buttons for the "Code Dialog"

The passcode dialog in OS 2007 has buttons that must be pecked with a pen. However, there's plenty of screen space available, so why not make them thumb friendly?

Personal tools
related