maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Debian] Debian Apps That Run Well On The Tablets (https://talk.maemo.org/showthread.php?t=21719)

dan 2008-08-22 16:58

Re: Debian Apps That Run Well On The Tablets
 
Fatalsaint you should not have posted those QT website apps. When can you start making debs I want them all. LOL :) Especially 3d modelling, seismic, etc... Those are not in Maemo or Debian so it would be fun to have them on Nxx's. Any other off the wall website that we can port apps from?

fatalsaint 2008-08-22 17:20

Re: Debian Apps That Run Well On The Tablets
 
The 3d apps you will have problems with.. OpenGL does not run on our tablets.. and MESA is god awful slow..

So 3d Modelling is not likely.

dan 2008-08-22 20:57

Re: Debian Apps That Run Well On The Tablets
 
Fatalsaint is this a safe command to do on flash side in xterm. The reason I ask is my battery image disappears occasionally and the bars don't go up when charging. Will iy knock out my mouse?
TIA
Edit: fsck -fy /dev/mmcblk0p2

fatalsaint 2008-08-22 21:05

Re: Debian Apps That Run Well On The Tablets
 
Is what a safe command to do in Flash?? The icon cache thing??? I dunno?? should be... then again it shouldn't have trashed your cache the last time so I can't say anything with certainty...

Benson 2008-08-22 21:17

Re: Debian Apps That Run Well On The Tablets
 
Those issues are related to the icon cache; I don't think the cursors are. You picked up the mouse cursors by nuking ~/.icons/xcursor-transparent, and you won't put that back with gtk-update-icon-cache.

As for safety, it shouldn't be able to trash anything but your icon cache, and it shouldn't even trash that. Which is nice in theory. :/

Edit: Just saw your edit. I normally run fsck with -p and see if it errors; of course, if it does I still wind up doing the practical equivalent of -y, since I don't know ext2fs well enough to even contemplate a manual recovery. But strictly, no, -y is not safe.

fatalsaint 2008-08-22 21:20

Re: Debian Apps That Run Well On The Tablets
 
Oh.. Saw your edit.. yes - that will not hide your mouse again. That is simply a filesystem check.. at worst it'll find so many errors that all your apps will break :D.. but this is highly unlikely if you've been using it without problems. But I also don't think it's going to fix that battery icon problem you explained..

Nice job Benson - Now I can get my cursor on Maemo :D.. we didn't know what he trashed when he rm -r'd his entire /home/user directory that brought that mouse icon back.

BrentDC 2008-08-22 21:26

Re: Debian Apps That Run Well On The Tablets
 
I just did a bit of Google'ing and 99% of the icon cache errors were caused by a bad .png file; this supports my idea of what the problem is in post #191. I would try getting rid (i.e. moving somewhere else) any recent icon editions you've made and running gtk-update-icon-cache again and see if that doesn't fix your problem.

dan 2008-08-22 21:28

Re: Debian Apps That Run Well On The Tablets
 
OK fixed icon message mess by just deleting all the .png icons I had put in and using th gtk... command above. Now I just have one more message to clean up.
' /home/user/.osso/current-gtk-key-theme:1: Unable to find include file: "keybindings.rc" ' Any ideas what that is? At least I don't have scrolling errors anymore. :)
What did Benson say about mouse cursor on Maemo? Didn't understand. If I lose I want to bring back. :) TIA

fatalsaint 2008-08-22 21:30

Re: Debian Apps That Run Well On The Tablets
 
There is apparantly a file:

~/.icons/xcursor-transparent

That turns the cursor off (makes it transparent). If you delete that file (which you did) the cursor comes back.

dan 2008-08-22 21:30

Re: Debian Apps That Run Well On The Tablets
 
BrentDC how come you don't have a 'Thanks' button?
I did what you said earlier and solved problem. Funny the icons are all there still. Maybe when I reboot they will disappear. :(

Benson 2008-08-22 21:33

Re: Debian Apps That Run Well On The Tablets
 
OK, that error means that there used to be a keybindings.rc in your home directory somewhere.

As for the mouse cursor; you've always had one. Before, you just couldn't see it. Because some people think not having a cursor makes loads of sense on a touchscreen, the cursor theme is completely transparent. If you remove the cursor theme (rm -r ~/.icons/xcursor-transparent, carefully avoiding a space after the initial / ;)), it has to fall back on the built-in default theme.

That was part of the early DIY round of USB and BT mouse support; I'm not sure what Rob's script does now, but it doesn't wholesale delete it, as it restores the cursor to invisibility after the mouse is disconnected.

Edit: about Thanks! buttons, they don't show up in the AJAX-added forum posts. Reload the page from the server and they'll be there. (And Fatal, it's a directory, not a file; same idea.)

dan 2008-08-22 21:35

Re: Debian Apps That Run Well On The Tablets
 
Benson why is my battery icon disappearing when I put charge on? What did I nuke this time and how do I fix?

What does this do and will it nuke more things? Just trying to understand these commands.

fsck -fy /dev/mmcblk0p2

dan 2008-08-22 21:42

Re: Debian Apps That Run Well On The Tablets
 
Benson then is it possible to make a theme with Thememaker to have my menus transparent so that my icons float in front of my background image. I just want the three menus on the left side of screen when I open them to show my apps icons floating in a clear box with white line borders. Like Munky261 transparent icons. Off the subject but you seem to know icons and such. TIA

dan 2008-08-22 21:44

Re: Debian Apps That Run Well On The Tablets
 
Benson how do I get the keybindings.rc back in my home directory? TIA

dan 2008-08-22 21:46

Re: Debian Apps That Run Well On The Tablets
 
OK Benson I understand the mouse curser but why do I now have mouse functions in Debian? I thought Easy Debian didn't have mouse support. Confused?

Benson 2008-08-22 21:49

Re: Debian Apps That Run Well On The Tablets
 
Battery icon also comes from the icon cache; it has (somehow) procured and cached a blank icon in lieu of the battery charging icons. Using gtk-update-icon-cache in some way, and possibly rebooting (or just restarting hildon-desktop) should fix it.

fsck checks a filesystem by determining the type and calling fsck.$TYPE, e.g. fsck.ext2 for e[23]fs.
-f says force a check, even if the file system looks to have been taken care of.

-y says to answer yes to all questions; this makes it do its best effort at repairing things, but it may lead to avoidable data loss if there are problems with the filesystem. (That is, a filesystem guru manually recovering the filesystem may be able to recover all the data (and make the filesystem valid), but fsck's best guess, while it actually restores validity, does so by trashing some of the data.)

-p will fix all the things that are not quite right, but have an unambiguous (hence safe) remedy, so this is better for automatic scripts that need to run unattended than -y; you can detect failure and fire off an email to the sysadmin's pager instead of taking a chance on toasting data.

Of course, if there are no errors in your filesystem that would fail -p, -y won't hurt anything, and if there are, you probably don't have the skills to do any better than -y; it's just not correct to call it "safe". At least if you run -p first, and it tells you it ran into trouble, you can enjoy hours of trepidation before hitting return on -y. :D

Benson 2008-08-22 22:04

Re: Debian Apps That Run Well On The Tablets
 
Quote:

Originally Posted by dan (Post 216558)
Benson then is it possible to make a theme with Thememaker to have my menus transparent so that my icons float in front of my background image. I just want the three menus on the left side of screen when I open them to show my apps icons floating in a clear box with white line borders. Like Munky261 transparent icons. Off the subject but you seem to know icons and such. TIA

Not really knowledgable at all except where I've run into them before. No clue on that, but it seems unlikely. Generally, solid colors are unlikely to be transparentable, while things that are .pngs are more likely.


For the keybindings.rc; grab a copy from someone who hasn't nuked their home directory, and drop it in ~/.osso/. (You could extract it from a fiasco image, but don't worry; I'll upload it in a minute.)

As for the mouse working, I have to admit to being a little confused as well.

Try
Code:

ps -e |grep evrouter
ps -e |grep mouse_poll

All I can think is you've got mouse support installed already, or we've been snuck a pretty dandy update in our SSU. I'm hoping for the latter.

dan 2008-08-22 22:17

Re: Debian Apps That Run Well On The Tablets
 
oh your good. :) trepidation I lack, hence all these nukes. :)
What about transparent menu? Any ideas? :)
Anyone have any other cools apps for Debian I should add?

Benson 2008-08-22 22:20

Re: Debian Apps That Run Well On The Tablets
 
Quote:

Originally Posted by Benson (Post 216567)
Not really knowledgable at all except where I've run into them before. No clue on that, but it seems unlikely. Generally, solid colors are unlikely to be transparentable, while things that are .pngs are more likely.

Where the 'that' that I'm clueless on is transparenting the menus.

dan 2008-08-22 22:21

Re: Debian Apps That Run Well On The Tablets
 
I think they snuck it in for a future release. I remember Jolouis saying that he could not find it in OS2008 this was way before Diablo. I'lll give him a call next week. He would probably be able figure it out. Thanks for all your help.

dan 2008-08-22 23:00

Re: Debian Apps That Run Well On The Tablets
 
Benson any luck finding the keybindings.rc? TIA

BrentDC 2008-08-22 23:10

Re: Debian Apps That Run Well On The Tablets
 
dan, you boot from mmc, right? What I would do is boot back into flash, then tar up my /home/user/ dir and put it on an expansion card. Then when your system complains about needing stuff, add missing said file back?

dan 2008-08-22 23:57

Re: Debian Apps That Run Well On The Tablets
 
BrentDC, I boot from mmc. I don't understand what tar is. I'm a newbie at this command line. If someone has posted the file I need I don't see it. Thanks for your help the past few days.

Benson 2008-08-23 00:07

Re: Debian Apps That Run Well On The Tablets
 
1 Attachment(s)
Ummm.... yeah. I forgot about that.

Look for an attachment in ~3 minutes. (I'm bumping the thread here, then I'll attach it from my N800.)

dan 2008-08-23 02:05

Re: Debian Apps That Run Well On The Tablets
 
I understand I need to put this file in the osso... but do I need to unpack first or what?
Can you provide instructions. TIA

fatalsaint 2008-08-23 02:12

Re: Debian Apps That Run Well On The Tablets
 
yes u would...

gunzip keybindings.rc.gz

it will produce keybindings.rc which u put in the forementioned location...

dan 2008-08-23 06:19

Re: Debian Apps That Run Well On The Tablets
 
Thanks Benson, Fatalsaint and BrentDC for helping me fix all the icon problems.

I just updated my application manager and there are a bunch of demos and stuff for QT4. My hunch was right. I think we are going to be treated to whole bunch of custom QT apps including I hope KDEv4 just for our tablets. :)

dan 2008-08-24 00:11

Re: Debian Apps That Run Well On The Tablets
 
Qole can you help me figure out what is wrong in this install of Alsa-base, etc... I followed your instructions to the letter in earlier post on this thread. I have two issues as follows :
1.) I keep getting the dreaded ' out of space on devise ' I have several gb's of space. I've checked online and it seems pretty common for Debian install but no solution for N800. Any workaround you know of? I've done apt-get autoclean, apt-get clean all, apt-get clean, and gtkorphan to remove orphan packages.
2.) When I type in alsa-utils start I get, ' Invalid command! done. (see below)

[root@Debian: /]apt-get install alsa-base alsa-utils libasound2-plugins alsa-oss
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-uno libdb4.3
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libasyncns0 libpulse0 libsamplerate0
linux-sound-base lsof
Suggested packages:
apmd pulseaudio
The following NEW packages will be installed:
alsa-base alsa-oss alsa-utils libasound2-plugins
libasyncns0 libpulse0 libsamplerate0
linux-sound-base lsof
0 upgraded, 9 newly installed, 0 to remove and 200 not upgraded.
Need to get 3339kB of archives.

/usr/bin/mandb: can't write to /var/cache/man/1692: No space left on device

(goes on for a page so I deleted )


Setting up libpulse0 (0.9.10-2) ...
Setting up libsamplerate0 (0.1.4-1) ...
Setting up libasound2-plugins (1.0.16-1+b1) ...
Processing triggers for menu ...

It seems to have load though, then when I do the following I get:

[root@Debian: /]tar xzvf /home/user/MyDocs/alsa-files.tar.gz
usr/share/alsa/alsa.conf
etc/asound.conf
[root@Debian: /]/etc/init.d/alsa-utils start
Setting up Alsa...amixer: Invalid command! done.
[root@Debian: /]

Then I figured what the heck, it seems to have loaded why not try to get in. :)

[root@Debian: /]alsa
Usage: /usr/sbin/alsa {unload|reload|force-unload|force-reload|suspend|resume}
[root@Debian: /]alsa resume
[root@Debian: /]alsa reload
lsof: WARNING: can't stat() jffs2 file system /mnt/initfs
Output information may be incomplete.
lsof: WARNING: can't stat() proc file system /mnt/initfs/proc
Output information may be incomplete.
lsof: WARNING: can't stat() sysfs file system /mnt/initfs/sys
Output information may be incomplete.
lsof: WARNING: can't stat() tmpfs file system /mnt/initfs/tmp
Output information may be incomplete.
/usr/sbin/alsa: Warning: Processes using sound devices: 913(multimediad) 1387(mpd).
Unloading ALSA sound driver modules:.
Loading ALSA sound driver modules: (none to reload).[root@Debian: /]alsa unload
lsof: WARNING: can't stat() jffs2 file system /mnt/initfs
Output information may be incomplete.
lsof: WARNING: can't stat() proc file system /mnt/initfs/proc
Output information may be incomplete.
lsof: WARNING: can't stat() sysfs file system /mnt/initfs/sys
Output information may be incomplete.
lsof: WARNING: can't stat() tmpfs file system /mnt/initfs/tmp
Output information may be incomplete.
/usr/sbin/alsa: Warning: Processes using sound devices: 913(multimediad) 1387(mpd).
Unloading ALSA sound driver modules:.
[root@Debian: /]alsa load
Usage: /usr/sbin/alsa {unload|reload|force-unload|force-reload|suspend|resume}
[root@Debian: /]alsa resume
[root@Debian: /]

Can you walk me through this. I seem to be in (or not, dunno???)

P.S. I have no idea what I'm doing(as usual) :)

TIA

qole 2008-08-24 03:34

Re: Debian Apps That Run Well On The Tablets
 
Are you sure you have a few GB of space free?

at your Debian prompt, type
Code:

df -h
and look for the one that just has a "/" under "Mounted on" ... it should be the first line. What's your available space?

I'm also thinking you might need to do a "fsck.ext2" on your Debian partition.

dan 2008-08-24 03:47

Re: Debian Apps That Run Well On The Tablets
 
I have Debian on mmc1 and the card shows I have 3.5gb still free.
Here is result of ' df -h '

[root@Debian: /]df -h
Filesystem Size Used Avail Use% Mounted on
sysfs 1008M 999M 0 100% /sys
[root@Debian: /]

Yikes! But I have 3.5gb available on that card. Please explain? TIA

qole 2008-08-24 04:00

Re: Debian Apps That Run Well On The Tablets
 
I don't want the one that says /sys I want the one that just has /

Maybe post the entire output of df -h

dan 2008-08-24 04:21

Re: Debian Apps That Run Well On The Tablets
 
That's it. Nothing else came on screen after I typed ' df -h '.

dan 2008-08-24 16:04

Re: Debian Apps That Run Well On The Tablets
 
At my xterm prompt I get more info then my Debian prompt.. Don't know why? Idea is there a file with Debian that I can go in and increase the size of Debian file? TIA

/home/user # df -h
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p2 4.0M 2.2M 1.8M 54% /mnt/initfs
none 2.0M 104.0k 1.9M 5% /mnt/initfs/tmp
/dev/mmcblk0p2 20.3G 1.4G 17.9G 7% /
none 2.0M 104.0k 1.9M 5% /tmp
none 1.0M 68.0k 956.0k 7% /dev
tmpfs 1.0M 0 1.0M 0% /dev/shm
/dev/mmcblk0p1 8.8G 32.0k 8.8G 0% /media/mmc2
/dev/mmcblk1p1 15.3G 12.2G 3.1G 80% /media/mmc1
/dev/loop0 1007.9M 998.3M 0 100% /debian
none 1.0M 68.0k 956.0k 7% /debian/dev
none 2.0M 104.0k 1.9M 5% /debian/tmp
/dev/mmcblk1p1 15.3G 12.2G 3.1G 80% /debian/media/mmc1
/dev/mmcblk0p1 8.8G 32.0k 8.8G 0% /debian/media/mmc2
/dev/mmcblk0p2 20.3G 1.4G 17.9G 7% /debian/media/usb
/dev/mmcblk0p2 20.3G 1.4G 17.9G 7% /debian/home/user
none 2.0M 104.0k 1.9M 5% /debian/var/run/dbus
/home/user #

fatalsaint 2008-08-24 18:09

Re: Debian Apps That Run Well On The Tablets
 
what the hell?

/dev/loop0 1007.9M 998.3M 0 100% /debian

something is very wrong with your chroot setup...that is the debian root...

are you using the image file?? thats what that looks like to me..and the root drive is indeed full.

Modify your /home/user/.chroot if you want to use a partition or clean out some space inside your image....somewhere around here some explained how to resize the image file as well with resize2fs.

dan 2008-08-24 20:10

Re: Debian Apps That Run Well On The Tablets
 
Fatalsaint, in both xterm and chroot says, ' no file or directory ' when I type ' /home/user/.chroot ' . I always get the message at startup of chroot,
' Setting up the chroot...
using device: /media/mmc1/debian.img.ext2
insmod: cannot insert '/mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko': File exists (-1): File exists
Using ext2 file system
insmod: cannot insert '/mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko': File exists (-1): File exists
.
..
...
....
Everything set up, running chroot...
[root@Debian: / '
then after I put in xterm the following command , ' mount -o bind /var/run/dbus/ /debian/var/run/dbus/ ' when I go restart chroot no error just the chroot prompt. Don't understand any of this but Debian and chroot always work well. It's adding apps to Debian that's impossible. TIA

qole 2008-08-24 21:13

Re: Debian Apps That Run Well On The Tablets
 
The .chroot file is in your home directory, and if, perchance, you were to nuke your home directory, the .chroot file would be lost, along with any custom settings for your Debian chroot...

fatalsaint 2008-08-24 22:12

Re: Debian Apps That Run Well On The Tablets
 
Ohhh.. YEAH.. I suppose he WOULD be having issues if you, by chance, nuked your home directory.. lol.

here dan:
Quote:

IMGFILE=/dev/mmcblk1p2
IMGFS=ext3
CHROOT=/debian
TMPSIZE=5M
DEBUSER=user
Put that into /home/user/.chroot and modify the IMGFILE to be your partition obviously.

BrentDC 2008-08-24 22:18

Re: Debian Apps That Run Well On The Tablets
 
Quote:

Originally Posted by dan (Post 217057)
Fatalsaint, in both xterm and chroot says, ' no file or directory ' when I type ' /home/user/.chroot ' . I always get the message at startup of chroot,
' Setting up the chroot...
using device: /media/mmc1/debian.img.ext2
insmod: cannot insert '/mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko': File exists (-1): File exists
Using ext2 file system
insmod: cannot insert '/mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko': File exists (-1): File exists
.
..
...
....
Everything set up, running chroot...
[root@Debian: / '
then after I put in xterm the following command , ' mount -o bind /var/run/dbus/ /debian/var/run/dbus/ ' when I go restart chroot no error just the chroot prompt. Don't understand any of this but Debian and chroot always work well.

The errors are normal. You only get the errors the first time you run the chroot after a reboot, so that is why the second and any subsequent times you run it you don't get errors.

dan 2008-08-25 00:05

Re: Debian Apps That Run Well On The Tablets
 
fatalsaint, thanks

A little confused about where to put the following. I don't have a ' /home/user/.chroot ' file. Do I do the following in chroot or xterm? Also, why is ' TMPSIZE ' so small(5M)? Just trying to understand what is going on. It is amazing how my system still works with all the nuking I've done. :)

IMGFILE=/dev/mmcblk1p2
IMGFS=ext3
CHROOT=/debian
TMPSIZE=5M
DEBUSER=user

P.S. How can I add several gb's to the ' /.chroot ' file so I have plenty of space to add more apps.

dan 2008-08-25 00:10

Re: Debian Apps That Run Well On The Tablets
 
BrentDC thanks.
How can I add the following command to GParted so I don't have to do it in xterm everytime I want to load GParted after a reboot? I'm tired of having to do that command everytime I want to use GParted after a reboot. I don't have to do that command for QTParted. TIA

' mount -o bind /var/run/dbus/ /debian/var/run/dbus/ '


All times are GMT. The time now is 12:07.

vBulletin® Version 3.8.8