![]() |
Re: Easy Debian Fremantle Beta Testing
Quote:
/Estel |
Re: Easy Debian Fremantle Beta Testing
Quote:
http://talk.maemo.org/showpost.php?p...postcount=2924 |
Re: Easy Debian Fremantle Beta Testing
Yes, testing is not applicable to Wheezy. I removed it and after that apt worked fine. I think it was in one of the preferences files that confused apt but I don't remember which one. There aren't that many of them anyway, just have a look around.
You yourself mentioned that Chromium was broken in Wheezy because of some downstream bugs. I don't use Chromium so I never noticed. |
Re: Easy Debian Fremantle Beta Testing
Thanks, I'll try to find this myself. As for chromium, I'm talking about squeeze one, of course.
// Edit OK; now I feel ashamed - offending entry about Testing was in /etc/apt/apt.conf. removing file (or it's content) did the trick. Quote:
It turned out, that I had spurious file /var/lock/qmount-complete in my ED backup image (which I used to extract ED from). Normally, this file would be deleted on closing chroot, but due to it's existence (and content, originating from using dedicated partition and mounting it as /.debian), qchroot got confused, and skipped whole part of script, responsible for mounting hardware, dbus, and friends. In itself, it wouldn't be big deal, as spurious file would get deleted on closing chroot, and new one (with correct content) would be created on new start of ED (i closed and opened it many times). Hoever, here interfered effect of my stupid idea, to unpack ED into /home/.debian, yet, create symlink pointing to it, from /.debian - and use the latter as chroot dir. Yea, I have no idea what I was thinking yesterday - this was completely unnecessary complication, and only reason for it, was that I was using /.debian as mount point for dedicated partition in past, and had it already in .chroot config file. Instead of just changing it to /home/.debian, I created mess by symlinking :stupid: (which was more work than just fixing it in config, anyway, especially, that I had to put "none" for IMG= in config, no matter what...) Even leaving my stupid idea aside, it *should* work, and worked for most things, *except* for what it was intended for ;) (Maemo knew about symlink, but ED couldn't from it's chroot jail, so, despite having all things mounted to /.debian/*, /home/.debian couldn't use it), *and* closechroot. Method of unmounting things in the latter isn't bulletproof enough to determine symlinks - it checks /proc/mounts for names containing path to chroot (which was symlink), while /proc/mounts have symlinks targets listed there, not symlinks themselves (obviously). This left me with whole lotta mess of remaining "ghost mounts". I cleared all of it, got rid of symlink, and voila, everything works. Lesson earned - really think twice, before getting such stupid ideas s symlinking chroot dir :P --- The plus is that, while searching for case, I went through reading all ED (and, generally, easy-chroot) components - refreshing my idea about what is there, and what isn't. It seems, that my knowledge raised much since last time I've seen them - this time, I wasn't having problems understanding what is going on and why (which explains, how pitifully low my level of understanding was back then, few months ago :P ). As a result, I fixed some routines that were less-than-bulletproof, some trivialities, and added new functionality here or there (like ability to define custom string of filesystem options in .chroot config file, instead of hard-coding it into easy-chroot's guts, everytime we want to use dedicated partition with some optimized mount-time parameters. IF autobuilder is going to ever start working again, I'll try packaging it up, and releasing first update to easy-debian main package in a years (wooho!). Of course, my little tweaking is just an addition - mostly, it will contain various bugfixes scattered around this thread (like the ones allowing to seamlessly using directory for chroot, instead of dedicated partition or IMG file.) /Estel |
Re: Easy Debian Fremantle Beta Testing
How to get gprs working in ed??
|
Re: Easy Debian Fremantle Beta Testing
Have you actually tried before asking this? It works out of the box, as soon as you enable it in Maemo. As long as ED is working as it should.
|
Re: Easy Debian Fremantle Beta Testing
Estel & other devs: What about making a minimal image (max 1GB)? It'd contain only the must stuff (apt, lxde) but no gimps & etc. from Deb Squeeze (as it's latest stable on n900)
|
Re: Easy Debian Fremantle Beta Testing
There is a barebone image (about 50 MB), just search the thread. I would look it up for you but I am typing this from my N900. Starting from that, I installed just Iceweasel and Office and grew to just around 300 MB. In a directory under /home. No extra partitions or whatever. There were some small issues, check a few pages back to see my solutions.
|
Re: Easy Debian Fremantle Beta Testing
I'm using directory-based ED without any problems, but noticed funny glitch. The thing is that, I used to call "debbie exit" from /etc/event.d/ script at boot, just to have ED mounted all the time (and avoid partition mounting delay, when I want to do something in ED quickly). It worked flawlessly.
Now, using directory based ED, it *always* produce borked chroot - everything seems fine, except that no hardware/system is mount/bind. If i close ED and open it again (even via the same 'debbie exit'), it mounts just fine. Not that it matters anymore, as using directory based chroot, there is 0 (zero) delay in ED startup, even if closed "to bare ground". I'm just curious - I wasn't able to find anything in qchroot scripts, that would explain different behavior when called from event.d, than executed normally. Or, why it acts differently, when using directory, instead of separate partition. /Estel |
Re: Easy Debian Fremantle Beta Testing
My first instinct was timing but since you say it worked then that must be off. Except - your ED directory is somewhere under /home, right? Perhaps you try to automount ED before /home is mounted. It worked when ED was on its own partition because the timing didn't matter. Just a speculation, I'm sure you've considered that already.
I too was considering automounting ED on boot but decided against because of the mess it makes in mass storage mode. |
Re: Easy Debian Fremantle Beta Testing
pichlo: you should gather all the information about directory based chroot in one place - otherwise it'll all become practically lost (when ed thread becomes 350 pages long. A new thread for the tutorial would be the best. I might help with packaging if you decide to push dir ed scripts to devel.
Is the barebone image this one: http://qole.org/files/basic-debian-chroot-fs.tar.bz2 ? |
Re: Easy Debian Fremantle Beta Testing
Yup, that's the one. Note that unlike all other images which are literally that, images that you can mount, this one needs unpacking into a prepared space, be it an image, partition or a directory.
My and Estel's experience with directory based ED is summarized in the (currently) last three or four pages. I never thought about creating a new thread for that. It seems appropriate to talk about it here and frankly, I was not expecting much interest from anyone except the die-hard geeks. |
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
There was a plan to start new thread (as it's not beta, anymore), after releasing fully working Wheezy image. In last few pages, I've also mentioned, that I gathered all fixes to qchroot&friends from last few months, added my minor tweaks (to fix stupid things like mounting Maemo's /home/user, then unmounting it again 0.5 second later), and I'm planning to release updated ED package into repos.
Now, the problem with Wheezy, is that it contains shitload of problems re ARM, that mainstream doesn't seem to be interested in fixing. Particularly, gparted spazms out due to glibc error: Code:
*** glibc detected *** /usr/sbin/gpartedbin: free(): invalid pointer: 0x40c67514 *** There are also smaller, but irritating things, like GIMP crashing on text input brush, or chromium not working at all (I'm using Squeeze one in Wheezy, as workaround). The latter for sure applies to whole ARM, not only our humble case, and is present+untouched (by mainstream) for AGES. --- Now, this probably could be work-arounded by doing some strange Squeeze-Wheezy mix (downgrading glibc, altering dependencies, maybe recompiling some things to use older component), but we already had it with lenny/squeeze mix at ED origins, and I'm not going to even come close to trying it, again. Currently, I'm rather considering downgrading to Squeeze as a whole (mainly, due to this glibc problem, other thing are workaroundable by downgrading particular programs).. /Estel // Edit Quote:
Code:
/sys on /home/.debian/sys type bind (bind,rbind) What made me curious, is that those things shouldn't behave differently with partition or directory based ED *at all*. It's no a real problem, as I said, just... strange. BTW, pichlo, I'm pretty sure, that you underestimate impact of your directory-based ED ressurecting :) Many people were using partition-based ED (as opposed to image file-based), for performance reasons. For sure, just like I advocated it in the past, I'm going to do so with directory-based one. There is simply no reason to do separate partition, now* - directory is superior in every way. *except for fact, that filesystem corruptions caused by N900 unexpected reboots, during ED usage, would result in ED separate partition corruption (most likely) *only*, while having it on /dev/mmcblk0p2 means corrupting home filesystem, *if* corruption happens. But, in reality, it is not as dangerous as it sounds - in such cases (just like with separate partition for ED), only ED directory entries may get corrupted (in cases, where real Maemo home entries get spoiled too, even separate partition wouldn't help). So, backuping OptFS and restoring it on mkfs'ed p2 (backupmenu way) works 100% reliably (and we need to just nuke chroot dir, and restore it from backup, like with every else normal file/directory). Benefits due to space-savings clearly outweight it. /Estel |
Re: Easy Debian Fremantle Beta Testing
I have a small problem - 3,73GB sd card with one fat and two swap partitions as recomended in flopswap. This gives me 2216mb for ED. Estels image is to big. I have tried to download Sulus image and install open office in it but failed after some error. So I have decided to download the smalles file which marmistrz was talking about. When trying to extract the file to fat32 partition is says the the file system doesn't cover symbolic links. I have tried to use other file systems but no luck. Generally speaking I would need jus ED with open office or libre office. Other programs are not needed and never used. Any hints how to do it? noob hints I mean
|
Re: Easy Debian Fremantle Beta Testing
Sounds like you could:
a) use directory-based ED on your home (best performance) b) put image under MyDocs, then shrink it by uninstalling what you don't need c) use 8GB sd cards, they're cheap as ice nowadays (3$ or so on polish wannabe-ebay auction site - heck, I bought mine 32GB Sandisk class 4 for 16$ inc. shipping). |
Re: Easy Debian Fremantle Beta Testing
Is the ED squeeze sources.list somewhat different than for desktop?
|
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
Quote:
If i were You, I would got for a directory-based design, anyway - the faster you switch to a better option, the more performance you get. And if willing to use LibreOffice (I don't recommend depreciated OpenOffice, which is now more corporate than FOSS, in spirit), using image-based ED will hurt your performance a LOT (few people made comparisons, buried somewhere in this thread - differences were more than noticeable). /Estel |
Re: Easy Debian Fremantle Beta Testing
As recomended I have formated the parition to ext3. Now I could copy all the files from my pc but trying to start ED gives me "you have no debian.img.ext2 file on your memory card". I have tried to search what does it mean to "use it as partition-base ED" but came out with nothing.
|
Re: Easy Debian Fremantle Beta Testing
@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.
|
Re: Easy Debian Fremantle Beta Testing
I have found the file:
Code:
# Sample config for chroot As I understand I have to change to ext3 but that is all |
Re: Easy Debian Fremantle Beta Testing
Code:
# Sample config for chroot |
Re: Easy Debian Fremantle Beta Testing
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 @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. |
Re: Easy Debian Fremantle Beta Testing
Quote:
-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 Could someone help? |
Re: Easy Debian Fremantle Beta Testing
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. |
Re: Easy Debian Fremantle Beta Testing
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.
|
Re: Easy Debian Fremantle Beta Testing
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.
|
Re: Easy Debian Fremantle Beta Testing
Quote:
*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 |
Re: Easy Debian Fremantle Beta Testing
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.
|
Re: Easy Debian Fremantle Beta Testing
Estel & Pichlo - thank you for your advice. I'm downloading Estel image (which I was using previously with great sucess).
Estel - if I understand it corect I should download the image, put it in MyDocs and then remove unwanted software to shrink it? Should I do it with provided synaptics? Which packages to remove to shrink it to about 2,1GB? Libre and Chromium are must. Gimp would be nice :) If I uninstall the software how to extract everything from the image so I can put it into the partition on sd? Should I do it on my lubuntu with some archive manager? |
Re: Easy Debian Fremantle Beta Testing
You may install/uninstall using synaptic, aptitude, or apt-get - it doesn't matter, as long as you're doing it from inside ED. As for which packages, I have no idea, as what is "essential" wary from person to person.
As for extracting image after shrinking it - you may do it all from N900. You need to mount it first, then, you may copy it's content (which imply mounting your to-be debian partition, too. Be sure to close ED chroot, first! Then for example, do: Code:
mkdir /tmp/debian-temp Remember, than any names I used are just mockup - for /tmp/ directory, you may create it with whichever name you want. /dev/mmcblk1p1 assumes, that it is your ext3 partition on SD card - if not, change it accordingly. OTOH, if you're gonna tell me that you don't have "your-easy-debian-image-file.ext3" on MyDocs, or that "#after copying ends" command return errors, a bunny will die ;) (excuse poor pun, don't take it to the heart). /Estel |
Re: Easy Debian Fremantle Beta Testing
Estel - no bad fealings ;) Will give it a shot.
I thought that ED and swap on SD was a good idea and ti would be faster then on emmc. |
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
Well, I used the barebone image, upgraded to squeeze, installed lxde-core and xserver-xephyr (+gnumeric) and now am trying to fire up lxde.
Changed startlxde1 to startlxde in /usr/bin/debian-lxde But the display is blank. The log is: http://pastebin.com/G9eVGUr1 Any ideas why it's happening? /edit: is there any squeeze barebone image? there are some problems like fopen on man-db which should be fixed in newer releases |
Re: Easy Debian Fremantle Beta Testing
Estel. I ahve tried both as normal user and as root:
Code:
usyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash) |
Re: Easy Debian Fremantle Beta Testing
Please read on the mount syntax. Particularly this bit:
(ii) When mounting a file system mentioned in fstab, it suffices to give only the device, or only the mount point. Your image is not in fstab so you need to specify all operands. Try something like this as root for size: mount -t ext3 /home/user/MyDocs/debian-m5-estel.img.ext3 /.debian (Assuming /.debian exists and is where you want the image mounted. You can use any directory but I recommend using an empty directory to avoid issues.) |
Re: Easy Debian Fremantle Beta Testing
Hmmm I do not know much about commands but correct me if I' wrong:
mkdir /tmp/debian-temp - this makes the folder in tmp just for purpouse of copying mount /home/user/MyDocs/your-easy-debian-image-file.ext3 - this mounts the image /tmp/debian-temp - this moves me form / to debian-temp mount /dev/mmcblk1p1 /.debian - this mounts the sd card cp -a /tmp/debian-temp/* /.debian/ - this is copying files from temp to sd but what files as no command has copied any files to debian-temp? |
Re: Easy Debian Fremantle Beta Testing
Quote:
|
Re: Easy Debian Fremantle Beta Testing
Dang - I thought that this is a new line - it looked like this in Estels post.
Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash) |
All times are GMT. The time now is 16:39. |
vBulletin® Version 3.8.8