Vdiclient
Содержание
На базе Alt Straterkit MATE
wget http://nightly.altlinux.org/stable/x86_64/release/alt-p10-mate-20221209-x86_64.iso
Модификация пакетной базы
apt-get update -y
Установка доп пакетов
apt-get install python3-module-pip python3-modules-tkinter virt-viewer git -y
Удаление лишних пакетов
Установка VDICLIENT
https://github.com/joshpatten/PVE-VDIClient
cd /opt/ git clone https://github.com/joshpatten/PVE-VDIClient.git cd ./PVE-VDIClient/ chmod +x requirements.sh ./requirements.sh cp vdiclient.py /usr/local/bin chmod +x /usr/local/bin/vdiclient.py mkdir /etc/vdiclient
cat << 'EOF' > /etc/vdiclient/vdiclient.ini [General] # This is the title that is diplayed to the user title = VDI Login # This is the PySimpleGui Theme that is used. Run vdiclient.py with flag `--list_themes` for a list of themes theme = LightBlue # Program Icon icon = vdiicon.ico # Logo displayed on all windows logo = vdiclient.png # Enable Kiosk mode, which does not allow the user to close anything kiosk = False # Enable/Disable Fullscreen mode (not applicable in Kiosk mode) fullscreen = True # Enable displaying SPICE ini file before opening virt-viewer inidebug = False # Select which guest types to display. Acceptable values: both, lxc, qemu guest_type = both [Authentication] # This is the authentication backend that will be used to authenticate auth_backend = pve # If enabled, 2FA TOTP entry dialog will show auth_totp = false # If disabled, TLS certificate will not be checked tls_verify = false # User name (if using token) #user = user # API Token Name #token_name = dvi # API Token Value #token_value = xxx-x-x-x-xxx [Hosts] # Hosts are entered as `IP/FQDN = Port` #10.10.10.100 = 8006 #pve1.example.com = 8006 cluster-node1 = 8006 [SpiceProxyRedirect] # The Spice Proxy provided by the Proxmox API may need to have its host/port rewritten # These rewrite rules are written `IP:port = IP:port` # 1. Use the inidebug and read the current proxy=pve1.example.com:3128 # 2. Add your proxmox ip to the right side e.g. 123.123.123.123:6000 #pve1.example.com:3128 = 123.123.123.123:6000 [AdditionalParameters] # If you wish to define additional parameters to pass to virt-viewer you may define them here # More parameter definitions here: https://www.mankier.com/1/remote-viewer # Some Examples: # Enable USB passthrough enable-usbredir = true # Enable auto USB device sharing enable-usb-autoshare = true EOF
cat << 'EOF' > /etc/hosts 127.0.0.1 localhost.localdomain localhost 10.207.151.243 cluster-node1 10.207.151.242 cluster-node2 10.207.151.241 cluster-node3 10.207.151.240 cluster-node4 10.207.151.239 cluster-node5 10.207.151.238 cluster-node6 10.207.151.237 cluster-node7 10.207.151.236 cluster-node8 10.207.151.235 cluster-node9 10.207.151.234 cluster-node10 EOF
cat << 'EOF' > /usr/share/applications/vdiclient.desktop [Desktop Entry] Exec=vdiclient.py Icon=/usr/share/icons/Adwaita/32x32/devices/computer.png Type=Application Name=PVE-VDIClient Categories=Network; EOF
Ярлыки на рабочий стол
cp /usr/share/applications/mate-display-properties.desktop /home/altlinux/Desktop/
cp /usr/share/applications/vdiclient.desktop /home/altlinux/Desktop/
Скелетон пользователя
cd /opt cat << 'EOF' > skel.tgz.base64.txt H4sIAAAAAAAAA+w9C3AkxXV7MZ9DcGcwhBwfh0Znwx1opZ39606ns353JyPpFq3u77Po3WlpB81Oz81H0p5Ttg+7DOETIBDKuCjjMrHLcWLj4NghJpg4hR0KDCEBJ3FBUrhCMEWAGBOwU3bivDczq5vVraSd2dXeqTSteurenp433e+9fp+emZ72PFcmpMmO0DKmCKRUJGLnyXhF7qSQEI+l4sloPJJMhCJCNJmKh0hiOTtVTqZuUI2QEJUNWVLM2YXaLXV8haZ2h/+mzrSwKGl6O/5r7DWQwcmF+S8IKcHhvxAVUkngfyIOGYk0thvV0yrn/0YyVpB0MiHJjEA+o0mGwRSSK5FZcTI8JxVhUxWpwVo2ksEJUuImmaGKQQxO8gWqTDLCNUJFkUBTlje4JjG9jVwPpCVMlKBdgREgHsMzr9QQi6QYTGO6wUQotpMeWSYyz1PZwQcdkaAqx4jGDApnioQrFhqFzRpEM5V2QLKDa0VqYLf39+8cn52dHe8fHN3W+oFdu4cHOkqlUmsbmSnAZQiUsRUleoHJcpjpeaoyETAUeBE6qIU1JlNDmmZEpUahDUdTgbECWUcZmwIIaE7nsmnYJ7aTEU449FIjE3Nd001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