| 1 | #!/bin/bash |
|---|
| 2 | # |
|---|
| 3 | # VirtualBox Ventrilo Controller Configuration Script |
|---|
| 4 | # By Kevin Fitzgerald - kevin@kevinfitzgerald.net |
|---|
| 5 | # |
|---|
| 6 | # $Id$ |
|---|
| 7 | # $Url$ |
|---|
| 8 | # |
|---|
| 9 | # [ CONFIGURATION ]--------------------------------------------------------------- |
|---|
| 10 | # |
|---|
| 11 | # VBoxUsername - Set this to your account, or whoever is allowed to access your VM |
|---|
| 12 | # |
|---|
| 13 | VBoxUsername="kfitzgerald" |
|---|
| 14 | |
|---|
| 15 | # |
|---|
| 16 | # VBoxMachineName - Set this to the name of your virtual machine |
|---|
| 17 | # If you're not sure, run: $ VBoxManage list vms |
|---|
| 18 | VBoxMachineName="WinXP1" |
|---|
| 19 | |
|---|
| 20 | # |
|---|
| 21 | # PressKeyScanCodes - Set this to the keyscan code(s) you want to send to the VM |
|---|
| 22 | # when you want to transmit. Default is 2a (left shift) |
|---|
| 23 | # Check out: http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html |
|---|
| 24 | PressKeyScanCodes="2a" |
|---|
| 25 | |
|---|
| 26 | # |
|---|
| 27 | # PressKeyScanCodes - Set this to the keyscan code(s) you want to send to the VM |
|---|
| 28 | # when you want to transmit. Default is aa (BATOK) |
|---|
| 29 | # Check out: http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html |
|---|
| 30 | ReleaseKeyScanCodes="aa" |
|---|
| 31 | |
|---|
| 32 | # |
|---|
| 33 | # EventDevice - The path to the keyboard device on your system |
|---|
| 34 | # E.g /dev/input/event1 You can help find the event device |
|---|
| 35 | # with the command: $ cat /proc/bus/input/devices |
|---|
| 36 | EventDevice="/dev/input/event1" |
|---|
| 37 | |
|---|
| 38 | # |
|---|
| 39 | # InputKeyCode - They key code generated from your input device to initialize |
|---|
| 40 | # voice transmission on. Default is 100 (Right ALT) |
|---|
| 41 | # Use the included findkey app to help find the keycode on your system |
|---|
| 42 | InputKeyCode="100" |
|---|
| 43 | |
|---|
| 44 | # |
|---|
| 45 | # RunUserCheck - Check on run if the running user might not have access to read the device |
|---|
| 46 | # Default: true |
|---|
| 47 | RunUserCheck="true" |
|---|
| 48 | |
|---|
| 49 | # |
|---|
| 50 | # RunAutoSudo - If the user wasn't detected as having access to read the event device, this |
|---|
| 51 | # specifies whether the app should automatically attempt to sudo to get access |
|---|
| 52 | # Default: true |
|---|
| 53 | RunAutoSudo="true" |
|---|
| 54 | |
|---|
| 55 | # |
|---|
| 56 | # ConfigFinished - This is my way of making sure you get though the entire config so you'll |
|---|
| 57 | # likely get everything working. :) Default: false, but set to true! |
|---|
| 58 | ConfigFinished="true" |
|---|