sudo fdisk -l
sudo dd bs=4M if=ubuntu-22.04-desktop-amd64.iso of=/dev/sda status=progress oflag=sync
#!/bin/bash | |
sudo add-apt-repository ppa:bamboo-engine/ibus-bamboo | |
sudo apt-get update | |
# Install all necessary tools with the following command | |
sudo apt install vim htop terminator meld glogg curl git totem keepass2 \ | |
kazam ksnip maven remmina libreoffice network-manager-l2tp-gnome \ | |
ibus-bamboo gnome-calendar gnome-weather gnome-clocks \ | |
qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager -y; \ |
mkdir nginx-portforward && cd nginx-portforward
curl -LO https://gist.githubusercontent.com/nhthai2005/8993478b4d898ddf499ed50411d75c44/raw/18712ed7232a9b07c9bba1439474a1329d802fcd/nginx-portforward.conf
curl -LO https://gist.githubusercontent.com/nhthai2005/8993478b4d898ddf499ed50411d75c44/raw/18712ed7232a9b07c9bba1439474a1329d802fcd/nginx-portforward.yml
curl --connect-timeout 15 -v --insecure "smtp://smtp.example.com:25" -u "username:password" \ | |
--mail-from "[email protected]" --mail-rcpt "[email protected]" \ | |
-T email-contents.txt --ssl |
curl \ | |
--silent \ | |
--ssl smtp://$SERVER \ | |
--mail-from $FROM \ | |
--mail-rcpt $TO \ | |
--upload-file /dev/stdin \ | |
--user $USER:$PASSWORD |
# How to expand swap partition after system installation | |
# Supposed that installing Ubuntu with LVM and Encrypted with LUKS default. So, current swap is 1G and /dev/sda4 is encrypted. You want to add +3G to become +4G. | |
# Open encrypted partition, it is /dev/sda4 in this case | |
sudo cryptsetup luksOpen /dev/sda4 encrypted | |
sudo vgscan | |
sudo vgchange --activate y vgubuntu | |
sudo pvs | |
sudo vgs | |
sudo lvs |
#!/bin/bash | |
# Howto install ansible on Ubuntu | |
python3 -m venv ansible | |
# if Debian/Ubuntu, then: | |
# sudo apt install python3.10-venv | |
# python3.10 -m venv ansible | |
# To access your project |