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)

mice 2010-05-23 21:45

Re: Easy Debian Fremantle Beta Testing
 
Hi guys,
I'm new around here, so if this is not a good topic for this, please let me know (I saw people asking similar questions here).

I've been trying to install easy debian on my N900 tonight, and now it got to a state when I'm not sure if it's extracting the image or if it bricked my phone.

I was downloading the image over wi-fi, and had my phone connected to the PC whole time in PC Suite mode (but without actually doing anything with the phone via PC).

What happened:
1.) I installed Easy Debian
2.) I went into the menu and clicked on Debian Image Installer
3.) It started downloading the image...

The last I saw it was still downloading the image with 10 seconds remaining, then I went away for a bit and when I came back the screen was black. The LED was flashing with orange as if the phone was still being charged.

I read on the web that the extraction of the image can take a very long time (up to an hour). I expected to see this after the download, but I didn't see it:
http://www.flickr.com/photos/andrewc...7623428654651/

The phone is completely non-responsive now. I tried disconnecting it from the PC, and heard the classic disconnection beep (on the PC). When I plug it back, the orange LED starts flashing again (charge mode).

Thinking that the phone turned off / froze, I tried starting it with the power button, but there is no reaction.

Please do you think that the image extraction started without the confirmation and that the phone is so busy with the extraction that it just appears dead?

I'm still hoping that's the case, so I'll leave it be for an hour or so in order to give it time to finish the extraction. If it won't help, I'll try to remove the battery and boot it up again. If that won't work, I think that I'm about to try my first reflash :rolleyes:

Any ideas / hints please?


Will sincerely appreciate any help / tips / guidance - thank you!

rebhana 2010-05-23 21:54

Re: Easy Debian Fremantle Beta Testing
 
mice, I don't know what troubles PC mode could cause, but downloading and extracting an Easy Debian image should not do anything to your Maemo system that could require a reflash.

mice 2010-05-23 22:01

Re: Easy Debian Fremantle Beta Testing
 
Hi rebhana,
fortunately I can confirm that now - all is well, thank you! Phone is now back online after an hour or so. The screen must have turned off as part of power saving, and the phone was too busy with extraction that it didn't want to turn it on in either way (touching the screen, the slider at the right side, etc).

If that's OK, I'll leave the original question + answer here, hoping that it gets indexed for anybody who might encounter the problem. Somebody might also want to put that in the installation notes ;-)

rebhana 2010-05-24 11:00

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 646791)
Run "Set Deb HW Keys" and then you can toggle the Styles and Formatting by pressing Fn (blue arrow) + Shift + "=" (top row, second from right). This is mapped to F11.

(EDIT: After trying it a few times, it seems to work best when you press the Fn key and then rock your finger down to press the Shift key as well; it doesn't seem to work pressing Shift first)

After experimenting a lot with xbindkeys+xvkbd for use in debbie (mostly in vain, see above), I discovered that F1-F12 for some reason work reliably only when the option -xsendevent is included. So all entries in /home/user/.xbindkeysrc like
Code:

"xvkbd -text "\[F1]""
 m:0x81 + c:24
...

should be replaced by
Code:

"xvkbd -xsendevent -text "\[F1]""                                 
 m:0x81 + c:24                                                     
...

Without -xsendevent, it seems to work reliably the first time used, but then only after several further attempts. With -xsendevent, it never failed me.

mscion 2010-05-24 14:37

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by rebhana (Post 672252)
I encountered some glitches with xvkbd+xbindkeys that I don't fully understand. Perhaps somebody can educate me:

For example an entry
Code:

"xvkbd -xsendevent -text "\[percent]""
 Shift+Mod5 + d

in .xbindkeysrc and activated by "debbie xbindkeys" does not produce the % character when I press Fn+Shift+d. Except for F1-F12, escape, and tab, only the characters that I anyway have on my (rx51-tailored) hw keyboard seem to work. (synchroot didn't help btw.)

However, when I start LXDE, open a terminal there, do
Code:

killall xbindkeys
xbindkeys

it does work (but only there, not outside of LXDE). It also doesn't work with "@xbindkeys -f /home/user/.xbindkeysrc" in the autostart file. :confused:


By the way, I found a way to take advantage of the virtual keyboard from within debbie applications. Backing out to the Maemo XTerminal, I produce a special character with the virtual keyboard there, copy the character, and can then paste it in the debbie application when the latter has a paste menu item. Fortunately, I need that only rarely because of my suitably remapped hw keyboard. But I would definitely prefer a more elegant solution.

I've had similar problems. Also If I used Mod5 + up or other arrow
keys more than a few times in .xbindkeysrc, the new key
definition did not work. I have no clue why.
I eventually used control +g and
control +t to define the additional characters (control + g is normally the bell and control +t is transpose, which I do not normally use). Regardless I am not happy with this solution. I've come around and think it is better to leave the traditional definitions of control sequences alone. So combining the Shift + Mod5 + "something ", as suggested, is a better solution. Unfortunately it did not work when "something" was an arrow key. Aesthetically it is nice
to use the left or right arrow for say <, >, or { , }. If you have success let me know.

torne 2010-05-24 16:36

Re: Easy Debian Fremantle Beta Testing
 
I have a "bug" to report: the base image should have a policy-rc.d which prevents services from being started/stopped inside the chroot (as detailed here: http://people.debian.org/~hmh/invoke...cification.txt )

Otherwise, certain package manager operations inside the chroot (e.g. apt-get remove dbus) will crash the N900 itself, as some service stop scripts will mistakenly kill the N900's own version of that service (and apparently stopping dbus causes the watchdog to reset the system).

Generally there's no reason to let invoke-rc.d actually do anything for a chroot system... services can still be started/stopped manually by running /etc/init.d/foo start|stop if the user wants them.

Thanks for the work!

qole 2010-05-24 17:33

Re: Easy Debian Fremantle Beta Testing
 
torne: Thank you very much for your help. That's great information.

So what should the image's policy-rc.d file look like?

EDIT: Should the policy-rc.d script simply have "exit 101" ?

Quote:

Most people using chroot jails just need an one-line script which returns an exit status of 101 as the jailed /usr/sbin/policy-rc.d script.

rebhana 2010-05-24 19:52

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by mscion (Post 673336)
I've had similar problems. Also If I used Mod5 + up or other arrow
keys more than a few times in .xbindkeysrc, the new key
definition did not work. I have no clue why.

Actually my problem is xvkbd, not xbindkeys. If I just type
Code:

xvkbd -xsendevent -text "a"
in the Debian chroot terminal, I get (after a bunch of warning messages) "a" on the next command line. Similarly when I use "\[parenleft]" I get "(". But with a lot of other special characters such as "\[percent]", I get nothing at all. Most but not all of the characters that I can compose with Fn are not produced, plus all that are on the virtual keyboard.

mscion, do you have the same phenomenon or is it just me?

The warnings that xvkbd issues look unrelated to my problem:

Code:

Warning: Cannot convert string "-*-lucidatypewriter-bold-r-*-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1" to type FontStruct
xvkbd: Mode_switch not available as a modifier
xvkbd: although ISO_Level3_Shift is used instead, AltGr may not work correctly


torne 2010-05-25 11:40

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 673612)
torne: Thank you very much for your help. That's great information.

So what should the image's policy-rc.d file look like?

EDIT: Should the policy-rc.d script simply have "exit 101" ?

That should be sufficient, yes.

DrSteve 2010-05-25 12:07

Re: Easy Debian Fremantle Beta Testing
 
Anyone been able to confirm that PR1.2 plays well with Easy Debian? qole, any advice as to whether OTA or reflash-and-reinstall will work better?

DrSteve 2010-05-25 16:39

Re: Easy Debian Fremantle Beta Testing
 
I used the US PR1.2 and the Flasher, and blew away the deb image in MyDocs and reinstalled from the App Manager (did not touch the EMMC). Works fine. OO.o seems a little faster (15-20%), actually, but have not timed it.

R, Inkscape, Gnumeric all still work.

rebhana 2010-05-25 16:42

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by DrSteve (Post 675628)
qole, any advice as to whether OTA or reflash-and-reinstall will work better?

I don't think that this matters. But I guess after the fw upgrade it would be advisable to do synchroot. Qole, do you agree? I'm curious what PR1.2 will change with regard to the few keyboard glitches that we have been struggling with.

DrSteve 2010-05-25 16:48

Re: Easy Debian Fremantle Beta Testing
 
At one point I was unable to click on the LXDE main menu but Ctrl-Back and back into LXDE fixed this. Anything y'all want me to test glitchwise?

rebhana 2010-05-25 17:01

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by DrSteve (Post 676393)
At one point I was unable to click on the LXDE main menu but Ctrl-Back and back into LXDE fixed this. Anything y'all want me to test glitchwise?

Have you experienced a loss of keyboard focus in LXDE and could that be fixed by the power button trick?

Does long press to get special characters work in LXDE?

And then I had these weird problems with xvkbd I descibed on the previous page.

EDIT: I've now installed PR1.2 myself, OTA, without any problems, and also no problems with Easy Debian. However, also my xvkbd problem is unchanged. Long press to get special characters without Fn key works in the Debian chroot terminal (not surprisingly, since this is just the standard osso-xterm), but not in GUI apps.
All in all, I do like PR1.2, in particular that no harm is done to Easy Debian!

DrSteve 2010-05-25 17:36

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by rebhana (Post 676421)
Have you experienced a loss of keyboard focus in LXDE and could that be fixed by the power button trick?

Does long press to get special characters work in LXDE?

And then I had these weird problems with xvkbd I descibed on the previous page.

No focus loss yet. Not sure what context in which to check special characters. Will check out your previous entry on xvkbd.

mbertacchi 2010-05-26 00:23

Re: Easy Debian Fremantle Beta Testing
 
1 Attachment(s)
Hi guys!!

I'm new around here. I have installed Easy Debian on my N900 and everything goes smoothly. I don't know much of linux and therefor i'm having some problems. I'm trying to compile and run an C 'Hello World' program. I succeed in compiling the program but i couldn't execute it. It returns a message that says: 'Permission denied'. I tried chmod but it didn't work. I've attached a screenshot showing the problem.

This is the program that i'm trying to run:

Code:

#include <stdio.h>
#include <stdlib.h>

int main(){

        int a,b,r;

        r = a%b;

        printf("\nResto a%b = &d", r);

}

Thanks in advance!

Regards,

--
[ Marcello Bertacchi ]
--

qole 2010-05-26 03:40

Re: Easy Debian Fremantle Beta Testing
 
mbertacchi: I think your problem is very simple; you can't run apps from the MyDocs directory, since it is formatted FAT32, and you can't make files executable.

Try the same thing in your /home/user directory, or make a /home/user/development directory.

rebhana 2010-05-26 22:55

Re: Easy Debian Fremantle Beta Testing
 
I have to take back that I'm entirely happy with PR1.2. As I posted here, the standard (osso) PDF viewer seems no longer capable of displaying mathematical formulae, which for me is a real letdown. :mad:

Fortunately, the pdf readers in Easy Debian are intact! If I only could have them open automatically from microB!

EDIT: I've filed a bug report on this issue: https://bugs.maemo.org/show_bug.cgi?id=10345
Consider voting for it, if you share my frustration.

EDIT2: Rather off-topic by now, but in case somebody else here wants to have the standard pdf viewer fixed quickly: Replacing just the one executable /usr/bin/osso_pdfviewer.launch by the version from PR1.1.1 is enough. (Always do backups! :D)

qole 2010-05-26 23:03

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by rebhana (Post 681034)
Fortunately, the pdf readers in Easy Debian are intact! If I only could have them open automatically from microB!

Actually, I have managed to get that working (plus opening MS Office docs with OpenOffice), using dbus-switchboard. There are a couple of bugs, but it seems to work for the most part. I need to figure out what is causing the problems and get the whole thing packaged up for the N900... I need more time!

debernardis 2010-05-27 06:08

Re: Easy Debian Fremantle Beta Testing
 
I heartly advice you the extras-devel (or testing, I don't remember) version of Evince from qwerty12. Try that, for your math stuff, and please report if that fixes your problem.

rebhana 2010-05-27 06:15

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by debernardis (Post 681686)
I heartly advice you the extras-devel (or testing, I don't remember) version of Evince from qwerty12. Try that, for your math stuff, and please report if that fixes your problem.

Thanks, I'll install that. Is there a way of having microB use it as a helper application instead of osso-pdf-viewer?

The problem with osso-pdf-viewer seems to be "simply" that it no longer uses embedded fonts. Since I actually liked the simple osso-pdf-viewer, I really would like to have that fixed asap.

EDIT: Evince from qwerty12 does work, like any other pdf viewer I've tried (Maemo's xournal, and Easy Debian's evince and xournal and gv). Funnily I had a problem reminiscent of Easy Debian before our function key fixes: how do you get out of full screen mode in evince? I have to delete ~/.gnome2/evince/ev-metadata.xml to get back.

asyik 2010-05-27 11:14

Re: Easy Debian Fremantle Beta Testing
 
I couldn't get the keyboard working in Debian LXDE after flashing my n900 to the new pr1.2 once i left LXDE and went back using it. I do not know what's went wrong here.

This problem happens both using my old image v3b and the new one v3d.

bimbim 2010-05-27 11:21

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by rebhana (Post 681695)
Funnily I had a problem reminiscent of Easy Debian before our function key fixes: how do you get out of full screen mode in evince? I have to delete ~/.gnome2/evince/ev-metadata.xml to get back.

In maemo just press "control+return"!

mscion 2010-05-27 14:01

Re: Easy Debian Fremantle Beta Testing
 
[QUOTE=rebhana;673847]Actually my problem is xvkbd, not xbindkeys. If I just type
Code:

xvkbd -xsendevent -text "a"
in the Debian chroot terminal, I get (after a bunch of warning messages) "a" on the next command line. Similarly when I use "\[parenleft]" I get "(". But with a lot of other special characters such as "\[percent]", I get nothing at all. Most but not all of the characters that I can compose with Fn are not produced, plus all that are on the virtual keyboard.

mscion, do you have the same phenomenon or is it just me?]

I get the same in the Debian chroot terminal.

Also, when using xvkbd the function keys do not work properly.
For example, in open office, F11 should bring up "styles and formatting" window. Instead it make open office full screen...

I find that as you get used to using the stylus on the keyboard
you can start pecking along rather quickly so it is nice to take advantage of. Do you know how to define the keys for the virtual keyboard?

rebhana 2010-05-27 14:02

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by asyik (Post 682385)
I couldn't get the keyboard working in Debian LXDE after flashing my n900 to the new pr1.2 once i left LXDE and went back using it. I do not know what's went wrong here.

This problem happens both using my old image v3b and the new one v3d.

Same here! The power key trick doesn't work any longer :(

mscion 2010-05-27 15:11

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by rebhana (Post 682849)
Same here! The power key trick doesn't work any longer :(

Oh Noooooooooooooooo....

debernardis 2010-05-27 17:56

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by mscion (Post 683048)
Oh Noooooooooooooooo....

Yep and also the fix LXDE keyboard doesn't work any more :(

Honza. 2010-05-27 21:49

Re: Easy Debian Fremantle Beta Testing
 
Please, where can I download Czech localization package for debian? I'm still getting errors with dpkg-reconfigure locales: no file etc. I cant change default language different to my maemo system lang. So I need cs_CZ, but where to download? Thank you.

rebhana 2010-05-27 22:05

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by Honza. (Post 684165)
Please, where can I download Czech localization package for debian? I'm still getting errors with dpkg-reconfigure locales: no file etc. I cant change default language different to my maemo system lang. So I need cs_CZ, but where to download? Thank you.

cs_CZ is included in the locales package. If you type in
Code:

dpkg -L locales | grep cs_CZ
it should tell you: /usr/share/i18n/locales/cs_CZ

Or is the problem that you have not selected cs_CZ when running dpkg-reconfigure locales? For selecting you need to use the space bar.

wolfs are great!!! 2010-05-28 02:22

Re: Easy Debian Fremantle Beta Testing
 
I am about to attempt the impossible! I am about to try to turn Debian into Ubuntu! I am not sure witch version. I ran the pull and extract app and using it. I will document it here. I am geting the steps from a book - Ubuntu Hacks: Tips & Tools for Exploring, Using, and Tuning Linux. See you!

wolfs are great!!! 2010-05-28 02:53

Re: Easy Debian Fremantle Beta Testing
 
Step 1:

Start LXDE

Open Synaptic

Remove all curent respitories

Add these:

URL is http://archive.ubuntu.com/ubuntu Distribution is dapper Sections are main restricted

and

URL is http://security.ubuntu.com/ubuntu Distribution is dapper-security Sections are main restricted

Reload the package list

If sudo is not installed, install it

Close Synaptic

BLIZZARD 2010-05-28 03:00

Re: Easy Debian Fremantle Beta Testing
 
how i can uninstall a full app? when i go to the synaptic i only uninstall packages. e.g. i have intalled an app and it downloaded 6 packages (for dependancies), is there any way to uninstall the hole thing?

mbertacchi 2010-05-28 03:48

Re: Easy Debian Fremantle Beta Testing
 
Hi guys!!

Thanks for the help on compiling and running C programs on Easy Debian. Now I'm trying something more sofisticated :p. Does anyone know how to compile and run Java programs on Easy Debian (including libraries like swing/awt)?

Regards,

--
[ Marcello Bertacchi ]
--

qole 2010-05-28 04:37

Re: Easy Debian Fremantle Beta Testing
 
wolfs are great:

An easier solution for getting Ubuntu would be to grab and extract this Ubuntu image from my server:

ubuntu-m5-v1.img.ext2.lzma

mbertacchi:

There's actually a couple of packages available to put full Java (including Swing / AWT) directly in Maemo, without going through Debian. Do some searches.

But Easy Debian already has OpenJDK installed. Just run your Java apps with "java -jar appname.jar" and it should work.

qole 2010-05-28 04:40

Re: Easy Debian Fremantle Beta Testing
 
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... :(

rebhana 2010-05-28 06:03

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by BLIZZARD (Post 684559)
how i can uninstall a full app? when i go to the synaptic i only uninstall packages. e.g. i have intalled an app and it downloaded 6 packages (for dependancies), is there any way to uninstall the hole thing?

Perhaps you can also tell synaptic to do it, but on the command line (Debian chroot terminal) you can uninstall no longer required packages by
Code:

apt-get autoremove

rebhana 2010-05-28 06:07

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... :(

Seems they have! I've added a note to the wiki, warning that the two ways to get the keyboard back no longer work in PR1.2, and that one therefore should avoid switching to Maemo during an LXDE session, and also referred to xvkbd as a last resort.

BLIZZARD 2010-05-28 06:36

Re: Easy Debian Fremantle Beta Testing
 
"An easier solution for getting Ubuntu would be to grab and extract this Ubuntu image from my server:

ubuntu-m5-v1.img.ext2.lzma"

Qole:
Can you tell me how to install it after downloading it? Btw I FINALLY MANAGE TO COMPILE WITH g++ at command line, thanks a lot (it was easy after all). Now i can both write and compile my c programs on my n900!!:eek::eek:!!!

N900: the portal to mobilize compiling!!!:D:D:D

rebhana 2010-05-28 06:55

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by BLIZZARD (Post 684805)
"An easier solution for getting Ubuntu would be to grab and extract this Ubuntu image from my server:

ubuntu-m5-v1.img.ext2.lzma"

Qole:
Can you tell me how to install it after downloading it?

To extract it, run
Code:

unlzma ubuntu-m5-v1.img.ext2.lzma
and then edit /home/user/.chroot to have "ubuntu-m5-v1.img.ext2" as your chosen image.

BLIZZARD 2010-05-28 08:34

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by rebhana (Post 684830)
To extract it, run
Code:

unlzma ubuntu-m5-v1.img.ext2.lzma
and then edit /home/user/.chroot to have "ubuntu-m5-v1.img.ext2" as your chosen image.

Thanks, i will try it


All times are GMT. The time now is 05:51.

vBulletin® Version 3.8.8