Skip to content

Commit

Permalink
Update proxmox_install_PVE8.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Loderer committed May 3, 2024
1 parent 80a6e61 commit 9820b70
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions proxmox_install_PVE8.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,12 +985,20 @@ def step2(self):
if self.desktop == "plasma-light":
apt_install('lm-sensors curl firefox-esr firefox-esr-l10n-de virt-viewer kde-plasma-desktop qapt-deb-installer filelight khelpcenter mpv task-german-kde-desktop task-german hunspell-de-at hunspell-de-ch hyphen-de mythes-de-ch mythes-de git kate')
run_cmd('apt remove -y konqueror juk dragonplayer timidity zutty network-manager sweeper', argShell=True)
run_cmd('wget -O /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz')
run_cmd('wget -O /tmp/KDE_Plasma5_pve_profile.tar.gz https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/KDE_Plasma5_pve_profile.tar.gz')
run_cmd('rm -rf /etc/skel', argShell=True)
run_cmd('tar -xzf /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz -C /etc', argShell=True)
run_cmd('mv /etc/KDE_Plasma5_Default_Profile-master /etc/skel', argShell=True)
run_cmd('rm /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz', argShell=True)
run_cmd('useradd iteasadm -c iteasadm -G dialout,cdrom,video,plugdev,games,sudo -m -s /bin/zsh -U -p \'$1$CvBQaSeR$0phJus.ly543oq2fKOtT40\'', argShell=True)
run_cmd('mkdir /etc/skel', argShell=True)
run_cmd('tar -xzf /tmp/KDE_Plasma5_pve_profile.tar.gz -C /etc/skel', argShell=True)
run_cmd('rm /tmp/KDE_Plasma5_pve_profile.tar.gz', argShell=True)
run_cmd('mkdir /usr/local/share/wallpapers', argShell=True)
run_cmd('mkdir /usr/local/share/pixmaps', argShell=True)
run_cmd('cd /usr/local/share/pixmaps', argShell=True)
run_cmd('wget https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/proxmox%20icon.png')
run_cmd('wget https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/proxmox_logo_white_background.png')
run_cmd('wget https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/pve-kick.png')
run_cmd('wget -O /usr/local/share/wallpapers/serverfarm.jpg https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/serverfarm.jpg')
run_cmd('wget -O /usr/share/sddm/themes/breeze/theme.conf.user https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/conf/theme.conf.user', argShell=True)
run_cmd('useradd pveadm -c pveadm -G dialout,cdrom,video,plugdev,games,sudo -m -s /bin/zsh -U -p \'$1$CvBQaSeR$0phJus.ly543oq2fKOtT40\'', argShell=True)

elif self.desktop == "plasma-light-win":
apt_install('lm-sensors curl nomachine firefox-esr firefox-esr-l10n-de virt-viewer kde-plasma-desktop qapt-deb-installer filelight khelpcenter mpv task-german-kde-desktop task-german hunspell-de-at hunspell-de-ch hyphen-de mythes-de-ch mythes-de git kate')
Expand All @@ -1017,10 +1025,12 @@ def step2(self):
run_cmd('rm /tmp/KDE_Plasma5_pve_profile.tar.gz', argShell=True)
run_cmd('mkdir /usr/local/share/wallpapers', argShell=True)
run_cmd('mkdir /usr/local/share/pixmaps', argShell=True)
run_cmd('wget -O /usr/local/share/pixmaps/. https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/proxmox%20icon.png')
run_cmd('wget -O /usr/local/share/pixmaps/. https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/proxmox_logo_white_background.png')
run_cmd('wget -O /usr/local/share/pixmaps/. https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/pve-kick.png')
run_cmd('wget -O /usr/local/share/wallpapers/. https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/serverfarm.jpg')
run_cmd('cd /usr/local/share/pixmaps', argShell=True)
run_cmd('wget https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/proxmox%20icon.png')
run_cmd('wget https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/proxmox_logo_white_background.png')
run_cmd('wget https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/pve-kick.png')
run_cmd('wget -O /usr/local/share/wallpapers/serverfarm.jpg https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/graphics/serverfarm.jpg')
run_cmd('wget -O /usr/share/sddm/themes/breeze/theme.conf.user https://git.styrion.net/iteas/iteas-proxmox-installer/raw/main/conf/theme.conf.user', argShell=True)
run_cmd('useradd pveadm -c pveadm -G dialout,cdrom,video,plugdev,games,sudo -m -s /bin/zsh -U -p \'$1$CvBQaSeR$0phJus.ly543oq2fKOtT40\'', argShell=True)


Expand Down

0 comments on commit 9820b70

Please sign in to comment.