Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
v_lizedlab [2014/07/13 11:13] admin |
v_lizedlab [2015/12/09 22:31] (aktuell) admin [VlizedLab] |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== V'lizedlab ====== | + | ====== VlizedLab ====== |
| + | |||
| + | [[USB-Stick einbinden]] | ||
| + | |||
| + | [[Zugriff auf eine DVD]] | ||
| ===== Download ===== | ===== Download ===== | ||
| Zeile 313: | Zeile 318: | ||
| </code> | </code> | ||
| + | ==== Lernstick ==== | ||
| + | |||
| + | <code bash /vm/vb/lernstick/init.add.sh> | ||
| + | #!/bin/bash | ||
| + | |||
| + | MACHINE="geogebra" | ||
| + | MACHINEDIR="/home/matthias/Downloads/geogebra" | ||
| + | rm -rf $MACHINEDIR/$MACHINE | ||
| + | |||
| + | VBoxManage --nologo createvm --name $MACHINE --register --basefolder $MACHINEDIR | ||
| + | |||
| + | VBoxManage --nologo modifyvm $MACHINE --synthcpu on --memory 1536 --vram 21 --ioapic on --hwvirtex off --bioslogofadein off --bioslogofadeout off --bioslogodisplaytime 1 --nic1 nat --audio alsa --accelerate2dvideo on --accelerate3d on | ||
| + | |||
| + | VBoxManage --nologo modifyvm $MACHINE --ostype "Debian" | ||
| + | VBoxManage --nologo modifyvm $MACHINE --chipset piix3 --pagefusion on | ||
| + | VBoxManage --nologo storagectl $MACHINE --name C$MACHINE --add ide --controller PIIX4 --hostiocache on | ||
| + | VBoxManage --nologo modifyvm $MACHINE --mouse usbtablet | ||
| + | |||
| + | VBoxManage --nologo storageattach $MACHINE --storagectl C$MACHINE --port 1 --device 0 \ | ||
| + | --type dvddrive --medium $MACHINEDIR/geogebra-lernstick-2014-02-18.iso | ||
| + | |||
| + | VBoxManage --nologo startvm $MACHINE 2>&1 3>&1 | ||
| + | </code> | ||
| ===== Dateien und Ordner auf alle Clients übertragen ===== | ===== Dateien und Ordner auf alle Clients übertragen ===== | ||
| Zeile 364: | Zeile 392: | ||
| mkdir /media/sda3/{dev,proc,sys,vm} | mkdir /media/sda3/{dev,proc,sys,vm} | ||
| - | rn /media/sda1/etc/udev/rules.d/70-persistent-net.rules | + | rm /media/sda1/etc/udev/rules.d/70-persistent-net.rules |
| mount --bind /proc /media/sda1/proc | mount --bind /proc /media/sda1/proc | ||
| Zeile 381: | Zeile 409: | ||
| *planck:/opt/wartung/vlizedlab # | *planck:/opt/wartung/vlizedlab # | ||
| - | <code /etc/dhcpd.conf ini> | + | <code ini /etc/dhcpd.conf> |
| authoritative; | authoritative; | ||
| ddns-update-style none; | ddns-update-style none; | ||
| Zeile 435: | Zeile 463: | ||
| </code> | </code> | ||
| - | <code klonen.sh bash> | + | <code bash klonen.sh> |
| #!/bin/bash | #!/bin/bash | ||
| Zeile 467: | Zeile 495: | ||
| </code> | </code> | ||
| - | <code transfer.sh bash> | + | <code bash transfer.sh> |
| #!/bin/bash | #!/bin/bash | ||
| Zeile 497: | Zeile 525: | ||
| fi | fi | ||
| done | done | ||
| - | </file> | + | </code> |
| - | <code ping.sh bash> | + | <code bash ping.sh> |
| #!/bin/bash | #!/bin/bash | ||
| Zeile 517: | Zeile 545: | ||
| </file> | </file> | ||
| - | <code wakeup.sh bash> | + | <code bash wakeup.sh> |
| #!/bin/bash | #!/bin/bash | ||
| Zeile 539: | Zeile 567: | ||
| </code> | </code> | ||
| - | <code shutdown.sh bash> | + | <code bash shutdown.sh> |
| #!/bin/bash | #!/bin/bash | ||
| Zeile 581: | Zeile 609: | ||
| *[[VL Lehrer]] | *[[VL Lehrer]] | ||
| + | |||
| + | ===== Wartung ===== | ||
| + | |||
| + | *[[Wartung Kurzversion]] | ||
| + | |||
| + | *[[http://peer.st/dw/doku.php?id=nx-client|NX CLient für Linux starten ...]] | ||
| + | |||
| + | ===Zu einem Client verbinden=== | ||
| + | |||
| + | feynman:~ # sh view.sh 192.168.100.xx | ||
| + | Kennwort: eu... | ||
| + | |||
| + | Clients sind auf Plank unter /etc/dhcpd.conf zu finden | ||
| + | |||
| + | ===Clients aktualisieren:=== | ||
| + | |||
| + | Login auf Planck | ||
| + | cd /opt/wartung/vlizedlab | ||
| + | Check ob alle PCs im Saal laufen: | ||
| + | sh ping.sh ug | ||
| + | |||
| + | ===Alle PCs im UG einschalten=== | ||
| + | |||
| + | sh wakeup.sh ug | ||
| + | |||
| + | === Einzelnen PC wecken: === | ||
| + | |||
| + | sh wakeup_single.sh ug01 | ||
| + | |||
| + | === Mit Musterrechner verbinden === | ||
| + | |||
| + | ssh ug01 (eu...) | ||
| + | |||
| + | === Laufende VM "killen" === | ||
| + | |||
| + | killall VirtualBox; vlinitvbox | ||
| + | |||
| + | === Konfiguration der VM ändern === | ||
| + | |||
| + | vi /vm/vb/Windows7/init.add.sh | ||
| + | |||
| + | === Folgende beiden Zeilen sind für das "readonly"-schalten wichtig === | ||
| + | |||
| + | #mtyp="immutable" -> nur lesend | ||
| + | mtyp="normal" -> schreiben & lesen | ||
| + | |||
| + | === Konfiguration "speichern" === | ||
| + | |||
| + | killall VirtualBox; vlinitvbox | ||
| + | |||
| + | === Via NX zum Client verbinden bzw. hingehen === | ||
| + | |||
| + | Änderungen durchführen | ||
| + | |||
| + | === Windows und Office Aktivierung === | ||
| + | |||
| + | Lokal als .\root (uS...) anmelden | ||
| + | |||
| + | Startmenü -> cmd -> rechte Maustaste -> Als Administrator ausführen: | ||
| + | |||
| + | === Nur Windows lizenzieren === | ||
| + | |||
| + | cscript slmgr.vbs -skms kms.lsr-stmk.gv.at | ||
| + | cscript slmgr.vbs -ato | ||
| + | |||
| + | === Nur Office lizenzieren === | ||
| + | |||
| + | cscript "\Program Files\Microsoft Office\Office14\ospp.vbs" /sethst:kms.lsr-stmk.gv.at | ||
| + | cscript "\Program Files\Microsoft Office\Office14\ospp.vbs" /act | ||
| + | |||
| + | === Wenn nicht erfolgreich, dann auf Planck === | ||
| + | |||
| + | ifdown dsl0 | ||
| + | ifup dsl0 | ||
| + | |||
| + | ... etwas Geduld ... | ||
| + | |||
| + | ping kms.lsr-stmk.gv.at muss funktionieren! | ||
| + | |||
| + | |||
| + | Rechner sauber herunterfahren! | ||
| + | |||
| + | === Konfiguration der VM wieder zurück ändern === | ||
| + | |||
| + | vi /vm/vb/Windows7/init.add.sh | ||
| + | |||
| + | mtyp="immutable" -> nur lesend | ||
| + | #mtyp="normal" -> schreiben & lesen | ||
| + | |||
| + | killall VirtualBox; vlinitvbox | ||
| + | |||
| + | === Klonen === | ||
| + | |||
| + | Am Planck kontrollieren, ob wirklich alle Rechner laufen. | ||
| + | cd /opt/wartung/vlizedlab | ||
| + | sh ping.sh ug | ||
| + | |||
| + | === Client zum Lauschen bringen === | ||
| + | |||
| + | sh klonen.sh ug | ||
| + | |||
| + | === Am Musterrechner eine screen Sitzung starten === | ||
| + | |||
| + | Wenn diese Fehlermmeldung kommt: | ||
| + | Directory '/var/run/screen' must have mode 777. | ||
| + | |||
| + | Dann | ||
| + | |||
| + | chmod 777 /var/run/screen | ||
| + | und nochmals "screen" starten | ||
| + | |||
| + | vludpsendVMs | ||
| + | -> "Blauer" Bildschirm erscheint, gewünschte VM zum Klonen auswählen, | ||
| + | Liste der Clients die Lauschen erscheint -> Bestätigen... | ||
| + | Strg+A und D screen in den Hintergrund legen | ||
| + | |||
| + | Nach dem Klonen unbedingt alle Clients komplett neu starten, am besten | ||
| + | via Planck: | ||
| + | sh reboot.sh ug | ||
| + | |||
| + | Bisschen warten... und erneut verbinden. | ||
| + | Enjoy! | ||