![]() |
[Announce] Easy Chroot package for MeeGo Harmattan
Qole (Alan Bruce) previous work on Easy Chroot (easy-chroot for Maemo 4/5 and HarmChom for Harmattan) is now packaged to MeeGo Harmattan.
What is the "Easy Chroot" package ? It contains scripts to mount and chroot into images/partitions, i.e., running a different environment inside MeeGo Harmattan without rebooting. For example : - Easy Debian (with OpenOffice, Gimp, Abiword, Gnumeric, gcc/g++, TeX/LaTeX, etc). Easy Debian package for MeeGo Harmattan is now (04/08/2012) released; - on-device Maemo 5 SDK or MeeGo Harmattan SDK for software development (with gcc/g++, packaging tools, etc); - other OS (Ubuntu, etc) with an image. Downloading & Installing : 1) Easy installation : Use MeeCatalog (available from Nokia Store), enable the "Community Share Repository" (from rzr), update, update. Then search for "easy-chroot" and install it (version 0.2.0). or 2) Manual installation : Download the current release : easy-chroot_0.2.0-1harmattan1_armel.deb. Transfer it to some directory (e.g., "/home/user/") in your Nokia N9/N950 and install it by tapping with a file manager, or using the X-Terminal : $ devel-su type the root password (default is rootme), then : # cd ~user # dpkg -i easy-chroot_0.2.0-1harmattan1_armel.deb Dependencies : 1) Harmattan open mode kernel; or 2) Inception + aegisctl. As the Inception main site is currently down, I will repeat the Inception download and installation instructions. If you want, download them together here (Inception.zip zipped file). Unzip the .deb files (opensh is not needed for easy-chroot) to some directory (e.g., "/home/user") in your Nokia N9/N950. Install "inception_0.2.5_armel.deb" by tapping with a file manager or with "# dpkg -i inception_0.2.5_armel.deb" as root in X-Terminal. Then type in X-Terminal as user : $ devel-su -c /usr/sbin/pasiv type the root password, then confirm with yes. Finally (as user or root) : $ /usr/sbin/incept aegisctl_1.3_armel.deb and type the password. Using Easy Chroot : 1) using Harmattan open mode kernel, in X-Terminal : $ devel-su and confirm the root password. or 2) using Inception, once after reboot it is needed to give chroot permissions, so go to the X-Terminal as user : $ ariadne /usr/sbin/aegisctl -s and type the root password. Then enter root with extended permissions : $ ariadne sh if asked, type the root password. 1 & 2) Typical use (don't use "FingerTerm" as qchroot doesn't work with it) : "qchroot" does mounting and chrooting, the most simple syntax is : # qchroot <image> <mount-dir> where the "mount-dir" needs 777 permission ($ chmod 777 <mount-dir>). For example, chrooting Easy Debian image : # qchroot /home/user/MyDocs/debian-m5-v3e.img.ext2 /.debian gives the prompt inside Debian : [root@m5v3e: /] After exiting ("exit" or Ctrl+D), to close the chroot : # closechroot <mount-dir> Or in this example : # closechroot /.debian ================================================== Easy Chroot (MeeGo Harmattan version) FAQ : 1) What is the content of easy-chroot package and what the commands do ? It installs in "/opt/easy-chroot" but links 6 commands to "/bin" (included in user's $PATH) : - blkid : used by qchroot, qmount, etc to retrieve information about the image file (filesystem type, etc). This file is taken from the the Harmattan SDK armel as MeeGo Harmattan on device doesn't include it. - closechroot : script to close a mounted chroot, this means killing all the chroot apps and unmounting the bound directories. If there is no argument, tries to use "/home/user/.chroot". Syntax : closechroot <mount-dir> closechroot - qchroot : script to set up (if necessary) and chroots into a different environment, with shared MeeGo "/home/user", etc. Syntax : qchroot <image> <mount-dir> - qmount : script to mount the chroot partition from the image. Syntax : qmount <image> <mount-dir> - qmount : script to umount the chroot partition from the image. Syntax : qumount <mount-dir> - synchroot : script to synch a mounted chroot; this means copying some important files to the chroot. If there is no argument, tries to use "/home/user/.chroot". Syntax : synchroot <mount-dir> synchroot 2) The scripts are the same from qole's HarmChom ? They are a little bit modified with full pathname to "modprobe" and "umount" as the default $PATH for user and root in MeeGo Harmattan is different from Maemo 4 & 5. So I avoided modifying the user ".profile" $PATH on MeeGo. V0.2.0 adds the sbin directories to $PATH of root on Debian. 3) Why FingerTerm terminal is not compatible with easy-chroot ? I don't know, but the fact is qchroot doesn't work when using FingerTerm. It can be installed, but can be used to run the qchroot command. Thanks to users HoldgerN and Kabouik, who discoreved this incompatibility. (Native) X Terminal, MTermite and BTInput Terminal work with qchroot. 4) Where is the source code ? Current release : easy-chroot_0.2.0.tar.gz. I will upload it to GitHub and announce here. Use Harmattan SDK (scratchbox) to create a .deb, using "dpkg-buildpackage -sa -rfakeroot". 5) Change log of easy-chroot for Harmattan ? * 0.2.0 (18/08/2012) : added sbin directories to $PATH; * 0.1.0 (03/08/2012) : first version for MeeGo 1.2 Harmattan. It is also inside the source code. |
Re: [Announce] Easy Chroot package for MeeGo Harmattan
Great job, thanks!
I detailed it in the other thread, but this one seems more appropriate, especially because you are still testing the package: I installed your deb, then had an automatic update available for it. I installed it, rebooted, then tried "qchroot /home/user/MyDocs/debian-m5-v3e.img.ext2 /.debian/" after "ariadne aegisctl -s" and "ariadne sh", but I got the following error: Code:
mounting /home/user/MyDocs/debian-m5-v3e.img.ext2 /.debian/ on loop |
Re: [Announce] Easy Chroot package for MeeGo Harmattan
Quote:
Try without the trailing "/" : # qchroot /home/user/MyDocs/debian-m5-v3e.img.ext2 /.debian |
Re: [Announce] Easy Chroot package for MeeGo Harmattan
rebuilt in shared repo ... do you plan to host the sources in vc too ? I can help for that ...
|
Re: [Announce] Easy Chroot package for MeeGo Harmattan
Quote:
With the rzr share repo, trying to install with "# apt-get install easy-chroot" just install the 0.3.4-0maemo0 version. What is vc ? |
Re: [Announce] Easy Chroot package for MeeGo Harmattan
Quote:
Thanks, Kabouik, you and HoldgerN are cited in FAQ #3 above. And there is not problem with or without the trailing slash ("/"). |
Re: [Announce] Easy Chroot package for MeeGo Harmattan
I've already tried with or without the trailing slash, but it gave the same results. The problem is that I'm no longer using FingerTerm to run the qchroot command. And by the way, when I used it, the error message was about mounting on loop0 or something (see the other thread), but had nothing to do with libgtk-x11-2.0.so.0. Here I have this error when using a default Terminal application, or MTermite.
P.S. HoldgerN is the only one who deserves to be cited in FAQ #3, he was the one who find what caused the problem. I just reported the problem. :p |
Re: [Announce] Easy Chroot package for MeeGo Harmattan
Quote:
vc=version control , ie: gitorious , github etc btw, I can share some rootfs ask me ... http://rzr.online.fr/q/ubuntu http://rzr.online.fr/q/rootfs |
Re: [Announce] Easy Chroot package for MeeGo Harmattan
Quote:
|
Re: [Announce] Easy Chroot package for MeeGo Harmattan
Quote:
Quote:
Quote:
But my priorities now are Easy Debian and SDK images. |
All times are GMT. The time now is 06:07. |
vBulletin® Version 3.8.8