Add locale and timezone setup
This commit is contained in:
parent
2ad5c5ce77
commit
32fea4d280
@ -13,7 +13,7 @@ msg "Initializing pacman keyrings..."
|
|||||||
pacman-key --init
|
pacman-key --init
|
||||||
pacman-key --populate archlinux
|
pacman-key --populate archlinux
|
||||||
msg "Installing essential packages..."
|
msg "Installing essential packages..."
|
||||||
pacman -Syu base base-devel xorg pulseaudio --noconfirm
|
pacman -Syu base base-devel xorg pulseaudio nano --noconfirm
|
||||||
msg "Installing servicectl..."
|
msg "Installing servicectl..."
|
||||||
mkdir -p /usr/local/share/servicectl/enabled
|
mkdir -p /usr/local/share/servicectl/enabled
|
||||||
curl -L 'https://raw.githubusercontent.com/lemniskett/servicectl/master/servicectl' > /usr/local/share/servicectl/servicectl 2>/dev/null
|
curl -L 'https://raw.githubusercontent.com/lemniskett/servicectl/master/servicectl' > /usr/local/share/servicectl/servicectl 2>/dev/null
|
||||||
@ -21,6 +21,20 @@ curl -L 'https://raw.githubusercontent.com/lemniskett/servicectl/master/serviced
|
|||||||
chmod +x /usr/local/share/servicectl/service{d,ctl}
|
chmod +x /usr/local/share/servicectl/service{d,ctl}
|
||||||
ln -s /usr/local/share/servicectl/servicectl /usr/local/bin/servicectl
|
ln -s /usr/local/share/servicectl/servicectl /usr/local/bin/servicectl
|
||||||
ln -s /usr/local/share/servicectl/serviced /usr/local/bin/serviced
|
ln -s /usr/local/share/servicectl/serviced /usr/local/bin/serviced
|
||||||
|
msg "Setting up locale..."
|
||||||
|
echo "Uncomment needed locale, enter to continue"
|
||||||
|
read
|
||||||
|
nano /etc/locale.gen
|
||||||
|
locale-gen
|
||||||
|
msg "Setting up timezone..."
|
||||||
|
echo "Enter your timezone, for example : \"Asia/Jakarta\""
|
||||||
|
while true; do
|
||||||
|
read TIMEZONE \
|
||||||
|
&& [[ -e /usr/share/zoneinfo/$TIMEZONE ]] \
|
||||||
|
&& ln -s /etc/localtime \
|
||||||
|
&& break \
|
||||||
|
|| err "Timezone not found"
|
||||||
|
done
|
||||||
msg "Creating user account..."
|
msg "Creating user account..."
|
||||||
CHROOT_USER="$(cat /tmp/archbox_user)"
|
CHROOT_USER="$(cat /tmp/archbox_user)"
|
||||||
useradd -m $CHROOT_USER
|
useradd -m $CHROOT_USER
|
||||||
|
Loading…
Reference in New Issue
Block a user