Actualiser install.sh
This commit is contained in:
parent
6b005e9bdf
commit
7d8fbf1b0f
@ -22,7 +22,12 @@ echo "- Quel nom d'hôte voulez-vous donner à cette nouvelle machine ?"
|
|||||||
read machinename
|
read machinename
|
||||||
clear
|
clear
|
||||||
hostnamectl set-hostname $machinename
|
hostnamectl set-hostname $machinename
|
||||||
sed -i '1i 127.0.0.1\t'$machinename /etc/hosts
|
#sed -i '1i 127.0.0.1\t'$machinename /etc/hosts
|
||||||
|
|
||||||
|
# Réecriture du fichier hosts avec le profil Unified hosts = (adware + malware) de Steven Black
|
||||||
|
echo "127.0.0.1 $(hostname)" > hosts
|
||||||
|
echo "127.0.1.1 $(hostname)" >> hosts
|
||||||
|
{ echo ""; wget -qO- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts; } >> hosts
|
||||||
|
|
||||||
# noatime pour les partitions ext4
|
# noatime pour les partitions ext4
|
||||||
#cp /etc/fstab /etc/fstab.bck
|
#cp /etc/fstab /etc/fstab.bck
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user