#!/bin/bash if [ -d /etc/lightdm ]; then cat </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 </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 </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/lib/udev/rules.d/90-slax-automount.rules ]; then rm /usr/lib/udev/rules.d/90-slax-automount.rules 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