|
Page 8 of 9 |
|
Prev |
6 7 8
9
|
Next
Re: Running Debian in a chroot
So have you (qole, or actually anyone) tested that yet with a non-broken iceweasel? I'd like to know if it's working correctly.
(And I think I may have been a bit over-the-top with that post, actually. I'd forgotten about posting that when I went to set up my own chroot scripts from scratch on a clean flash (I was off-line, and hadn't got my backups handy), and even having looked at and tweaked your version previously, I only got perhaps over half the mounts and file clones right before I gave up a couple hours later. Major hat-tip for your success!) |
Re: Running Debian in a chroot
Quote:
(...I won't ask what you've clobbered now... :rolleyes:) |
Re: Running Debian in a chroot
EDIT: Script attachment removed. See below for better scripts.
Ok, here are the new chroot scripts for beta testing. The big news is that the chroot script is now BOOTABLE-DEBIAN-SAFE. I have taken out all of the file copy commands and put them into a separate script, called "synchroot" which makes a unique backup of all copied files. This script is only run when the user creates an empty file called ~/.synchroot (which is deleted when the script completes). This way, the files are only copied into the chroot when the user requests it, which may be never, in the case of those with custom setups. This will allow you to chroot into your OS2007 partition, for example, or into your bootable beta3 partition, without worrying about copying over any files. All you do is modify your ~/.chroot file. I have also included a closechroot script, which closes all chroot apps and unmounts the chroot. This is useful for changing chroots, etc. This also includes Benson's fixed debbie script. |
Re: Running Debian in a chroot
Quote:
Code:
ls: [0-9]*/root: No such file or directory |
Re: Running Debian in a chroot
Quote:
|
Re: Running Debian in a chroot
Quote:
EDIT: Thanks for the tip! I figured it out, it is really straightforward and "non-voodoo" :D Code:
fuser -m "$CHROOT" -kEDIT2: For those of you trying this at home: DO NOT RUN THIS IF YOUR CHROOT IS NOT MOUNTED! The fuser command will say, "Oh, I need to kill all processes in the filesystem that the empty /debian directory is in. That would seem to be, um, everything." :eek: |
Re: Running Debian in a chroot
1 Attachment(s)
HOORAY!
Here are even better scripts. I have fixed closechroot so it works every time (thanks Stskeeps!), and, thanks to a new USB drive, I finally cleaned up the external device mounting routine in debian; now it gets the list of devices mounted under /media and mounts them all in Debian, creating the directory if needed first. I believe that this closes the "FIXME" that Benson put on this section of the script. Code:
#Any external devicesEverything I said above applies here, too: Quote:
|
Re: Running Debian in a chroot
I guess the next thing to do is make the debian script check to see if $CHROOT and other variables are already there (perhaps set before running the script), and if they are, use those values. It would need to be crafted such that you could define one or more variables and only undefined variables are retrieved from the ~/.chroot file. However it is done, it would have to also be integrated into the closechroot script... Also, the "chroot-complete" marker file would have to be chroot-specific, so the debian script will properly mount multiple chroots.
I would like to be able to do something like: Code:
sudo 'CHROOT=/debian IMGFILE=/dev/mmcblk0p4 debbie iceweasel'And then, later, I could do... Code:
'CHROOT=/os2007 IMGFILE=/dev/mmcblk0p3 debbie xmame froggers.zip' |
Re: Running Debian in a chroot
Ok, found another problem... Tried to use the scripts to mount the internal flash. It doesn't know the jffs2 file system type, so it falls back to ext2. Sigh...
WORKAROUND: mount the partition ahead of time, then run the script. It fails to mount, but it is already mounted, so the chroot proceeds as normal. |
Re: Running Debian in a chroot
Hi all. I'm trying to track down some digitizer errors (presses not registering, presses registering in the wrong place) and would like to uninstall Debian. Can I just do it through the application manager, or do I need to do anything fancy?
|
Re: Running Debian in a chroot
Quote:
|
Re: Running Debian in a chroot
Quote:
|
Re: Running Debian in a chroot
I need to make the scripts non-dependent on gxmessage, too, it would seem. I forgot about gxmessage when I suggested that people use it to fix the broken Diablo SSU.
|
Re: Running Debian in a chroot
Quote:
Quote:
Benson, can you help out here? How do you get scrollbars in Xnest? |
Re: Running Debian in a chroot
I remember I used to "use" Xnest with scrollbars, and I thought the scrollbars came from Xnest. Of course, I never really did have much use for it; just cool to run a different desktop environment in there.
Maybe what I'm really remembering is running an Xnest in FVWM2, which can toss scrollbars on any window. It was some years ago last I messed with it, so that's a likely explanation. Sorry about the false lead. :o |
Re: Running Debian in a chroot
Drat! I was really excited there for a while. Scrollbars would be so cool. I would love to have a big virtual desktop with a vertical scrollbar, just like I do with VNC.
|
Re: Running Debian in a chroot
Wouldn't a virtual desktop still be possible without scrollbars?? You'd have to click and drag to move the mouse but the screen should move with the mouse... same as a virtual desktop on a full size computer..
|
Re: Running Debian in a chroot
Quote:
Doesn't one of the alternative OS projects have a Xomap that's X.org based or the likes? I heard a rumour that Freemantle might have this.. |
Re: Running Debian in a chroot
What lightweight WMs provide that virtual desktop functionality? How do you activate it?
|
Re: Running Debian in a chroot
Meh, Xnest is even flakier than Xephyr. The mouse pointer keeps wanting to move windows instead of select buttons or menus or whatever... Very frustrating! And it doesn't even have a third axis (pressure) listed for its pointer. At least Xephyr taunts and teases me by offering a third axis in pressure-sensitive apps... but then ignoring it.
I contacted Xephyr's writer about this: Quote:
|
Re: Running Debian in a chroot
I tried passing -screen 1024x768@96 to Xomap just to see what happens :D... After about 25 minutes I got to the Enlightenment Splash screen... and 30 minutes after that hadn't moved lol..
Yeah.. that didn't work :). And now that I pulled the battery to shut off it wont boot into it anymore with the fsck enabled lol. So I had to modify the /etc/fstab so it doesn't fsck on boot until I can fix that. |
Re: Running Debian in a chroot
Yeah, I think all you did there was make a really big physical X-Server, that went off the screen somewhere into the dark reaches of null-space.
What we need is a WM that handles a big virtual desktop. I suspect that fvwm2 probably does (I mean, it has Virtual in the name, right?) and I'm sure that metacity/Gnome can do it... How, I don't know... Drat, packages.debian.org is unresponsive for me right now, that's how I search for these things. From the FVWM manual: Quote:
Quote:
|
Re: Running Debian in a chroot
FVWM probably sounds like the way to go... I was trying to figure out how to do it with Xomap or Xephyr but there isn't a lot of document on their CLI options that I can find..
I just want my Xorg >.>. |
Re: Running Debian in a chroot
And the nice thing is that if I go with fvwm (which, so far, I like better than IceWM) I can "borrow" stuff from other places.
(hmm, for some reason I can't find the post where coffeedrinker posts some details of how he integrated the fvwm desktop and the OS2008 panels) |
Re: Running Debian in a chroot
Quote:
I figured out the easy way of stopping matchbox, which was the hardest bit (for me). Mostly it just works. Oh, here it is: Quote:
|
Re: Running Debian in a chroot
Hey yeah, that's the thread I was looking for! I'll
At this point, I'm thinking fvwm2 is probably the icewm replacement for the final Easy Debian image file. Benson, or someone else proficient in fvwm, could you help me get a config that has six desktops (2 high x 3 wide), with a tiny desktop switcher that sits tightly in the bottom right corner, and a nice theme with minimal window dressings (thin top bar, especially)? Perhaps some kind of thin launcher / status panel against the left or right side, too... |
Re: Running Debian in a chroot
(I guess someone who'd do this would use Debian instead of ITOS so I ask this here.)
I wonder if anyone is using the NIT primarily for CLI, and what kind of modifications were made to make it running for this purpose easier. For example, I find the large font in osso-terminal together with the resolution difficult to deal with. |
Re: Running Debian in a chroot
For Maemo I lowered the font settings by going into Menu->Tools->Settings.. 10 or 12 are more legible.
For Debian pretty much all of the default terminal's are pretty small and easier to read. Isn't much we can do about the resolution yet.. until one of us put all our attention into the "virtual" desktop that was being mentioned in Easy Debian's arena. I also find for advanced and long sessions either a USB keyboard (with adapter) or a BT keyboard is much preferred over the default on-screen or N810 hardware keyboard. |
Re: Running Debian in a chroot
Wow I had not thought about lowering the font size yet thank you very much! :)
I put at 12. 10 was barily readable. However in the case where space is important, it might be temporarily doable. I found this post from qwerty12: Some tiny osso-xterm mods... he provides a way to easily lower or increase the font size. That might be useful. I'll look into the keyboard thing. I don't like to replace batteries though, its another point of failure and they keep costing money (and bad for environment). I'm also afraid the keyboard won't be supported well, while the Nokia SU-8W goes for approx 90 EUR which is a lot of money for a simple keyboard. I'm seriously considering abolishing X and using screen and ssh solely on my NIT (using 'Debian'). The only thing I can think of I'd be missing would be pictures while browsing. I guess I'd need a framebuffer for that. Another thing I'd miss would be Navicore, but I don't like this application anyway, and will probably use a Nokia phone for this purpose in the near future. RSS would be perfect in console, and all kind of statistics as well. Besides, the applications keep running on a remote server. Add to that that the device becomes suitable to administer servers, with convenient copy/paste. Although maybe a very lightweight WM is also an option. Has anyone here gone through this path? |
Re: Running Debian in a chroot
Quote:
I use a foldable plexi one that you can roll up (think Live Free or Die Hard)... I wouldn't recommend them.. sure they are portable and mobile but pressing the keys on them become a pain (you have to hit straight down.. pushing on the sides won't work.. slows me down a bit). Still.. I use it over the hardware keyboard on the N810. |
Re: Running Debian in a chroot
Quote:
I've got two BT boards: an iGo BT, which is nice for walking around on account of the rigid locking, but is insanely cramped. I've also got a Palm 3245WW, which is a full 5-row, and works better on a desk. (The iGo rocks back and forth, as the ends are not supported.) Both of them work fine; I'm not sure what sort of support you're concerned about. |
Re: Running Debian in a chroot
How does an OTG adapter take any less power than the Lesbie? You still need to power the USB keyboard which will drain the battery of the NIT. I don't see that as a "better" option?? Just same option with different dongles... What am I missing? The reason I went the Lesbie route is $5 for a lesbie or $20+ for a OTG Adapter/Mini-Micro converter.. more money and I saw no gain..
I think the only way you can avoid the battery drain is a powered USB hub .. either powered via Battery (back to batteries) or the Wall (in which case you could just plug in the NIT). |
Re: Running Debian in a chroot
No, the BT was the option that avoids that; the OTG adapter eliminates fooling with software (so I can connect the keyboard and start working without un-fullscreening), and reduces the amount of cable to manage.
Sorry for the confusion. :o |
Re: Running Debian in a chroot
Ha! Lesbie adapter. I am SO using that term from now on.
|
Re: Running Debian in a chroot
As I'm building my Easy Debian Final image, I'm making backups along the way.
Here is a Debian Lenny root filesystem, suitable for chroot (a dedicated partition or an empty image file), all set up for installing lots of software with no hassles. Locales are installed and I've hacked and pinned hal and dbus, so they won't cause you any problems. The tarball is quite small, relatively speaking, only 54 MB. basic-debian-chroot-fs.tar.bz2 EDIT: Please note, you must run "apt-get update" after chrooting and before continuing. I have included fatalsaint's repository (and key) in this version, too. This version also has the default distro set to "Lenny" so, unless the program is not in Lenny, apt-get will always download the "safer" Lenny version. |
Re: Running Debian in a chroot
1 Attachment(s)
Here are the chroot scripts that I'm using in Easy Debian Final. There are a couple of added speed hacks, some OpenOffice-related vars, and some other tweaks.
The /usr/bin/debbie script that was heavily modded by Benson is included. This also includes the closechroot and synchroot scripts. They have proved very useful to me. The .chroot file has a couple of example lines added for the image file. They are actual Debian partitions on my system :) I've also attached a copyright notice and a GPL header to /sbin/debian, the core chroot script. Just to make it more like a Real Application. Benson, if you'd like some credit here, speak up! If you use these scripts, especially /sbin/debian, in your own projects, please give some credit, and remember, the GPL requires that you make the modified code GPL as well. |
Re: Running Debian in a chroot
I'm fine with GPL for whatever I've contributed, but kinda like having things on a "no-credit, no-blame" basis. ;) Thanks for the offer, though!
|
Re: Running Debian in a chroot
I will likely include this GPL in Cdeb2 when i release it, since it does use a hacked-up version of debbie (now cuser) and synkchroot (now csynk). Even if the other 90% of the code that makes up cdeb2 was written by me :p.
Btw, i'm allmost rety to release cdeb2~ still am doing some final tweeks here and there, also i am still working on image support.... But it won't be long before it is complete. :) |
Re: Running Debian in a chroot
I must say...i tries this again today with deblet and lxde... running maemo side by side with debian really is the best of all worlds. Mplayer even worked in debian lol...full screen and all. Definitely missing something for the wm on deblet.
Good job again qole..these scripts are quite cool. |
Re: Running Debian in a chroot
Quote:
|
| All times are GMT. The time now is 22:53. |
Page 8 of 9 |
|
Prev |
6 7 8
9
|
Next
vBulletin® Version 3.8.8