Setup kubernetes cluster in Ubuntu 20.04 from scratch

Hello again, this article is a walk through how to setup your own kubernetes cluster with Ubuntu 20.04 LTS. Some steps are very straightforward, and you can directly follow along while you try to setup yourself. So before get started, I tried this using 2 ubuntu servers : ks8-master : 2gb memory, 2vCPUs k8s-node-0 : … Read more

Setup scrot on Ubuntu

Simple trick to setup simple command to spawn screenshot utility using scrot: $ sudo apt-get install scrot $ sudo touch /usr/bin/sel $ sudo chmod +x /usr/bin/sel $ vim /usr/bin/sel #!/bin/bash scrot -s -e ‘mv $f ~/Pictures/’

pip error after upgrade: ImportError: cannot import name ‘main’

Sometimes pip can be problematic, after upgrade the pip version, then you call it afterwards, it will fail somehow. $ pip install –user –upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl Installing collected packages: pip Successfully installed pip-8.1.1 You are using pip version 8.1.1, however version 10.0.1 is available. You should consider upgrading via the ‘pip … Read more

Setup Systemd Service on Ubuntu 16.04

$ sudo vim /etc/systemd/system/myservice.service [Unit] Description=Run the service [Service] User=ubuntu # change the workspace WorkingDirectory=/usr/local/src #path to executable. #executable is a bash script which calls jar file ExecStart=/usr/local/src/somescript SuccessExitStatus=143 TimeoutStopSec=10 Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target $ sudo vim /usr/local/src/somescript #!/bin/sh java -jar /some/file.jar sudo systemctl daemon-reload sudo systemctl enable myservice.service sudo systemctl start myservice sudo systemctl … Read more

Setup Simple Ruby on Rails App On Ubuntu 16.04 From Scratch

Rails is one of the most popular ruby framework out there. And now, I want to try to run the simple app on Ubuntu 16.04 machine. it’s for testing purpose. First, update the system and install essential dependencies: $ sudo apt-get update $ sudo apt-get build-essential curl sudo vim Install nodejs: $ curl -sL https://deb.nodesource.com/setup_9.x … Read more

Setup ftp that works with local user with vsftpd on ubuntu

This is the step-by-step installation of¬†vsftpd that actually works. If you have website that runs wordpress, you might want to enable this to be able install/update your wordpress plugin. Install vsftpd and start the service: $ sudo apt-get install vsftpd -y $ sudo systemctl start vsftpd.service $ sudo systemctl enable vsftpd.service Open vsftpd.conf file, and … Read more

Setup Kubernetes on Ubuntu 16.04

Summary This setup is supposedly to install the kubernetes on ubuntu machine with version 16.04 (64bit). I did this in the cloud and have worked perfectly. # whoami && pwd root /root # apt-get update # apt-get install -y apt-transport-https # curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add – # echo “deb http://apt.kubernetes.io/ kubernetes-xenial main” … Read more