5 sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
8 ln -sf /usr/share/zoneinfo/UTC /etc/localtime
10 usermod -s /usr/bin/bash root
11 cp -aT /etc/skel/ /root/
14 sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
15 sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
16 sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
18 sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf
19 sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf
20 sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf
22 systemctl set-default graphical.target
23 systemctl -fq enable pacman-init.service
29 if [ -f "/etc/systemd/system/livecd.service" ]; then
30 systemctl -fq enable livecd
32 systemctl -fq enable systemd-networkd
33 if [ -f "/usr/lib/systemd/system/NetworkManager.service" ]; then
34 systemctl -fq enable NetworkManager NetworkManager-wait-online
36 if [ -f "/etc/systemd/system/livecd-alsa-unmuter.service" ]; then
37 systemctl -fq enable livecd-alsa-unmuter
39 if [ -f "/etc/systemd/system/vboxservice.service" ]; then
40 systemctl -fq enable vboxservice
42 systemctl -fq enable ModemManager
43 systemctl -fq enable upower
45 systemctl -fq enable sddm
46 chmod +x /etc/lightdm/Xsession
48 # Disable pamac if present
49 if [ -f "/usr/lib/systemd/system/pamac.service" ]; then
50 systemctl -fq disable pamac pamac-cleancache.timer pamac-mirrorlist.timer
52 # Enable systemd-timesyncd (ntp)
53 systemctl -fq enable systemd-timesyncd
55 #Enable Repository Configuration
56 systemctl -fq enable internet.service
60 # Enable lightdm by disabling root login
61 echo "Adding autologin group"
63 echo "Adding nopasswdlogin group"
64 groupadd -r nopasswdlogin
65 echo "Adding RebornOS user"
66 useradd -m -g users -G "audio,disk,optical,wheel,network,autologin,nopasswdlogin" rebornos
67 # Set Reborn account passwordless
69 chown -R rebornos:users /home/rebornos
70 echo "DONE FIXING ROOT LOGIN"
73 if [ -f /usr/bin/update-ca-trust ]; then
74 /usr/bin/update-ca-trust
76 if [ -f /usr/bin/update-desktop-database ]; then
77 /usr/bin/update-desktop-database --quiet
79 if [ -f /usr/bin/update-mime-database ]; then
80 /usr/bin/update-mime-database /usr/share/mime
82 if [ -f /usr/bin/gdk-pixbuf-query-loaders ]; then
83 /usr/bin/gdk-pixbuf-query-loaders --update-cache
87 chown -R root:root /etc/
88 chmod 660 /etc/sudoers