maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Debian] ANNOUNCE: Easy Debian Turbo-Charged Edition! (https://talk.maemo.org/showthread.php?t=24272)

meizirkki 2008-10-14 15:00

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by shanti (Post 233459)
Hi, qole! This is really amazing job! Thank you!
But, I have little question: can you make same image, but without OpenOffice, Firefox and Gimp? I think, some users, like me, dont really want this massive applications, but rather just need access to Debain repository.

There already is a "minimum debian rootfs" package, you can make a image file, and extrat minimum rootfs to it. Then you can install only the packages that you want.

Irongeek 2008-10-14 15:35

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
So, I take it removing this is as simple as just uninstalling the package, and deleting the HD image from your flash drive?

Benson 2008-10-14 15:55

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Yes, although you need to make sure the image file is not in use before removing it. "Close Debian" from the menu should do this (run before uninstalling), but the easy, ******ed way to make sure is to reboot after uninstalling the package and before deleting the image.

qole 2008-10-14 17:40

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Easy Debian Without The Apps:

For those who want the only the basic Debian system, you can do things manually. "Easy Debian" without the "Easy" :)
Here is my minimum Debian file system: basic-debian-chroot-fs.tar.bz2 (54MB download)

This is the filesystem I used to build the current Easy Debian package on. It has all of the repositories and basic system packages in place.

You can either put this into a partition, or you can grab the empty image file, extract it to your SD card (eg, /media/mmc1), and then, as root, mount it like so (so you get the turbo speed):
Code:

insmod /lib/modules/2.6.21-omap1/dm-mod.ko
insmod /lib/modules/2.6.21-omap1/dm-loop.ko
dmlosetup loop0 /media/mmc1/debian.img.ext2
mount -t ext2 /dev/dm-0 /debian -o noatime

You can then (still as root) untar the basic Debian rootfs into the /debian directory. Make sure you run closechroot before using "sudo debian," "debbie," or the "Debian chroot" menu icon. Otherwise you might end up with an incomplete chroot.

REMOVING THE IMAGE FILE:

I strongly recommend rebooting the tablet before deleting the image file. From the problems I've been seeing, I think my "Close Debian" menu icon (or "sudo closechroot" command), which worked so well before, is insufficient for the new turbo loop method (see the mount commands above). I will try to remedy this problem in future releases, but that isn't going to help those who wish to purge their SD card of this file, but instead end up needing to reformat...

tolou 2008-10-14 17:51

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
I get a "LXDE is not responding. Close application?" pop-up now and then...
Others for this? Remediation welcome.

qole 2008-10-14 18:00

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by tolou (Post 233516)
I get a "LXDE is not responding. Close application?" pop-up now and then...
Others for this? Remediation welcome.

See the FAQ on the first post:

Q: I get an error box: "LXDE is not responding, Cancel / Ignore"! What do I do?

A:
This is an annoying but harmless error which usually happens when you switch to LXDE from OS2008. Just select "Cancel". When you switch to LXDE, wait a second for this error to come up; if you don't, you might accidentally select "OK" and close the whole thing!

I would love to get rid of this, too, but it seems to be a side effect of using Bundyo's nifty little window opener. Now that Easy Debian is in Extras, and I can use dependencies, I might go back to my Python window opener.

fatalsaint 2008-10-14 18:20

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
I don't know how bundyo made the C program.. but if he makes it "do" something instead of just hang waiting for a command finish.. like print "dots" to no where.. or just a while ($i) loop and watch the process manually in the program.. it should drop that message.

What I think is happening is Bundyo is running a System call that is hanging and just waiting for the command to stop before closing... so Maemo thinks the App is hung, not knowing it was designed that way. I don't recall if Bundyo uploaded the source code.. I never looked at it.

Benson 2008-10-14 18:29

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
The source is posted around here, but 'tis actually Vala, rather than C...

XTC 2008-10-14 18:36

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
I see that this release uses It's own modmap.
Now I can't use TAB by chr+space combo. What's the difference? Maybe I could define my own especially for usb keyboard?

qole 2008-10-14 18:42

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by XTC (Post 233533)
I see that this release uses It's own modmap.
Now I can't use TAB by chr+space combo. What's the difference? Maybe I could define my own especially for usb keyboard?

This project currently uses the Mamona keymap plus fatalsaint's modmap if you have an N810, or just the Mamona keymap if you have an N800. It can be found in the /home/user/.Xmodmap-keymap file. Add or change anything you want to!

EDIT: The thread on fatalsaint's xmodmap has some other keyboard layouts too, if you need an international keyboard layout.

fatalsaint 2008-10-14 18:46

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
To use TAB with my xmodmap file is FN+Backspace.

qwerty12 2008-10-14 18:52

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Bundyo's post with hostwin source.

qole 2008-10-14 19:18

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by qwerty12 (Post 233540)

If anyone can make me a better app, I'll gladly use it in my package. I would really like to be able to display a couple lines of text in the window as well as eliminate that "not responding" problem. While I'm asking for features, I'd love to have the window report its own window ID so that I don't have LXDE trying to start up in a browser window with the Wikipedia entry of LXDE in it.

LordFu 2008-10-14 23:16

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Huh, the image installer couldn't untar/unzip the package. I extracted the ext file on a different machine, moved it back, and all is well, though. I must have broken something, lol.

Nice, though; very nice! I like this new wm; much nicer to look at.

qole 2008-10-14 23:21

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by LordFu (Post 233613)
I like this new wm; much nicer to look at.

Ahem. Desktop Environment, not Window Manager... :D ;)

b-man 2008-10-14 23:35

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
3 Attachment(s)
I'm still working hard on Cdeb2, so far i have about 2/3 of it complete. Currently, i have most of it's framework done, and i am now working on the graphical parts. (settings manager, system notifications, ect..)

Here's a prevuew of what's to come; This is cdeb2's settings manager, witch i am working on right now.

Btw, this is using a hacked-up version of gtkdialog, witch i obtained from the lenny Debian repo.

Irongeek 2008-10-14 23:47

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
I installed the new version, and now it asks me for a password when I run Debian chroot. The password I use to use does not work, how can I reset it?

qole 2008-10-14 23:51

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Irongeek: please see post #27.

Irongeek 2008-10-15 00:01

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Thanks, I'm giving it a shot.

Irongeek 2008-10-15 00:53

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by qole (Post 233312)
The "password problem" is actually a bug in the uninstall script of the previous version.

If you were using a previous version (0.6 or older), or you get this error, please do the following:

1. Uninstall all versions of Easy Debian
2. Reboot
3. Install the new version
4. Reboot
5. Try again to start the system
6. Report back; does this work?


Yep, that did the trick. Thanks

darrennewman@sky.com 2008-10-15 01:34

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by LordFu (Post 233613)
Huh, the image installer couldn't untar/unzip the package. I extracted the ext file on a different machine, moved it back, and all is well, though. I must have broken something, lol.

Nice, though; very nice! I like this new wm; much nicer to look at.

Mine won't install either. Is this the error message you got?

"TAR ERROR

ERROR! ERROR! ERROR!

TAR FAILED!

(MAYBE OUT OF SPACE ERROR)

Unable to install EASY DEBIAN IMAGE FILE"

How did you go about fixing it?

migs 2008-10-15 03:20

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Mine did not install eithier... no errors just stopped downloading and did not extract...

mooler 2008-10-15 04:34

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
are we limited to the MMC capacity or by a limitation of the image?

migs 2008-10-15 04:52

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
I got it working, I guess the first post need to advise that once the file is downloaded, their is no indication that it is extracting. You just need to trust it and wait for the congratulations screen.

Benson 2008-10-15 06:50

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by mooler (Post 233666)
are we limited to the MMC capacity or by a limitation of the image?

Well, you're limited to the size of the image, but you can resize that to fit more, or just use a partition directly if you'd rather. Of course,when using an image file, any filesystem limits on filesize apply as usual, so you may not be able to enlarge it beyond 4GiB.

Bundyo 2008-10-15 07:46

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by fatalsaint (Post 233525)
What I think is happening is Bundyo is running a System call that is hanging and just waiting for the command to stop before closing... so Maemo thinks the App is hung, not knowing it was designed that way.

Yup, i'm making a synced system call which waits for the process to finish before continuing the execution. Didn't expect that maemo will think that the app is hung (My tablet is in RD mode, so i didn't see it either :)

codeMonkey 2008-10-15 08:20

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Holy crap, this is running so nicely now! I haven't tried it since one of the earlier incarnations, and this thing flies.

Nice work!

bongo 2008-10-15 08:26

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Be careful with LXDE and the volume control applet. I killed LXDE twice by using this applet.

Bundyo 2008-10-15 09:18

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Okay, hostwin with 3 parameters is back :)

Usage:
hostwin AppName /usr/bin/program "What should be written inside"

Starts the process asynchronously, watches it and closes itself after it dies. Shows the message too. :)

http://bundyo.org/maemo/hostwin.bz2

Bundyo 2008-10-15 09:26

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
hostwin.vala (fast replacement until i post the whole source):
Code:

using GLib;
using Gtk;
using Gdk;
using Hildon;
using Osso;

public string apptitle;
public string exttext;
public string filename;

static void println (string str) {
        stdout.printf ("%s\n", str);
}

public class mainProgram : Hildon.Program {
        private Hildon.Window window;
        private Label label;
        private Pid pid;
       
        construct {
                window = new Hildon.Window ();
                window.set_icon_from_file ("/usr/share/pixmaps/"+apptitle.down()+".png");
                window.destroy += Gtk.main_quit;
                add_window (window);
               
                label = new Label(exttext);
                window.add(label);

                Environment.set_application_name (apptitle);
                window.map_event += activate;
               
                window.show_all();
        }
               
        private bool activate() {
                string[] buf = new string[1];

                buf[0] = filename;
                Process.spawn_async( null, buf, null, SpawnFlags.DO_NOT_REAP_CHILD, null, out this.pid );
                ChildWatch.add (this.pid, child_exited);
                               
                return false;
        }

        private void child_exited (Pid pid, int status) {
                Gtk.main_quit();
        }

        static int main (string[] args) {
                Osso.Context ctx;

                Gtk.init (ref args);
               
                apptitle = args[1];
                filename = args[2];
                exttext = args[3];
               
                ctx = new Osso.Context(apptitle, "0.2", false, null);
                if (ctx.display_state_on() != Osso.Error.OK)
                    println("Error: Osso Initialize failed.\n");
                   
                var prg = new mainProgram ();
                Gtk.main();
               
                return 0;
        }
}


pton 2008-10-15 10:41

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Anybody got scim fully working in Debian?

I got it working for gtk2 apps like leafpad, gedit where I can hold stylus for right click menu and select the input method to be scim. But for apps like iceweasel, openoffice etc, I can't change the input method. I would like to input Chinese in debian.

Thank you!

Reda 2008-10-15 12:42

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Hi,
Newbie question so apologies in advance. I unistalled the application but I have still have a strange problem with message boxes which appear outside the screen and not centered. Do you know the root cause?
Also, Quiver is not working anymore since I have installed the package.. any idea if it is some dependency i downloaded with the easy debian package or anyway do you know what might be the root cause?

Thanks in advance.

cheve 2008-10-15 12:55

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
all,

I have two questions:
1) Is there a link to the image directly? I would like to download the image from my regular wired connection instead of slow wireless from the tablet.
2) If I got #1 , then would someone one give me a link for install instruction without using the "one-click install" method.

Thanks in advanced.
Cheers

meizirkki 2008-10-15 13:47

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by cheve (Post 233739)
all,

I have two questions:
1) Is there a link to the image directly? I would like to download the image from my regular wired connection instead of slow wireless from the tablet.
2) If I got #1 , then would someone one give me a link for install instruction without using the "one-click install" method.

Thanks in advanced.
Cheers

Images and debs are in qole.maemobox.org

fatalsaint 2008-10-15 13:52

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Bundyo - Very Cool!! I'll replace mine with this ASAP and see how it works.

Thanks!

LordFu 2008-10-15 13:59

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by darrennewman@sky.com (Post 233643)
Mine won't install either. Is this the error message you got?

"TAR ERROR

ERROR! ERROR! ERROR!

TAR FAILED!

(MAYBE OUT OF SPACE ERROR)

Unable to install EASY DEBIAN IMAGE FILE"

How did you go about fixing it?

I copied the tar file to my desktop machine, and unpacked the ext file with winrar. Then I copied the ext file back to the sd card.

I think I've borked maemo bzip, or whatever it's called. Xarchiver isn't working on my N800, either. I haven't had a chance to dig into it. Probably just a matter of reinstalling the packages.

darrennewman@sky.com 2008-10-15 15:12

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Thanks LordFu, I will give it a go.

qole 2008-10-15 16:01

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Well, now I'm going to have to release a new package, with Bundyo's new window opener (to eliminate the LXDE error), Matan's new matchbox window manager (to get rid of the goofy dialogs), and a method for unzipping the package that Matan suggested that will get rid of my need for gnutar as a dependency.

LordFu and darrennewman: Please try this:

Code:

sudo apt-get install --reinstall gnutar bzip2
Please report to me anything that looks like an error.

Benson 2008-10-15 16:12

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by Reda (Post 233738)
Hi,
Newbie question so apologies in advance. I unistalled the application but I have still have a strange problem with message boxes which appear outside the screen and not centered. Do you know the root cause?

Probably because you didn't restart matchbox. The easy way is to reboot.

BTW, that's not a "strange problem" -- it's a known issue, described in the documentation. The options for matchbox window management include a fully-controlled setting, where dialogs are fixed at the center and cannot be moved, and a free-floating setting where they may be dragged around the screen. Unfortunately, the free setting causes them to be initially placed at 0,0. (There's also a version of the matchbox binary with enhanced behavior...)

In the latest version of easy-deb-chroot, this setting may be toggled (and matchbox restarted, to activate the change) from a couple of menu entries. In older versions, it's been always on, but gets reverted when uninstalling. However, manually restarting matchbox is still necessary.

qole 2008-10-15 17:15

Re: ANNOUNCE: Easy Debian Turbo-Charged Edition!
 
Quote:

Originally Posted by Bundyo (Post 233704)
Okay, hostwin with 3 parameters is back :)

Usage:
hostwin AppName /usr/bin/program "What should be written inside"

Starts the process asynchronously, watches it and closes itself after it dies. Shows the message too. :)

http://bundyo.org/maemo/hostwin.bz2

My second parameter used to be: 'sudo debian hilda xephwm LXDE startlxde1'

For this version of the app, I had to create a script (/usr/bin/debwm) with this one line in it.

Other than that, we seem to have a winner! No more annoying error messages! (also, the window isn't blank white anymore; I like that)


All times are GMT. The time now is 10:03.

vBulletin® Version 3.8.8