Well, it's NOT my work at all. The whole thing is nothing new but a summary and collection of the main information stretched out in this thread: http://www.oesf.org/forums/index.php?showtopic=9654 , after getting some good advice from Chero and rehorrericha in particular.
Then why do I post this and in a new thread? Because I guess dummies may find it easier to read a separate summary than to wade through the dozens of pages and >100 posts of discussions.
Most, if not all, of the content of this summary is already included in CyberWolf's excellent guide in the very first post of thread above, plus the gems of thoughts of many others there. I hope I didn't miss anything, despite the fact that I still consider myself a dummy. Please correct me if I'm wrong in any place. Thank you!
How to set up chrooted Debian environment in pdaXrom: an absolute dummy guide
Download either the "base" or the "big" Debian package from http://pocketworkstation.org/files/ . The latest version is 0.18.
Since this is real big stuff, we can't put it in the main memory but must let a memory card take it instead.
Make sure that your card is of 256MB at least.
Let's get started.
Start a terminal session.
Switch to /mnt/card, and
create a new directory called "debroot" by
(Press ENTER once after each line.)
Switch to this newly created debroot dir.
Put the debian package in this dir, and
extract it by:
tar -xvzpf zaurus-debian-*.tgz
This will take a few minutes. Just let it do its job. After this you'll see a whole bunch of files and dir created in /mnt/card/debroot.
Now you have to configure Debian and install a few important files to the main memory. The files are going to be very small so no need to worry about the space in the main memory.
Stay put in /mnt/card/debroot and do this
Phew! What? A questionnaire? Don't panic. It's just a few "Yes/No" questions. There may be some actions going on between the questions, as the setup will respond and take actions immediately after each of your answers.
The "model answers" are simply: "Yes" (press y and ENTER) to all questions, BUT say "No" (press n and ENTER) to the last two questions asking you whether you want to start vncserver and fbvnc.
After the last question, the installation process finishes and returns you to the command prompt (the "#" sign).
Now it's time to go to do something about the files in the main memory. Go to your root directory by
Now go check and see whether you've got these three files in the main memory (use a file manager to help you find them):
If any of them is missing, then something may have gone wrong and you'll have to repeat steps 3, 4 and 5.
Now we are going to make some important changes in the first two files mentioned in STEP 7 by editing them with an editor (am I being too dummy here?)
Don't worry too much. What we mean by "editing" here simply means adding one symbol or some words or a line somewhere in the files.
Being a dummy myself, I prefer using nano (hey guys, c'mon don't fire at me please ~ ).
First, open /etc/debroot.conf with nano by
Don't freak out when you see the mysterious codes and messages. Just do three simple things:
1. Locate the statement "#The chroot directory for the Debian installation", make sure that it gets the correct path as
2. Comment out (i.e. put a "#" symbol in front of) all these lines:
(In my case I also have to comment out DEB_RUN_SERVICES="ssh", although it's not mentioned in the CyberWolf's original guide. Still dunno why coz I'm just a dummy.)
3. Go to the bottom of the file, start a line afresh and type the following:
After these three things are done, press Ctrl and o together to save the file (you'll be asked for a filename; just ENTER to confirm to use the existing one), followed by Ctrl and x together to exit nano.
Now we head to the second file. Again use nano to open it:
Go to the bottom and look for the line that begins with "PATH=...".
Add the string DISPLAY=$DEB_DISPLAY at the end of the line,
followed by Ctrl-o (save) and Ctrl-x (exit nano)
Now we need to edit one more file. Use nano again to open /usr/X11R6/bin/startx
Locate the line(s) beginning with "defaultserverargs=...".
Comment out the line(s) if you see "-nolisten tcp"
#defaultserverargs=" -nolisten tcp"
#defaultserverargs=" -nolisten tcp -kb"
#defaultserverargs=" -nolisten tcp -kb"
Next, add a new line right above or below these lines (use your cursor key to move around, ENTER to add a new line) and type this down:
When it's done, Ctrl-o and then Ctrl-x.
[A NOTE for users of more than one window manager (wm):
The default window manager is called Matchbox, and the initial script (i.e. the file that brings it up and tells it to do and display things in the way you want) is called "startx" and its path is /etc/X11R6/bin/startx.
Oh, yes, that's the one you have just edited.
If you also use other window managers, you'll have to do the same change to their initial scripts. For example, the initial script of Xfce4 is called "startxfce4" and has a different path /usr/local/bin/startxfce4. If you forget to edit this you will only get chrooted Debian to work in Matchbox but not in Xfce4.]
Quit the terminal session.
Exit the current window manager and restart it. (If you don't know how then you won't be reading this!)
Start a terminal session again.
Copy a file called .Xauthority to the root directory of debroot by running this command:
cp .Xauthority /mnt/card/debroot/home/root
(In case you don't have the root dir under /mnt/card/debroot/home, (just like in my case), you must create it first before copying .Xauthority to there. Or just run mkdir -p /mnt/card/debroot/home/root to fix that.)
Start the chrooted Debian enviroment with
If you get back to the usual prompt in 1 or 2 seconds, that is a good sign, meaning your chrooted Debian environment is (almost) ready to roll out.
Finally, give your chrooted Debian environment a test drive. Try
Then you'll see a different terminal window pop up, with a slightly different prompt as "/#".
And as CyberWolf says, "If it works, congratulations, you've done it... "
You can go three more steps further (by Chero):
Copy /etc/resolv.conf to /mnt/card/debroot/etc/resolv.conf to enable networking
Eat a lot without getting overweight?
Use the debshrink command (a real space-saver !!)
(STEP 17: to be clarified ...
Find the way to your /mnt/cf and or /mnt/card: (I think I described them in the Xqt/debian forum - in a thread related to xfce4) -- Chero said he's come up with an easy mounting script but it takes some time to recover it from the X/Qt page...)
Corrections, clarifications and reminders are always welcome. Thank you all!