Active Topics

 


Reply
Thread Tools
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#2941
@fw190, you may need to edit /home/user/.chroot (if I got the path right, I don't have ED installed right now to check). The file is well commented so it's easy to figure out what to do.
 

The Following 2 Users Say Thank You to pichlo For This Useful Post:
fw190's Avatar
Posts: 584 | Thanked: 700 times | Joined on Jan 2010
#2942
I have found the file:

Code:
# Sample config for chroot 

# Device or image containing Debian filesystem.
# Default: first in /home/user/MyDocs/debian*.img*, /media/mmc1/debian*.img*
# Some examples:
#IMGFILE=/home/user/MyDocs/debian-squeeze-m5.img.ext2
#IMGFILE=/media/mmc1/debian-squeeze-m5.img.ext2
#IMGFILE=/dev/mmcblk1p2
#IMGFILE=/dev/mmcblk0p4

# Filesystem used; must always be set when using a partition.
# Default: from extension of IMGFILE, or ext2.
#IMGFS=ext2

# Mount point for Debian.
# Default: /debian
CHROOT=/.debian

# New /tmp dir size for printing / PDF creation
# Default: 6M
#TMPSIZE=6M

# Debian user to drop privileges
# Default: user
#DEBUSER=user
Now how to tweak it to have it working?

As I understand I have to change to ext3 but that is all
__________________
per ardua ad astra
 

The Following User Says Thank You to fw190 For This Useful Post:
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#2943
Code:
# Sample config for chroot 

# Device or image containing Debian filesystem.
# Default: first in /home/user/MyDocs/debian*.img*, /media/mmc1/debian*.img*
# Some examples:
#IMGFILE=/home/user/MyDocs/debian-squeeze-m5.img.ext2
#IMGFILE=/media/mmc1/debian-squeeze-m5.img.ext2
IMGFILE=/dev/mmcblk1p1
#IMGFILE=/dev/mmcblk0p4

# Filesystem used; must always be set when using a partition.
# Default: from extension of IMGFILE, or ext2.
IMGFS=ext3

# Mount point for Debian.
# Default: /debian
CHROOT=/.debian

# New /tmp dir size for printing / PDF creation
# Default: 6M
#TMPSIZE=6M

# Debian user to drop privileges
# Default: user
#DEBUSER=user
Assuming your ext3 partition is mmcblk1p1. Substitute as necessary.
 

The Following User Says Thank You to pichlo For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#2944
Posting here the sources.list of Estel's squeeze in case anyone needs it (so that dl of the image isn't necessary)

Code:
# deb http://http.us.debian.org/debian lenny main
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://ftp.pl.debian.org/debian squeeze main
#deb http://ftp.de.debian.org/debian wheezy main
#deb http://http.us.debian.org/debian squeeze main
#deb http://security.us.debian.org/ lenny/updates main
deb http://security.debian.org/ squeeze/updates main
#deb http://www.debian-multimedia.org lenny main
deb http://www.debian-multimedia.org squeeze main
#deb http://www.debian-multimedia.org sid main
#deb http://http.us.debian.org/debian experimental main
#deb http://packages.tspre.org squeeze main
#deb http://packages.tspre.org sid main
#deb-src http://http.us.debian.org/debian lenny main
#deb-src http://http.us.debian.org/debian squeeze main
#deb-src http://http.us.debian.org/debian sid main
/edit:

@Estel: why did you comment out
Code:
deb http://packages.tspre.org squeeze main
?

/edit2: well, this one is down. As well as debian-multimedia isn't working.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-07-02 at 11:34.
 

The Following User Says Thank You to marmistrz For This Useful Post:
fw190's Avatar
Posts: 584 | Thanked: 700 times | Joined on Jan 2010
#2945
Originally Posted by pichlo View Post
Code:
# Sample config for chroot 

# Device or image containing Debian filesystem.
# Default: first in /home/user/MyDocs/debian*.img*, /media/mmc1/debian*.img*
# Some examples:
#IMGFILE=/home/user/MyDocs/debian-squeeze-m5.img.ext2
#IMGFILE=/media/mmc1/debian-squeeze-m5.img.ext2
IMGFILE=/dev/mmcblk1p1
#IMGFILE=/dev/mmcblk0p4

# Filesystem used; must always be set when using a partition.
# Default: from extension of IMGFILE, or ext2.
IMGFS=ext3

# Mount point for Debian.
# Default: /debian
CHROOT=/.debian

# New /tmp dir size for printing / PDF creation
# Default: 6M
#TMPSIZE=6M

# Debian user to drop privileges
# Default: user
#DEBUSER=user
Assuming your ext3 partition is mmcblk1p1. Substitute as necessary.
Here is what I did:
-I have ext3 and two swap on my uSD card
-I have downloaded debian-5-chroot-rootfs.tar.bz2
-extracted it to ext3 partition on my sd card (not to a folder - jus on the card)
-I have put the chroot file as you wrote in the apropriate place

While trying to start lxde with icon in menu nothing happens. This means I did something wrong or missed a step or two.

I can start Debian chroot which gives:
Code:
Chroot dir specified: /.debian
/dev/mmcblk1p1 specified in ~/.chroot
Mounting...
using device: /dev/mmcblk1p1
Using ext3 file system
mounting device: /dev/mmcblk1p1
.
..
...
....
mount: mounting /var/run/pulse on /.debian/var/run/pulse failed: No such file or directory
Everything set up, running chroot...
[root@chroot: /]
Also after inserting the card the cpu is running like mad. Could this be the tracker?

Could someone help?
__________________
per ardua ad astra

Last edited by fw190; 2013-06-30 at 17:59.
 
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#2946
I'm sorry, fw190, but seriously, what did you expect in 54MB? A golden watch with a water feature? It's a barebone image, meaning you have nothing but the very basic components. Which means basically just the terminal, apt to install additional ppackages and their dependencies (except, IIRC, it was not quite as barebone as I would have liked, ISTR there were some extra packages already included which I had to remove - but I digress).

It looks like your system is running fine. The chroot works and you get a command-line prompt. You drive from there. If you want LXDE, install it. If you want Open/LibreOffice, install it. BTW I suggest starting from editing your /etc/apt/sources.list in your ED root and updating it with current Squeeze (or Wheezy if you feel adventurous) links. I believe the image has not been updated in years and contains some out-of-date hybrid.

I understand that the LXDE or Office icons on the desktop may be a little confusing. That's an unfortunate artifact of ED; Maemo knows nothing about packages you install in ED. So we have to cheat a little and create desktop files manually. Some of them are pre-made for you but it does not mean they point anywhere. For example OpenOffice may need editing to point to LibreOffice or vice versa and you may need to add entries manually for packages that do not have ready-made icons.
 

The Following User Says Thank You to pichlo For This Useful Post:
fw190's Avatar
Posts: 584 | Thanked: 700 times | Joined on Jan 2010
#2947
Hmm maybe I should write it more specific in my post. I have downloaded the 277mb file which after extracting gave more than 800mb and that is why I'm confused that it didn't work with the lxde icon and wrote about it.
__________________
per ardua ad astra
 

The Following 2 Users Say Thank You to fw190 For This Useful Post:
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#2948
Hmm, I have no idea about that one. And I have no way to try out as both my N900s are a bit indisposed right now. Sorry.
 

The Following User Says Thank You to pichlo For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#2949
Originally Posted by fw190 View Post
Code:
mount: mounting /var/run/pulse on /.debian/var/run/pulse failed: No such file or directory
That one is quite self-explanatory - it seems like you don't have (under Maemo) directory /.debian. Create it.

*If* it still doesn't work after that (and error about /.debian/var/run/pulse not existing still shows up), check, if you have /var/run/pule in the package you've downloaded. If not, there is something wrong with it.

Frankly, I have no clue what this debian-5-chroot-rootfs.tar.bz2 thing is - for sure, ti wasn't created by me. I don't know if you, accidentally, haven't decided to try some qole's unfinished WIP chroot content, not meant for end-users.

You should rather try one of provided images (*.ext3 or *.ext2 files), mount it, and extract it content to your partition.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#2950
Having gone down the barebone image route myself, I second Estel's suggestion. It is easier to take one of the finished images (Estel's are the best-polished ones) and remove things you don't need. Once done, just copy the content as it is to your target directory or partition. The ready-made images have a lot of the legwork done already, so you don't have to worry about things like key bindings, screen adjustment and what have you.
 

The Following User Says Thank You to pichlo For This Useful Post:
Reply

Tags
beta, debian, easy debian, extras-devel, fremantle, i <3 qole, squeeze


 
Forum Jump


All times are GMT. The time now is 20:32.