Permalink
Browse files

Configure locales and keyboard FIRST

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 9, 2019
1 parent 54d789f commit f80ce3ed5389f1509407aab9e779ebfcbcce8c0a
Showing with 15 additions and 18 deletions.
  1. +15 −18 init.sh
33 init.sh
@@ -78,8 +78,23 @@ else
echo "initialize, and then run nems-restore."
echo "Press CTRL-C to abort."
echo ""
sleep 5
fi

# Localization

# Configure timezone
dpkg-reconfigure tzdata

# Configure locale
dpkg-reconfigure locales

# Configure the keyboard locale (will be skipped if keyboard is not connected)
dpkg-reconfigure keyboard-configuration && service keyboard-setup restart

# /Localization


isValidUsername() {
local re='^[[:lower:]_][[:lower:][:digit:]_-]{2,15}$'
(( ${#1} > 16 )) && return 1
@@ -249,27 +264,9 @@ fi

systemctl start $nagios

# Localization

# Configure timezone
dpkg-reconfigure tzdata

# Configure locale
dpkg-reconfigure locales

# Forcibly restart cron to prevent tasks running at wrong times after timezone update
service cron stop && service cron start

# Configure the keyboard locale
# echo ""
# echo "Let's configure your keyboard."
# echo "NOTE: If you do not have a keyboard plugged into your NEMS server, this will be skipped."
# echo ""
# read -n 1 -s -p "Press any key to continue"
# dpkg-reconfigure keyboard-configuration && service keyboard-setup restart

# /Localization

if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.3'")}') )); then

# Configure NagVis user

0 comments on commit f80ce3e

Please sign in to comment.