Reply
Thread Tools
Posts: 27 | Thanked: 59 times | Joined on Jan 2010 @ Munich, Germany
#1
In this thread I'd like to collect a list of system configuration files, lowlevel-tools and oneliners. When there's enough content, I will make a wiki-page. Feel free to contribute :-) !

Remember: Modify these files only if you know what you're doing! Understanding how to work with textbased applications is a must!


Type
Code:
<command> --help
for additional info.




Interesting System/Hardware config files in Maemo 5:


Powerbutton-Interface:
Code:
/etc/systemui/systemui.xml
Hardware button/LED/vibration behaviour:
Code:
/etc/mce/mce.ini
Keyboard Stuff:
Code:
/usr/share/X11/xkb/
/usr/share/X11/xkb/symbols/nokia_vndr/rx-51 (Keymaps of onboard kb)
Repositories:
Code:
/etc/apt/sources.list
Editing /etc/apt/sources.list.d/hildon-application-manager.list directly is pointless since HAM overwrites it.
Instead, you should edit:
Code:
/etc/hildon-application-manager/catalogues
or invoke the config script with the proper arguments:
Code:
hildon-application-manager-config add <FILE>
Welcome Video:
Code:
/etc/hildon-welcome.d/default.conf
/usr/share/hildon-welcome/media/
Animation behaviour (transitions, zooms):
Code:
/usr/share/hildon-desktop/transitions.ini
App Menu:
Code:
/etc/xdg/menus/hildon.menu
/usr/share/applications/hildon/ -> .directory files / .desktop files
Icons: /usr/share/icons/hicolor/48x48/hildon



Configtools:


Hardware Status
Code:
lshal
e.g.    lshal | grep battery
Software Settings/Options
Code:
gconftool-2 -R /
(returns all possible options/settings of gconf)
Keyboard Shortcuts
Description how to setup keyboard shortcuts

Status Menu Configuration Tool:
powatool

Better Menu Structure:
mymenu (repository: deb http://qole.org/repository maemo fremantle)

Basic access/modifikation tools:
I prefer modify, install and update via ssh, these are my most used tools:
Code:
openssh
putty (when i login from windows)
vim
grep
apt-get
apt-cache
dpkg
Search/Install/Update Packages:
Works almost like in every debian-based distro:
Code:
apt-get install <program name>
apt-cache search <string>
apt-cache showpkg <program name>
apt-get update (updates the cache from repositories)
apt-get upgrade (installs newest version of installed packages)
dpkg -i <.deb file> (installs .deb file)
Firmware Upgrade (Since 1.0.1):
Careful with thisone, link /var/cache/apt/archives to somewhere with enough space!
Code:
apt-get dist-upgrade
Reboot to see all the changes.

List of Devtools:
http://wiki.maemo.org/Documentation/devtools/maemo5

X-Forwarding to Unix-Computer
On Maemo 5, install xauth:
Code:
apt-get install libxmuu1
Now X-Forwarding works (quite buggy though):
Code:
ssh -X root@<deviceip>
In any opened window press F4 to access the menu.




Shortcuts:

http://wiki.maemo.org/N900_shortcuts_and_gestures




Hacks:


Fullscreen-Mode for XTerm:
Code:
gconftool-2 -s /apps/osso/xterm/toolbar -t bool "false"  (to return to menu press ctrl+backspace)
SAMBA / CIFS (Windows) FS access:
http://talk.maemo.org/showthread.php...highlight=cifs
Automount in /etc/fstab:
Code:
//server.name.or.ip/share /home/user/some_directory  cifs   noauto,uid=29999,ro,nosuid,nodev,user=<user>,pass=<pass>,ip=<ip>
Installing gcoreutils (Thanks to Ruski for the repo):
Code:
echo "deb https://repo.codemages.net opt/" >> /etc/apt/sources.list
apt-get update && apt-get install gcoreutils
Repartitioning the device (don't try this if don't understand every single command!):
http://talk.maemo.org/showpost.php?p...0&postcount=51

Last edited by BlueGene; 2010-01-14 at 13:47.
 

The Following 35 Users Say Thank You to BlueGene For This Useful Post:
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#2
Nice.. some quick comments

For the shortcuts you can link to the wiki page:
http://wiki.maemo.org/N900_shortcuts_and_gestures

About the "apt-get dist-upgrade"; it should be removed completely. It doesn't work like in Debian.
 

The Following User Says Thank You to Saturn For This Useful Post:
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#3
This is also a nice page to have in your collection:
http://wiki.maemo.org/Documentation/devtools/maemo5
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#4
Originally Posted by BlueGene View Post
Type
Code:
man <command>
or
Code:
<command> --help
for additional info.
man will work nicely on most Unices, but hasn't it been stripped out of Maemo?
 

The Following User Says Thank You to codeMonkey For This Useful Post:
Posts: 26 | Thanked: 14 times | Joined on Nov 2009 @ France
#5
Great topic idea for devel/customization, I'll keep an eye there

Originally Posted by codeMonkey View Post
man will work nicely on most Unices, but hasn't it been stripped out of Maemo?
It seems so, or at least on my device man dirs are empty and no man binary available on the env (as root "find / -iname man | grep -i bin" returns nothing, so seems like no man binary on maemo5).
Would be a great idea to have some man on maemo (even as extra package) for cli programs...
 
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#6
The problem is that even if you had man, you wouldn't get the man pages because HAM is set up to not install docs and manpages to save space. I have 48G on my device, yet need to save a few k of manpages, gah.
 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#7
Editing /etc/apt/sources.list.d/hildon-application-manager.list directly is pointless since HAM overwrites it.

Instead, you should edit:
Code:
/etc/hildon-application-manager/catalogues
or invoke the config script with the proper arguments:
Code:
hildon-application-manager-config add FILE
__________________
aspidites | blog | aspidites@inbox.com
 

The Following 2 Users Say Thank You to aspidites For This Useful Post:
Posts: 27 | Thanked: 59 times | Joined on Jan 2010 @ Munich, Germany
#8
Thanks, I didn't realize that, because I never use HAM ;-)

Added some information how to setup X-Forwarding.

Does somebody know how to get this output to xephyr in a oneliner or a little script? Probably this would provide a better view.

Last edited by CrashandDie; 2010-01-12 at 09:55. Reason: double post
 
Posts: 27 | Thanked: 59 times | Joined on Jan 2010 @ Munich, Germany
#9
Just upgraded to PR1.1 with this command:

Code:
apt-get dist-upgrade
I really begin to feel at home with this device ;-)

EDIT: I was a little quick to post this ;-) If you don't want to experiment, don't do this :P I'm still working on some issues... mostly because of not enough space on rootfs.

EDIT2: Bricked it while updating. It just restarted and wouldn't come up anymore. Seems this is NOT a proper way to do such a big update ;-) ...

Last edited by BlueGene; 2010-01-14 at 15:05.
 

The Following User Says Thank You to BlueGene For This Useful Post:
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#10
Originally Posted by BlueGene View Post
Just upgraded to PR1.1 with this command:

Code:
apt-get dist-upgrade
I really begin to feel at home with this device ;-)

EDIT: I was a little quick to post this ;-) If you don't want to experiment, don't do this :P I'm still working on some issues... mostly because of not enough space on rootfs.

EDIT2: Bricked it while updating. It just restarted and wouldn't come up anymore. Seems this is NOT a proper way to do such a big update ;-) ...
I haven't tried it with PR1.1, but I have dist-upgraded in the past (including kernels). You probably ran out of space because by default apt uses /var/cache/apt and that filled up root. You should do something along the lines of:

Code:
apt-get update -o dir::cache=/home/user/MyDocs/.apt-archive-cache

apt-get dist-upgrade -o dir::cache=/home/user/MyDocs/.apt-archive-cache
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:46.