Raspberry Pi: Setting up backup

I have a Raspberry Pi providing household automation and productivity services – WebDav, Backups and Calendar. I always worry about a jolt of power, a failed byte and something that is unrecoverable. Time for a Backup solution. I plugged in a USB stick – 64GB, and immediately checked the file system is there and visible as SDA (unmounted). pi@raspberrypi:~# sudo su – root@raspberrypi:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 58.2G 1 disk └─sda1 8:1 1 58.2G 1 part mmcblk0 179:0 0 14.9G 0 disk ├─mmcblk0p1 179:1 0 43.9M 0 part /boot └─mmcblk0p2 179:2 0 14.8G…

Continue Reading →

Jupyter Notebook: Email Analysis to a Lotus Notes View

I wanted to do an analysis of my emails since I joined IBM, and see the flow of messages in-and-out of my inbox. With my preferences for Jupyter Notebooks, I built a small notebook for analysis. StepsOpen IBM Lotus Notes Rich Client Open the Notes Database with the View you want to analyze. Select the View you are interested in ‘All Documents’. For instance the All Documents view, like my inbox *obfuscated* with a purpose. Click File > Export Enter a file name – email.csv Select Format “Comma Separate Value” Click Export Upload the Notebook to your Jupyter server The…

Continue Reading →

CURL and LDAPS – How to Search and Debug

I hit an issue where I needed to Search LDAP from a machine I didn’t have access to install new RPMs on. I found this cool article on CURL and LDAP Search. I had to make some minor modifications to get it to work with a secure connection (–insecure ldaps:// and 636). I also added -v to diagnosis some connection problems. curl “ldaps://127.0.0.1:636/DC=IBM.COM?cn,objectClass?sub?(objectClass=)” -u “cn=user1,ou=test_org3,o=dr,DC=IBM.COM” –insecure -v Enter host password for user ‘cn=user1,ou=test_org3,o=dr,DC=IBM.COM’: * Trying 127.0.0.1… * Connected to 127.0.0.1 (127.0.0.1) port 636 (#0) * LDAP local: LDAP Vendor = OpenLDAP ; LDAP Version = 20428 * LDAP local: ldaps://127.0.0.1:636/DC=IBM.COM?cn,objectClass?sub?(objectClass=)…

Continue Reading →