Ability to choose computer name
This commit is contained in:
parent
574e4ab15c
commit
603b54590e
2 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
#Potential variables: timezone, hostname
|
#Potential variables: timezone, lang and local
|
||||||
|
|
||||||
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
|
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
||||||
echo "en_US ISO-8859-1" >> /etc/locale.gen
|
echo "en_US ISO-8859-1" >> /etc/locale.gen
|
||||||
locale-gen
|
locale-gen
|
||||||
|
|
||||||
echo "test" > /etc/hostname
|
#echo "test" > /etc/hostname
|
||||||
|
|
||||||
pacman -S networkmanager
|
pacman -S networkmanager
|
||||||
systemctl enable NetworkManager
|
systemctl enable NetworkManager
|
||||||
|
|
|
@ -16,6 +16,8 @@ dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "Have you seen this fi
|
||||||
|
|
||||||
dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "Do you think I'm meming? Only select yes to DELET your entire /dev/sda and reinstall Arch.\n\nTo stop this script, press no." 10 60 || exit
|
dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "Do you think I'm meming? Only select yes to DELET your entire /dev/sda and reinstall Arch.\n\nTo stop this script, press no." 10 60 || exit
|
||||||
|
|
||||||
|
dialog --no-cancel --inputbox "Enter a name for your computer." 10 60 2> comp
|
||||||
|
|
||||||
timedatectl set-ntp true
|
timedatectl set-ntp true
|
||||||
|
|
||||||
cat <<EOF | fdisk /dev/sda
|
cat <<EOF | fdisk /dev/sda
|
||||||
|
@ -54,6 +56,8 @@ mount /dev/sda1 /mnt/boot
|
||||||
mkdir /mnt/home
|
mkdir /mnt/home
|
||||||
mount /dev/sda4 /mnt/home
|
mount /dev/sda4 /mnt/home
|
||||||
|
|
||||||
|
cat comp > /mnt/etc/hostname && rm comp
|
||||||
|
|
||||||
pacstrap /mnt base base-devel
|
pacstrap /mnt base base-devel
|
||||||
|
|
||||||
genfstab -U /mnt >> /mnt/etc/fstab
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
|
|
Loading…
Reference in a new issue