wiki.allensmith.net

Personal "Rough Notes & Useful Links

User Tools

Site Tools


kb:linux:conky_gcalcli

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kb:linux:conky_gcalcli [2015/04/06 00:07]
Allen Smith + work-around reference
kb:linux:conky_gcalcli [2016/01/13 20:35]
Line 1: Line 1:
-====== Conky Google Calendar ====== 
-<​note>​ 
-Part 1 » [[kb:​linux:​conky | Conky as a System Monitor]]\\ ​ 
-Part 2 » **Conky Google Calendar using Gcalcli**\\ ​ 
-Part 3 » [[kb:​linux:​conky_references | Additional References for Conky]] 
-</​note>​ 
-{{INLINETOC}} 
-<note important>​This is an **extreamly peliminary** version for the total re-write of these summary notes! These instructions need to be gone through once more (using a different PC) -- to ensure that they are correct, and to provide some example output.</​note>​ 
-\\  
  
-===== If Needed: Uninstall Previous Version of Gcalcli ===== 
-<note warning>​**DO NOT** try the following to install gcalcli -- as that version uses an old depreciated API that was finally discontinued!<​code>​sudo apt-get install gcalcli</​code>"​Google deprecated the old APIs that 2.x relies on a couple years back and EOL'd them effective yesterday. You'll need to upgrade to the 3.x release tree to get it working again."​ https://​github.com/​insanum/​gcalcli/​issues/​153</​note>​ 
- 
-  * **If** you have the previous version of gcalcli already installed on your system, do the following to uninstall that:<​code>​ 
-sudo apt-get purge gcalcli 
-rm ~/​.gcalclirc ​    # the old .config file NOT compatible with new program version 
-</​code>​ 
- 
-\\  
-===== Install & Configure Gcalcli for Conky ===== 
-  * First, install the needed packages via apt-get:<​code>​ 
-sudo apt-get install git python-pip python-gdata python-dateutil python-gflags python-vobject python-parsedatetime python-googleapi 
-</​code>​ 
-  * Next, use pip to install the gcalcli python application<​code>​ 
-git clone https://​github.com/​insanum/​gcalcli.git 
-cd gcalcli 
-sudo python setup.py install 
-pip install vobject parsedatetime 
-</​code>​ 
-<note important>​ 
-**On Ubuntu 14.04** this will result in a **broken** gcalcli command: (must update python-parsedatetime to fix) 
-  * The following additional commands provide the work-around for this:<​code>​ 
-wget https://​launchpad.net/​~cjohnston/​+archive/​ubuntu/​ppa/​+files/​python-parsedatetime_1.2-1~ubuntu14.04.1~ppa1_all.deb 
-sudo gdebi python-parsedatetime_1.2-1~ubuntu14.04.1~ppa1_all.deb ​    # requires having installed gdebi 
-</​code>​ 
-**Reference:​** http://​askubuntu.com/​questions/​468907/​how-to-set-up-gcalcli 
-</​note>​ 
-  * Finally, create the necessary ~/​.gcalcli_oauth file, so gcalcli can assess the desired Google Account Calendar(s) 
-    * Start by entering the following command into the Terminal<​code>​ 
-gcalcli list --noauth_local_webserver 
-</​code>​which will output a message that starts with<​file>​ 
-WARNING:​root:​This function, oauth2client.tools.run(),​ and the use of the gflags library are deprecated 
-and will be removed in a future version of the library. 
-Go to the following link in your browser: 
-</​file>​ 
-    * Next into your web-browser,​ copy & past the in-terminal (on-screen) url that begins with:<​file>​ 
-    https://​accounts.google.com/​o/​oauth2/​auth?​ 
-</​file>​ 
-    * Then copy the result code provided by Google, and past that back into the Terminal. (then hit the Enter key) 
-    * And finally make the file where the **oauth info** is stored readable only by this user:<​code>​ 
-chmod 700 ~/​.gcalcli_oauth ​   # set permissions so only this user can access this file. 
-</​code>​ 
- 
-  * Now ensure that all the needed files for Conky itself are are installed<​code>​ 
-sudo apt-get install conky-all ttf-dejavu ttf-dejavu-core ttf-dejavu-extra 
-</​code>​ 
- 
-**Refference:​** https://​github.com/​insanum/​gcalcli 
- 
-\\  
-===== Configure Conky to Display Google Calendar ===== 
-<​code>​ 
-nano ~/​.conky/​conkyrc_gcalcli ​   # copy & past the following text into this empty file 
-</​code>​ 
-{{page>​data:​kb:​linux:​conkyrc_gcalcli&​nofooter&​noindent&​noeditbtn}} 
-<​code>​ 
-nano ~/​.conky/​conkystart.sh ​   # uncomment the line to run the Google Calendar Conky 
-</​code>​ 
- 
-At the bottom of the conkystart.sh startup script, uncomment the last line (remove the leading #), so the Google Calendar Conky will run when the user logs in. 
kb/linux/conky_gcalcli.txt · Last modified: 2016/01/13 20:35 (external edit)