gns3-registry/packer/alpine-linux/scripts/gui.sh

18 lines
581 B
Bash
Raw Normal View History

2020-08-03 10:27:15 +00:00
# add community repository
2022-03-04 09:08:34 +00:00
sed -i 's/^#\s*\(.*\/v.*\/community\)$/\1/' /etc/apk/repositories
2020-08-03 10:27:15 +00:00
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