I try to make it as detail as possible, hope you guys can understand what I've done... Steps on installation of Debian/PocketWorkstation dual booting with Qtopia in Zauri
for any essential operations ( grouped in  )
, please refer to Meanie's customization guide
as I don't explain his details again.Additional equipments suggested:
a/ CF LAN / wifi card (for telnet the zaurus inside when issues occurred)
b/ a SD card with large capacity, if your Zaurus is under SL-C3000 (having SL-C3000 or over has the local MD which is sufficient enough)
1/ fetch zaurus-debian-big-v0.18.tgz
(suggested location: http://pocketworkstation.org/files/zaurus-...-big-v0.18.tgz)
2/ if your Zaurus has no tcpip configured, enable so by simple Qtopia Network GUI / applet, install sudo ipk if it is absent
3/ enable telnetd inside your Zaurus: [ Enabling telnet ]
4/ for fastest performance, you can directly format your SD card into ext2 format; but for MD-equipped Zauri, a loop device is also a good choice for loop filesystem mounting (my mount-point choice is /hdd3/debroot
with a loop device called /hdd3/debian.fs
please also note that a swapfile needs to be built (around 256M is suggested). Background details: [ Debian/PocketWorkstation
]debian.fs buliding steps: -
# suswap file building steps: -
# cd /hdd3
# mkdir debroot
# dd if=/dev/zero of=/hdd3/debian.fs bs=1M count=768 (i create a 768M loop device)
# echo y | /sbin/mke2fs debian.fs
# mount -o loop -t ext2 /hdd3/debian.fs /hdd3/debroot
# dd if=/dev/zero of=/hdd3/swapfile bs=1M count=256
# mkswap /hdd3/swapfile
remember to add these 2 entries in /etc/fstab
/hdd3/swapfile swap defaults 0 0
/hdd3/debian.fs /hdd3/debroot ext2 loop 0 0
5/ extract the tar.gz into the /hdd3/debroot
# zcat zaurus-debian-big-v0.18.tgz | tar xvf - -C /hdd3/debroot
6/ in /hdd3
directory, run ./debroot/INSTALL.d/postinst.sh
All questions should be answered 'y' / 'yes', except the last question: Run 'Fbvnc' now?
7/ vi /usr/local/bin/Fbvnc
(i have tried many model #s, but only this -hw c700
parameter is acceptable, you are welcome to try other hardware model #s and tell me for better result): -
if [ -z "$1" ]; then
fbvnc -hw c700 127.0.0.1:1
fbvnc -hw c700 "$@"
8/ vi /etc/debroot.conf
as in this fashion: -
#DEB_RUN_SERVICES="inetd ssh lpd"
9/ in the /etc/rc.d
directory tree, spot out the symbolic link to zdebian (in my case: rc5.d/S99zdebian
) and delete it.
10/ vi /etc/rc.d/init.d/zdebian
, change 1st line as #!/bin/bash
11/ in /home/zaurus
, create by vi & chmod 755 2 files:-sw-deb.sh
echo "zdebian stop.."
echo "kill Xvnc.."
echo "change launch.default to 'q'"
echo q > /home/zaurus/launch.default
echo a > /home/zaurus/launch.default
then create launch.default
by this command (in /home/zaurus
# echo a > launch.default
finally, a debian startup script, 'startd'
, can be created by vi as follows: -
sudo /bin/mount -o bind /mnt/card /hdd3/debroot/mnt/card
sudo /sbin/swapon /hdd3/swapfile
sudo ./zdebian start
12/ preparing for step 13: [ Remounting Filesystem as Read/Write or Read Only
13/ vi /root/etc/rc.d/rc.rofilesys [this is the flag addition for 'dual-boot' selection as zdebian] (add last line)
/bin/ledctl alarm 1
while [ "$DUMMY" = "" ]; do
#echo $LAUNCH > /home/sharp/etc/launch.default
cat /home/zaurus/launch.default > /home/sharp/etc/launch.default
14/ Revert back the read-only / system: [ Remounting Filesystem as Read/Write or Read Only
play-around instructions: -
a. system is still in Qtopia normal state
after these modifications, however, if you want to go into debian booting mode
, open a Qkconsole / Terminal, type './sw-qt.sh
' and the system will be rebooted
b. to that reboot final stage, a 'zaurus login:'
prompt will come up
b. login using 'zaurus' account
c. you should see a zaurus console prompt, at that stage, you can type './startd' to start Debian
d. during this status, every reboot comes up the 'zaurus login:'
prompt; if you want to switch back to Qtopia, just type './sw-deb.sh
' in that console, come along with 'sudo /sbin/reboot'
, the system can be back to normal again.N.B. if you telnet your Zaurus after the ZDebian is running, you can still telnet into the "original normal login env't" instead of the "chroot env't" (ie. not rooted by /hdd3/debroot) which is a good troubleshooting tools for issues occurred - that's why i STRONGLY suggest you to enable telnet during your installation procedure.