mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-22 01:21:34 -05:00
Better
This commit is contained in:
parent
0e3e18b0f4
commit
20f08bb9f6
23
easy-arch.sh
23
easy-arch.sh
@ -87,10 +87,18 @@ echo "Generating a new fstab."
|
|||||||
genfstab -U /mnt >> /mnt/etc/fstab
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
|
|
||||||
# Setting hostname.
|
# Setting hostname.
|
||||||
echo "Please enter the hostname: "
|
read -r -p "Please enter the hostname: " hostname
|
||||||
read hostname
|
|
||||||
echo $hostname > /mnt/etc/hostname
|
echo $hostname > /mnt/etc/hostname
|
||||||
|
|
||||||
|
# Setting up locales.
|
||||||
|
read -r -p "Please insert the locale you use in this format (xx_XX.UTF-8): " locale
|
||||||
|
echo "$locale UTF-8" > /mnt/etc/locale.gen
|
||||||
|
echo "LANG=\"$locale\"" > /mnt/etc/locale.conf
|
||||||
|
|
||||||
|
# Setting up keyboard layout.
|
||||||
|
read -r -p "Please insert the keyboard layout you use: " kblayout
|
||||||
|
echo "KEYMAP=\"$kblayout\"" > /mnt/etc/vconsole.conf
|
||||||
|
|
||||||
# Setting hosts file.
|
# Setting hosts file.
|
||||||
echo "Setting hosts file."
|
echo "Setting hosts file."
|
||||||
cat > /mnt/etc/hosts <<EOF
|
cat > /mnt/etc/hosts <<EOF
|
||||||
@ -99,17 +107,6 @@ cat > /mnt/etc/hosts <<EOF
|
|||||||
127.0.1.1 $hostname.localdomain $hostname
|
127.0.1.1 $hostname.localdomain $hostname
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Setting up locales.
|
|
||||||
echo "Please insert the locale you use in this format (xx_XX.UTF-8): "
|
|
||||||
read locale
|
|
||||||
echo "$locale UTF-8" > /mnt/etc/locale.gen
|
|
||||||
echo "LANG=\"$locale\"" > /mnt/etc/locale.conf
|
|
||||||
|
|
||||||
# Setting up keyboard layout.
|
|
||||||
echo "Please insert the keyboard layout you use: "
|
|
||||||
read kblayout
|
|
||||||
echo "KEYMAP=\"$kblayout\"" > /mnt/etc/vconsole.conf
|
|
||||||
|
|
||||||
# Configuring /etc/mkinitcpio.conf
|
# Configuring /etc/mkinitcpio.conf
|
||||||
echo "Configuring /etc/mkinitcpio for ZSTD compression, BTRFS and LUKS hook."
|
echo "Configuring /etc/mkinitcpio for ZSTD compression, BTRFS and LUKS hook."
|
||||||
sed -i -e 's,BINARIES=(),BINARIES=(/usr/bin/btrfs),g' /mnt/etc/mkinitcpio.conf
|
sed -i -e 's,BINARIES=(),BINARIES=(/usr/bin/btrfs),g' /mnt/etc/mkinitcpio.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user