deb http://ftp.at.debian.org/debian/ squeeze main contrib non-free deb http://ftp.at.debian.org/debian/ wheezy main contrib non-free deb http://ftp.at.debian.org/debian/ sid main contrib non-free deb http://security.debian.org/ squeeze/updates main contrib non-free deb http://ftp.at.debian.org/debian/ squeeze-proposed-updates main contrib non-free deb http://ftp.at.debian.org/debian/ squeeze-updates main contrib non-free deb http://ftp.at.debian.org/debian/ wheezy-proposed-updates main contrib non-free # Backports repository deb http://ftp.debian.org/debian wheezy-backports main contrib non-free ####### Roberts Repo deb http://debutil.the-m.at/ unstable main ### Multimedia deb http://www.deb-multimedia.org stable main non-free ####### VirtualBox deb http://download.virtualbox.org/virtualbox/debian wheezy contrib deb http://download.virtualbox.org/virtualbox/debian squeeze contrib
gpg --keyserver pgp.mit.edu --recv-keys 7638D0442B90D010 gpg --armor --export 7638D0442B90D010 | apt-key add - gpg --keyserver pgp.mit.edu --recv-keys 5C808C2B65558117 gpg --armor --export 5C808C2B65558117 | apt-key add - apt-get update apt-get install firmware-ralink firmware-realtek libdvdread4 libdvdcss2 multipath-tools locales lsb-release
... cdrom:x:24:student audio:x:29:student vboxusers:x:106:student ...
... 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
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
...
# ( sleep 4 && ( devmon --no-gui --sync --mount-options "noexec,nosuid,noatime,uid=1000,gid=1000,umask=002" 2>&1 | logger -t devmon ) ) &
...
... 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 ;; ...
#!/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
chmod 755 /usr/local/bin/getusb.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 \ --type dvddrive --medium host:/dev/sr0 --passthrough on # Nach jeder Änderung: # killall VirtualBox; vlinitvbox