You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
#!/bin/bash
|
|
|
|
if [ -d /etc/lightdm ]; then
|
|
cat <<EOF >/etc/lightdm/lightdm.conf
|
|
[Seat:*]
|
|
autologin-session=xubuntu
|
|
autologin-user=live
|
|
autologin-user-timeout=0
|
|
EOF
|
|
fi
|
|
if [ -d /etc/NetworkManager ]; then
|
|
echo "Disable dhclient.service autostart."
|
|
systemctl disable dhclient
|
|
mkdir -p /etc/netplan
|
|
cat <<EOF >/etc/netplan/01-netcfg.yaml
|
|
# This file describes the network interfaces available on your system
|
|
# For more information, see netplan(5).
|
|
# Set and change netplan renderer to NetworkManager GUI tool
|
|
network:
|
|
version: 2
|
|
renderer: NetworkManager
|
|
EOF
|
|
cat <<EOF >/etc/NetworkManager/NetworkManager.conf
|
|
[main]
|
|
rc-manager=resolvconf
|
|
plugins=ifupdown,keyfile
|
|
dns=dnsmasq
|
|
[ifupdown]
|
|
managed=false
|
|
EOF
|
|
|
|
dpkg-reconfigure -f noninteractive network-manager
|
|
fi
|
|
|
|
if [ -f /usr/share/xfce4/backdrops/xubuntu-wallpaper.png ]; then
|
|
rm /usr/share/xfce4/backdrops/xubuntu-wallpaper.png
|
|
fi
|
|
if [ ! -d /usr/share/xfce4/backdrops ]; then
|
|
mkdir -p /usr/share/xfce4/backdrops
|
|
fi
|
|
ln -s /usr/share/backgrounds/MiniOS.png /usr/share/xfce4/backdrops/xubuntu-wallpaper.png
|
|
|