User:Vanous
From Openmoko
Line 16: | Line 16: | ||
===Time zone=== | ===Time zone=== | ||
− | opkg install tzdata-europe | + | opkg install tzdata-europe |
− | + | ln -sf /usr/share/zoneinfo/Europe/Prague /etc/timezone | |
− | ln -sf /usr/share/zoneinfo/Europe/Prague /etc/timezone | + | ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime |
− | + | hwclock --systohc | |
− | ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime | + | |
− | + | ||
− | hwclock --systohc | + | |
Line 44: | Line 41: | ||
For console set this in /etc/profile : | For console set this in /etc/profile : | ||
− | + | ||
− | export LANG=cs_CZ | + | export LANG=cs_CZ |
− | export LC_ALL=cs_CZ | + | export LC_ALL=cs_CZ |
− | + | ||
Line 59: | Line 56: | ||
Scripts for framework (FSO, SHR, Debian). (Not for ASU, OM2008) | Scripts for framework (FSO, SHR, Debian). (Not for ASU, OM2008) | ||
=====Start script===== | =====Start script===== | ||
− | + | ||
− | #!/bin/sh | + | #!/bin/sh |
− | APN="internet" | + | APN="internet" |
− | USERNAME="x" | + | USERNAME="x" |
− | PASSWORD="x" | + | PASSWORD="x" |
− | BUSNAME="org.freesmartphone.ogsmd" | + | BUSNAME="org.freesmartphone.ogsmd" |
− | OBJECTPATH="/org/freesmartphone/GSM/Device" | + | OBJECTPATH="/org/freesmartphone/GSM/Device" |
− | METHODNAME="org.freesmartphone.GSM.PDP.ActivateContext" | + | METHODNAME="org.freesmartphone.GSM.PDP.ActivateContext" |
− | mdbus -s $BUSNAME $OBJECTPATH $METHODNAME $APN "$USERNAME" "$PASSWORD" | + | mdbus -s $BUSNAME $OBJECTPATH $METHODNAME $APN "$USERNAME" "$PASSWORD" |
− | + | ||
=====Stop script===== | =====Stop script===== | ||
− | + | ||
− | #!/bin/sh | + | #!/bin/sh |
− | BUSNAME="org.freesmartphone.ogsmd" | + | BUSNAME="org.freesmartphone.ogsmd" |
− | OBJECTPATH="/org/freesmartphone/GSM/Device" | + | OBJECTPATH="/org/freesmartphone/GSM/Device" |
− | METHODNAME="org.freesmartphone.GSM.PDP.DeactivateContext" | + | METHODNAME="org.freesmartphone.GSM.PDP.DeactivateContext" |
− | mdbus -s $BUSNAME $OBJECTPATH $METHODNAME | + | mdbus -s $BUSNAME $OBJECTPATH $METHODNAME |
− | + | ||
===Translations=== | ===Translations=== | ||
Line 107: | Line 104: | ||
temporary solution: | temporary solution: | ||
− | echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic | + | echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic |
switch to it after every reboot :) and the None.dic will autolearn and save it in /.e/e/dicts-dynamic/personal.dic | switch to it after every reboot :) and the None.dic will autolearn and save it in /.e/e/dicts-dynamic/personal.dic | ||
Line 122: | Line 119: | ||
[http://vanous.penguin.cz/files/om/navi.sh Navit start/stop script] (start/stop gpsd daemon, disable/enable screen dimming) | [http://vanous.penguin.cz/files/om/navi.sh Navit start/stop script] (start/stop gpsd daemon, disable/enable screen dimming) | ||
− | + | #!/bin/sh | |
− | #!/bin/sh | + | |
− | mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy CPU enabled | + | mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy CPU enabled |
− | mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy Display enabled | + | mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy Display enabled |
− | navit | + | navit |
+ | |||
+ | mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy CPU auto | ||
+ | mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy Display auto | ||
− | |||
− | |||
− | |||
[http://vanous.penguin.cz/files/om/navit.xml My Navit conf] | [http://vanous.penguin.cz/files/om/navit.xml My Navit conf] | ||
Line 141: | Line 137: | ||
http://shr.bearstech.com/trac/wiki/Tweaks | http://shr.bearstech.com/trac/wiki/Tweaks | ||
− | echo src navit http://download.navit-project.org/navit/openmoko/svn >/etc/opkg/navit-feed.conf | + | echo src navit http://download.navit-project.org/navit/openmoko/svn >/etc/opkg/navit-feed.conf |
− | + | opkg update | |
− | opkg update | + | opkg install navit libgps17 mc |
− | + | ||
− | opkg install navit libgps17 mc | + | |
copy cz map | copy cz map | ||
Line 151: | Line 145: | ||
copy Data | copy Data | ||
− | echo ppp-generic > /etc/modutils/ppp-generic | + | echo ppp-generic > /etc/modutils/ppp-generic |
− | + | update-modules | |
− | update-modules | + | echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic |
− | + | opkg upgrade | |
− | echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic | + | |
− | + | ||
− | opkg upgrade | + | |
set time from desktop: | set time from desktop: | ||
− | ssh root@openmoko "date -u -s `date -u +%m%d%H%M%Y.%S`" | + | ssh root@openmoko "date -u -s `date -u +%m%d%H%M%Y.%S`" |
Revision as of 11:47, 29 July 2009
Contents |
Czech national settings for Neo Freerunner
all settings apply for current (January 2009) SHR (SHR is FSO based)
comments? here
Why is localizing good for you?
- displays time and date in your national settings
- displays local time instead of universal time
- applications will show translated interface (if available)
- some applications require correct lang settings for correct localized function (speech will speak in your language, navit will search throuch database of your country)
Time zone
opkg install tzdata-europe ln -sf /usr/share/zoneinfo/Europe/Prague /etc/timezone ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime hwclock --systohc
Locales
opkg install glibc-binary-localedata-cs-cz glibc-locale-cs libframeworkd-phonegui-efl-locale-cs shr-settings-locale-cs navit-locale-cs tangogps-locale-cs
This gives locales for:
Illume
Shr Settings
PIM apps (Dialer, Messages, Contacts)
Navit
TangoGPS
For console set this in /etc/profile :
export LANG=cs_CZ export LC_ALL=cs_CZ
For X in Illume go to Wrench (Settings) -> Language ->Language Settings -> Choose: Čeština
Gprs
O2 flat rate
Scripts for framework (FSO, SHR, Debian). (Not for ASU, OM2008)
Start script
#!/bin/sh APN="internet" USERNAME="x" PASSWORD="x" BUSNAME="org.freesmartphone.ogsmd" OBJECTPATH="/org/freesmartphone/GSM/Device" METHODNAME="org.freesmartphone.GSM.PDP.ActivateContext" mdbus -s $BUSNAME $OBJECTPATH $METHODNAME $APN "$USERNAME" "$PASSWORD"
Stop script
#!/bin/sh BUSNAME="org.freesmartphone.ogsmd" OBJECTPATH="/org/freesmartphone/GSM/Device" METHODNAME="org.freesmartphone.GSM.PDP.DeactivateContext" mdbus -s $BUSNAME $OBJECTPATH $METHODNAME
Translations
Here are some translated .mo files that i gathered, place them into /usr/share/locale/cs/LC_MESSAGES/
http://vanous.penguin.cz/files/om/enlightenment.mo Enlightenment/Illume
http://vanous.penguin.cz/files/om/tangogps.mo TangoGPS
Navit translation is already in SHR
SMS delivery confirmation codes
Place on the beggining of each SMS
- Vodafone: *n# (needs confirming)
- O2: YYYY
- T-mobile: *stav# (needs confirming)
http://vanous.penguin.cz/files/om/czech_republic_navit.bin Openstreetmap of CZ, generated December 2008, 57MB. Place into ~/.navit
My Navit conf with the above map configured. Place into ~/.navit
Dictionary for Illume keyboard
temporary solution:
echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic
switch to it after every reboot :) and the None.dic will autolearn and save it in /.e/e/dicts-dynamic/personal.dic
Other stuff
FDSubmenu (icon enhancement)
Navit start/stop script (start/stop gpsd daemon, disable/enable screen dimming)
#!/bin/sh
mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy CPU enabled mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy Display enabled
navit
mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy CPU auto mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy Display auto
SHR Customization
http://shr.bearstech.com/trac/wiki/Tweaks
echo src navit http://download.navit-project.org/navit/openmoko/svn >/etc/opkg/navit-feed.conf opkg update opkg install navit libgps17 mc
copy cz map
copy Data
echo ppp-generic > /etc/modutils/ppp-generic update-modules echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic opkg upgrade
set time from desktop:
ssh root@openmoko "date -u -s `date -u +%m%d%H%M%Y.%S`"