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