2012-10-26 16:34:50 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e -u
|
|
|
|
|
|
|
|
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
|
|
|
|
locale-gen
|
|
|
|
|
|
|
|
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
|
|
|
|
2013-06-05 02:33:52 +02:00
|
|
|
usermod -s /usr/bin/zsh root
|
2012-10-26 16:34:50 +02:00
|
|
|
cp -aT /etc/skel/ /root/
|
2014-07-28 16:41:46 +02:00
|
|
|
chmod 700 /root
|
2020-05-31 00:27:15 +02:00
|
|
|
# unset the root password
|
|
|
|
passwd -d root
|
2012-10-26 16:34:50 +02:00
|
|
|
|
2015-09-12 02:06:55 +02:00
|
|
|
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
|
2012-10-26 16:34:50 +02:00
|
|
|
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
|