|
Page 19 of 34 |
|
Prev |
9 17 18 19
20 21 29
|
Next
| Last
Re: Running Debian in a chroot
Quote:
|
Re: Running Debian in a chroot
I'd be inclined to have the main scripts read a config file, and have a separate script that can be run on-demand to try generating a config file by looking for debian root filesystems.
|
Re: Running Debian in a chroot
That sounds cool, I look forward to seeing it! I've just learned how to do if-then statements in shell scripts, reading/writing config files is a bit over my head. But if you held my hand...
|
Re: Running Debian in a chroot
Writing's the hard bit, since you have to figure out what to write...
Make your config file look like: Code:
IMAGEFILE=/media/mmc2/debian.imgThen, in your shell script, you include the file with . like so: Code:
#!/bin/shFor writing, you wind up with something like: Code:
#... |
Re: Running Debian in a chroot
Quote:
|
Re: Running Debian in a chroot
I think I will have my chroot script look for the config file, and if it doesn't find one, it will look in a very few specific locations for a specifically named chroot image.
I will then make a new package (called something like advanced-chroot-config) that will use Bundyo's port of Zenity to interact with the user in setting up a variety of options, including using a partition instead of an img file, and then write this to a config file that will then be used by the chroot script. The new package will also include Matan's unmount script for shutting down your chroot so you can switch to a new one, and maybe some other chroot-related utilities if we can think of stuff that would be useful. |
Re: Running Debian in a chroot
Sounds pretty clean from here. Let me know if you run into any trouble with the scripting.
|
Re: Running Debian in a chroot
Does This Work On Nokia 770
|
Re: Resizing the debian.img.ext2 image
Quote:
I've been looking for quite a while for an easy way of installing a full linux distro on my n810, and I must say you guys have done an incredible job. The image of qole is working flawlessly. 1000xthanks I had a question about the partition size. I have a microsd card of 8 GB, most of it I emptied for the debian image of qole. The problem is when I try to install xfce4, I run out of space and it becomes really ugly. So I read this thread (and others) to find a solution and I tried psykosis one but it didn't work. Instead the terminal tells me after this command: /home/user # resize2fs /media/mmc1/debian.img.ext2 1950M resize2fs: error while loading shared libraries: libe2p.so.2: cannot open shared object file: No such file or directory Is this missing library easily installable, is there an other way to resize the image or should I go for a complete personalized chroot install (as it seems you were all doing at the beginning of this thread) ? note: I have been using linux (debian and ubuntu) for quite a while but am not an experienced user at all. So writing python or C code is not really something I can handle It would be nice if someone would have a not too complicated solutions :). Again thank for everything. |
Re: Running Debian in a chroot
UPDATE OF THE PREVIOUS POST:
Finally I found a way around without risking my n810 at all, for anyone interested: what you need: - a computer with linux - resize2fs on it -> to install it ( normally in root or with sudo): --> debian and ubuntu: apt-get install <program> --> gentoo: emerge <program>, I think, it has been a while since I last touched a gentoo box) - optional: SD card reader + adapter to (micro/mini)sd depend of which of the 3 you use. steps: 1. Either connect your IT to your pc or get the card out (caution: do not take it out if in use, safest way to make sure: power off your IT) and put it in the card reader. 2. go in the terminal or if in X launch a terminal emulator 3. type cd /<your path to your (micro/mini)sd/ 4. e2fsck -f <your debian image file name> -> it check if everything is allright with the filesystem 5. resize2fs <your debian image file name> 1950M (As psykosis said you can change the size but if your (micro/mini)sd card is formatted in fat, like mine, the file better not be bigger than 2gb) And that's it, a loooot more room for installing cool apps :) thank you very much for the resize2fs trick psykosis I wouldn't have found it myself. |
| All times are GMT. The time now is 22:53. |
Page 19 of 34 |
|
Prev |
9 17 18 19
20 21 29
|
Next
| Last
vBulletin® Version 3.8.8