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

# Create the amenthes user, fix permissions on home dir and default terminal
useradd -G wheel -s /bin/bash amenthes
chown -R amenthes:amenthes /home/amenthes

# Fix the libfm default terminal
sed -i '2iterminal=lxterminal' /etc/xdg/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