Extend Linux file system after upgrading EBS size
$ fdisk -l $ growpart /dev/xvda $ growpart /dev/xvda 1 $ lsblk $ xfs_growfs -d / $ df -h
$ fdisk -l $ growpart /dev/xvda $ growpart /dev/xvda 1 $ lsblk $ xfs_growfs -d / $ df -h
Check the remote file whether it exists ssh -q ubuntu@10.10.10.10 [[ -f /etc/nginx/conf.d/test.conf ]] && echo “true” || echo “false”
When you want to download some video from youtube with favorite tool youtube-dl, but this error shows up. That means the youtube-dl version that you’re using needs to be updated. This is how to install the latest version of youtube-dl : sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl Or if you installed … Read more
ffmpeg -i <input-file> -ac 2 -f wav <output-file>
find ./ -type f -exec sed -i ‘s/string1/string2/g’ {} \;
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
$ lscpu | egrep ‘Model name|Socket|Thread|NUMA|CPU\(s\)’ $ cat /proc/cpuinfo
Basically when you working on windows, you most likely use putty to connect to the server. Putty generates the ppk file as the private key. But the ppk file cannot be using to connect classic linux server or ec2 in AWS. You need to convert this ppk file to pem first in order to use … Read more
Redshift is a tool to reduce the brightness and make your display more redness to protect your eyes when you working for too long. Install redshift on ubuntu : $ sudo apt-get install redshift redshift-gtk afterwards, open up redshift (Alt+F2) : redshift-gtk
Install parted: sudo apt-get install parted Use parted to create partition: parted /dev/sdb Inside parted cli, follow these steps: (parted) mklabel gpt Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes (parted) unit GB (parted) mkpart primary 0.0GB … Read more