Last active
July 30, 2020 08:28
-
-
Save tcarrondo/c932750928c83310fd84f8376ee17f30 to your computer and use it in GitHub Desktop.
Revisions
-
tcarrondo revised this gist
Feb 1, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ USERNAME=" " # you know this one PASSWORD=" " # lots of ****** # ----------------- [ Phone ] ----------------- # CONFIG_NAME=" " # I use "mycloud" (only lowercase allowed) CALENDAR_NAME=" " # I use "personalcalendar" CALENDAR_VISUAL_NAME=" " # you can choose a nice name to show on the calendar app like "OwnCalendar" CRON_FREQUENCY= " " # I use "hourly" -
tcarrondo revised this gist
Jun 15, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,8 +31,8 @@ syncevolution --configure sync=two-way database=$CALENDAR_VISUAL_NAME $CONFIG_NA syncevolution --sync refresh-from-remote $CONFIG_NAME $CALENDAR_NAME #Add Sync Cronjob sudo mount / -o remount,rw CRON_LINE="@$CRON_FREQUENCY export DISPLAY=:0.0 && export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) && /usr/bin/syncevolution $CONFIG_NAME" (crontab -u phablet -l; echo "$CRON_LINE" ) | crontab -u phablet - sudo mount / -o remount,ro sudo service cron restart -
tcarrondo revised this gist
Jun 15, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,4 +34,5 @@ syncevolution --sync refresh-from-remote $CONFIG_NAME $CALENDAR_NAME sudo mount /dev/loop0 / -o remount,rw CRON_LINE="@$CRON_FREQUENCY export DISPLAY=:0.0 && export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) && /usr/bin/syncevolution $CONFIG_NAME" (crontab -u phablet -l; echo "$CRON_LINE" ) | crontab -u phablet - sudo mount /dev/loop0 / -o remount,ro sudo service cron restart -
tcarrondo revised this gist
Jun 15, 2016 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,15 +4,15 @@ # Thanks to: Wayne Ward <info@wayneward.co.uk> # Thanks to: Mitchell Reese <mitchell@curiouslegends.com.au> # --------------- [ Server ] ---------------- # CAL_URL=" " # add the caldav URL here USERNAME=" " # you know this one PASSWORD=" " # lots of ****** # ----------------- [ Phone ] ----------------- # CONFIG_NAME=" " # I use "myCloud" CALENDAR_NAME=" " # I use "personalcalendar" CALENDAR_VISUAL_NAME=" " # you can choose a nice name to show on the calendar app like "OwnCalendar" CRON_FREQUENCY= " " # I use "hourly" #Create Calendar -
tcarrondo revised this gist
Jun 15, 2016 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,8 @@ #!/bin/bash # Simplified by me, Tiago Carrondo <tcarrondo@ubuntu.com> # Thanks to: Romain Fluttaz <romain@botux.fr> # Thanks to: Wayne Ward <info@wayneward.co.uk> # Thanks to: Mitchell Reese <mitchell@curiouslegends.com.au> # --------------- [ Server ] ---------------- # CAL_URL=" " USERNAME=" " -
tcarrondo revised this gist
Jun 15, 2016 . No changes.There are no files selected for viewing
-
tcarrondo revised this gist
Jun 15, 2016 . No changes.There are no files selected for viewing
-
tcarrondo revised this gist
Jun 15, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,7 +26,7 @@ syncevolution --configure sync=two-way database=$CALENDAR_VISUAL_NAME $CONFIG_NA #Start first sync syncevolution --sync refresh-from-remote $CONFIG_NAME $CALENDAR_NAME #Add Sync Cronjob sudo mount /dev/loop0 / -o remount,rw CRON_LINE="@$CRON_FREQUENCY export DISPLAY=:0.0 && export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) && /usr/bin/syncevolution $CONFIG_NAME" (crontab -u phablet -l; echo "$CRON_LINE" ) | crontab -u phablet - -
tcarrondo revised this gist
Jun 15, 2016 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,8 @@ PASSWORD=" " CONFIG_NAME=" " CALENDAR_NAME=" " CALENDAR_VISUAL_NAME=" " CRON_FREQUENCY= " " #Create Calendar syncevolution --create-database backend=evolution-calendar database=$CALENDAR_VISUAL_NAME @@ -23,3 +25,9 @@ syncevolution --configure --template SyncEvolution_Client syncURL=local://@$CONF syncevolution --configure sync=two-way database=$CALENDAR_VISUAL_NAME $CONFIG_NAME $CALENDAR_NAME #Start first sync syncevolution --sync refresh-from-remote $CONFIG_NAME $CALENDAR_NAME #Add sync cronjob sudo mount /dev/loop0 / -o remount,rw CRON_LINE="@$CRON_FREQUENCY export DISPLAY=:0.0 && export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) && /usr/bin/syncevolution $CONFIG_NAME" (crontab -u phablet -l; echo "$CRON_LINE" ) | crontab -u phablet - sudo service cron restart -
tcarrondo created this gist
Jun 15, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ #!/bin/bash # --------------- [ Server ] ---------------- # CAL_URL=" " USERNAME=" " PASSWORD=" " # ----------------- [ Phone ] ----------------- # CONFIG_NAME=" " CALENDAR_NAME=" " CALENDAR_VISUAL_NAME=" " #Create Calendar syncevolution --create-database backend=evolution-calendar database=$CALENDAR_VISUAL_NAME #Create Peer syncevolution --configure --template webdav username=$USERNAME password=$PASSWORD syncURL=$CAL_URL keyring=no target-config@$CONFIG_NAME #Create New Source syncevolution --configure backend=evolution-calendar database=$CALENDAR_VISUAL_NAME @default $CALENDAR_NAME #Add remote database syncevolution --configure database=$CAL_URL backend=caldav target-config@$CONFIG_NAME $CALENDAR_NAME #Connect remote calendars with local databases syncevolution --configure --template SyncEvolution_Client syncURL=local://@$CONFIG_NAME $CONFIG_NAME $CALENDAR_NAME #Add local database to the source syncevolution --configure sync=two-way database=$CALENDAR_VISUAL_NAME $CONFIG_NAME $CALENDAR_NAME #Start first sync syncevolution --sync refresh-from-remote $CONFIG_NAME $CALENDAR_NAME