gembin

          OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

          HBase, Hadoop, ZooKeeper, Cassandra

          Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

          There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

          About Me

           

          How To Setup Linux VNC Server In 3 Minutes

          from http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/

          VNC server works similar to Telnet or SSH daemon, except that it allows VNC clients running on diverse OS platforms to remotely access Linux Desktop Manager of the server itself, rather than the TTY text-based console!

          As such, most of Windows-to-Linux users prefer using VNC server than SSH daemon, who are generally favor on the vivid Desktop Manager (either KDE or Gnome) than the cold black-and-white TTY console!
          For the newbie (as myself), here is my another 3-minute Linux guide about How to setup VNC server in Red Hat Enterprise Linux?

          Though this Linux-VNC guide is tested on Redhat Enterprise Linux 4, it served the general guide of installing VNC in Linux distributions.
          1. Locate the vnc-server-4.0-8.1.rpm package from the Red Hat Linux installation CD or download the latest free version of VNC server from Real VNC.
             
          2. Install the rpm package of VNC server:
            rpm -Uvh vnc-server-4.0-8.1.rpm
             
          3. VNC server is using different set of login authentication than the Linux /etc/passwd. Meaning that, you have to create VNC login password for individual Linux login accounts who are granted remote access with VNC client.
            To create VNC login password, just execute vncpasswd command and enter a valid password twice as usual.
             
          4. Unlike VNC server for Windows, each user account can run more than one VNC servers in Linux.
            To start an instance of VNC server, just execute vncserver command, which will create the $HOME/.vnc directory with VNC default startup scripts inside (if $HOME/.vnc is not currently exists).
             
          5. The vncserver command will startup a VNC server that open 3 next available TCP/IP port, starting from 5801, 5901, and 6001 respectively.
            Port 5801 is for VNC client connection over HTTP protocol, port 5901 is for VNC client connection over RFB protocol, and port 6001 is to allows X applications to connect to the VNC server. The lsof or netstat command will able to show the network port opened by Xvnc server.

            By executing vncserver for the second time or execute the vncserver :2 command, this will startup VNC server that bind and listen to port 5802, 5902, and 6002 respectively.

            To connect to Linux VNC server over HTTP protocol, just type walkernews.net:5801 (replace walkernews.net with your VNC server IP/hostname) at any javascripts-enabled web browser, such as Mozilla Firefox, Opera, or Internet Explorer.

            To connect to Linux VNC server over RFB protocol, just type walkernews.net:5901 at the VNC client.
             
          6. To kill the VNC server in Linux, just execute vncserver -kill :1 will kill the first VNC server that bind and listen to port 5801, 5901, and 6001. The vncserver -kill :2 will kill the second VNC server, and so on.

          How to get KDE or Gnome Desktop Manager running in Linux VNC server?

          Don’t worry, it’s just a 3-seconds Linux trick! Edit the default VNC server startup scripts $HOME/.vnc/xstartup and un-remark the two “critical” lines, as per the scripts suggestion:
          #!/bin/sh

          # Uncomment the following two lines for normal desktop:
          unset SESSION_MANAGER
          exec /etc/X11/xinit/xinitrc

          [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
          [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
          xsetroot -solid grey
          vncconfig -iconic &
          xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
          twm &

          Isn’t easy to setup and configure Real VNC in Linux, particularly with Red Hat Linux?

          posted on 2010-07-16 11:37 gembin 閱讀(613) 評論(0)  編輯  收藏 所屬分類: Linux

          導航

          統(tǒng)計

          常用鏈接

          留言簿(6)

          隨筆分類(440)

          隨筆檔案(378)

          文章檔案(6)

          新聞檔案(1)

          相冊

          收藏夾(9)

          Adobe

          Android

          AS3

          Blog-Links

          Build

          Design Pattern

          Eclipse

          Favorite Links

          Flickr

          Game Dev

          HBase

          Identity Management

          IT resources

          JEE

          Language

          OpenID

          OSGi

          SOA

          Version Control

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          free counters
          主站蜘蛛池模板: 定安县| 巴楚县| 革吉县| 襄樊市| 鹤峰县| 中山市| 武乡县| 日土县| 徐汇区| 镇远县| 盐城市| 焦作市| 砚山县| 喀什市| 曲周县| 台州市| 嫩江县| 江都市| 绥芬河市| 黑山县| 万荣县| 吐鲁番市| 中超| 吉木乃县| 石嘴山市| 昆明市| 莒南县| 临江市| 孟村| 通山县| 科技| 灵宝市| 蒲城县| 贡嘎县| 邹平县| 乃东县| 海晏县| 乌兰察布市| 辽源市| 寿光市| 崇州市|