Vim in Ubuntu

sudo nano /etc/vim/vimrc.local then add set number set background=dark

Runcloud and Hetzner servers

Runcloud installation script has dependency of 2 packages which does not comes in by default in some Ubuntu images that

Ubuntu 20.04 and Raspberry Pi 4

Overclock Follow this article but instead of editing /boot/config.txt edit /boot/firmware/usercfg.txt Install vcgencmd # Add repository sudo add-apt-repository ppa:ubuntu-raspi2/ppa #

Install PHP 7.4 ZTS with ext-parallel in Ubuntu

sudo apt install bison re2c libxml2-dev libssl-dev libsqlite3-dev \ libbz2-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libonig-dev \ libfreetype6-dev libxslt1-dev libzip-dev libwebp-dev libtidy-dev

Install tmux latest version on Ubuntu

sudo apt install automake build-essential pkg-config libevent-dev libncurses-dev -y VERSION=3.1b wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz tar xf tmux-${VERSION}.tar.gz rm tmux-${VERSION}.tar.gz cd tmux-${VERSION} ./configure

Install RAR in Linux

VERSION=5.9.1 wget -qO- https://www.rarlab.com/rar/rarlinux-x64-${VERSION}.tar.gz | tar -xz cd rar chmod +x rar unrar sudo mv rar unrar /usr/bin sudo mv

Install Ookla Speedtest on Linux

# For 32/64 bit wget -O speedtest.tgz https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz # For Raspberry Pi wget -O speedtest.tgz https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-aarch64-linux.tgz tar -xf speedtest.tgz speedtest

Linux touch command for Windows

Create touch.cmd with the following content and it to ENV Path. @echo off setlocal enableextensions disabledelayedexpansion (for %%a in (%*)

Things to do after deploying a Ubuntu server

Disable ipv6 Create /etc/sysctl.d/60-ipv6-disable.conf with the following contents: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 Run service procps