Transférer les fichiers vers 'ecoleA'
This commit is contained in:
parent
edec954541
commit
8ff6267841
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
serveur=192.168.1.45
|
||||
curl $serveur/scripts/proxy.sh | sudo bash
|
||||
curl $serveur/scripts/config-computer.sh | sudo bash
|
||||
curl $serveur/scripts/update.sh | sudo bash
|
||||
echo -e "\n [ INFO ] Il est recommande de redémarrer avec ''sudo reboot now''"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
usermod -l aoste aosteadmin
|
||||
usermod -d /home/aoste -m aoste
|
||||
chfn -f aoste aoste
|
||||
exit
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
loadkeys fr
|
||||
|
||||
USER_DO=aoste
|
||||
echo "$USER_DO ALL=(ALL:ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/010-$USER_DO-nopassword
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/usr
|
||||
file_apt_proxy="/etc/apt/apt.conf.d/01proxy"
|
||||
file_http_proxy="/etc/profile.d/proxy.sh"
|
||||
|
||||
echo "Acquire::http::Proxy \"http://192.168.1.45:3142\";" > $file_apt_proxy
|
||||
|
||||
echo "export HTTP_PROXY=\"http://192.168.1.45:3128\"" > $file_http_proxy
|
||||
echo "export HTTPS_PROXY=\"http://192.168.1.45:3128\"" > $file_http_proxy
|
||||
echo "export FTP_PROXY=\"http://192.168.1.45:3128\"" > $file_http_proxy
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
# Suppression des kernels non utilisé
|
||||
echo -e "\n [INFO] Kernel installé mais plus utilisé"
|
||||
dpkg --list 'linux-image*' | grep ^ii | awk '{print $2}' | sort | egrep "[0-9]-generic" | head -n 3 | tr '\n' ' ' > list-kernel
|
||||
echo -e "\n"
|
||||
|
||||
apt update
|
||||
apt -y upgrade
|
||||
apt -y autoremove
|
||||
do-release-upgrade
|
||||
|
Loading…
Reference in New Issue