From 0e424891efc934ac7e5b334ffb19f3ef667c8b2a Mon Sep 17 00:00:00 2001 From: Drtan Samos Date: Sun, 21 Apr 2013 18:42:33 +0200 Subject: Introducing GNOME featured ISO. --- .../gnome/root-image/root/customize_root_image.sh | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 configs/gnome/root-image/root/customize_root_image.sh (limited to 'configs/gnome/root-image/root/customize_root_image.sh') diff --git a/configs/gnome/root-image/root/customize_root_image.sh b/configs/gnome/root-image/root/customize_root_image.sh new file mode 100755 index 0000000..71e3348 --- /dev/null +++ b/configs/gnome/root-image/root/customize_root_image.sh @@ -0,0 +1,27 @@ +#!/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 + +usermod -s /bin/zsh root +cp -aT /etc/skel/ /root/ + +useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /bin/zsh parabola + +chmod 750 /etc/sudoers.d +chmod 440 /etc/sudoers.d/g_wheel + +sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist + +sed 's#\(^ExecStart=-/sbin/agetty\)#\1 --autologin root#; + s#\(^Alias=getty.target.wants/\).\+#\1autologin@tty1.service#' \ + /usr/lib/systemd/system/getty@.service > /etc/systemd/system/autologin@.service + +systemctl disable getty@tty1.service + +# Remember to not to include multi-user.target, because it stops gdm.service from starting at boot. +systemctl enable pacman-init.service autologin@.service dhcpcd.service NetworkManager.service gdm.service -- cgit v1.2.3-54-g00ecf