토요일, 2월 28, 2009

PC 에서 VNC 로 linux 기반 flame / smoke 사용하기

VNC(Virtual Network Computing)

VNC는 영국 캠브리지 대학교의 AT&T 연구소에서 개발된 프리웨어이다.
VNC는 원격지에서도 자신의 엑스윈도우 GUI(Graphic User Interfce)환경을
제공해 주는 서버/클라이언트 방식의 프로그램이다.
VNC는 GUI환경을 제어하기 위하여 TCP/IP 기반에 자체적인 프로토콜을 사용한다.
AT&T가 VNC가 만들게 된 동기는 고속의 ATM네트웍에서 워크스테이션에 사용할
LCD 디스플레이 소프트웨어와 그 소프트웨어를 원격지에서 모니터링할 수 있는
뷰어(Viewer)를 개발하게 되었는데 그 시스템의 이름은 'ATM Network Computing'이라
명명하게 되었다. 그 후에 이 시스템의 개발이 꾸준히 진행되어 지금의 VNC가 되었다.
현재 VNC 는 리눅스 X86용은 물론 SUN의 Solaris 용 윈도우즈 95/98/NT/CE ,맥킨토시 등
각종 플랫폼으로 이식되어 있으며 각 플랫폼의 프로그램 소스도 공개되어 있다.
사용자가 자신의 컴퓨터에 ‘VNC server’를 실행시켜 놓은 상태라면 네트웍에 연결된
어느 컴퓨터에서나 ‘VNC viewer’를 이용하여 자신의 컴퓨터를 마음대로 조정할 수 있게 된다.
(viewer 대신에 인터넷 브라우져를 사용할 수도 있다. 전용 뷰어보다는 못하다.) 여러가지
목적으로 편리하게 사용할 수도 있겠지만 비밀번호 관리를 잘못하게 되면 자신의 시스템이
다른 사람에 의해 쉽게 망가져 버릴 수도 있을 것이다.









RHEL 4 64-bit 용 X11vnc 주소는 : http://dag.wieers.com/rpm/packages/x11vnc/x11vnc-0.9.2-1.el4.rf.x86_64.rpm.

rpm -Uvh x11vnc-0.9.2-1.el4.rf.x86_64.rpm

설치해준후

첨부 파일인 startvnc.zip 압축 푼후 chmod 777 startvnc 권한 설정을 해준다.

startvnc script 를 실행 시켜주면 몇가지 선택하는게 나온다.

Choose a resolution to work at

1. Full screen (default)

2. 2/3 size

3. 1/2 size

Enter your selection: 1


Do you want to start Smoke/Flame (n)? y

Do you want to remotely control the application? (n): y

What software do you want to start? (type smoke, flame or other): flame


위에 처럼 적당하게 선택하면

./startvnc

This script will start a VNC server with or without remote control and will runSmoke/Flame
______________________

Choose a resolution to work at

1. Full screen (default)

2. 2/3 size

3. 1/2 size

Enter your selection: 1

The VNC server address is aRTiSAn:0

If this doesn't work, use the IP address instead: 192.168.0.55:0

Do you want to start Smoke/Flame (n)? y

Do you want to remotely control the application? (n): y

What software do you want to start? (type smoke, flame or other): flame

flame_2009.1.SP2 is most recently installed version of flame

access control disabled, clients can connect from any host


################################################################

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#

#@ @#

#@ ** WARNING ** WARNING ** WARNING ** WARNING ** @#

#@ @#

#@ YOU ARE RUNNING X11VNC WITHOUT A PASSWORD!! @#

#@ @#

#@ This means anyone with network access to this computer @#

#@ will be able to view and control your desktop. @#

#@ @#

#@ >>> If you did not mean to do this Press CTRL-C now!! <<< @#

#@ @#

#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#

#@ @#

#@ You can create an x11vnc password file by running: @#

#@ @#

#@ x11vnc -storepasswd password /path/to/passfile @#

#@ or x11vnc -storepasswd /path/to/passfile @#

#@ or x11vnc -storepasswd @#

#@ @#

#@ (the last one will use ~/.vnc/passwd) @#

#@ @#

#@ and then starting x11vnc via: @#

#@ @#

#@ x11vnc -rfbauth /path/to/passfile @#

#@ @#

#@ an existing ~/.vnc/passwd file from another VNC @#

#@ application will work fine too. @#

#@ @#

#@ You can also use the -passwdfile or -passwd options. @#

#@ (note -passwd is unsafe if local users are not trusted) @#

#@ @#

#@ Make sure any -rfbauth and -passwdfile password files @#

#@ cannot be read by untrusted users. @#

#@ @#

#@ Use x11vnc -usepw to automatically use your @#

#@ ~/.vnc/passwd or ~/.vnc/passwdfile password files. @#

#@ (and prompt you to create ~/.vnc/passwd if neither @#

#@ file exists.) Under -usepw, x11vnc will exit if it @#

#@ cannot find a password to use. @#

#@ @#

#@ @#

#@ Even with a password, the subsequent VNC traffic is @#

#@ sent in the clear. Consider tunnelling via ssh(1): @#

#@ @#

#@ http://www.karlrunge.com/x11vnc/#tunnelling @#

#@ @#

#@ Or using the x11vnc SSL options: -ssl and -stunnel @#

#@ @#

#@ Please Read the documention for more info about @#

#@ passwords, security, and encryption. @#

#@ @#

#@ http://www.karlrunge.com/x11vnc/#faq-passwd @#

#@ @#

#@ To disable this warning use the -nopw option, or put @#

#@ the setting in your ~/.x11vncrc file. @#

#@ @#

#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#

###############################################################

12/01/2009 18:47:03 x11vnc version: 0.9.2 lastmod: 2007-06-16

12/01/2009 18:47:03 Using X display localhost:0

12/01/2009 18:47:03

12/01/2009 18:47:03 ------------------ USEFUL INFORMATION ------------------

12/01/2009 18:47:03

12/01/2009 18:47:03 Wireframing: -wireframe mode is in effect for window moves.

12/01/2009 18:47:03 If this yields undesired behavior (poor response, painting

12/01/2009 18:47:03 errors, etc) it may be disabled:

12/01/2009 18:47:03 - use '-nowf' to disable wireframing completely.

12/01/2009 18:47:03 - use '-nowcr' to disable the Copy Rectangle after the

12/01/2009 18:47:03 moved window is released in the new position.

12/01/2009 18:47:03 Also see the -help entry for tuning parameters.

12/01/2009 18:47:03 You can press 3 Alt_L's (Left "Alt" key) in a row to

12/01/2009 18:47:03 repaint the screen, also see the -fixscreen option for

12/01/2009 18:47:03 periodic repaints.

12/01/2009 18:47:03

12/01/2009 18:47:03 XFIXES available on display, resetting cursor mode

12/01/2009 18:47:03 to: '-cursor most'.

12/01/2009 18:47:03 to disable this behavior use: '-cursor arrow'

12/01/2009 18:47:03 or '-noxfixes'.

12/01/2009 18:47:03 using XFIXES for cursor drawing.

12/01/2009 18:47:03 GrabServer control via XTEST.

Xlib: extension "RECORD" missing on display "localhost:0.0".

12/01/2009 18:47:03

12/01/2009 18:47:03 The RECORD X extension was not found on the display.

12/01/2009 18:47:03 If your system has disabled it by default, you can

12/01/2009 18:47:03 enable it to get a nice x11vnc performance speedup

12/01/2009 18:47:03 for scrolling by putting this into the "Module" section

12/01/2009 18:47:03 of /etc/X11/xorg.conf or /etc/X11/XF86Config:

12/01/2009 18:47:03

12/01/2009 18:47:03 Section "Module"

12/01/2009 18:47:03 ...

12/01/2009 18:47:03 Load "record"

12/01/2009 18:47:03 ...

12/01/2009 18:47:03 EndSection

12/01/2009 18:47:03

12/01/2009 18:47:03

12/01/2009 18:47:03 XKEYBOARD: all 28 "must have" keysyms accounted for.

12/01/2009 18:47:03 Not automatically switching to -xkb mode.

12/01/2009 18:47:03 If some keys still cannot be typed, try using -xkb.

12/01/2009 18:47:03 Also, remember "-remap DEAD" for accenting characters.

12/01/2009 18:47:03 X FBPM extension not supported.

12/01/2009 18:47:03 X display is capable of DPMS.

12/01/2009 18:47:03 --------------------------------------------------------

12/01/2009 18:47:03

12/01/2009 18:47:03 Default visual ID: 0x21

12/01/2009 18:47:03 Read initial data from X display into framebuffer.

12/01/2009 18:47:03 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/7680

12/01/2009 18:47:03

12/01/2009 18:47:03 X display localhost:0.0 is 32bpp depth=24 true color

12/01/2009 18:47:03

12/01/2009 18:47:03 Autoprobing TCP port

12/01/2009 18:47:03 Autoprobing selected port 5901

12/01/2009 18:47:03 fb read rate: 449 MB/sec

12/01/2009 18:47:03 screen setup finished.

12/01/2009 18:47:03

12/01/2009 18:47:03 WARNING: You are running x11vnc WITHOUT a password. See

12/01/2009 18:47:03 WARNING: the warning message printed above for more info.

12/01/2009 18:47:03


The VNC desktop is: aRTiSAn:1PORT=5901

******************************************************************************

Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster

retrieval. It should work with any VNC viewer. Try it by running:

x11vnc -ncache 10 ...

more info: http://www.karlrunge.com/x11vnc/#faq-client-caching

ERROR: Couldn't attach to DCOP server!

Output log to: '/usr/discreet/log/vref.log'.

---------------------------------------------------------------------------

Autodesk Flame Version 2009.1.SP2 P3565

Autodesk and Autodesk Flame are registered trademarks or

trademarks of Autodesk, Inc./Autodesk Canada Co. in the USA

and/or other countries.

All other brand names, product names, or trademarks belong to

their respective holders. 1992-2008 Autodesk, Inc. All rights reserved.

---------------------------------------------------------------------------

위와 같은 메시지를 보이며 자동으로 flame 이 실행된다.

http://www.uvnc.com/download/1053/1053full.html

에서 32bit 용 혹은 x64 용을 다운로드 받은후 PC 에 설치해준다.

UltraVNC 설치 및 설정에 관한 내용은

http://kbench.com/hardware/?cc=36&sc=3&no=30200&pg=1

참조하길 바란다.

UltraVNC 서버 설정이 끝났으면 Viewer 를 실행 시킨다.

VNC server 란에 flame 시스템의 IP:0 을 설정해 주면 된다.

Viewer 의 Options 에서 화면 사이즈등을 조절할수 있다.

Connect 하면 위의 그림과 같이 flame 시스템에 연결된다.

PC 에서 리모트 하는대로 flame 시스템의 로컬 화면도 동일하게 움직인다.



사실 sparks plug-in 중에 http://www.informerapp.com

informer 동영상 메뉴얼을 보는중에 mac 에서 flame 을 VNC 처럼 리모트해서 사용하는게 아닌가

* Mac OS X 10.5 부터 새로 추가된 Screen Sharing 이라는 일종의 맥용 VNC 유틸을 이용한것이다. *

재미 있게 보이길래.. 흉내내봤다.

라벨: , , , ,


댓글: 댓글 쓰기

에 가입 댓글 [Atom]





<< 홈

This page is powered by Blogger. Isn't yours?

에 가입 덧글 [Atom]