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)

extendedping 2010-08-24 22:04

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 795287)
New Easy Chroot package in Extras-devel will strip the trailing slash off of the given mountpoint (a trailing slash produced weird results) and multiple mounted loops are handled better.

I don't think I fixed avidscavenger's problem, but I fixed some serious annoyances for me.

avidscavenger: perhaps run "sudo closechroot /.debian" from the terminal and tell me what it says...?

will it start up fedora as well? :(

qole 2010-08-25 01:04

Re: Easy Debian Fremantle Beta Testing
 
extendedping: make an image file or a partition with the fedora rootfs from this page, point IMGFILE in ~/.chroot to it, and you've got yourself Easy Fedora. vwa-laa.

UPDATE: Use this image file instead!

http://qole.org/files/fedora12-m5-v1a.img.ext2.lzma

gabby131 2010-08-25 10:58

Re: Easy Debian Fremantle Beta Testing
 
hi!

when i was looking and browsing my n900's awesome apps, i saw this MouseCursor App, really, i dont remember installing such app but its so awesome! at one tap i got a mouse cursor that responds.

it looks like the one when i open easy debian lxe (or whatever that opens a mac like desktop) is this a part or the latest update? coz i also cant see the mouse cursor app on my installed applications. so i am wondering if this app is a bonus from Easy Debian. :D

qole 2010-08-25 14:45

Re: Easy Debian Fremantle Beta Testing
 
gabby131: that mouse cursor thing is from the Bluetooth keyboard & mouse scripts package...

gabby131 2010-08-25 18:06

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 797958)
gabby131: that mouse cursor thing is from the Bluetooth keyboard & mouse scripts package...

oh......awesome!

thanks :D

rebhana 2010-08-25 19:58

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by pkubaj (Post 777880)
How can I make Easy Debian image larger? I decided to upgrade to Squeeze completely, there were some pulseaudio issues, which I eventually had to remove. Everything was going well, then the message about the lack of space. Can it be largened?

Apt-get tells you how much space it will need, so always make sure this is consistent with the output of "df" (you'll have to add the amount of downloads and the extra space taken after the installations). After any installs, run
Code:

apt-get clean
to remove the downloaded Debian packages.

If the free space in the Debian image is insufficient for a larger scale operation, you can try to do it in smaller pieces, with "apt-get clean" issued regularly.

For getting some extra space in the Debian image, a possibilty is to move some directories into /home/user and make symlinks. I once moved /usr/share/doc to /home/user, which frees some 200MB, by doing the following from within the Debian chroot:
Code:

cd /usr/share
cp -a doc /home/user/.easydebdoc
rm -r doc
ln -s /home/user/.easydebdoc doc


Honza. 2010-08-25 21:07

Re: Easy Debian Fremantle Beta Testing
 
I have really BIG problem. Everytime I mount ext3 partition on microSD, image-viewer check for everyone image (over 20 000) and makes miniatures. So when i run easy debian, CPU is working on 100% for about 15 minutes and phone is very slow. Any solution how to hide ".debian" to image-viewer? I have titan kernel so ext3 partitions is visible in file manager.

rebhana 2010-08-25 22:00

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by Honza. (Post 798357)
I have really BIG problem. Everytime I mount ext3 partition on microSD, image-viewer check for everyone image (over 20 000) and makes miniatures. So when i run easy debian, CPU is working on 100% for about 15 minutes and phone is very slow. Any solution how to hide ".debian" to image-viewer? I have titan kernel so ext3 partitions is visible in file manager.

Try editing /home/user/.config/tracker/tracker.cfg.
Go to the line NoWatchDirectory and add at the end of the line what you want to have excluded.

Honza. 2010-08-26 07:50

Re: Easy Debian Fremantle Beta Testing
 
rebhana: Thank you, I added /.debian/; now image-viewer is OK, but hildon-thumbnai still eats 100% of CPU for long time when I mount partition.

RdM 2010-08-26 21:10

Re: Easy Debian Fremantle Beta Testing
 
I have made a desktop short of icedove. it is working but I cannot get the proper icon. Got the blue square button.
even when i reboot.
same with pcmanfm.

Would be nice to have the proper icon.
can some body help

extendedping 2010-08-26 23:53

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 797403)
extendedping: make an image file or a partition with the fedora rootfs from this page, point IMGFILE in ~/.chroot to it, and you've got yourself Easy Fedora. vwa-laa.

ok it is probably user error but not only did it not work for me but after commenting back the line I put in the .chroot file I was not able to use easy debian. luckly I had backed up the .chroot file before tinkering.

gsever 2010-08-27 00:02

Re: Easy Debian Fremantle Beta Testing
 
Hey guys,

Could that possible to have a sub-forum for Easy Debian. ED provides a treasure of applications, some of which might well deserve to be discussed in their own threads. I created one of them Calibre on Easy Debian. I would like create another two, xpdf and stardict-gtk on ED type of. What do you think? Should I create them under Alternatives or wait for someone to provide a new space under alternatives?

With the latter, we can well have list of thread showing which apps working fine and which has problems etc...

happymonkey 2010-08-28 12:23

Re: Easy Debian Fremantle Beta Testing
 
I want to use XFig in Easy Debian but to do so I need middle, and right mouse buttons. Long press doesn't appear to work in XFig to emulate right mouse button - does this have to do with Motif - and middle mouse button I'm at a total loss on how to do this. Can someone help me get middle and right mouse button emulation on XFig? thank you

qole 2010-08-28 15:53

Re: Easy Debian Fremantle Beta Testing
 
happymonkey: I don't know how to get middle button, and the long press right button emulation only works in GTK apps.

You might need to buy a bluetooth mouse if you want 3 buttons...

happymonkey 2010-08-28 16:25

Re: Easy Debian Fremantle Beta Testing
 
Thank you qole it's good to know the current limitations for Easy Deb.. One possible solution I've thought of is compiling/installing Easystroke but using the keyboard alone would have been preferable.

rebhana 2010-08-28 18:01

Re: Easy Debian Fremantle Beta Testing
 
After my N900 got stolen and I finally got a new one, I had to reinstall Easy Debian. Fortunately I had kept records of what I had been doing with Easy Debian over the last half year.
On http://wiki.maemo.org/User_talk:Rebhana I have now compiled a concise list of modifications and additions to Easy Debian that I think might be useful to other users of Easy Debian, including a list of packages that I've installed successfully and that I'm actually using regularly.

mail_e36 2010-08-30 17:09

Re: Easy Debian Fremantle Beta Testing
 
Dear Qole,

Thank you again for a great application. I have one question which I feel is best addressed to you, the creator of Easy Debian. I have installed 'third-party' applications within Easy Debian such as Putty (for SSH GUI) and Khexedit (a hex editor). The programs runs flawlessly inside the LXDE desktop environment, however if I try to run the programs from the Maemo terminal (after running "debian" as root) all keyboard input does not go in the newly opened program, but instead keyboard input goes on the terminal command line (which I can see once I quit the application). Stylus support works well, I can click stuff, but I cannot enter any text to show up in the applications.

I often like to initiate non-Maemo programs such as Putty and Khexedit directly from the command line (as opposed to entering the LXDE environment), can you please provide any ideas on how to get the keyboard to input commands correctly?

Thank you again

Critical_Impact 2010-08-31 17:10

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by mail_e36 (Post 802425)
Dear Qole,

Thank you again for a great application. I have one question which I feel is best addressed to you, the creator of Easy Debian. I have installed 'third-party' applications within Easy Debian such as Putty (for SSH GUI) and Khexedit (a hex editor). The programs runs flawlessly inside the LXDE desktop environment, however if I try to run the programs from the Maemo terminal (after running "debian" as root) all keyboard input does not go in the newly opened program, but instead keyboard input goes on the terminal command line (which I can see once I quit the application). Stylus support works well, I can click stuff, but I cannot enter any text to show up in the applications.

I often like to initiate non-Maemo programs such as Putty and Khexedit directly from the command line (as opposed to entering the LXDE environment), can you please provide any ideas on how to get the keyboard to input commands correctly?

Thank you again

I have a similar problem. It is with the game Tile World. I tried using qobi-wmhint-fix through a shell script to bring focus back to the game but I'm having trouble automating it. I can get it to work manually though.

Would it be possible for anyone to create a program or shell script that will run a program and apply the fix automatically to it after running it?

rebhana 2010-08-31 19:57

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by Critical_Impact (Post 803360)
I have a similar problem. It is with the game Tile World. I tried using qobi-wmhint-fix through a shell script to bring focus back to the game but I'm having trouble automating it. I can get it to work manually though.

Would it be possible for anyone to create a program or shell script that will run a program and apply the fix automatically to it after running it?

You could try something analogous to qole's hacks for LXDE in $CHROOT/usr/bin/xephwm5 (but with qobi-wmhint-fix in place of setfocus), to wit,
Code:

#!/bin/sh
##################################
#Change these two variables to the WM of your choice.
WMNAME="$1" ; WMEXEC="$2"
[ "x$WMNAME" != x ] ||  WMNAME="Xephyr"
[ "x$WMEXEC" != x ] ||  WMEXEC="startlxde1"
##################################
export DISPLAY=:0
export TSLIB_TSDEVICE=/dev/input/event3
#export TSLIB_CALIBFILE=/etc/pointercal
export GTK_MODULES=libgtkstylus.so
zenity --display=:0 --info --title="Information" --text="Welcome to Easy Debian LXDE. This window is needed to gain keyboard focus in LXDE. Click OK." &
/usr/bin/Xephyr :1 -screen 800x480 -br -ac &
while [ "x$PARWIN" = "x" ] ; do
  # wait for Xephyr window to appear
  export PARWIN=`wmctrl -l | grep -i $WMNAME | awk '{print $1}'`
  echo "($PARWIN)"
done
DISPLAY=:1 ; habak -mf /usr/share/fonts/truetype/DroidSans-Bold.ttf \
    -ht 'Ctrl-back to return to dashboard.'
DISPLAY=:0 ; wmctrl -i -r $PARWIN -T 'Easy Debian'
wmctrl -i -r $PARWIN -b toggle,fullscreen
while [ "x$TWOWIN" = "x" ] ; do
  # wait for Zenity dialog to pop up...
  export TWOWIN=`wmctrl -l | grep -i Information | awk '{print $1}'`
done
#echo window id: $TWOWIN
wmctrl -i -a $TWOWIN
sudo /sbin/qobi-wmhint-fix $PARWIN
#/usr/bin/set-focus $PARWIN
wmctrl -i -a $PARWIN
/usr/bin/$WMEXEC
killall Xephyr
export DISPLAY=:0

That could perhaps be adapted by replacing WMNAME and WMEXEC according to your needs.

Or have you already tried exactly this?

qole 2010-09-01 06:50

Re: Easy Debian Fremantle Beta Testing
 
critical impact:

You've given me a great idea. I'll add a script to apply the keyboard fix to the current window to the keyboard hacks (the Set Deb HW Keys icon).

Any idea what key combo would be the best to activate the hack?

rebhana 2010-09-01 07:53

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by qole (Post 803929)
critical impact:

You've given me a great idea. I'll add a script to apply the keyboard fix to the current window to the keyboard hacks (the Set Deb HW Keys icon).

Any idea what key combo would be the best to activate the hack?

Great idea! I'm curious to see the script!

What about Fn+Return as key combo?

mail_e36 2010-09-01 15:48

Re: Easy Debian Fremantle Beta Testing
 
qole,

This sounds like a great fix, I am assuming this would this address the issue of keyboard input not going into the newly opened Easy Debian application from within the Maemo native terminal?

Thank you

Quote:

Originally Posted by qole (Post 803929)
critical impact:

You've given me a great idea. I'll add a script to apply the keyboard fix to the current window to the keyboard hacks (the Set Deb HW Keys icon).

Any idea what key combo would be the best to activate the hack?


extendedping 2010-09-03 19:57

Re: Easy Debian Fremantle Beta Testing
 
question. I have easy debian running where it
a) logs me into the debian /root dir
b) restarts apache and mysql every time you relaunch easy debian.

I just noticed that after stopping debian via the down icon that running top in maemo still shows mysqld running....is this normal? I want no extra stuff eating processing power and battery when debian is "off" as the battery ain't great to begin with. thanks. btw I did dpkg -l | grep -i mysql in m maemo so I dont think it is a maemo instance if mysql???

rebhana 2010-09-03 22:23

Re: Easy Debian Fremantle Beta Testing
 
2 Attachment(s)
I have previously shown how xmaxima, an open-source symbolic math program runs under Easy Debian's LXDE window manager. Maxima is not as powerful as Wolfram's Mathematica or Maple, but comes surprisingly close. If you often need higher math, you might be interested in having maxima as an app on your N900.

Now I have discovered that there is an alternative GUI for maxima, wxmaxima, which has the advantage that it also runs nicely with debbie and is much more convenient to use. It can be installed from lenny-backports by
Code:

apt-get -t lenny-backports install wxmaxima
Maxima commands are executed by Shift+Return, provided one has selected "Enter evaluates cells" in the configure menu and xbindkeys is running (the "Set Deb HW Keys" icon). If the configure menu is too much scrambled under debbie, you can also do it from LXDE.

Producing a file /usr/share/applications/hildon/wxmaxima.desktop with content
Code:

[Desktop Entry]
Encoding=UTF-8
Name=wxMaxima
GenericName=wxMaxima
Exec=debbie "xbindkeys; wxmaxima"
Icon=maxima-icon
X-Osso-Type=application/x-executable
X-HildonDesk-ShowInToolbar=true
Terminal=true
Type=Application
StartupNotify=true

gives a pocket symbolic math calculator that can be easily launched. A nice maxima icon is obtained by copying (one line!)
Code:

cp /.debian/usr/share/pixmaps/maxima-icon.png /usr/share/icons/hicolor/scalable/hildon/
Here are two screenshots. The first shows an indefinite integration, and an embedded 3d plot; the second the same 3d plot rendered with "openmath" option, which opens the plot in a separate window, where one can rotate it with stylus or finger! :cool:

rebhana 2010-09-03 22:56

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by extendedping (Post 806581)
question. I have easy debian running where it
a) logs me into the debian /root dir
b) restarts apache and mysql every time you relaunch easy debian.

I just noticed that after stopping debian via the down icon that running top in maemo still shows mysqld running....is this normal? I want no extra stuff eating processing power and battery when debian is "off" as the battery ain't great to begin with. thanks. btw I did dpkg -l | grep -i mysql in m maemo so I dont think it is a maemo instance if mysql???

For me closechroot stops everything, but I don't have mysql and apache servers running. Perhaps you should add a script to shut them down explicitly, or, simpler, insert something like
Code:

debian "killall apache"
debian "killall mysqld"

in the appropriate place of /sbin/closechroot?

Cue 2010-09-03 23:09

Re: Easy Debian Fremantle Beta Testing
 
rebhana, can maxima open .nb files? the syntax looks slightly different to mathematica so I'm guessing not. it would be great to open some of my mathematica notebooks on the n900, even if I have to change a few brackets here and there.

rebhana 2010-09-03 23:17

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by Cue (Post 806715)
rebhana, can maxima open .nb files? the syntax looks slightly different to mathematica so I'm guessing not. it would be great to open some of my mathematica notebooks on the n900, even if I have to change a few brackets here and there.

I'd be surprised if it could. Maxima syntax is actually closer to Maple, but wxMaxima has borrowed some features from Mathematica notebooks.

artron 2010-09-04 01:16

Re: Easy Debian Fremantle Beta Testing
 
Quote:

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

ubuntu-m5-v1.img.ext2.lzma

if i change from image before is debian-m5-v3d.img.ext2 to new image ubuntu-m5-v1.img.ext2.lzma, is the LXDE will boot ubuntu on it?

josx 2010-09-04 15:30

Re: Easy Debian Fremantle Beta Testing
 
On my laptop I use

xrandr --output LVDS1 --mode 1280x800 --scale 1.5x1.5

to squeeze a bit more resolution onto my small screen. Is
it possible to do this with easy debian? Would be nice
to fit larger applications on the screen

extendedping 2010-09-05 04:40

Re: Easy Debian Fremantle Beta Testing
 
thanks for the hint about putting commands in /sbin/chroot. I want to see what quole (if he is reading) would suggests before I tinker (which for me probably means wreck) a script. I have
apache2 restart
mysqld restart
in $CHROOT/var/run/onfirstchroot.rc.
when I use the debiandown icon and then run top from maego, again I see mysqld running (but not apache2). when I start easy debian again it starts apache2 but tells me mysqld is already running.

I'd like to get this fixed as mysqld is (I presume) eating my resources and battery (it is near the top of the top command output constantly). Thanks foe listening...

qole 2010-09-05 05:02

Re: Easy Debian Fremantle Beta Testing
 
extendedping, instead of choosing the "debiandown" icon, please open a terminal and run

Code:

sudo closechroot
please post the output here.

I want to see if there are some hints as to why your closechroot script isn't closing everything...

rebhana 2010-09-05 09:10

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by extendedping (Post 807589)
thanks for the hint about putting commands in /sbin/chroot. I want to see what quole (if he is reading) would suggests before I tinker (which for me probably means wreck) a script.

You cannot do much harm by just trying. Just make a backup copy of the original script!
Code:

cp -a /sbin/chroot /home/user
(the "-a" switch is to preserve permissions and time stamps)

rebhana 2010-09-05 10:21

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by Honza. (Post 798748)
rebhana: Thank you, I added /.debian/; now image-viewer is OK, but hildon-thumbnai still eats 100% of CPU for long time when I mount partition.

Found this post with suggestions of how to tame this daemon.

rebhana 2010-09-05 13:35

Re: Easy Debian Fremantle Beta Testing
 
1 Attachment(s)
OK, this is perhaps only something of interest to theoretical high energy physicists, superstring theorists and the like: I've successfully installed and tested the computer algebra system Cadabra in Easy Debian. Cadabra is now available in Debian squeeze and can be installed from there with
Code:

apt-get install cadabra texlive-latex3
(texlive-latex3 is a missing dependency). On my installation, it was just barely possible given the space limitations, but once installed it runs nicely and fast with "debbie xcadabra".

extendedping 2010-09-05 14:32

Re: Easy Debian Fremantle Beta Testing
 
here is what I see...when I close debian via closechroot. running top after this shows mysql not there. however if I close debian via the icon it still shows

1) output of closechroot


~ $ sudo closechroot
Closing the chroot...
...closing chroot apps...
..Unmounting bound dirs...
unmounting /.debian/dev
unmounting /.debian/proc
unmounting /.debian/tmp
unmounting /.debian/var/tmp
unmounting /.debian/sys
unmounting /.debian/home
unmounting /.debian/var/run/dbus
unmounting /.debian/var/lib/dbus
unmounting /.debian/var/run/pulse
..Unmounting /.debian...
successful unmount...
chroot closed.

2) top after then reopening debian and using the down icon

: 234444K used, 10856K free, 0K shrd, 1652K buff, 85228K cached
CPU: 13.4% usr 4.5% sys 0.0% nice 81.9% idle 0.0% io 0.0% irq 0.0
Load average: 0.66 0.43 0.30
PID PPID USER STAT RSS %MEM %CPU COMMAND
1006 670 root S < 16576 6.7 7.1 /usr/bin/Xorg -logfile /tmp/X
6597 1176 user S 10352 4.2 5.5 /usr/bin/osso-xterm
1293 1176 user S 7636 3.1 2.9 /usr/bin/hildon-desktop
6601 6599 user R 736 0.3 0.5 top
6570 6315 101 S 15720 6.3 0.4 /usr/sbin/mysqld --basedir=/u
909 670 root S < 2192 0.8 0.4 /sbin/mce --force-syslog
10 2 root SW 0 0.0 0.2 [omap2_mcspi]
1000 2 root SW 0 0.0 0.2 [sgx_misr]
4 2 root SW 0 0.0 0.2 [events/0]
218 2 root SW 0 0.0 0.2 [vibra]
4611 1408 user

so again, when closing via command line there is no mysqld in top but it is there after using the icon...

extendedping 2010-09-05 15:13

Re: Easy Debian Fremantle Beta Testing
 
ok just retested and now neither the icon or the command are stopping mysql...

rebhana 2010-09-05 15:32

Re: Easy Debian Fremantle Beta Testing
 
Quote:

Originally Posted by extendedping (Post 807908)
ok just retested and now neither the icon or the command are stopping mysql...

Strange! Do you have mysql in Maemo, too? In XTerminal, not in Debian, do you get something when you type
Code:

ls -l /usr/sbin/mysqld

qole 2010-09-05 17:37

Re: Easy Debian Fremantle Beta Testing
 
extendedping: I need to see your output when the closechroot command does NOT stop mysqld.

And it won't work if you run closechroot a second time after a failed attempt, because it thinks the chroot is closed already. That's probably a bug I should fix.

extendedping 2010-09-05 18:11

Re: Easy Debian Fremantle Beta Testing
 
rebooted
opened debian
output of closechroot

7176 2.9 0.0 /usr/sbin/apache2 -k start
Nokia-N900:~# closechroot
Closing the chroot...
...closing chroot apps...
..Unmounting bound dirs...
unmounting /.debian/dev
unmounting /.debian/proc
unmounting /.debian/tmp
unmounting /.debian/var/tmp
unmounting /.debian/sys
unmounting /.debian/home
unmounting /.debian/var/run/dbus
unmounting /.debian/var/lib/dbus
unmounting /.debian/var/run/pulse
..Unmounting /.debian...
successful unmount...
chroot closed.

output of top immediatly after

.0% io 0.0% irq 0.0
Load average: 0.68 0.85 0.55
PID PPID USER STAT RSS %MEM %CPU COMMAND
991 672 root S < 21216 8.6 27.2 /usr/bin/Xorg -logfile /tmp/X
2183 2018 root R 576 0.2 9.0 top
2096 1340 user S 52540 21.3 0.0 /usr/sbin/browserd -s 2096 -n
2138 1340 user S 23048 9.3 0.0 /usr/sbin/browserd -s 2138 -n
2095 1178 user S 21228 8.6 0.0 /usr/bin/browser
2161 1178 user S 15820 6.4 0.0 /usr/bin/modest
2155 1178 user S 13108 5.3 0.0 /usr/bin/image-viewer
1290 1178 user S 10808 4.3 0.0 /usr/bin/hildon-status-menu
2132 1178 user S 10740 4.3 0.0 /usr/bin/rtcom-messaging-ui
2124 1178 user S 10368 4.2 0.0 /usr/bin/osso-addressbook
2128 1178 user S 10216 4.1 0.0 /usr/bin/rtcom-call-ui
2158 1178 user S 10124 4.1 0.0 /usr/bin/Calendar

thanks

extendedping 2010-09-05 18:22

Re: Easy Debian Fremantle Beta Testing
 
sorry I keep trying to catch the mysqld output in top but I can't grab it (due to it refreshing) but it is still there.


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

vBulletin® Version 3.8.8