Benutzer-Werkzeuge

Webseiten-Werkzeuge


wartung20152016

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
wartung20152016 [2015/11/29 09:19] adminwartung20152016 [2015/12/03 15:47] (aktuell) – [USB] admin
Zeile 30: Zeile 30:
   * Zusammenarbeit   * Zusammenarbeit
  
-===== vlizedlab und DVD Laufwerk =====+==== vlizedlab und DVD Laufwerk ====
  
 <code ini /etc/apt/sources.list> <code ini /etc/apt/sources.list>
Zeile 74: Zeile 74:
 </code> </code>
  
 +<code ini /vm/vb/Windows7/init.add.sh>
 +...
 +VBoxManage --nologo storageattach $MACHINE --storagectl C$MACHINE --port 2 --device 0 \
 +       --type dvddrive --medium host:/dev/sr0  --passthrough on
 +
 +# Nach jeder Änderung:
 +# killall VirtualBox; vlinitvbox
 +</code>
 +
 +  wget http://download.virtualbox.org/virtualbox/4.2.18/Oracle_VM_VirtualBox_Extension_Pack-4.2.18.vbox-extpack
 +  VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.18.vbox-extpack
 +
 +
 +
 +==== USB ====
 +
 +  *Dienst deaktivieren
 <code bash /home/student/.xinitrc> <code bash /home/student/.xinitrc>
 ... ...
Zeile 80: Zeile 97:
 </code> </code>
  
-<code ini /vm/vb/Windows7/init.add.sh>+  *Sektion mit USB einbauen 
 +  *Beamer oder nur Notebook (LVDS kann auch anders heißen!) 
 +    *Suche als "student" Benutzer via DISPLAY=:0 xrandr -q 
 + 
 +<code bash /usr/share/vlizedlab/scripts/startmenustudent>
 ... ...
 +MENU="$MENU u USB b Beamer kb nur_Notebook x xterm  t Beenden"
 +
 +          # u)
 +          #   clear
 +          #   devmon --unmount-all
 +          #   sleep 2
 +          #   ;;
 +           u)
 +             clear
 +             /usr/local/bin/getusb.sh
 +             sleep 2
 +             ;;
 +           b)
 +             clear
 +             killall ion3
 +             DISPLAY=:0 xrandr --output LVDS1 --mode 1024x768 --output VGA1 --mode 1024x768
 +             DISPLAY=:0 ion3 &
 +             sleep 2
 +             ;;
 +            kb)
 +             clear
 +             killall ion3
 +             DISPLAY=:0 xrandr --output LVDS1 --auto --output VGA1 --off
 +             DISPLAY=:0 ion3 &
 +             sleep 2
 +             ;;
 +...
 +</code>
 +
 +<code bash /usr/local/bin/getusb.sh>
 +
 +#!/bin/bash
 +
 +test -d /tmp/vbusb && rm -rf /tmp/vbusb
 +mkdir /tmp/vbusb
 +VBoxManage list usbhost | awk -v RS="" '{print $0 > "/tmp/vbusb/"$2".txt"}'
 +test -f /tmp/vbusb/USB.txt && rm /tmp/vbusb/USB.txt
 +
 +grep -l -R -I -Z -i mouse /tmp/vbusb/*.txt | xargs -0 rm -f --
 +grep -l -R -I -Z -i "hp webcam" /tmp/vbusb/*.txt | xargs -0 rm -f --
 +
 +for usb in $(ls -m1 /tmp/vbusb/); do
 + usbdevice=$(echo $usb | cut -d"." -f1)
 + VBoxManage controlvm Windows7 usbattach "$usbdevice"
 +done
 +
 +test -d /tmp/vbusb && rm -rf /tmp/vbusb
 +</code>
 +
 +  chmod 755 /usr/local/bin/getusb.sh 
 +
 +  *Zeile mit usbehci ergänzen:
 +<code ini /vm/vb/Windows7/init.add.sh>
 +
 +VBoxManage --nologo modifyvm $MACHINE   --ostype "Windows7"
 +VBoxManage --nologo modifyvm $MACHINE   --nictype1 "82540EM" --audiocontroller hda
 +VBoxManage --nologo storagectl    $MACHINE --name C$MACHINE --add sata --controller IntelAHCI --hostiocache on
 +#VBoxManage --nologo sharedfolder add $MACHINE  --name media --hostpath /media --automount
 +
 +VBoxManage modifyvm $MACHINE --usb on --usbehci on
 +
 +# Standard-Modus
 +mtyp="immutable"
 +# Administrator-Modus
 +#mtyp="normal"
 +
 +VBoxManage --nologo storageattach $MACHINE --storagectl C$MACHINE --port 1 --device 0 \
 +      --type hdd --medium $MACHINEDIR/$MACHINE.vdi --mtype $mtyp
 +
 +#VBoxManage --nologo storageattach $MACHINE --storagectl C$MACHINE --port 1 --device 0 \
 +#      --type dvddrive --medium $MACHINEDIR/Windows7_AIO.iso
 +
 VBoxManage --nologo storageattach $MACHINE --storagectl C$MACHINE --port 2 --device 0 \ VBoxManage --nologo storageattach $MACHINE --storagectl C$MACHINE --port 2 --device 0 \
        --type dvddrive --medium host:/dev/sr0  --passthrough on        --type dvddrive --medium host:/dev/sr0  --passthrough on
Zeile 89: Zeile 182:
 </code> </code>
  
-  wget http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14.vbox-extpack +  *reboot
-  VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.14.vbox-extpack +
- +
- +
wartung20152016.1448785141.txt.gz · Zuletzt geändert: von admin