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

 

 

 

 

[memo] Oracle : 把資料用 UTF8 編碼存進 table / NLS_LANG / NCHAR / NVARCHAR / NLS_CHARACTERSET / NLS_NCHAR_CHARACTERSET / SQL plus

UTF8 sample:

螢幕快照 2014-10-28 下午9.21.47

URL : http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=竝

螢幕快照 2014-10-28 下午9.28.02

Oracle : 把資料用16進位印出來 dump(field,16)
螢幕快照 2014-10-28 下午8.30.11

螢幕快照 2014-10-28 下午8.35.36

 

用 locale -a 看 系統支援的 locales

參考 : Oracle® Database Globalization Support Guide : http://docs.oracle.com/cd/E11882_01/server.112/e10729/toc.htm

Read more