gns3-registry/packer/alpine-linux/scripts/gui.sh
2020-08-03 12:27:15 +02:00

18 lines
578 B
Bash

# add community repository
sed -i 's/^#\(.*\/v.*\/community\)$/\1/' /etc/apk/repositories
apk update
# install packages
setup-xorg-base lxdm xfwm4 xfdesktop xfce4-appfinder xfce4-session xfce4-settings xfce4-terminal dillo thunar exo adwaita-icon-theme ttf-dejavu xf86-video-qxl
# configure packages
sed -i 's/^.*session=.*/session=\/usr\/bin\/startxfce4/' /etc/lxdm/lxdm.conf
echo "/sbin/poweroff" >> /etc/lxdm/PreShutdown
ln -s /usr/bin/dillo /usr/local/bin/firefox
rc-update add dbus
rc-update add lxdm
# create user account
adduser -D -g "Linux User" user
passwd -u user