User:Embrybd

Brian Embry

Senior CPE

My main experience is C and Linux. I like playing with microcontrollers

Projects: ECE597:_MythTV/DSP_Pico_Projector

VBox Remote Login Script:
 * 1) !/bin/bash
 * 2) This script needs to be modified for your use, the port information needs to be filled
 * 3) as well as the names of your vms.

SERVER= USER=

WIN7ULT=Win7-Ult WIN7UPRT=

WIN7BETA=Win7-Beta WIN7BPRT=

VISTA64=Vista64 VISTA64PRT=

WIDTH=1024 HEIGHT=768

LOCALPORT=5903

usage {   echo "VBoxConnect  [w] [h]" exit 1 }

connect {   echo "Connecting to $SERVER" ssh $SERVER "VBoxManage startvm $VM --type vrdp" ssh $SERVER "VBoxManage controlvm $VM setvideomodehint $WIDTH $HEIGHT 24" ssh -f -L $LOCALPORT:$SERVER:$VMPORT $SERVER sleep 10 rdesktop -5 -a 24 -x m -T $VM -u $USER -p - localhost:$LOCALPORT }

if [ -z $1 ] then usage fi

case "$1" in   $WIN7ULT)        VMPORT=$WIN7UPRT        VM=$WIN7ULT        ;;    $WIN7BETA) VMPORT=$WIN7BPRT VM=$WIN7BETA ;;   $VISTA64)        VMPORT=$VISTA64PRT        VM=$VISTA64        ;;    *) usage ;; esac

if [ $2 ] then WIDTH=$2 fi

if [ $3 ] then HEIGHT=$3 fi

connect