it's definitely worth a try, though i'd be thankful for your "semi-detailed instructions"- i'm not new to computers however to linux and especially unix commands are quite unknown to me.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=61925\"][{POST_SNAPBACK}][/a][/div]
- Just did this and it's pretty simple. Thanks kopsis, for putting this thing together. Beats installing all of that stuff separately!!
- Naturally you
must have an ext2 file system available. My SD is ext2; since it never comes out of Hiroshi I don't care if it's not compatible with another device. I mount it from the Z when I need to move data around.
- I just looked at the /etc/rc.d/init.d/mntpython script to see it wanted to mount it to /opt/QtPalmtop/lib/python2.4. Farther down you'll find an fsck.ext2 command, then after that a mount command to mount file system using a loop. Take note of these commands. The Z has two loop devices already, so unless you're using them for something else, you won't have to wory about the lines that create a bunch of loop devices. If both of your loops are busy you'll have to make another one.
- I created a place on the SD to hold the python directory. Since it's going to be linked to /opt/QtPalmtop/lib, I used /usr/mnt.rom/card/QtPalmtop/lib/python2.4. Anywhere will work just fine ... simply create a directory.
- Just 'cause, I ran the fsck to be sure the python24.ex2 wasn't corrupted, which is what it does each time it mounts.
- Then I created a temporary dir to mount it to, since the final "resting" place has to be the /opt...lib dir above. I used /home/zaurus/mnt, but anything writable that's not the lib dir above should work fine.
- Use the noted loop mount command, substituting the location of python24.ex2 for $IMAGEDIR/file and the temporary mount point for $PYTHONDIR.
-
cp -R <mnt point>\python2.4 <dest dir>. For my example, <mnt point> is /home/zaurus/mnt and <dest dir> is /usr/mnt.rom/card/QtPalmtop/lib/python2.4, just to be painfully explicit. (grin)
- The odd thing is this actually puts stuff in <dest dir>\mnt. I could have copied it down one directory, but I was feeling lazy, so I just linked to there.
-
cd /opt/QtPalmtop/lib-
ln -s <dest dir>\mnt python2.4-
umount <mnt point>-
rmdir <mnt point> (only if you want to ... I created it just to mount this .ex2 so I deleted it when I was done)
-
rm <path to>\python24.ex2. You don't need this any longer because it' on your SD card in <dest dir>\mnt now.
- You can delete mntpython, or just uncomment the exit 0 at the beginning, which is what I did. If you don't prevent this from running you'll get errors next reboot.
- Run the Hello World example from the installation instructions. Also, type "help()" and press Enter. If it loads help, you know you're golden ... if there were errors but it still gets a python command prompt, the Hello World will still work but it won't load help.
- Enjoy your new kopsis-provided python 2.4 installation.
- I've had
very good results moving binaries and libraries to wherever and linking them back to where they started. I haven't done this with python yet, but I certainly will be. Just move python-exe from /home/QtPalmtop/bin to /mnt/card/QtPalmtop/bin and "ln -s" to "put it back". Nethack is the
only thing I've seen that fails with this treatment, so even if you have to install to "Internal", it doesn't have to stay there. I have tons of free space because I don't let stuff live there forever. If it doesn't work ... no biggie ... just remove the link and move it back! This is Linux, not Winbloze, and it simply won't care.
- The entire reason I did this is to get gnome-sudoku to run. I scoured the web fo Sudoku generators and this is the only thing I found. Tons of *solvers*, but no generators/players for the Z at all. Gnome-sudoku is written in python, and kopsis so very conveniently provided this package for the latest version.
- I'm going to play with it today.
- Hope this helps...