| How to automatically start Windows XP in VirtualBox when plugging in the iPhone on Linux |
|
| VirtualBox |
How to automatically start Windows XP in VirtualBox when plugging in the iPhone on Linux
1.The shell script
Create a script in /usr/local/bin/ to start your Windows XP machine in VirtualBox. I will name it "vbox.sh". Now open the file with vi:
Copy paste the following code into the file:
replace xp with the name of your Windows XP machine.
Ok, now save the file and make it executable:
2. The udev rule
create a file in /etc/udev/rules.d/ to define the rule. I will name the file 10-iphone.rules. Now open the file with vi:
Copy paste the following code into the file:
explanation
--> The iPhone device file is usually something like /dev/usbdev1.3_ep00
--> VirtualBox should only start up when I plug in MY iPhone. Just replace the serial number with the one from your iPhone. If you don't know your serial number, you can run the following command: (replace usbdev1.3_ep00 with the name of your device)
--> don't start VirtualBox when we plug out the iPhone
-->run the script
I think thats it! I am not sure if thats the best way to do it. So, any suggestions are welcome!
Comments (0)
Powered by !JoomlaComment 4.0 beta1
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved." |

