This commit is contained in:
陆柯 2022-01-02 13:32:16 +08:00
parent edbf964ea7
commit ad55791a24
2 changed files with 9 additions and 3 deletions

View File

@ -84,11 +84,11 @@ service sshd restart
echo echo
echo "<<< Set hostname or leave blank for no change" echo "<<< Set hostname or leave blank for no change"
read -p "<<< Set hostname = " NewHostname read -p "hostname = " NewHostname
if [ $NewHostname ] if [ $NewHostname ]
then then
sudo hostnamectl set-hostname $NewHostname hostnamectl set-hostname $NewHostname
echo "127.0.0.1 $NewHostName" >> /etc/hostname echo "127.0.0.1 $NewHostName" >> /etc/hosts
else else
echo 'Nothing changed >>>' echo 'Nothing changed >>>'
fi fi

6
install-debian11.sh Normal file
View File

@ -0,0 +1,6 @@
read -p "Enter root password or leave blank for default 'MoeClub.org' >> " ROOTPWD
apt-get update
apt-get install -y xz-utils openssl gawk file net-tools wget
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh'
sudo bash InstallNET.sh -d 11 -v 64 -a -firmware -p "$ROOTPWD" --mirror 'https://mirrors.huaweicloud.com/debian/'