maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Making a chroot (https://talk.maemo.org/showthread.php?t=70059)

Nokia 5700 2011-02-18 20:54

Making a chroot
 
As the tile suggests, I'm making a chroot. Not just any chroot, it's a chroot for Maemo 5. And I need some techy help.
So far, I've extracted the rootfs.jffs2 file from the latest firmware, and the files are in place with permissions and everything. Now I have a single problem before I'm done, though...
I can't get my hands on a set of files for the /home directory. (The rootfs doesn't contain any of it.) Just linking it is unacceptable. I want to have a separate set of settings and documents in the chroot that won't affect the system.
I found the eMMC Vanilla one from PR 1.2, but it only contains files from MyDocs and not /home.
Any advice on how to obtain these files?

michaaa62 2011-02-18 22:11

Re: Making a chroot
 
cp -ax /home /chroot/

kingoddball 2011-02-18 22:31

Re: Making a chroot
 
Can you link this up AS SOON AS YOU FINISH it?
I am after this too!! :D

Nokia 5700 2011-02-18 22:35

Re: Making a chroot
 
I will upload after testing it. And if i have a place to upload to. (I made a 2Gb image...)

Copying the existing /home from mine is not really what I want to... I don't want everyone to look at my contacts and history. How does a normal flash restore the /home partition?

michaaa62 2011-02-18 23:08

Re: Making a chroot
 
then you might copy all the content from /chroot/etc/skel/ to /chroot/home/user, create it if it does not exist. Change the ownership of /home/user with the -R option to 29999:29999.

Nokia 5700 2011-02-18 23:14

Re: Making a chroot
 
Ok, will do that.
Is it so that Maemo will handle making /home/opt?
If so, I guess it's ready soon. :)

michaaa62 2011-02-18 23:46

Re: Making a chroot
 
Quote:

Originally Posted by Nokia 5700 (Post 950149)
Ok, will do that.
Is it so that Maemo will handle making /home/opt?
If so, I guess it's ready soon. :)

With 2GB of chroot-rootfs there is no need for optification, so it should not make any difference, if the applications are on the maemo place /home/opt/... or the linux path /usr/...
At least that is may opinion:confused:

Nokia 5700 2011-02-19 00:00

Re: Making a chroot
 
Quote:

Originally Posted by michaaa62 (Post 950165)
With 2GB of chroot-rootfs there is no need for optification, so it should not make any difference, if the applications are on the maemo place /home/opt/... or the linux path /usr/...
At least that is may opinion:confused:

Im just thinking about apps that are made for /home/opt, like games and such. But i think it will work like normal if DPKG is okay.

Nokia 5700 2011-02-19 01:06

Re: Making a chroot
 
Good news! I've successfully chrooted into the image! :D
Xterm-commands work like normal, and there is no way to interfere with the OS that is on the device.
Now i'll have to do some tweaking, and it will be ready to spin for X11.
And when i know it can run X11 on Xephyr... we're burning some tires...

Uhm... how do i setup Xephyr and the boot process?

michaaa62 2011-02-19 11:46

Re: Making a chroot
 
I dont get it quite? Are you having the chroot on your PC or on the N900 itself. There is no xephyr package available for the N900, as far as i know.

MiK546 2011-02-19 12:12

Re: Making a chroot
 
Quote:

Originally Posted by Nokia 5700
Good news! I've successfully chrooted into the image!
Xterm-commands work like normal, and there is no way to interfere with the OS that is on the device.
Now i'll have to do some tweaking, and it will be ready to spin for X11.
And when i know it can run X11 on Xephyr... we're burning some tires...

Uhm... how do i setup Xephyr and the boot process?

Maybe you could get some help from how easy-debian does things (or the chroot script from here).

Nokia 5700 2011-02-20 12:03

Re: Making a chroot
 
So, I'm obviously not the right person to set up Xephyr and all that. I dont understand all the advanced features of Xterm, so...
I have uploaded the image to MediaFire in an archive. i recommend extracting on your desktop and transferring. (it's 170Mb from 2Gb. High compression.)
http://www.mediafire.com/?iht9hje5z8jf2ci
If you want to experiment with it, go ahead. ;)


All times are GMT. The time now is 07:37.

vBulletin® Version 3.8.8