• How To Add PPA Repository Manually Without "add-apt-repository" On Ubuntu


    The easiest way to adding ppa (Personal Package Archive) into ubuntu (and it’s variant) repository is to use add-apt-repository. Unfortunately this tool sometime is not installed in the system especially on minimalist distribution such as docker image. The good news is, we can add it manually. Step 1 — Adding PPA link to source list Visit ppa to search witch ppa we want to add to our system. Use the search menu to find the ppa we want.

  • Getting Started With Python Websocket Client


    The main purpose of this article is for archive and personal blog about what I’m doing in my work. For more info and best practice, I suggest you should visit official website of pypi. I’m not familiar with python, but since I need to use python with my raspberry pi project I think this is a good chance to getting started. In my case, I need to transmit data from sensor that connected to GPIO to online server so that other people can monitor the what the current status of my sensor. Originally I will using http protocol to send data from raspberry pi via curl but this won’t work if we want to get realtime data since there will be too much latency. Then again this won’t be efficient if we have to sending data with say, 10 second interval?

  • Disable Password Login on SSH


    The purpose of this configuration is to disable ssh login using password and force user to use ssh-key pair instead. Open /etc/ssh/sshd_config file using text editor and change following option. PermitRootLogin no # prevent root login via ssh PasswordAuthentication no # deny ssh login using password PubkeyAuthentication yes # enable public key authentication # Explicitly define which user can login via ssh (optional) # AllowUsers root otheruser Note: if the option is commented, delete ‘#’ at the start of line to enable the option.

subscribe via RSS