maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Debian] Running Debian in a chroot (https://talk.maemo.org/showthread.php?t=20342)

psykosis 2008-07-05 22:59

Re: Running Debian in a chroot
 
Hey Qole - what is your secret to have Xephyr/IceWM having an icon under OS2008 to switch back? I have been manually wmctrl'ing it back up, but a simple "task" to switch back would be hot.

qole 2008-07-05 23:25

Re: Running Debian in a chroot
 
I wrote a tiny Python app that pops open a window in OS2008 called "IceWM", then I used wmctrl to find the window ID, then I open Xephyr inside that window using the -parent parameter.

Amarantus 2008-07-08 12:22

Re: Running Debian in a chroot
 
As an alternative to OS2008 which is better debian or kde ?

Benson 2008-07-08 12:54

Re: Running Debian in a chroot
 
Quote:

Originally Posted by Amarantus (Post 200531)
As an alternative to OS2008 which is better debian or kde ?

That question really doesn't make horribly much sense; I think you misunderstand what's going on here.

KDE runs as a window manager and associated apps on top of OS2008; not an alternative to OS2008, but to Matchbox and some Hildon apps.

Debian is a full free-standing distribution; the topic discussed in this thread, though, is using Debian in a chroot, so you have OS2008 running, providing all system services, and Debian providing applications and their (library) dependencies. You can run Debian as a boot-time alternative, but that's discussed in other threads... It's currently the most viable ITOS replacement, IMO, but Android also works (on N810s, mainly); just not many apps there yet.

HTH

Amarantus 2008-07-08 13:57

Re: Running Debian in a chroot
 
Thank you Benson. Maybe I didnīt express mylself right , what I mean is itīs better use maemo with kde for productivity apps lilke koffice or use debian in chroot ? But you re right debian is much more intersting , especially if I could use java apps.

Benson 2008-07-08 15:23

Re: Running Debian in a chroot
 
You can use Java apps without (or with) either; Jalimo uses GNU classpath, same as Debian's java implementation, IIUC, just easier with Debian chroot since you don't have to set it up yourself...

Koffice is faster, I think, than OOo, but OOo is more compatible with MSO, and more full-featured in general.

BoxOfSnoo 2008-07-10 12:56

Re: Running Debian in a chroot
 
I haven't noticed others posting this question since the release of the easy install..

I am booting from MMC, and have 2.7G left on that partition, plenty I probably won't use. How can I either a) install the image file onto this (ext2) partition or b) install on mmc1 and transfer it over? I presume there's a lot more to the installer than unpacking the bz2 file...

I am downloading the image file to my desktop now, and deleting all my mp3s from mmc1...

Thank you, looking forward to trying this out!

BoxOfSnoo 2008-07-10 14:46

Re: Running Debian in a chroot
 
Ok, still downloading the image, but I have a thought. Is everything else set up after the basic install and before downloading the image?

How about this:

immediately after the existing export= lines in /sbin/debian

Code:

if [ "$DEBIAN_IMG_ALT" != "" ]
  then
  export IMGOTHER=`ls -1 ${DEBIAN_IMG_ALT}debian*.img* | awk -v RS='ÂĨ' '{print $1}'`
 fi

and then, in the appropriate spot...

Code:

  export IMGFILE=$IMGMMC2
 elif [ "$IMGOTHER" != "" ]
  then
  export IMGFILE=$IMGOTHER
 else

All I would need to do is export the DEBIAN_IMG_ALT= variable setting before running the script. This should keep it easy for basic use and allow advanced users to be more specific.

Any thoughts?

qole 2008-07-10 16:18

Re: Running Debian in a chroot
 
BoxofSnoo: That's cool!

I still think the ultimate thing would be to have the debian chroot script search the root fs as well as the mmc cards for image files, as well as unmounted partitions. If it finds multiple image files and/or unmounted partitions, it will ask you which you want to mount. This would let you chroot into other copies of maemo as well as debian, ubuntu, etc. You could have several images on your various cards and choose which one to chroot into...

... This is my plan for the next version of the "Easy Debian" package...

BoxOfSnoo 2008-07-10 17:11

Re: Running Debian in a chroot
 
That would be awesome! But... probably take too long each launch...

Otherwise you could rescan on demand and use something like this:

Code:

find / -name debian*.img* 2>/dev/null
The 2> err redirect is purely to prevent seeing the common "too many open files" error. You could use grep or awk to filter just the ones you want, and get them into a list for on-the-fly selection...


All times are GMT. The time now is 10:28.

vBulletin® Version 3.8.8