diff options
author | Stefan Ritter <xeno@thehappy.de> | 2009-05-07 19:57:52 +0200 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2009-05-07 19:57:52 +0200 |
commit | 1cab3fbf30fe18fbb1e01b26fad03f8e4622dc3c (patch) | |
tree | 16cc97c1a22a496fb5dcf95efeed3164ae649ef8 | |
parent | 1ac51fd1e5a0c3bd89c1cfda0cb3f26694f9f87a (diff) |
Added function to zshrc for easily staring vms
Diffstat (limited to '')
-rw-r--r-- | zshrc | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -92,3 +92,34 @@ ausrede() { nc towel.blinkenlights.nl 666 fi } + +vm() { + SLEEP=1 + if [ "$1" = "winxp" ]; then + VBoxManage startvm "Windows XP Pro SP1" -type vrdp + sleep $SLEEP + rdesktop-vrdp -k de localhost + elif [ "$1" = "freebsd" ]; then + VBoxManage startvm "FreeBSD 7.1" -type vrdp + sleep $SLEEP + rdesktop-vrdp -k de localhost + elif [ "$1" = "win2003" ]; then + VBoxManage startvm "Windows Server 2003 Enterprise" -type vrdp + sleep $SLEEP + rdesktop-vrdp -k de localhost + elif [ "$1" = "pdc" ]; then + VBoxManage startvm "Samba PDC mit LDAP" -type vrdp + sleep $SLEEP + rdesktop-vrdp -k de localhost + elif [ "$1" = "sid" ]; then + VBoxManage startvm "Debian Sid" -type vrdp + sleep $SLEEP + rdesktop-vrdp -k de localhost + elif [ "$1" = "" ]; then + echo "winxp" + echo "win2003" + echo "freebsd" + echo "sid" + echo "pdc" + fi +} |