Commit 8aeb8d48 authored by Rene Hadler's avatar Rene Hadler

Set locales, update script for Proxmox Desktop

parent aefcb70e
......@@ -14,7 +14,7 @@ import subprocess
import requests
# Globale Variablen
VERSION = "0.9.1"
VERSION = "0.9.2"
TITLE = "iteas Proxmox Installer " + VERSION
CHECK_INTERNET_IP = "77.235.68.39"
VM_TEMPLATE_CIFS_SHARE = "//srv-backup01.iteas.at/archiv-replica"
......@@ -464,6 +464,11 @@ class Installer():
self.step1()
def step2(self):
# Set locales
file_replace_line("/etc/locale.gen", "# de_AT.UTF-8 UTF-8", "de_AT.UTF-8 UTF-8")
file_replace_line("/etc/locale.gen", "# de_DE.UTF-8 UTF-8", "de_DE.UTF-8 UTF-8")
run_cmd('locale-gen', argShell=True)
if self.environment == "stable" and self.license == "":
gui_message_box("Installer", "Sie muessen eine Lizenz angeben wenn Enterprise Updates ausgewaehlt wurden!")
self.step1()
......@@ -853,6 +858,7 @@ class Installer():
elif self.desktop == "plasma-light-win":
run_cmd('apt install -y lm-sensors curl nomachine firefox-esr firefox-esr-l10n-de virt-viewer kde-plasma-desktop qapt-deb-installer filelight khelpcenter mpv curl task-german-kde-desktop task-german hunspell-de-at hunspell-de-ch hyphen-de mythes-de-ch mythes-de git')
run_cmd('apt remove konqueror', argShell=True)
run_cmd('wget -O /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz https://git.styrion.net/iteas/iteas-tools/raw/master/proxmox/KDE_Plasma5_Default_Profile-Proxmox5.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)
......@@ -861,6 +867,7 @@ class Installer():
run_cmd('useradd user -c user -G dialout,cdrom,video,plugdev,games -m -s /bin/zsh -U -p \'$1$CvBQaSeR$0phJus.ly543oq2fKOtT40\'', argShell=True)
run_cmd('wget -O /etc/sddm.conf https://git.styrion.net/iteas/iteas-tools/raw/master/proxmox/etc/sddm.conf-user-autologon')
run_cmd('cd /tmp && git clone https://gitlab+deploy-token-1:-9F-Ty1feEf-9sQy_if4@git.styrion.net/iteas/proxmox-workstation.git && rm -rf /home/user && cp -r proxmox-workstation /home/user && chown -R user:user /home/user', argShell=True)
run_cmd('pvesm set local -disable', argShell=True)
elif self.desktop == "plasma":
run_cmd('apt install -y lm-sensors curl nomachine firefox-esr firefox-esr-l10n-de virt-viewer kde-plasma-desktop qapt-deb-installer filelight khelpcenter mpv curl task-german-kde-desktop task-german hunspell-de-at hunspell-de-ch hyphen-de mythes-de-ch mythes-de git kde-standard plasma-desktop task-german-desktop libreoffice-l10n-de mpv muon speedtest-cli x2goclient filezilla mactelnet-client ksystemlog kate gtkterm sddm-theme-debian-breeze')
......@@ -874,7 +881,7 @@ class Installer():
elif self.desktop == "i3":
pass
run_cmd('apt-get install -f')
run_cmd('apt-get install -f; apt autoremove --purge;')
if self.proxy == True:
run_cmd('rm /etc/apt/apt.conf.d/01proxy')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment