X11 Forwarding on MAC OS X

2017-1024

ssh -Y -p port_number user_id@server_ip_address

VBoxManage clonevm winxp-clone-0916 –register –name winxp-work

VBoxManage list vms

VBoxManage list runningvms

sudo VBoxManage startvm winxp –type headless

 

NYC server:
DISPLAY=:0 /usr/lib/virtualbox/VirtualBox –comment winxp –startvm 3da23f10-4110-4a8f-b7d1-30bac83e6057 –no-startvm-errormsgbox &

 

——

 

 

install this:

On mac:

sudo vi /private/etc/sshd_config

設定這個:

X11Forwarding yes

enable x server
sudo xhost + remote.server.name

 

login to remote server
ssh -X [email protected]

On remote server:
testing
xclock

 

PS: Install X11 server on OS X : http://xquartz.macosforge.org/landing/

 

 

 

Use fake X server
apt-get install xvfb
Xvfb -shmem -screen 0 1024x768x24 &

DISPLAY=:0 xclock