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)

BrentDC 2008-08-20 17:32

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

Originally Posted by dan (Post 215803)
BrentDc If I go and put ooo-gulls.png on any app in that folder it changes icon to ooo-gulls.png and if I change it back it to its original .png it goes back. Any ideas?
TIA


I don't understand what it is you're saying.

What I did is:

Placed an 64x64 icon called 'gnome.png' in '/usr/share/icons/hicolor/scalable/apps/'.

Edited my gnome.desktop file to look like this (notice the Icon=gnome line).

Code:

[Desktop Entry]
Encoding=UTF-8
Name=GNOME
GenericName=GNOME
Exec=/usr/bin/hostwin GNOME 'sudo debian xpgnome'
Icon=gnome
X-Osso-Type=application/x-executable
X-HildonDesk-ShowInToolbar=true
Terminal=true
Type=Application
StartupNotify=true

Then ran:
Code:

gtk-update-icon-cache -f /usr/share/icons/hicolor/
Result:

http://i269.photobucket.com/albums/j...enshot05-1.png

dan 2008-08-20 17:49

Re: Debian Apps That Run Well On The Tablets
 
Thanks. I was putting the .png like the ooo-gulls had. My menus look great now. Many thanks.

BrentDC 2008-08-21 03:18

Re: Debian Apps That Run Well On The Tablets
 
Bringing this thread back on-topic (gasp!), Audacity seems to work well, which is cool.

Also, what is a good music player for debian? There seem to be a lot of options.

@dan:

I installed GMPC and it loads fine. I don't have any music servers (or whatever that program is used for...), so I couldn't test anything, but it seemed ok to me.

dan 2008-08-21 03:59

Re: Debian Apps That Run Well On The Tablets
 
BrentDC thanks. Yes I too can load GMPC but don't know how to test. What would I need to test?

Emelfm2 for Debian packaged by Fatalsaint is better than maemo version. great job Fatalsaint!

BrentDC 2008-08-21 18:19

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

Originally Posted by dan (Post 215974)
BrentDC thanks. Yes I too can load GMPC but don't know how to test. What would I need to test?

I have no idea. I don't know anything about gmpc...

Quote:

Emelfm2 for Debian packaged by Fatalsaint is better than maemo version. great job Fatalsaint!
Yes, thanks fatalsaint!

BTW, I just installed Inkscape....let's put it this way: It makes OpenOffice look like Numpty-Physics in terms of tablet friendliness :rolleyes:

qole 2008-08-21 18:51

Re: Debian Apps That Run Well On The Tablets
 
... So Inkscape actually de-activates the touchscreen, and all functionality must be accessed only through right-click? :eek:

fatalsaint 2008-08-21 19:04

Re: Debian Apps That Run Well On The Tablets
 
Another candidate for the non-existant thread:
"Debian Applications the run like CRAP on the Tablet"

dan 2008-08-21 19:20

Re: Debian Apps That Run Well On The Tablets
 
1 Attachment(s)
Thanks to Fatalsaint's porting of new repositry we now have QTStalker running smoothly and fast on Nxx's. I would put this app up there with Emelfm2 in ease of use and power. Use a mouse it has a lot of features that come into play. QTStalker is for stock analysis BTW. :)
Anyone know how to fix a broken icon cache? It broke after I did an icon update with' gtk-update-icon-cache -f /usr/share/icons/hicolor/ ' :(

Benson 2008-08-21 22:05

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

Originally Posted by dan (Post 215974)
BrentDC thanks. Yes I too can load GMPC but don't know how to test. What would I need to test?

You need mpd, available for maemo, or you could run it on another system (with speakers) and control it over the network. I use mpd with (Maemo) Sonata & (chroot) gmpc for most music playing.

dan 2008-08-21 22:23

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

Originally Posted by Benson (Post 216229)
You need mpd, available for maemo, or you could run it on another system (with speakers) and control it over the network. I use mpd with (Maemo) Sonata & (chroot) gmpc for most music playing.

Thanks Benson. So if I understand you correctly we need to add mpd and Sonata to maemo and then open gmpc in chroot. How do we configure gmpc to see mpd and Sonata? This is really exciting because GMPC looks really powerful. I'm a newbie to all these music apps. TIA

qole 2008-08-21 22:38

Re: Debian Apps That Run Well On The Tablets
 
Sonata, like gmpc, is another client for the mpd server. Just get mpd installed.

Benson 2008-08-21 23:11

Re: Debian Apps That Run Well On The Tablets
 
No, no, no... I was unclear.

mpd (Music Player Daemon) is (oddly enough ;)) a daemon that plays music. And listens for TCP connections with instructions. You'll need that in Maemo. (You could undoubtedly get the Debian mpd working instead, but that's pain for no real benefit.)

The most rudimentary frontend (not counting netcat or telnet, which are actually usable) is mpc, a commandline client that comes with it, and whose only virtue is scriptability. Between this and some custom stuff implemented with netcat, I've got a suite of commands suitable for use with powerlaunch for basic control of mpd with the hardware keys while the screen is locked. I don't have powerlaunch installed at the moment, but I used this while walking back and forth to class a lot. With the semester starting next week, I'll be getting it back together. You still need one of the other ones for convenient playlist management, though, and also for non-pocketed playback control.

Sonata is one frontend that can connect to mpd, get status, and give commands. While you can install, and even run, it and gmpc simultaneously without harm, neither requires or knows of the other. I use this one a lot.

Gmpc (GNOME Music Player Client) is also a frontend, with overall similar characteristics; the only thing it does that Sonata doesn't (that I know of) is hanging out in the system tray -- which is good, as far as it goes, but the rest of the UI is somewhat worse for me. I'm using this less since there's a Sonata build.

Another mpd frontend for Maemo is mmpc (Maemo Music Player Client), which is tablet-adapted fork of gmpc; UI somewhat modelled after built-in media player. It works, but it's less capable of advanced playlist-related functionality, and while it handles portrait mode gracefully, the buttons-on-the-left design eats too much screen space for my liking.

There's also a handful of other mpd clients in Debian. See http://packages.debian.org/sid/mpd-client (mpd-client is a virtual package provided by 11 packages, anyway; don't know if they're all built for armel.)


For specifics:
You'll want to install mpd (and mpc) from this repo:
Catalog name: Austin Che
Web address: http://austinche.name/maemo/packages/
Distribution: chinook/
Components:
(I'm not sure about that trailing /, but that's what I've got.)
Sonata is in extras, and (of course) gmpc is in the Debian repo.

Once you've got the mpd installed, you may need to edit /etc/mpd.conf (make sure of the outputs (you want libao), music/playlist directories (default is sane, and maybe symlink to SD cards in there), and volume control (software for me, but it's a matter of taste.)) and /etc/libao.conf (default_driver=esd), and run /etc/init.d/mpd start-create-db. Then mpd will be running, and will start on each boot.

The clients default to the correct port, so they'll connect fairly easily. For Sonata, it's in Edit -> Preferences, and you can add multiple profiles; maybe one for the tablet and one for your stereo/home theater PC. You'll want Host: localhost, and Port: 6600, which are the defaults anyway. Use one of the graphical clients to browse the filesystem tree and add files, then you can play with them or mpc. (For thew record, it's possible to add files and everything through mpc, but it's awkward and pointless for most purposes.)

dan 2008-08-22 01:00

Re: Debian Apps That Run Well On The Tablets
 
I've got mpd and Sonata in maemo but I have not been able to access. What command brings up mpd? Any ideas?
I've a lot to learn but I really want to have a robust music center. Eventually I would like to control my music/home theater . I bought a Mac mini for home theater with mythtv eventually running ui. And hopefully I can use N800 as remote and to stream my content at home and when I travel. It would be sweet if gmpc/mpd can get me started. TIA

dan 2008-08-22 01:07

Re: Debian Apps That Run Well On The Tablets
 
Need help with installing qtparted in chroot. I got following errors. Those were the same errors I got when I installed gparted through Synaptic manager. Hal shows its loaded in Synaptic manager same others apps listed in errors. Can someone help fix this so I
can get qtparted loaded and working? I'm liking more and more the qt apps. They load fast are small, powerful and you can open multiple windows/features without crashing system.
Well here are the error messages. TIA

chroot set up already!
Everything set up, running chroot...
[root@Debian: /]apt-get install qtparted
Reading package lists... Done
Building dependency tree
Reading state information... Done
qtparted is already the newest version.
The following packages were automatically installed and are no longer required:
python-uno libdb4.3
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 200 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up hal (0.5.11-2) ...
dpkg: error processing hal (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gnome-device-manager:
gnome-device-manager depends on hal; however:
Package hal is not configured yet.
dpkg: error processing gnome-device-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gparted:
gparted depends on hal; however:
Package hal is not configured yet.
dpkg: error processing gparted (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
hal
gnome-device-manager
gparted
E: Sub-process /usr/bin/dpkg returned an error code (1)
[root@Debian: /]

Benson 2008-08-22 02:05

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

Originally Posted by dan (Post 216266)
I've got mpd and Sonata in maemo but I have not been able to access. What command brings up mpd? Any ideas?
I've a lot to learn but I really want to have a robust music center. Eventually I would like to control my music/home theater . I bought a Mac mini for home theater with mythtv eventually running ui. And hopefully I can use N800 as remote and to stream my content at home and when I travel. It would be sweet if gmpc/mpd can get me started. TIA

mpd is started by (as root)
Code:

/etc/init.d/mpd start
To check if it's running, you can
Code:

ps -e | grep mpd
(Don't need root for that.)

qole 2008-08-22 05:07

Re: Debian Apps That Run Well On The Tablets
 
dan, you're getting the "hal error".

Quote:

Originally Posted by qole (Post 210689)
I had to hack hal to get it to install (put "exit 0" as the first line of /var/lib/dpkg/info/hal.preinst and /var/lib/dpkg/info/hal.postinst then run "apt-get -f install" to finish getting everything installed)...

And a slightly modified* second quote to expand on my instructions:

Quote:

Originally Posted by Maxoueb (Post 216034)

It is
/debian/var/lib/dpkg/info/hal.preinst and
/debian/var/lib/dpkg/info/hal.postinst (from the chroot)

Also, "put "exit 0"" => the file should be:

Code:

#!/bin/sh
exit 0
set -e

etc.


*(I made his questions into statements)

dan 2008-08-22 05:33

Re: Debian Apps That Run Well On The Tablets
 
Thanks Benson.
How do you stop mpd? :)
I'm so new to this.
How do I put my play list into mpd or gmpc?
It looks like mpd is done through command line. Am I right?
How do I configure or install plugin??
I need to read up, but all the sites I visit are too technical, anyways I learn best by trial and error(mainly error). :)
This looks very powerful!
TIA

Edit: My very first line command that I figured out on my own!!!!!! /etc/init.d/mpd stop

P.S. Is there a UI or GUI or somekind of window for mpd? If not can one be built?

dan 2008-08-22 06:02

Re: Debian Apps That Run Well On The Tablets
 
Thanks Qole.
Before I go Nuking my N800 again. :) Let me see if I get what I'm supposed to do here.
I see the following in hal.preinst

#!/bin/sh

set -e

rm_conffile() {

I'm supposed to change to this?

#!/bin/sh
exit 0
set -e

etc.

rm_conffile() {


TIA

Edit: Got it done! I'm on a roll tonight. Now to finish installing QTParted

dan 2008-08-22 06:33

Re: Debian Apps That Run Well On The Tablets
 
1 Attachment(s)
Success.
Thanks Qole!

dan 2008-08-22 07:24

Re: Debian Apps That Run Well On The Tablets
 
Ok new problem. At least I'm making these Debian threads hummm. :)
In chroot I typed 'qtparted'.
QTParted loaded as you can see above, BUT when I try to load qtparted into a hildon menu entering ' cp /usr/share/applications/hildon/ooo.destop /usr/share/applications/hildon/qtparted.desktop '
I get the following error ' No such file or directory ' .
Now I went back and read where you are not supposed to enter into apps in chroot ' qtparted '. Then I tried doing Qole's suggestion that got me in hot water a few days ago ' rm -r /home/user/.qtparted
hilda qtparted ' .
Well I never made it past the first line. It gave me error ' No such file or directory '
Now as long as I enter ' qtparted ' into chroot I get into qtparted, but I need to be able to enter from my custom menu. Can someone please help me get this straighten out. TIA

fatalsaint 2008-08-22 13:13

Re: Debian Apps That Run Well On The Tablets
 
change the command in your qtparted.desktop file:

debbie qtparted (to run it as a user.. though this is probably useless; need root to repartition things anyway)

or

debian qtparted (to run it as root.. this is more likely to give better results)

fatalsaint 2008-08-22 13:14

Re: Debian Apps That Run Well On The Tablets
 
And Dan... GPMC IS a fronted/gui/window whatever to MPD.. that's all Sonata, GMPC and many others are.. just "frontend's" to the mpd daemon. Mpd has no graphical implementation itself.. otherwise it wouldn't need Frontend's :D

dan 2008-08-22 14:18

Re: Debian Apps That Run Well On The Tablets
 
Normally in order for me setup a menu item in hildon for a debian app with an icon in my hildon menu I type in chroot the ' cp /usr/share/... ' command and then the ' vi /usr/share/applications/... ' command and the <app>.desktop command lines come up in chroot and I change the ' Exec=sudo debian hilda <app> ' and I can then put an icon in ' /usr/share/icons/hicolor/scalable/apps/<app>.desktop ' . Can't do that this time because no qtparted.desktop file exists to change the icon in the ' hicolor/scaleable/apps/ ' area. There is a ' qtparted.desktop ' file in ' /debian/usr/share/applications/ '. I tried changing the ' Exec= ' to ' Exec=sudo debian hilda qtparted ' and Exec=debbie qtparted ' but it doesn't work. I don't understand it.
Could it be the errror message I get in xterm when I type emelfm2 that is causing this problem? TIA

/home/user # emelfm2
/home/user/.osso/current-gtk-key-theme:1: Unable to find include file: "keybindings.rc"
bad string content

fatalsaint 2008-08-22 14:26

Re: Debian Apps That Run Well On The Tablets
 
Im confused.. are you running these in Maemo or in Chroot (debian)???

For the desktop you want to cp the ooo.desktop in Maemo.. not in a debian chroot.. the Maemo menu knows nothing about the .desktop icones inside the debian chroot (/debian/).. so the path you posted "/debian/usr/share/applications/" has nothing to do with the Maemo menu items..

You want to run the cp /usr/share/applications/hildon/ooo.desktop /usr/share/applications/hildon/qtdesktop.desktop from inside NORMAL XTERM in maemo.. not inside the Debian Chroot.. Debian chroot doesn't have; nor does it care; about a hildon subdirectory.

Also.. might modify your post to only showing the first error and say the same thing repeats 50 times.. no need for all that mess when it's the same error over and over. But if that emelfm2 was run inside debian then that means your icon cache in debian is messed up.. not in maemo - you were supposed to run the icon cache update inside maemo after adding the .png image file to right path; in maemo..

Anything to do with your maemo menu is done through Xterm in maemo.. anything to do with your debian applications would be done inside Debian Chroot..

I think you might be running commands meant for one in the other and are getting yourself more unstable by the minute...

dan 2008-08-22 14:30

Re: Debian Apps That Run Well On The Tablets
 
Can you or someone do me a favor and see if in ' /usr/share/icons/hicolor/ ' There is a file with the name ' icon-theme.cache ' and if there is anything in it. Mine is empty. Maybe I just need to delete this file? I do have in that path a file called ' index.theme ' and it has loads of information about icons. I'm thinking that ' icon-theme.cache ' is a bogus file ' create when I did the ' gtk ' command that BrentDC (not blaming you bro)gave me in an earlier post. Any ideas? TIA

dan 2008-08-22 14:39

Re: Debian Apps That Run Well On The Tablets
 
I have been going through Maemo. Just typo, :(
I rebooted and it fixed itself. Go figure. I've got to learn more and faster. Thanks.


Edit: If someone wants to go through Hildon on an app like gparted or qtparted add the following line to
' Exec=sudo debian <your app-qtparted or gparted> /dev/mmcblko /dev/mmcblk1 '. Hope this helps another lost soul in Hildon/Debian code hell. :)
Thanks guys for all your help. Anyone check that file for me? TIA

fatalsaint 2008-08-22 14:39

Re: Debian Apps That Run Well On The Tablets
 
I assume you mean in Debian?? Then yes.. I have a lot of folders inside there in debian.

And maemo for that matter.. I just checked both.. they both have a lot of folders and a icon-theme.cache.

Again the command BrentDC gave you, IIRC, was meant to be run inside Maemo - not inside Debian... it was meant to update your Maemo icon cache so that the desktop file will know the name of your graphic for the menu item.

dan 2008-08-22 15:00

Re: Debian Apps That Run Well On The Tablets
 
QTParted looks as powerful as Emelfm2. I wonder if I can make a mirror copy of my mmc2 sdhc card with the partitions, files, apps, etc... This would be the holy grail for me. :)
Thanks Fatalsaint. I have been going through Hildon xterm for BrentDC command. I'm wondering if something is wrong with my custom icons? Where can I get Icons for each of these apps?? Any good source? TIA

dan 2008-08-22 15:36

Re: Debian Apps That Run Well On The Tablets
 
Fatalsaint would the following command fix my gtk problem in above post??
' gtk-update-icon-cache -f -t /usr/share/icons/hicolor '
TIA

fatalsaint 2008-08-22 15:39

Re: Debian Apps That Run Well On The Tablets
 
It's possible.. though I am not sure what that -t is for... and isn't that the same command Brent had you run?

BrentDC 2008-08-22 16:06

Re: Debian Apps That Run Well On The Tablets
 
dan, I don't know why the gtk-update-icon-cache command would screw up things...I run it all the time :confused:

Here are the options for it:

Code:

~ $ gtk-update-icon-cache --help
Usage:
  gtk-update-icon-cache [OPTION...] ICONPATH

Help Options:
  -?, --help                  Show help options

Application Options:
  -f, --force                  Overwrite an existing cache, even if uptodate
  -t, --ignore-theme-index    Don't check for the existence of index.theme
  -i, --index-only            Don't include image data in the cache
  -c, --source=NAME            Output a C header file
  -q, --quiet                  Turn off verbose output

As you can see, there are not a lot of options...

The only thing I can think of is that one of your new icons you added didn't agree with GTK, and it corrupted your cache. See, index.theme defines where your icons are, and icon-theme.cache is all your icons contained in one file. It is not human-readable, and that is why nothing shows up in a text editor. You can try removing the last few icons you made then re-running the update-cache command and see if things get back to normal.

Edit: Oh btw, don't mess with index.theme; one time I was editing it to add a new icon path and somehow it just evaporated. The only way I could fix it was by recloning.

dan 2008-08-22 16:07

Re: Debian Apps That Run Well On The Tablets
 
I got that command from this website. I'm trying to fix my own problems. Since I create sooo many.
http://trac.autopackage.org/ticket/39
Don't know what ' -t ' is for. Thought you or someoe here might have run across it.
TIA

fatalsaint 2008-08-22 16:10

Re: Debian Apps That Run Well On The Tablets
 
THe man page I looked up online didn't have the -t... Brent just showed the output from CLI.. Must have been a different version I was looking at.

So I supposed if it skips checking the existence for theme.index then using -t is what you are supposed to do to create a new index theme cache...

So why use it for just doing an update?

dan 2008-08-22 16:10

Re: Debian Apps That Run Well On The Tablets
 
Edit: Thanks BrentDC. I was going to try that as a last resort. :(
Do you know where I can download good Debian icons for my hildon menu? TIA

BrentDC 2008-08-22 16:16

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

Originally Posted by fatalsaint (Post 216437)
THe man page I looked up online didn't have the -t... Brent just showed the output from CLI.. Must have been a different version I was looking at.

So I supposed if it skips checking the existence for theme.index then using -t is what you are supposed to do to create a new index theme cache...

So why use it for just doing an update?

it seems to me -f and -t basically accomplish the same thing...

dan 2008-08-22 16:17

Re: Debian Apps That Run Well On The Tablets
 
Fatalsaint. I don't know the answer to your question because I don't even understand what I'm reading let along doing. :( I just want to resolve this error and put icons that work and look better than a circle with two birds on all my apps in Hildon menu. LOL

dan 2008-08-22 16:20

Re: Debian Apps That Run Well On The Tablets
 
Anymore good QT apps I can load into Easy Debian? I really like the QT apps they are small and robust. Can't wait for TrollTech to start loading us up with them and slick versions of KDE. :)

BrentDC 2008-08-22 16:20

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

Originally Posted by dan (Post 216438)
Edit: Thanks BrentDC. I was going to try that as a last resort. :(
Do you know where I can download good Debian icons for my hildon menu? TIA

I usually use Google Image Search -> "<whatever> logo". I wouldn't consider it a great way to do it, though.

fatalsaint 2008-08-22 16:30

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

Originally Posted by dan (Post 216444)
Anymore good QT apps I can load into Easy Debian? I really like the QT apps they are small and robust. Can't wait for TrollTech to start loading us up with them and slick versions of KDE. :)

Well if you wanted to start moving away from GTK to QT you could use things like Kopete instead of Pidgin, ksIrc instead of XChat, Amarok, Dragon Player or Juk for Audio, Scribus for Desktop Publishing...

http://trolltech.com/company/customers/coolapps

http://en.wikipedia.org/wiki/List_of_KDE_applications

However.. KDE itself is actually one of the bigger, bulkier desktops. IMHO a little more-so than Gnome.. but I have no benchmarks for that.

dan 2008-08-22 16:54

Re: Debian Apps That Run Well On The Tablets
 
I don't want to move away I just want more choices. :) Thanks to you, Qole, PB and many others the Nxx's has more choices than any other portable device. And best of all its configurable to what the user wants not what some dictator at a large company wants. I must have 5 different media players on the maemo side. It really helps because each one plays video/audio better in different formats.


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

vBulletin® Version 3.8.8