From c901f3a72350c06fafaf6ae911a9ce8320e82cbb Mon Sep 17 00:00:00 2001 From: DonCom's Project Date: Mon, 3 Jun 2024 22:38:07 +0200 Subject: [PATCH] Create 030 --- src/iso-conf/meta-data/030 | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/iso-conf/meta-data/030 diff --git a/src/iso-conf/meta-data/030 b/src/iso-conf/meta-data/030 new file mode 100644 index 0000000..e1a9269 --- /dev/null +++ b/src/iso-conf/meta-data/030 @@ -0,0 +1,48 @@ +#cloud-config +autoinstall: + version: 1 + identity: + hostname: {hostname} + username: {username} + password: {password} + storage: + layout: + name: direct + ssh: + install-server: yes + locale: es_ES.UTF-8 + keyboard: + layout: es + variant: '' + packages: + - ubuntu-desktop + - curl + - python3 + - python3-pip + - ansible + user-data: + packages: + - dbus-x11 + write_files: + - path: /root/setup_script.sh + permissions: '0755' + content: | + #!/bin/bash + wget https://github.com/DonComProject/arenita/raw/main/src/deb-files/veyon_4.8.3.0-ubuntu.jammy_amd64.deb -O /tmp/veyon.deb + dpkg -i /tmp/veyon.deb + apt-get install -f -y + wget https://raw.githubusercontent.com/DonComProject/arenita/main/img/doncom_banner.jpg -O /usr/share/backgrounds/doncom_banner.jpg + wget https://raw.githubusercontent.com/DonComProject/arenita/main/src/scripts/set_wallpaper.sh -O /etc/profile.d/set_wallpaper.sh + mkdir -p /etc/profile.d + chmod +x /etc/profile.d/set_wallpaper.sh + echo "/bin/bash /etc/profile.d/set_wallpaper.sh" >> /etc/skel/.bashrc + export DISPLAY=:0 + export XAUTHORITY=/home/{username}/.Xauthority + su - {username} -c "gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/doncom_banner.jpg'" + curl -s https://doncom.me/install.sh | bash + mv /root/doncom /home/{username}/doncom + chown -R {username}:{username} /home/{username}/doncom + chmod u+x /home/{username}/doncom/arenita/src/scripts/ldap_definitive_client.sh + bash /home/{username}/doncom/arenita/src/scripts/ldap_definitive_client.sh + runcmd: + - /root/setup_script.sh