User:Nbc

m (Customizations)
m (Reverted edits by 163.172.136.39 (Talk) to last revision by gritchok)
 
(13 intermediate revisions not shown)
Line 1: Line 1:
Just some notes to keep things somewhere
Just some notes to keep things somewhere
 +
 +
= Some scripts =
 +
 +
* [[User:Nbc/W32g]] auto toggle to 2g/3g when wifi is connected/disconnected
=Customizations =
=Customizations =
Line 36: Line 40:
  Calendar synchronization : Normal sync
  Calendar synchronization : Normal sync
 +
Last but not least, here comes the last steps in order to be able to Verify the server certificate against the CA cert.
 +
$ cd /home/user/.config/syncevolution/garone \
 +
  && wget -OCA.pem --no-check-certificate https://url_of_CA_cert \
 +
  && perl -pi -e 's|^(SSLVerifyServer\s*=\s*)0|${1}1|' config.ini \
 +
  && perl -pi -e 's|^(SSLServerCertificates\s*=\s*).*|$1/home/user/.config/syncevolution/garone/CA.pem|' config.ini
-
- the server certificate is autosigned and syncevolution refuses this by
+
You can check the whole thing with:
-
default so you must edit /home/user/.config/syncevolution/garone/config.ini and set:
+
-
  SSLServerCertificates = 0
+
$ grep ^SSL config.ini
-
  SSLVerifyServer = 0
+
  SSLServerCertificates = /home/user/.config/syncevolution/garone/CA.pem
 +
  SSLVerifyServer = 1
 +
...and obviously if you fire up a synchronization. Starting with MicroB, you'll be able to browse sync logs at file:///home/user/.cache/syncevolution/
-
I've searched for a better solution but so far I've been unable to
+
At the moment I've seen no problem. Recurring events work, two way (normal) sync works quite well too.
-
add the key to the ssl keyring.
+
-
 
+
-
For the moment I've seen no problem. Recurring events work, two way (normal) sync works quite well too.
+
That's all folks
That's all folks
 +
 +
== automatic OTA sync with fcron ==
 +
 +
I like automation. When I wake up I want to take my n900 with fresh podcasts, a calendar synced without thinking about it. Thanks to [[User:Ruskie]] it's very easy to do that with fcron.
 +
 +
  cat /home/user/bin/night_sync
 +
  #!/bin/sh
 +
 
 +
  # TODO: find a way to test against the wifi ESSID/network name
 +
  HOMEIP="192.168.0.4"
 +
  IP=`/sbin/ifconfig wlan0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'`
 +
 
 +
  # exit if it's not my wifi network
 +
  if [ "X$IP" != "X$HOMEIP" ]; then
 +
  echo "`date` not at home"
 +
  exit 0
 +
  fi
 +
 
 +
  echo "`date` at home"
 +
 
 +
  # add things here
 +
  /usr/bin/syncevolution --quiet agenor
 +
  /usr/bin/gpo update
 +
  /usr/bin/gpo download
 +
 +
and in fcron (fcrontab -e) :
 +
 +
  %nightly,mail(no) * 5-6 su - user -c "/home/user/bin/night_sync > /tmp/night_sync.log 2>&1"
== Icons placement ==
== Icons placement ==
Line 58: Line 93:
Ref: http://talk.maemo.org/showpost.php?p=472332&postcount=6
Ref: http://talk.maemo.org/showpost.php?p=472332&postcount=6
-
=Links=
+
=D-Bus=
 +
 
 +
==Various Commands==
 +
 
 +
* automatically connect
 +
  # find the connection name
 +
  gconftool-2 -R /system/osso/connectivity/IAP
 +
  # connect it
 +
  dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"IAP" uint32:0
 +
 
 +
* is there a phone call now ?
 +
 
 +
dbus-send --system --dest="com.nokia.csd.Call" --print-reply=literal "/com/nokia/csd/call/1" "com.nokia.csd.Call.Instance.GetStatus"
 +
  uint32 0
 +
 
 +
If this command return is 0 there's a call online.
 +
 
 +
* [[User:Jebba/DBUS]]
 +
 
 +
= Reminders =
 +
 
 +
Some things I want to keep in mind
 +
 
 +
== un-ignore package update ==
 +
 
 +
  rm ~/.hildon-application-manager/{seen,tapped}-updates
 +
 
 +
== how to not index podcast in mediaplayer
 +
 
 +
Add /home/user/MyDocs/Podcasts/ to the NoWatchDirectory line in the tracker config file/home/user/.config/tracker/tracker.cfg
-
[[Notes]]
+
Ref: http://www.gossamer-threads.com/lists/maemo/users/62052#62052

Latest revision as of 21:13, 4 September 2017

Just some notes to keep things somewhere

Contents

[edit] Some scripts

  • User:Nbc/W32g auto toggle to 2g/3g when wifi is connected/disconnected

[edit] Customizations

[edit] agenda synchronization with kronolith/funambol

At work we use horde/kronolith for webmail/agenda and funambol 7 to sync with mobile. The funambol link is https://synchro.ddg.fr/sync. I've no access to the funambol configuration and I know almost nothing about calendar synchronization. After some tries I have a good syncevolution configuration

- install syncevolution.

Be careful, as you need to use extra-testing or extra-devel dangerous repositories you must read carefully the wiki page about them.

- use the gui to create a new source, we will use these parameters :

Service name : garone (just a private pun)
Template : Funambol
username : ...
password : ...

after creation, finish

- enter this source and edit it (in the menu)

Sync URL : https://synchro.ddg.fr/sync 
Web URL  : https://synchro.ddg.fr/
...
Contacts, Tasks and Notes synchronization : Disabled
...
Calendar database : ical
Calendar source : N900 (or another one if you've created it)
Calendar synchronization : Normal sync

Last but not least, here comes the last steps in order to be able to Verify the server certificate against the CA cert.

$ cd /home/user/.config/syncevolution/garone \
  && wget -OCA.pem --no-check-certificate https://url_of_CA_cert \
  && perl -pi -e 's|^(SSLVerifyServer\s*=\s*)0|${1}1|' config.ini \
  && perl -pi -e 's|^(SSLServerCertificates\s*=\s*).*|$1/home/user/.config/syncevolution/garone/CA.pem|' config.ini

You can check the whole thing with:

$ grep ^SSL config.ini
SSLServerCertificates = /home/user/.config/syncevolution/garone/CA.pem
SSLVerifyServer = 1

...and obviously if you fire up a synchronization. Starting with MicroB, you'll be able to browse sync logs at file:///home/user/.cache/syncevolution/

At the moment I've seen no problem. Recurring events work, two way (normal) sync works quite well too.

That's all folks

[edit] automatic OTA sync with fcron

I like automation. When I wake up I want to take my n900 with fresh podcasts, a calendar synced without thinking about it. Thanks to User:Ruskie it's very easy to do that with fcron.

 cat /home/user/bin/night_sync
 #!/bin/sh
 
 # TODO: find a way to test against the wifi ESSID/network name
 HOMEIP="192.168.0.4"
 IP=`/sbin/ifconfig wlan0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'`
 
 # exit if it's not my wifi network
 if [ "X$IP" != "X$HOMEIP" ]; then
 	echo "`date` not at home"
 	exit 0
 fi
 
 echo "`date` at home"
 
 # add things here
 /usr/bin/syncevolution --quiet agenor
 /usr/bin/gpo update
 /usr/bin/gpo download

and in fcron (fcrontab -e) :

 %nightly,mail(no) * 5-6 su - user -c "/home/user/bin/night_sync > /tmp/night_sync.log 2>&1"

[edit] Icons placement

Change snap_to_grid to 16 in /usr/share/hildon-desktop/transitions.ini to easily align icons.

Ref: http://talk.maemo.org/showpost.php?p=472332&postcount=6

[edit] D-Bus

[edit] Various Commands

  • automatically connect
 # find the connection name
 gconftool-2 -R /system/osso/connectivity/IAP
 # connect it
 dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"IAP" uint32:0
  • is there a phone call now ?
dbus-send --system --dest="com.nokia.csd.Call" --print-reply=literal "/com/nokia/csd/call/1" "com.nokia.csd.Call.Instance.GetStatus"
  uint32 0

If this command return is 0 there's a call online.

[edit] Reminders

Some things I want to keep in mind

[edit] un-ignore package update

 rm ~/.hildon-application-manager/{seen,tapped}-updates

== how to not index podcast in mediaplayer

Add /home/user/MyDocs/Podcasts/ to the NoWatchDirectory line in the tracker config file/home/user/.config/tracker/tracker.cfg

Ref: http://www.gossamer-threads.com/lists/maemo/users/62052#62052