Opie configuration

Documentation

Establishing a PPP connection

Log out of the iPaq and connect it to the serial cable. On spello in konsole, issue:

echo 1 > /proc/sys/net/ipv4/ip_forward
This lets spello forward ip requests from the ipaq out to the world. Next establish the ppp connection:

/usr/sbin/pppd /dev/ttyS0 115200 128.97.221.33:128.97.221.37 nodetach local noauth nocrtscts lock user ppp connect "/usr/sbin/chat -v -t3 ogin--ogin: ppp"

This establishes ipaq on my network with a fixed IP, accessible from anywhere.  You should get this:

Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
found interface eth0 for proxy arp
local  IP address 128.97.221.33
remote IP address 128.97.221.37

If you don't want to access it from anywhere, could you just use an ip address like 192.168.0.202? Note that you're also running vmware on spello, which uses something like 192.168.120.1. Not sure how all these ports work.

Note that you can give the command above (which is now in spello:/root/ipaq) as
./ipaq &
and then use the same konsole terminal to ssh to the ipaq. On exiting, issue
jobs
and you'll see the running ppp job called ipaq, usually job number 1. To bring it back to focus, issue
fg 1
You can now press Ctrl-C to close the serial connection, or (for that matter) Ctrl-Z to background it again.

Establishing a USB network connection (not yet working)

  1. Reboot the iPaq while it's disconnected from the PC

  2. On the iPaq, issue in konsole
modprobe usb-eth
  1. At this point, seat the iPaq in the cradle so it connects

  2. Next, configure the connection
ifconfig usbf up 1.1.1.1 netmask 255.255.255.0
route add default gw 1.1.1.2
  1. Verify that you have defined at least one domain name server
cat /etc/resolv.conf
  1. On the PC side, issue in konsole
ifconfig usb0 1.1.1.2 netmask 255.255.255.0
iptables -t nat -I POSTROUTING -j MASQUERADE -s 1.1.1.1/32
iptables -I FORWARD -s 1.1.1.1/32 -j ACCEPT
iptables -I FORWARD -d 1.1.1.1/32 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
This is supposed to be enough to make it work. Note this package:
opie-sh-usbnetctrl - frontend to start/stop usbnet
Not yet installed. See also these usbnet instructions -- possibly dated. I downloaded a usbnet utility, but it likely only mounts the module (not tried).

Upgrading packages

The sources.list is called /etc/ipkg.conf and the opie configuration in /etc/dpkg/opie.conf.

After issuing "just update" you can watch the packages come down in /tmp. Once the download is complete, they move to /usr/lib/ipkg/lists -- I notice I've also downloaded a package list called x. I wonder if that means I could install x packages -- the whole gtk suite?

To see what's on the system, you can issue

cd / && du | more

On 3 August 03, Opie 1.0 was released. In Familiar 0.7, the opie repository is not listed in /etc/ipkg.conf but in /etc/ipkg/opie.conf instead -- you can put the other repositories there too. I issued "ipkg install task-opie" and got three packages (including task-opie itself). I then issued "just upgrade" and got a large number of packages. This seems to work fine -- in spite of this warning on the forum:

"Please take the usual precautions before upgrading (stopping Opie, freeing space, removing all other feed entries, etc.)."

You may need to follow the opie thread for possible problems with the upgrade; perhaps more importantly, see the dev list. The Opie 1.0.0 upgrade worked fine, but missed this:
opie-today-mailplugin
task-opie-today
opie-keytabs
The first of these two is in fact not present in the 1.0 repository and I deleted it; the second is available with the weird name task-opie-today_0.5-_arm.ipk -- I'm unable to retrieve it, and deleted the current package. I also deleted the third.

Sync'ing the Calendar

The Opie calendar uses an xml format, but there's a libical library that may allow it to read the ical format used by KOrganizer. In Opie, there's a package called ical-outlook that handles the peculiarities of Outlook (and it required python-base_2.2) -- it also has the libical libraries, but I don't think I need the rest. I removed both ical-outlook and python-base. A messy situation -- I should forget about the calendar perhaps and just to the addresses.

However, import can likely be automated; that's what the kitchensync instructions suggests. Klaus Leopold <kl@itec.uni-klu.ac.at> writes,

I'm using Opie on my IPAQ and I'm syncing my KOrganizer with Kitchensync which
works fine for the adressbook and the calendar but not for the todo list.

So watch that -- maybe get rid of the todo list. Or try transferring the files manually, once you know where they are located.

Note that korganizer runs on the Zaurus; see detailed instructions. See the KDEPIM mailing list; I asked on 6 July 2003 if there was a binary for the ipaq.

The problem is that KOrganizer uses *.ics files and Opie uses an xml format -- the calendars are not directly compatible afaics.

However, KOrganizer has been ported -- korganizer_1.0.0_arm.ipk !!

See also the multisync project, which now supports opie. The unofficial debs are here.

Sync'ing the Addressbook

The Opie addressbook can import the VC format, which is what KAddressbook uses; just do this occasionally. Catch: in 0.99pre it's failing to import the vcf file; don't know what the problem is. Not yet tested in 1.0.

Detailed instructions -- this is more likely to work! (external)

See an example of how the script kids do it.


Installing the Stowaway

A description of a heroic but failed attempt on my hardware and (as of 6 July 2003) software.


Typing

Check out the Debian package dasher (on Sigillo) -- a really cool way to type. Now I find out it will run on the iPaq -- under WinCE! Dirson and Garrett are porting it to Opie and had an alpha in early June 2003. See also the project page and the paper in Nature.

After a reset

  1. Issue this to reset the time use UTC):
date 070513412003
Then store this in CMOS (doesn't seem to work on the iPAQ -- but it does not UTC):
hwclock --systohc --utc
See details -- really it's simpler and better to use ntpdate below.

Reinstalling packages

You normally won't need to reinstall packages -- even a reset doesn't wipe the memory. Here's a list of vital stuff if you ever need to do this again:
  • trevi:# scp /share/data/systems/ucla/ipaq/hosts ipaq:/etc
  • trevi:# scp /share/data/systems/ucla/ipaq/resolv.conf ipaq:/etc
  • trevi:# scp /share/data/systems/ucla/ipaq/interfaces ipaq:/etc/network

  • ntpdate spello
  • ln -sf /usr/bin/ipkg /usr/bin/just
  • just install ssh
  • just install stowaway-modules opie-sh-stowawayctrl
  • cd /
  • ./postinst  (this installs MS fonts)
I don't yet know where the addressbook/contacts and calendar files are kept -- I should keep copies of those too.

 

 

top