Skip to content

Instantly share code, notes, and snippets.

View afahitech's full-sized avatar

Ataur Rahman afahitech

View GitHub Profile
@UbuntuEvangelist
UbuntuEvangelist / Completely Uninstall LEMP Ubuntu 20.04 LTS
Last active October 5, 2022 20:14
Completely Uninstall LEMP Ubuntu
sudo apt-get remove nginx nginx-common
sudo apt-get purge nginx nginx-common
sudo rm -rf /etc/nginx
sudo apt update -y
sudo apt upgrade -y
sudo apt-get autoremove
# This will remove PHP version. Type your php version before run below command. I am using php7.2
sudo apt-get purge `dpkg -l | grep php7.2| awk '{print $2}' |tr "\n" " "`
sudo apt-get purge php7.*
@UbuntuEvangelist
UbuntuEvangelist / Things To Do After Installing Ubuntu 20.04 LTS Cloud Server
Last active December 4, 2023 19:54
Things To Do After Installing Ubuntu 20.04 LTS Cloud Server
sudo -i
apt update -y && apt upgrade -y
apt update -y
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
apt install apt-show-versions
apt upgrade -o APT::Get::Show-Upgraded=true
apt-show-versions | grep upgradeable
apt install git
@UbuntuEvangelist
UbuntuEvangelist / Docker Compose
Last active October 5, 2023 16:12
Docker and Docker Compose Install Ubuntu 22.04 LTS
#!/bin/sh
apt update -y
apt-get upgrade -y
dpkg-reconfigure tzdata
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
apt upgrade -o APT::Get::Show-Upgraded=true
apt-show-versions | grep upgradeable