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
|
|
|
|
|
|
|
|
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
|
|
|
|
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
|
2012-10-26 14:34:50 +00:00
|
|
|
|
2015-07-09 17:09:53 +00:00
|
|
|
sed -i 's/#\(PermitRootLogin \)no/\1yes/' /etc/ssh/sshd_config
|
2012-10-26 14:34:50 +00:00
|
|
|
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
|
2013-09-21 19:53:45 +00:00
|
|
|
sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
|
2012-10-26 14:34:50 +00:00
|
|
|
|
2015-08-12 00:45:33 +00:00
|
|
|
sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf
|
|
|
|
sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf
|
|
|
|
sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf
|
|
|
|
|
2014-02-26 00:20:48 +00:00
|
|
|
systemctl enable pacman-init.service choose-mirror.service
|
|
|
|
systemctl set-default multi-user.target
|