maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools (https://talk.maemo.org/showthread.php?t=39948)

BlueGene 2010-01-10 15:28

[Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
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

Saturn 2010-01-10 20:56

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
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.

Saturn 2010-01-10 21:03

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
This is also a nice page to have in your collection:
http://wiki.maemo.org/Documentation/devtools/maemo5

codeMonkey 2010-01-11 13:42

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
Quote:

Originally Posted by BlueGene (Post 462433)
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?

peyo 2010-01-12 01:09

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
Great topic idea for devel/customization, I'll keep an eye there ;)

Quote:

Originally Posted by codeMonkey (Post 464120)
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...

jebba 2010-01-12 01:12

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
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.

aspidites 2010-01-12 01:19

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
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

BlueGene 2010-01-12 08:16

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.

BlueGene 2010-01-14 13:50

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
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 ;-) ...

jebba 2010-01-15 00:50

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
Quote:

Originally Posted by BlueGene (Post 470806)
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


javispedro 2010-01-15 01:00

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
Quote:

Originally Posted by jebba (Post 465496)
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.

That is (or at least, was) docpurge's job.

BlueGene 2010-01-15 08:51

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
In first, it was a space issue. What I did was to softlink /var/cache/apt/archives to /opt/archives (worked). But still the package installation process (probably decompressing or sth) filled up my rootfs, somewhere in /var , so I also softlinked /var which worked (enough space now). But somewhere in the middle of the installation - there was still enough space, I checked all the time - the device just restarted and like I said - it didn't come up anymore.
Maybe I should have mounted /var proberly with fstab instead of softlinking it...

damion 2010-01-15 16:20

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
Ahha I did exactly what you did. http://talk.maemo.org/showpost.php?p...&postcount=802 I was luckier in my efforts whilst typing df / in a second terminal and faffing around hoping to keep it moving. It turned out okay for me thankfully.

BlueGene 2010-01-15 18:54

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
Does anybody know whether mounting /usr makes the system eventually slower? If it doesn't this would be a quite good permanent solution for getting rid of space problems.

jean2323 2010-01-15 19:04

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
anyone knows how to hack the sip application?
looks like rtcomm is doing the sip
and i found the sip account settings in .rtcom-accounts/accounts.cfg

but ... if i change things here .. disabling and enabling my sip account cancels all my changes
i need to set the info the caller id should send
anyone knows how i could hack these setings and how to add the caller id settings?

thank you!

bandora 2010-01-15 19:22

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
I was going to start a thread just like this.. But you beat me to it!

I was thinking how am I going to start this.. But you have almost everything I need on there.. Thanks!!

jean2323 2010-01-15 19:26

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
i added this bug
https://bugs.maemo.org/show_bug.cgi?id=7789

please ... vote for it .. maybe someone can fix this before until we can figure out a solution on our own :D

Big Phat Jan 2010-01-15 20:04

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
Quote:

Originally Posted by BlueGene (Post 474678)
Does anybody know whether mounting /usr makes the system eventually slower? If it doesn't this would be a quite good permanent solution for getting rid of space problems.

I think this would be a risky plan!

Without knowing the boot sequence you risk /usr not being mounted when something stored in there is required. I think that's what /bin is for(?) so that shouldn't happen, but unless you're happy with dealing with the potential problems this might cause I'd proceed with extreme caution...

Cheers,
Jan

Wikiwide 2010-07-08 11:13

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
Well... I would like to change the way USB connection is handled. Now, to turn off "Mass Storage Mode" and continue USB charging, you need to take out the cable. It doesn't improve longevity of USB port. It would be better to be able to disconnect from Mass Storage Mode without pulling cable out.

There is /usr/sbin/osso-usb-mass-storage-disable.sh which could be used for this. But I don't want to go to X Term and call this sh again. I would like it to be integrated into Status Menu.

In Status Menu status of USB is shown by usb_plugin.so. It's a ELF file. Thus, it is compiled from some source. Where can this source be found to modify it? I don't want to start from scratch. I know it will not crash whole system, but still...

The modification would be small and useful, maybe, somebody has already done it?

Sourav.dubey 2012-03-23 14:17

Re: [Hackers/Devs Only] Collection of Low-Level Config-Files / Tools
 
No more collection
is this thread closed
btw nice work guys


All times are GMT. The time now is 11:27.

vBulletin® Version 3.8.8