summaryrefslogtreecommitdiff
path: root/liveusb/airootfs/root/customize_airootfs.sh
blob: c7061f56f46ddf2fa8440911695a9d805e68d2f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Enable the vbox service
systemctl enable vboxservice

# Create the amenthes user, fix permissions on home dir and default terminal
useradd -m -G wheel -s /bin/bash amenthes
chown -R amenthes:amenthes /home/amenthes
sed -i 's/\(terminal=\)/\1lxterminal/' /home/amenthes/.config/libfm/libfm.conf

# Setup the lxdm config
sed -i 's/^# \(autologin=.*\)/\1/' /etc/lxdm/lxdm.conf  # uncomment autlogin conf
sed -i 's/dgod/amenthes/' /etc/lxdm/lxdm.conf  # replace autologin user
sed -i 's/^# \(session=.*\)/\1/' /etc/lxdm/lxdm.conf  # uncomment session conf

# Enable the lxdm service
systemctl enable lxdm

# Uncomment wheel group in sudoers
sed -i 's/^# \(%wheel ALL=(ALL) NOPASSWD: ALL\)/\1/' /etc/sudoers