created with cubic (normal Ubunut Desktop) and removed ubiquity #root@cubic:~# cat /etc/skel/.config/autostart/gnome-terminal.desktop [Desktop Entry] Type=Application Exec=gnome-terminal -- screen -x root/autoinstall Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en_NG]=Terminal Name=Terminal Comment[en_NG]=Start Terminal On Startup Comment=Start Terminal On Startup #root@cubic:~# la -lart /usr/bin/screen -rwsr-xr-x 1 root root 481512 Feb 2 2022 /usr/bin/screen #root@cubic:~# cat /etc/systemd/system/autorun.service [Unit] Description=autorun Requires=network-online.target After=network-online.target [Service] Type=oneshot RemainAfterExit=yes ExecStart= screen -dmS autoinstall /root/./autodownload [Install] WantedBy=multi-user.target #root@cubic:~# cat autodownload #!/bin/bash PATH=$PATH:/usr/sbin:/sbin:/usr/bin:/bin DOWNLOAD_URL="http://cloudmaster.dedyn.io:8080/deploy/ubuntu_autodeploy" DOWNLOAD_PATH="/root/install" RETRY_INTERVAL=10 download_and_run() { while true; do echo "Downloading the script..." wget -c "$DOWNLOAD_URL" -O "$DOWNLOAD_PATH" if [ -s "$DOWNLOAD_PATH" ]; then echo "Download successful. Running the script..." sed -i 's/\r$//' "$DOWNLOAD_PATH" chmod +x "$DOWNLOAD_PATH" source "$DOWNLOAD_PATH" break else echo "Downloaded file is empty. Retrying in $RETRY_INTERVAL seconds..." rm -f "$DOWNLOAD_PATH" # Remove the empty file before retrying sleep $RETRY_INTERVAL fi done } download_and_run #boot/grub/grub.cfg set timeout=7 loadfont unicode set menu_color_normal=white/black set menu_color_highlight=black/light-gray menuentry "Auto Install Ubuntu" { set gfxpayload=keep linux /casper/vmlinuz boot=casper file=/cdrom/preseed/ubuntu.seed --- initrd /casper/initrd.gz } grub_platform if [ "$grub_platform" = "efi" ]; then menuentry 'Boot from next volume' { exit 1 } menuentry 'UEFI Firmware Settings' { fwsetup } else menuentry 'Test memory' { linux16 /boot/memtest86+.bin } fi #boot/grub/loopback.cfg menuentry "Try or Install Ubuntu" { set gfxpayload=keep linux /casper/vmlinuz boot=casper file=/cdrom/preseed/ubuntu.seed iso-scan/filename=${iso_path} --- initrd /casper/initrd.gz } menuentry "Ubuntu (safe graphics)" { set gfxpayload=keep linux /casper/vmlinuz boot=casper nomodeset file=/cdrom/preseed/ubuntu.seed iso-scan/filename=${iso_path} --- initrd /casper/initrd.gz } menuentry "OEM install (for manufacturers)" { set gfxpayload=keep linux /casper/vmlinuz boot=casper file=/cdrom/preseed/ubuntu.seed only-ubiquity oem-config/enable=true iso-scan/filename=${iso_path} --- initrd /casper/initrd.gz }