Wikipedia Affiliate Button

11/09/2009

ssh tunnel + virtualbox + rdesktop (much faster )

We'd like to create an ssh tunnel between home pc(linux) and office PC(linux.  winxp is running as a Virtualbox guest OS)


preparation:

1.  allow remote control on the guest winxp.

open "開始"->"我的電腦"--right click-->"內容" -> "遠端"--check --> "允許使用者遠端連線到這部電腦"

2.  add the following commands to virtualbox

VBoxManage setextradata winxp "VBoxInternal/Devices/pcnet/0/LUN#0/Config/rdp/Protocol" TCP
VBoxManage setextradata winxp "VBoxInternal/Devices/pcnet/0/LUN#0/Config/rdp/GuestPort" 3389
VBoxManage setextradata winxp "VBoxInternal/Devices/pcnet/0/LUN#0/Config/rdp/HostPort" 3389

action:

1. create tunnel
> ssh -L 3389:localhost:3389 timwu@deansoft


This means all traffic toward localhost:3399 will be redirected to timwu@deansoft:3399

2. on office PC, execute the virtualbox instance winxp
> VBoxHeadless -s winxp -v off
(virtualbox's VRDP is too slow.  We use windows RDP instead.)

3. then you can run rdesktop to attach remote windows screen
> rdesktop  -P -z  localhost -g 1280x720


11/08/2009

ssh tunnel + rdesktop + virtualbox windows

1. We'd like to create an ssh tunnel between home pc and office PC.  On home pc,  type the following command

> ssh -L 3389:localhost:3389 timwu@deansoft

This means all traffic toward localhost:3399 will be redirected to timwu@deansoft:3399

2. on office PC, execute the virtualbox instance winxp
> VBoxHeadless -s winxp

3.
then you can run rdesktop to attach remote windows screen
> rdesktop -P -z -a 8 localhost

-z -P -a 8 is for low bandwidth