maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Easy Debian Fremantle Beta Testing (https://talk.maemo.org/showthread.php?t=34550)

magic_doc 2011-12-08 10:00

Re: Easy Debian Fremantle Beta Testing
 
Hello everybody,

first of all thank you for wounderful work, it is amazing!

But I have a question about these two binaries:

Quote:

/sbin/qobi-wmhint-fix
/usr/bin/set-focus
I would like to use the keyboard-focus-hack with xbindkeys completely on maemo because I have an application that runs on maemo quite well but has this keyboard-focus issue.
I can install xbindkeys in maemo as well, but when I use the two commands I copied from the chroot, I get this errors:

Quote:

/sbin/qobi-wmhint-fix: relocation error: /sbin/qobi-wmhint-fix: symbol __isoc99_sscanf, version GLIBC_2.7 not defined in file libc.so.6 with link time reference
/usr/bin/set-focus: relocation error: /usr/bin/set-focus: symbol __isoc99_sscanf, version GLIBC_2.7 not defined in file libc.so.6 with link time reference
Would it be possible to compile it for maemo as well or is there another workarround possible?

Thanks in advance!

CU Michael

Cue 2011-12-08 10:24

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by magic_doc (Post 1134899)
Hello everybody,

first of all thank you for wounderful work, it is amazing!

But I have a question about these two binaries:



I would like to use the keyboard-focus-hack with xbindkeys completely on maemo because I have an application that runs on maemo quite well but has this keyboard-focus issue.
I can install xbindkeys in maemo as well, but when I use the two commands I copied from the chroot, I get this errors:



Would it be possible to compile it for maemo as well or is there another workarround possible?

Thanks in advance!

CU Michael

I too would love to have it compiled for maemo
I currently use
Code:

fixkbdfocus Nameofwindow
with easy debian installed, it will fix focus but symbol keys are different.
I'm not talented lke the people here so I don't know how to fix this but I too used easy debian's keyboardfix for maemo apps and it works (except symbol keys). A maemo version would be great.
http://talk.maemo.org/showthread.php?t=66215

sulu 2011-12-08 10:33

Re: Easy Debian Fremantle Beta Testing
 
The best solution would be to have the source code of these programs under an OSI approved license I think. This way everybody could recompile them on any platform.
During my tinkering with ED for the Squeeze dist-upgrade I stumbled upon set-focus too but I couldn't find any source code.

The XServer itself is MIT-licensed and since I'm pretty sure set-focus is compiled against some of its libs I guess the same license might be a good choice. WTFPL might also be an alternative.

qole 2011-12-12 20:16

Re: Easy Debian Fremantle Beta Testing
 
Sorry guys for not checking this thread.
Those tiny apps have their source code in a thread on TMO.
I just checked my Garage git repo and it doesn't have the source! Shame on me!
I'll try to get you the source as soon as possible!

mscion 2011-12-12 20:45

Re: Easy Debian Fremantle Beta Testing
 
Hi qole, You know, when I put my N9 in landscape I can imagine a nice little bluetooth keyboard underneath and easy debian on the screen.
Wish it could happen...

Regardless I want the thank all contributors for your efforts. You have made using Easy Debian a great experience. It still makes the N900 unique and, indeed, it's still irreplaceable for me.

qole 2011-12-12 21:04

Re: Easy Debian Fremantle Beta Testing
 
I too long for Easy Debian on the N9(50). But I am blocked by the lack of an open kernel. Good news, though, it looks like the hacker-dudes are getting closer and closer to a usable kernel. Follow the roller-coaster over at forum.meego.com and watch joergw's open kernel page for progress, too.

Estel 2011-12-15 01:50

Re: Easy Debian Fremantle Beta Testing
 
I've tried "complete dist-upgrade to Squeeze" as in EasyDebian wiki:
http://wiki.maemo.org/Easy_Debian
Ho ever, despite following every step carefully, I still got few problems after update. I'll list all oddities - even that I think some of them aren't important, I'll keep them for the records, as it may help in debugging. Also, sorry in advance for possible obvious mistakes - this whole thing about what should and what should not work in chroot under Maemo is still kinda black magic for me.

1. After step "nice -n 19 sudo apt-get dist-upgrade", I get following errors:
Code:

Preparing to replace pulseaudio 0.9.21-3+squeeze1 (using .../pulseaudio_0.9.21-3+squeeze1_armel.deb) ...
Stopping PulseAudio Daemon.
Unpacking replacement pulseaudio ...
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up avahi-daemon (0.6.27-2+squeeze1) ...
Reloading system message bus config...done.
insserv: Service dbus has to be enabled to start service avahi
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing avahi-daemon (--configure):
subprocess installed post-installation script returned error exit status 1

Setting up pulseaudio (0.9.21-3+squeeze1) ...
Installing new version of config file /etc/pulse/daemon.conf ...
Installing new version of config file /etc/pulse/default.pa ...
Installing new version of config file /etc/default/pulseaudio ...
Installing new version of config file /etc/xdg/autostart/pulseaudio.desktop ...
insserv: Service dbus has to be enabled to start service pulseaudio
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing pulseaudio (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pulseaudio-esound-compat:
 pulseaudio-esound-compat depends on pulseaudio; however:
  Package pulseaudio is not configured yet.
dpkg: error processing pulseaudio-esound-compat (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pulseaudio-module-x11:
 pulseaudio-module-x11 depends on pulseaudio; however:
  Package pulseaudio is not configured yet.
dpkg: error processing pulseaudio-module-x11 (--configure):
 dependency problems - leaving unconfigured
Setting up wicd-daemon (1.7.0+ds1-5) ...
configured to not write apport reports
                                      configured to not write apport reports
                                                                            configured to not write apport reports
                                  locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
insserv: Service dbus has to be enabled to start service wicd
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing wicd-daemon (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of wicd-gtk:
 wicd-gtk depends on wicd-daemon (= 1.7.0+ds1-5); however:
  Package wicd-daemon is not configured yet.
dpkg: error processing wicd-gtk (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wicd:
 wicd depends on wicd-daemon (= 1.7.0+ds1-5); however:
  Package wicd-daemon is not configured yet.
 wicd depends on wicd-gtk (= 1.7.0+ds1-5) | wicd-curses (= 1.7.0+ds1-5) | wicd-cli (= 1.7.0+ds1-5) | wicd-client; however:
  Package wicd-gtk is not configured yet.
  Package wicd-curses is not installed.
  Package wicd-cli is not installed.
  Package wicd-client is not installed.
  Package wicd-gtk which provides wicd-client is not configured yet.
dpkg: error processing wicd (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      configured to not write apport reports
                                                                            configured to not write apport reports
                                  Errors were encountered while processing:
 avahi-daemon
 openssh-server
 pulseaudio
 pulseaudio-esound-compat
 pulseaudio-module-x11
 wicd-daemon
 wicd-gtk
 wicd
E: Sub-process /usr/bin/dpkg returned an error code (1)

2. Despite following 2nd critical fix from wiki:
Quote:

Originally Posted by EasyDebianWiki
All the blue keyboard buttons won't work anymore and the blue arrow key will behave starngely. This is because during the dist-upgrade the quite special Maemo keyboard layout used by Easy Debian was overwritten with a generic layout. To solve that just return to Maemo (without clicking the close icon) and copy the whole folder /usr/share/X11/xkb to /.debian/usr/share/X11/xkb. Then close Easy Debian and after restarting it the keyboard should work fine.

...I still can't use any "blue arrow" symbol from N900 keyboard (regular and SHIFT'ed letter, arrows, enter, backspace etc all works). Furthermore, if I keep
Code:

@setxkbmap pl
...in my /etc/xdg/lxsession/LXDE/autostart (like I did before dist-upgrade), I can invoke my language special characters using blue arrow (so, it works literally as AltGr - right alt...). It has added benefit of availability to use USB/Bluetooth keyboard via extkbd in Easy Debian without any hassle - ho ever, the con is that I can't use any "blue arrow" symbol from N900 internal keyboard ;)

3. While trying to restore sound functionality in ED via method described in Wiki:
Quote:

Originally Posted by EasyDebianWiki
Sound in Easy Debian won't work anymore. This is because there were some changes in pulseaudio between version 0.9.15 and 0.9.16 which lead to incompatibilities. Maemo uses 0.9.15 so Lenny's 0.9.10 works while Squeeze's 0.9.21 does not. Installing the latest working version 0.9.15 (or any prior to that) would normally break Squeeze's package system so we'll have to fool it so that it actually uses 0.9.15 but thinks it has 0.9.21. To do that there are some modified packages available at qole's server:
(...)
So let's start:
Code:

mkdir pulse
cd pulse
wget http://qole.org/files/pulseaudio_easydebian_squeeze.tar.gz
tar -zxf pulseaudio_easydebian_squeeze.tar.gz
wget http://ftp.debian.org/debian/pool/main/p/policykit/libpolkit2_0.9-2_armel.deb
wget http://ftp.debian.org/debian/pool/main/p/policykit/libpolkit-dbus2_0.9-2_armel.deb
nice -n 19 sudo dpkg -i *.deb


... I get following errors (pasting full output, to not skip something important):
Code:

(Reading database ... 71051 files and directories currently installed.)
Preparing to replace libpolkit-dbus2 0.9-2 (using libpolkit-dbus2_0.9-2_armel.deb) ...
Unpacking replacement libpolkit-dbus2 ...
Preparing to replace libpolkit2 0.9-2 (using libpolkit2_0.9-2_armel.deb) ...
Unpacking replacement libpolkit2 ...
Preparing to replace libpulse-browse0 0.9.21-3+squeeze1 (using libpulse-browse0_0.9.21-3+squeeze1_armel.deb) ...
Unpacking replacement libpulse-browse0 ...
Preparing to replace libpulse-mainloop-glib0 0.9.21-3+squeeze1 (using libpulse-mainloop-glib0_0.9.21-3+squeeze1_armel.deb) ...
Unpacking replacement libpulse-mainloop-glib0 ...
Preparing to replace libpulse0 0.9.21-3+squeeze1 (using libpulse0_0.9.21-3+squeeze1_armel.deb) ...
Unpacking replacement libpulse0 ...
Preparing to replace pulseaudio-esound-compat 0.9.21-3+squeeze1 (using pulseaudio-esound-compat_0.9.21-3+squeeze1_armel.deb) ...
Unpacking replacement pulseaudio-esound-compat ...
Preparing to replace pulseaudio-module-x11 0.9.21-3+squeeze1 (using pulseaudio-module-x11_0.9.21-3+squeeze1_armel.deb) ...
Unpacking replacement pulseaudio-module-x11 ...
Preparing to replace pulseaudio-utils 0.9.21-3+squeeze1 (using pulseaudio-utils_0.9.21-3+squeeze1_armel.deb) ...
Unpacking replacement pulseaudio-utils ...
Preparing to replace pulseaudio 0.9.21-3+squeeze1 (using pulseaudio_0.9.21-3+squeeze1_armel.deb) ...
Stopping PulseAudio Daemon.
Unpacking replacement pulseaudio ...
dpkg: warning: unable to delete old directory '/usr/lib/pulse-0.9.21/modules': Directory not empty
dpkg: warning: unable to delete old directory '/usr/lib/pulse-0.9.21': Directory not empty
Setting up libpolkit2 (0.9-2) ...
Setting up libpulse0 (0.9.21-3+squeeze1) ...
Setting up libpolkit-dbus2 (0.9-2) ...
Setting up libpulse-browse0 (0.9.21-3+squeeze1) ...
Setting up libpulse-mainloop-glib0 (0.9.21-3+squeeze1) ...
Setting up pulseaudio-utils (0.9.21-3+squeeze1) ...
Setting up pulseaudio (0.9.21-3+squeeze1) ...
Installing new version of config file /etc/pulse/daemon.conf ...
Installing new version of config file /etc/pulse/default.pa ...
Installing new version of config file /etc/default/pulseaudio ...
Installing new version of config file /etc/xdg/autostart/pulseaudio.desktop ...
insserv: Service dbus has to be enabled to start service pulseaudio
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing pulseaudio (--install):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pulseaudio-esound-compat:
 pulseaudio-esound-compat depends on pulseaudio; however:
  Package pulseaudio is not configured yet.
dpkg: error processing pulseaudio-esound-compat (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pulseaudio-module-x11:
 pulseaudio-module-x11 depends on pulseaudio; however:
  Package pulseaudio is not configured yet.
dpkg: error processing pulseaudio-module-x11 (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Errors were encountered while processing:
 pulseaudio
 pulseaudio-esound-compat
 pulseaudio-module-x11

I think this may be related to errors I've got trying to do dist-upgrade.

4. Upon every start, Iceweasel throws irritating warning:
http://lorienart.pl/cover/iceweasel1.jpg

(after cliking details)
Code:

Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Could not send message to GConf daemon: Launch helper exited with unknown return code 1)
Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Could not send message to GConf daemon: Launch helper exited with unknown return code 1)
Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Could not send message to GConf daemon: Launch helper exited with unknown return code 1)
Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Could not send message to GConf daemon: Launch helper exited with unknown return code 1)
Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Could not send message to GConf daemon: Launch helper exited with unknown return code 1)

...still, every configuration option in Iceweasel seems to be preserved (I haven't lost my config, opened tabs or whatever).

---

As you may presume, I'm totally lost here, so I'll be very thankful for any suggestions. Keyboard problem seem to be most important (for me), followed by failed things during update&pulseaudio restoration.

/Estel

sulu 2011-12-15 07:13

Re: Easy Debian Fremantle Beta Testing
 
All these dbus-related errors seem strange. :confused:

However, when I did the dist-upgrade I didn't do it exactly the way I described it in the wiki, I did it via debbie but thought that wouldn't matter.

So can you please try the following:
[Edit: forget step 1. The debbie command in step 2 will do the same anyway. Just make sure the Easy Debian desktop is not running.]
1. Ensure that the Easy Debian chroot is mounted but no Easy Debian X-session is running (e.g. by starting Easy Debian, closing the window but then NOT running the close-script or by running some trivial command via debbie).

2. After changing your sources.list and creating the temporary archives-directory run the whole dist-upgrade process via debbie from within Maemo:
Code:

debbie nice -n 19 sudo apt-get dist-upgrade
I think that sorts out the most of your problems. I'm not sure about wicd since I don't have it installed anymore but I thhink it should be solved too this way.

As for your keyboard problem I don't really know what's going on but I hope that's just a side effect of the strange state that the failed dist-upgrade produced. Although I'm from Germany I use the US layout on my N900, so any localization-related problems didn't occur to me. But I'll investigate on that if it turns out not to be related to the failed dist-upgrade.

Estel 2011-12-15 16:56

Re: Easy Debian Fremantle Beta Testing
 
Thanks You very much for fast answer. I'll try that method - in meantime, just to let You know, I haven't used dist-upgrade from within LXDE - I just used "chroot" icon from Maemo (which, following qole's description, should work same way as "debbie").

Of course, I'll gladly test doing that from within maemo with "debbie", instead.

/Estel

sulu 2011-12-15 21:24

Re: Easy Debian Fremantle Beta Testing
 
I had a closer look at the errors now and I guess I'll have to be absolutely honest now about what I did to upgrade to Squeeze since easy standard steps don't seem to work. :rolleyes:

Because the watchdog always rebooted my N900 during dist-upgrade attempts I first upgraded small chunks of packages (30-50MB download size) via debbie aptitude.
When I realized that nice could keep the watchdog calm and switched to that procedure half of my Easy Debian was already upgraded (yes I had lots of time that day ;) ). The whole X-server related stuff and probably even Easy Debian's dbus was a part of these chunks.

No idea if that will solve the problem but I think it's worth a try to manually upgrade dbus first. I can't even exclude that I upgraded pulseaudio from within the Easy Debian desktop (which might affect the dist-upgrade since Easy Debian's dbus is actually running) since I did a lot of tinkering with pulseaudio back then.

If that still doesn't work I'll try to reproduce the dist-upgrade with a stock Easy Debian installation while keeping the procedure as simply as possible and documenting the steps exactly.
But most likely I won't find the time for that before x-mas.

As for your firefox warning, I get that too. Eventually I just uninstalled the package that caused the popup (the commandline output still remains). Since it seems to work except for that warning I didn't investigate it any further. I'll add that to the regression list in the wiki article once I've identified the package again.


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

vBulletin® Version 3.8.8