2018-09-12 04:27:40 +02:00
|
|
|
#!/bin/bash -xe
|
2018-06-28 02:46:28 +02:00
|
|
|
|
2018-09-06 01:35:33 +02:00
|
|
|
DIR=/InstallResources
|
|
|
|
|
2018-09-12 04:27:40 +02:00
|
|
|
while true; do
|
2018-09-12 16:33:21 +02:00
|
|
|
read -p "install (X)fce4 or (L)xqt: " XL
|
2018-09-12 05:15:04 +02:00
|
|
|
case $XL in
|
2018-09-12 04:27:40 +02:00
|
|
|
[Xx]* ) DE=xfce; break;;
|
|
|
|
[Ll]* ) DE=lxqt; break;;
|
|
|
|
* ) echo "Please answer (X)fce4 or (L)xqt";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2018-09-06 01:35:33 +02:00
|
|
|
locale-gen
|
2018-09-12 16:33:21 +02:00
|
|
|
#Install shared packages
|
2018-09-12 04:27:40 +02:00
|
|
|
apt install -y xorg acpi-support lightdm tasksel dpkg librsvg2-common xorg xserver-xorg-input-libinput alsa-utils anacron avahi-daemon eject iw libnss-mdns xdg-utils xserver-xorg-input-synaptics mousepad vlc
|
|
|
|
apt install -y wicd-daemon wicd wicd-curses wicd-gtk
|
|
|
|
|
2018-09-12 22:22:44 +02:00
|
|
|
[ "$DE" = "xfce" ] && apt install -y xfce4 dbus-user-session system-config-printer tango-icon-theme xfce4-power-manager xfce4-terminal xfce4-goodies numix-gtk-theme
|
2018-09-12 04:27:40 +02:00
|
|
|
[ "$DE" = "lxqt" ] && apt install -y lxqt
|
|
|
|
|
2018-09-12 22:22:44 +02:00
|
|
|
#Install packages not in an apt repo
|
|
|
|
[ "$DE" = "xfce" ] && dpkg -i $DIR/xfce-themes/*
|
|
|
|
|
2018-06-28 02:46:28 +02:00
|
|
|
#Copy in acpi, pulse audio, trackpad settings, funtion key settings
|
2018-09-06 01:35:33 +02:00
|
|
|
cp -rf $DIR/default.pa /etc/pulse/default.pa
|
|
|
|
cp -rf $DIR/sound.sh /etc/acpi/sound.sh
|
|
|
|
cp -rf $DIR/headphone-acpi-toggle /etc/acpi/events/headphone-acpi-toggle
|
2018-06-28 02:46:28 +02:00
|
|
|
mkdir /etc/X11/xorg.conf.d/
|
2018-09-06 01:35:33 +02:00
|
|
|
cp -rf $DIR/50-synaptics.conf /etc/X11/xorg.conf.d/
|
2018-06-28 02:46:28 +02:00
|
|
|
|
2018-09-12 04:27:40 +02:00
|
|
|
apt clean && apt autoremove --purge
|
2018-06-30 22:08:35 +02:00
|
|
|
|
2018-08-23 21:43:20 +02:00
|
|
|
echo " Enter new username: "
|
2018-06-30 22:08:35 +02:00
|
|
|
read username
|
|
|
|
adduser $username
|
|
|
|
usermod -a -G sudo,netdev $username
|
|
|
|
|
|
|
|
|
2018-06-28 02:46:28 +02:00
|
|
|
reboot
|