Twitter Espeak

What if my tweets can be heard Install rainbowstream rainbowstream is a twitter client for linux cli. prepare python venv python3 -m venv venv source venv/bin/activate install rainbowstream pip install rainbowstream run rainbowstream rainbowstream # you will be asked to login to twitter Install espeak espeak is TTS software for linux sudo apt install espeak test espeak can speak espeak hello espeak "한글" echo "hello" | espeak Prepare text stream I will create temporary PIPE file that will pass the texts from rainbowstream to espeak
Read full post gblog_arrow_right

Prep Python Project

Here is how I prepare python projects. Assuming Python3 is already installed I uses python3 installed by default via OS package. or brew python3 (But if I have a chance to use conda and the others, I may try) Create python3 virtual environment I uses venv module Create venv python3 -m venv venv Activate venv source venv/bin/activate Here you have Isolated environment you can experiment, not affecting entire OS. Install pip and pip-tools Upgrade pip to latest version pip install --upgrade pip Install pip-tools for dependencies management pip install pip-tools for more information about pip-tools see https://pypi.
Read full post gblog_arrow_right

Linux Sshd Notification

For security reasons, I created a script to notify me when someone(ME) access my server. I created slack notification script, I will not explain about how to create slackbot here. You can have a good time to configuring slack bot. /etc/pam.d/sshd Append follow line to /etc/pam.d/sshd session required pam_exec.so /etc/pam.scripts/noti_slack.sh /etc/pam.scripts/noti_slack.sh Create /etc/pam.scripts/noti_slack.sh file. and make the file executable chmod +x /etc/pam.scripts/noti_slack.sh #!/bin/bash SLACK_URL=https://slack.com/api/chat.postMessage # Slack bot BOT_NAME's token # https://api.
Read full post gblog_arrow_right

Creating Hugo

Creating Hugo Website for the first time hugo new site www Creating first page hugo new posts/creating-hugo.md

MacOS LDAP Authentication

I configured iMac to use My OpenLDAP server. There were several problems. I will not talk about configuring ‘Directory Utility’. (If you know how to configure LDAP server and the basic method of configuring LDAP client, you will not have much difficulty in configuring LDAP client using ‘Directory Utility’) 1. First, try to switch user using sudo su command like 'sudo su - dgkim', there was problem accessing dgkim's home directory.
Read full post gblog_arrow_right

Ldapmodify Rootdn

How to add root dn for cn=config This document describes how to add root dn and password for cn=config base. manager.ldif dn: olcDatabase={0}config,cn=config changetype: modify add: olcRootDN olcRootDN: cn=admin,cn=config - add: olcRootPW olcRootPW: {SSHA}blablabla ldapmodify ldapmodify -Y EXTERNAL -H ldapi:/// -f ./manager.ldif By default, you should configure ldap’s configuration using ldapmodify -Y EXTERNAL -H ldapi:/// After configuring olcRootDN you can modify cn=config meta configuration using remote LDAP clients.

2019 May IoT project

As I previously posted, I made a WiFi AC remote controller project. see telegram bot for HVAC

Today, I begin a new project to go further.

I purchased another Raspberry Pi 3 Model B, AND Raspberry Pi Sensor Kit. (http://m.eleparts.co.kr/goods/view?no=3730500 and http://m.eleparts.co.kr/goods/view?no=3030452)

(I just wanted to purchase sensor only, but I can’t sure, I could attach these sensors to my existing RPi, so I posted a question to a forum https://www.cooking-hacks.com/forum/viewtopic.php?f=43&t=19434&sid=d89e064868d4a0dce0c58ea7a6490bde)

And, I tested DHT11 as https://github.com/deokgonkim/rpi_sensor

 

My next step will be,

  1. set up a messaging queue, like Rabbit MQ

  2. set up a web/api server for gathering the data and the controll center.

  3. my existing bot code shoud be migrated to a new server, and these two RPi should listen to MQ for commands, and should send data to MQ.

 

To be continued…

Read full post gblog_arrow_right

My first Apple Watch died.

My first Apple Watch died. (1st generation 42mm stainless steel) I have worn it for about 3.5 years. (since 2015.08. ~ 2019.02. ) Yesterday, I noticed top panel is popped up. So, I googled some known issues like this kind of accident. and I found there was an issue regarding battery swollen. (you may see the swollen battery or not. I think it is swollen.) The warranty is limited to 3 years, so I can’t get the repair service from authorized apple repair center.
Read full post gblog_arrow_right