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)

wolfs are great!!! 2010-05-28 13:30

Re: Easy Debian Fremantle Beta Testing
 
Thanks, qole! I will try. However, I can't download it.

wolfs are great!!! 2010-05-28 13:34

Re: Easy Debian Fremantle Beta Testing
 
Newer mind, it worked now. Maybe because I used your link, not a copied one.

mankir 2010-05-28 13:42

Re: Easy Debian Fremantle Beta Testing
 
Really awesome! Using the karmic-rootfs on an internal partition makes Eclipse and Anjuta running...

wolfs are great!!! 2010-05-28 13:49

Re: Easy Debian Fremantle Beta Testing
 
I can not extract it!

qole 2010-05-28 17:03

Re: Easy Debian Fremantle Beta Testing
 
I've never heard of "unlzma" before. You can extract the image with this command in Linux (either on your N900 or on a desktop Ubuntu machine):

Code:

lzma -d ubuntu-m5-v1.img.ext2.lzma
You can use 7zip in Linux or Windows to extract it, too.

rebhana 2010-05-28 18:47

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 684650)
OH NO. Don't tell me they've "fixed" the window manager even more, so that our hacks don't work anymore?!?! Argh. I haven't "upgraded" to PR 1.2, but I'll try to figure out what's wrong when I do... :(

qole, I was looking at your xephfocus script, without being able to figure out what I could try changing there to fix it, but I noticed that there is also a zenity line with option info and a later test for the "Information" string. Wouldn't that also need a "--title="Information" like xephwm5?

As to the loss of keyboard focus: If I go to task manager, run xephfocus, and if I'm quick in clicking "OK" I get full screen LXDE with restored keyboard, but after about 2 seconds, the task manager kicks in all by itself, turning Easy Debian into a small window, and the keyboard focus is again gone. Any idea what I could try out till you switch to PR1.2, too?

rebhana 2010-05-28 18:49

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 686119)
I've never heard of "unlzma" before.

Code:

lrwxrwxrwx 1 root root 4 24. Apr 07:26 /usr/bin/unlzma -> lzma
but the -d option is then implicit.

pingu 2010-05-28 20:53

Re: Easy Debian Fremantle Beta Testing
 
mbertacchi: how did you install gcc?
I tried to install both "gcc" and "gcc4.3" via synaptic but i got an error saying that the version of a package called "gcc4.3-base" isn't suitable.
if anyone else knows too, then you are more than welcome to answer!

rebhana 2010-05-28 21:03

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by pingu (Post 686723)
mbertacchi: how did you install gcc?
I tried to install both "gcc" and "gcc4.3" via synaptic but i got an error saying that the version of a package called "gcc4.3-base" isn't suitable.
if anyone else knows too, then you are more than welcome to answer!

Have a look here.

qole 2010-05-28 22:06

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by rebhana (Post 686405)
... I noticed that there is also a zenity line with option info and a later test for the "Information" string. Wouldn't that also need a "--title="Information" like xephwm5?

.... Any idea what I could try out till you switch to PR1.2, too?

Good catch, rebhana. It sounds like I need to issue an update to Easy Debian for PR 1.2...

I'm re-installing all of my apps after flashing the "special" version of PR 1.2 that my device needs...

qalhat 2010-05-28 23:54

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by pingu (Post 686723)
mbertacchi: how did you install gcc?
I tried to install both "gcc" and "gcc4.3" via synaptic but i got an error saying that the version of a package called "gcc4.3-base" isn't suitable.
if anyone else knows too, then you are more than welcome to answer!

I installed gcc few weeks ago using command line:

Code:


apt-get update
apt-get install build-essential


qalhat 2010-05-29 00:30

Re: Easy Debian Fremantle Beta Testing
 
I have 2 problems:

1- after upgrade to PR1.2 can't use keyboard again after switching between the phone and Easy Debian.

2- the menu bar (which contains the reboot/logout/shutdown, etc options) is gone. I don't know how to get it back.

mbertacchi 2010-05-29 04:12

Re: Easy Debian Fremantle Beta Testing
 
Hi!!

pingu: I've done it just like rebhana said.

qole: Thanks for the help! I know about Java on the Maemo 5 (J2SE) but i rather compile and run Java apps on a compiler like netbeans. I tried installing netbeans/eclipse on Easy Debian but without success. I don't want to do all that compiling and running on the terminal :p. Has anyone tried to install these programs on Easy Debian?

Regards,

--
[ Marcello Bertacchi ]
--

qole 2010-05-29 04:54

Re: Easy Debian Fremantle Beta Testing
 
hi all... quick update from a public wifi access point.

PR 1.2 keyboard fix:

edit (sudo leafpad) /usr/share/applications/hildon/lxdefocus.desktop

and change the Exec line to read:

Exec=osso-xterm 'debbie xephfocus'

And yes you might need to fix the xephfocus script to fix the Info problem. Can you explain how to do that, rebhana?

Gotta go! Bye!

rebhana 2010-05-29 07:20

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 687359)
PR 1.2 keyboard fix:

edit (sudo leafpad) /usr/share/applications/hildon/lxdefocus.desktop

and change the Exec line to read:

Exec=osso-xterm 'debbie xephfocus'

And yes you might need to fix the xephfocus script to fix the Info problem. Can you explain how to do that, rebhana?

It works! :D qole - you are phantastic!

Instructions for non-English environments with reconfigured locales:

After the above fix of lxdefocus.desktop, which you have to do from the standard XTerminal (or through ssh), open the Debian chroot terminal and edit (with leafpad, vi, oder whatever) the file /usr/bin/xephfocus such that the "zenity" line includes a title option and reads
Code:

zenity --display=:0 --info --title="Information" --text="This window is needed to gain keyboard focus in LXDE. Click OK." &
(A string "trl -l" at the end of that line can be deleted - presumably a debugging leftover which produces an error that is harmless however.) Without the above title option, lxdefocus won't work in languages other than da, de, en, fr, and sv.

EDIT: I've now updated the wiki to include the PR1.2 keyboard fix until a new version ;) of easy-deb-chroot will take care of that.

rebhana 2010-05-29 09:05

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qalhat (Post 687103)
I have 2 problems:

1- after upgrade to PR1.2 can't use keyboard again after switching between the phone and Easy Debian.

2- the menu bar (which contains the reboot/logout/shutdown, etc options) is gone. I don't know how to get it back.

For 1., apply qole's fix above; for 2., you can follow the instructions in the wiki http://wiki.maemo.org/Easy_Debian, but this does not restore the cute Maemo-like icon. Since /home/user/.config/lxpanel/LXDE/panels/top is included in the easy-deb-chroot package, you could probably just de-install and then re-install the easy-deb-chroot package. The Debian image wouldn't be affected by that. You might just have to redo your edits of .chroot, if you have done some.

marmota 2010-05-29 10:20

Re: Easy Debian Fremantle Beta Testing
 
Thank you for the quick solution to the keyboard focus problem.
I tried to use it, but I did not manage to make it working.
I edited the file as suggested, then I opened easy debian, then ctrl back to go to maemo. I run the fix lxde keyboard script from inside maemo. I went back to easy debian, but the keyboard was not working. I think I am missing something ...
Thank you in advance!

debernardis 2010-05-29 11:46

Re: Easy Debian Fremantle Beta Testing
 
Quite amusingly, if you try to make it work while opening this precise thread open in background, it will fail :)
Because wmctrl finds two windows whose name starts with "Easy Debian", the lxde one and the microb window showing this thread... :)

So don't forget closing it!

rebhana 2010-05-29 13:10

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by debernardis (Post 687796)
Quite amusingly, if you try to make it work while opening this precise thread open in background, it will fail :)
Because wmctrl finds two windows whose name starts with "Easy Debian", the lxde one and the microb window showing this thread... :)

So don't forget closing it!

That explains why in the past this did not always work! :rolleyes:

A simple way to fix it is to also change the "export PARWIN" line in /usr/bin/xephfocus to read
Code:

export PARWIN=`wmctrl -l | grep -i "N/A $WMNAME" | awk '{print $1}'`

marmota 2010-05-29 20:19

Re: Easy Debian Fremantle Beta Testing
 
Solved! it is now working... I had this tread open in the background.
Thank you to all.

rebhana 2010-05-30 09:06

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 686887)
It sounds like I need to issue an update to Easy Debian for PR 1.2...

I'm re-installing all of my apps after flashing the "special" version of PR 1.2 that my device needs...

I've updated my talk page where I collect my proposed changes. If you also think about updating the image to fix /usr/bin/xephfocus, I'd suggest to also upgrade to Openoffice 3.2.0 from sid before something happens to the corresponding armel packages again.

marmota 2010-05-30 20:10

Re: Easy Debian Fremantle Beta Testing
 
After this post I tried to follow the procedure detailed in this post in order to have more space to install software in easy debian.

1) I created a new partition in the sd card
2) I mounted the current Debian image with the command
Code:

qmount /path/to/currentimgfile /debian
3) I mounted the new formatted partition
Code:

mount /dev/mmcblkxxx /floppy
4) I copied the content of /debian to the partition
And here is where my problems started. The commands provided in the previous post are:
Code:

cd /debian
/home/user/img-install/ tar cf - . | (cd /floppy/; tar xvf -)

Unfortunately I got errors (not able to access) the directory /home/user/img-install/

I thus run only the command
Code:

tar cf - . | (cd /floppy/; tar xvf -)
However I have some questions:
Is it using /home/user/img-install/ because it is the directory where the image was installed?
Are there (in /home/user/img-install/) files needed in the partition?

5) restart device: I did so and the device was almost bricked. I had to remove the sd card before being able to restart the N900.

I reinserted the sd and

6) Edit the /home/user/.chroot
changing the IMGFILE to the partition where the files are

And easy debian started :D with 2 more gb free!

However I am just wondering if the changes I made in step 4 make sense or if they can lead to a problem.

I did not try to restart the N900 for the moment, but do you think that having three partitions (1 small fat, 2 ext2) on the sd may be a problem?

Thank you very much in advance!

P.S. If you agree and if what I did is kind of correct I can enter the procedure in the wiki in the next days.

rebhana 2010-05-30 20:33

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by marmota (Post 690501)
1) I created a new partition in the sd card
2) I mounted the current Debian image with the command
Code:

qmount /path/to/currentimgfile /debian
3) I mounted the new formatted partition
Code:

mount /dev/mmcblkxxx /floppy
4) I copied the content of /debian to the partition
And here is where my problems started. The commands provided in the previous post are:
Code:

cd /debian
/home/user/img-install/ tar cf - . | (cd /opt/; tar xvf -)

Unfortunately I got errors (not able to access) the directory /home/user/img-install/

I thus run only the command
Code:

tar cf - . | (cd /opt/; tar xvf -)
However I have some questions:
Is it using /home/user/img-install/ because it is the directory where the image was installed?
Are there (in /home/user/img-install/) files needed in the partition?

5) restart device: I did so and the device was almost bricked. I had to remove the sd card before being able to restart the N900.

I reinserted the sd and

6) Edit the /home/user/.chroot
changing the IMGFILE to the partition where the files are

And easy debian started :D with 2 more gb free!

I'm afraid you mixed something up. If you really did the above, you haven't transferred the files to your memory card, but into /opt, which is residing actually within /home.

pingu 2010-05-30 20:36

Re: Easy Debian Fremantle Beta Testing
 
rebhana: thanks! another question, from where can i launch the compiled files? because i keep getting "permission denied" error from all the location i`ve tried.

marmota 2010-05-30 20:37

Re: Easy Debian Fremantle Beta Testing
 
ops I corrected in the text ... I transferred the files in floppy where the partition was mounted not in opt. Sorry for that. I just copied from previous guide. And /opt/ was not touched.

I tried to restart the device and everything is fine. However I would like to understand if the command has to be
Code:

cd /debian
/home/user/img-install/ tar cf - . | (cd /floppy/; tar xvf -)

or if
Code:

tar cf - . | (cd /floppy/; tar xvf -)
is enough.

Thank you very much and sorry for the mistake! :o

rebhana 2010-05-30 20:48

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by marmota (Post 690548)
ops I corrected in the text ... I transferred the files in floppy where the partition was mounted not in opt. Sorry for that. I just copied from previous guide. And /opt/ was not touched.

I tried to restart the device and everything is fine. However I would like to understand if the command has to be
Code:

cd /debian
/home/user/img-install/ tar cf - . | (cd /floppy/; tar xvf -)

or if
Code:

tar cf - . | (cd /floppy/; tar xvf -)
is enough.

Thank you very much and sorry for the mistake! :o

The "/home/user/img-install/" should simply be omitted indeed (that was obviously part of the path of tar in some other installation). Also one should better use the usual mount point for the N900, "/.debian" (after a closechroot). There is actually an app (pwsafe) which puts files into "/debian", which then get masked, though that should in principle be harmless since it's only temporary.

rebhana 2010-05-30 20:53

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by pingu (Post 690545)
rebhana: thanks! another question, from where can i launch the compiled files? because i keep getting "permission denied" error from all the location i`ve tried.

Somewhere earlier in this thread, qole explained that executables must not reside in /home/user/MyDocs or any other FAT partition, because you won't be able to set the executable flag. Is that your problem?

qole 2010-05-31 00:11

Re: Easy Debian Fremantle Beta Testing
 
Uploaded a new version to Extras-Devel (Easy Debian 0.9.47). This has the PR 1.2 keyboard workaround. Anyone tried it yet?

I'm still ambivalent about the "su -" issue, so I have added two new commands to do it "the rebhana way", you can use "sudo debsu command" or "debbie-sue command" to get the different functionality.

Can I have other beta-testers (especially non-English locales) experiment with debbie-sue and report to me? If I get a general consensus that rebhana's right, then I'll move to "su - " as the default method.

qole 2010-05-31 03:10

Re: Easy Debian Fremantle Beta Testing
 
Downloaded and tested 0.9.47 for myself. It works as expected. The secret is to put the keyboard focus icon on your desktop and hit that icon to return to LXDE instead of going back to LXDE through the Dashboard.

rebhana 2010-05-31 06:10

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 690849)
Uploaded a new version to Extras-Devel (Easy Debian 0.9.47). This has the PR 1.2 keyboard workaround. Anyone tried it yet?

I'm still ambivalent about the "su -" issue, so I have added two new commands to do it "the rebhana way", you can use "sudo debsu command" or "debbie-sue command" to get the different functionality.

Can I have other beta-testers (especially non-English locales) experiment with debbie-sue and report to me? If I get a general consensus that rebhana's right, then I'll move to "su - " as the default method.

I'm almost won over just by your choice of cute names! :)

So, Italians and Norwegians, can you confirm that debbie-sue is more joy than debbie? In my experience, programs like zim don't work well without "su -", and some others don't even start (gramps). And in the terminal, localization is not complete without it.

marmota 2010-05-31 06:40

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by rebhana (Post 690563)
The "/home/user/img-install/" should simply be omitted indeed (that was obviously part of the path of tar in some other installation). Also one should better use the usual mount point for the N900, "/.debian" (after a closechroot). There is actually an app (pwsafe) which puts files into "/debian", which then get masked, though that should in principle be harmless since it's only temporary.

Thank you very much. I will edit as you suggested. I hope to have some time to put everything in the wiki this week.

Thanks again the extra 2 GB will be very useful to add some softwares I wish to test!

shanti 2010-05-31 09:12

Re: Easy Debian Fremantle Beta Testing
 
Hi! It seems that hacks with xephfocus not helped my russian tablet :(

fw190 2010-05-31 10:02

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 690849)
Uploaded a new version to Extras-Devel (Easy Debian 0.9.47). This has the PR 1.2 keyboard workaround. Anyone tried it yet?

I'm still ambivalent about the "su -" issue, so I have added two new commands to do it "the rebhana way", you can use "sudo debsu command" or "debbie-sue command" to get the different functionality.

Can I have other beta-testers (especially non-English locales) experiment with debbie-sue and report to me? If I get a general consensus that rebhana's right, then I'll move to "su - " as the default method.

I've updated and it works for me. I've got a Polish hardware keyboard and debian set to Polish. When I go to maemo and get back to debian the keyboard doesn't work, bur using fixlxde kbd makes the keyboad work again ;)

mankir 2010-05-31 11:54

Re: Easy Debian Fremantle Beta Testing
 
Steps to get lxde working with the karmic-rootfs on internal partition:
xephwm5, xephfocus, startlxde1, qobi-wmhint-fix and set-focus are not included in the image i found (These files should be explained in the wiki).
In chroot, install xserver-xephyr, zenity, wmctrl, xbindkeys and habak (Usage of Xephyr should also be explained in the wiki).
Another suggestion for the wiki: Single Windowed Apps should be used with debbie, lxde is better for multi-windowed apps like gimp or dia.
Is it possible to use the accelerometer as a mouse input (like wminput)?

rebhana 2010-05-31 14:54

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 690849)
Uploaded a new version to Extras-Devel (Easy Debian 0.9.47). This has the PR 1.2 keyboard workaround. Anyone tried it yet?

Works for me (replacing all debbie calls in *.desktop files by debbie-sue now). :)

In LXDE for some reason I now have a top panel which no longer shows taskLauncher-blue.png, although I see it in the config file. No big deal, since I'm doing regular complete backups (which I herewith warmly recommend to everybody!).

To everybody: this version includes an improved .xbindkeysrc file, which I recommed also. If you haven't added anything yourself to that file, simply do
Code:

cp .xbindkeysrc.dist .xbindkeysrc
(otherwise merge it with your personal .xbindkeysrc file).

The new .xbindkeysrc files should have more reliably working F1-F12 keys through Fn+Shift+(Upper Row), as well as now also Fn+Shift+Left for Escape and Fn+Shift+Right for Tab.

Not (yet :rolleyes:) included is my recommendation to bind the fullscreen toggle to Fn+Shift+Space and Fn+Shift+Up instead of Ctrl+Space and Ctrl+Up. In Maemo, Ctrl+Space switches between input languages, and Ctrl+Up is used as a shortcut in Firefox.

rebhana 2010-05-31 15:20

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by shanti (Post 691319)
Hi! It seems that hacks with xephfocus not helped my russian tablet :(

Can you describe your problem in some more detail pls?

qole 2010-05-31 18:57

Re: Easy Debian Fremantle Beta Testing
 
I think I should try to figure out a way to make the keyboard hack independent of the image file, so I can refine the keyboard hack without requiring people to download a new image file... Or maybe I could make the synchroot script update the image with files from a certain directory... Hmmm... any ideas?

I could make the keyboard hack work entirely in Maemo if wmctrl, zenity, and qobi's keyboard hack were available in the Maemo repositories...

rebhana 2010-05-31 19:14

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 692267)
I think I should try to figure out a way to make the keyboard hack independent of the image file, so I can refine the keyboard hack without requiring people to download a new image file... Or maybe I could make the synchroot script update the image with files from a certain directory... Hmmm... any ideas?

Maybe the Image Installer script could be extended such that when run in the presence of an already downloaded and unpacked image it asks the user whether he wants to download a new version or to update the exisiting image by just the xephfocus and xephwm5 files (or possibly also /etc/profile to prepare for an su - default), This script could then mount the image and replace these few files by the newer version from your server.

But for the sake of new users and perhaps old ones who want to start all over, I think with OO 3.2.0 available, an update of the image would also be nice.

rebhana 2010-05-31 21:02

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by rebhana (Post 691872)
In LXDE for some reason I now have a top panel which no longer shows taskLauncher-blue.png, although I see it in the config file.

Just in case somebody else has the same phenomenon:
Comparing with my backup, this different behavior was caused by line 11 in ~/.config/lxpanel/LXDE/panels/top
Code:

transparent=0
whereas I had =1 before (perhaps due to the different theme I'm using). Reverting that I have the taskLauncher-blue.png icon back. Why this option should change the icon really beats me. I'm not even sure I want to know. This configuration file anyway warns "Manually editing is not recommended."

mscion 2010-06-01 13:04

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 690998)
Downloaded and tested 0.9.47 for myself. It works as expected. The secret is to put the keyboard focus icon on your desktop and hit that icon to return to LXDE instead of going back to LXDE through the Dashboard.

Thanks! It seems to work ok and the keyboard is recovered but
I notice that when I apply the fix keyboard, before the LXDE
returns, that following error appears on the screen

/usr/bin/xephfocus line 5: trl command not found

Is this a potential problem?


All times are GMT. The time now is 09:09.

vBulletin® Version 3.8.8