From 1cab3fbf30fe18fbb1e01b26fad03f8e4622dc3c Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Thu, 7 May 2009 19:57:52 +0200 Subject: Added function to zshrc for easily staring vms --- zshrc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'zshrc') diff --git a/zshrc b/zshrc index c226ddc..8520458 100644 --- a/zshrc +++ b/zshrc @@ -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 +} -- cgit v1.2.3