sudo apt install nala
sudo nala install software-properties-common && sudo add-apt-repository ppa:ondrej/php
sudo nala update
sudo nala install php8.2 php8.2-fpm php8.2-mysqli php8.2-cli php8.2-common php8.2-curl php8.2-mbstring php8.2-opcache php8.2-readline php8.2-xml php8.2-zip php8.2-mysql php8.2-gd php8.2-imagick php8.2-memcached php8.2-pgsql php8.2-sqlite3
sudo nala install php7.4 php7.4-fpm php7.4-mysqli php7.4-cli php7.4-common php7.4-curl php7.4-mbstring php7.4-opcache php7.4-readline php7.4-xml php7.4-zip php7.4-mysql php7.4-gd php7.4-imagick php7.4-memcached php7.4-pgsql php7.4-sqlite3
# To Check your Versions
ls /usr/bin | grep php
//...
php
php7.4
php8.2
# For PHP 7.4
sudo update-alternatives --set php /usr/bin/php7.4
# For PHP 8.2
sudo update-alternatives --set php /usr/bin/php8.2
sudo nala install -y mysql-server
sudo systemctl start mysql && sudo systemctl enable mysql
# Chck Status
sudo systemctl status mysql
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';
FLUSH PRIVILEGES;
exit
mysql_secure_installation
sudo nala install curl network-manager libnss3-tools jq xsel
composer global require genesisweb/valet-linux-plus
# It Will Install Nginx and Redis With It
valet install
$ wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
$ sudo tar -xzf postman*.tar.gz -C ~/
$ sudo ln -s ~/Postman/Postman /usr/bin/postman
$ rm postman*.tar.gz
$ nano ~/.local/share/applications/postman.desktop
[Desktop Entry]
Type=Application
Name=Postman
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png
Exec="/home/USERNAME/Postman/Postman"
Comment=Postman Desktop App
Categories=Development;Code;Programming;
$ chmod +x ~/.local/share/applications/postman.desktop
And Last Ensure that your user has access to write and read files to not failling auto update
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install --lts
sudo nala install zsh
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sudo nala remove --purge libreoffice*
sudo nala autoremove && sudo nala clean
sudo systemctl stop apache2
sudo systemctl disable apache2
sudo nala remove --purge apache2 apache2-utils apache2-bin apache2-data
sudo nala autoremove && sudo apt-get clean
1. enable the password feedback feature in /etc/sudoers file, open it for editing using the visudo command
sudo visudo
Defaults env_reset
Defaults env_reset,pwfeedback
reset