Mettre a jour Ubuntu
sudo apt update && sudo apt upgrade
Installer git
sudo apt install curl git
Installer NodeJD
cd /Documents/
git clone <https://git.univ-pau.fr/smascaro/MiniSmall.git>
cd MiniSmall
curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh> | bash
source ~/.bashrc
nvm install 14.21.3
node -v
Installer MariaDB
sudo apt install mariadb-server
sudo mysql_secure_installation
Lors de l’installation de MariaDB, remplir ceci :
Enter current password for root (enter for none): # Rentrer
Switch to unix_socket authentication [Y/n] n # Mettre n
Change the root password? [Y/n] n # Mettre n
Remove anonymous users? [Y/n] n # Mettre n
Disallow root login remotely? [Y/n] n # Mettre n
Remove test database and access to it? [Y/n] n # Mettre n
Reload privilege tables now? [Y/n] y # Mettre y
Créer le compte “admin” MariaDB :
sudo mariadb
GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'azerty' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
mariadb -u admin -p"azerty"
source ./dump/R504TP_dump.sql
EXIT;