2012年11月21日 星期三

利用VNC來操控ubuntu Server !!

引文是提供一個方案,讓系統管理者可以利用VNC來操控ubuntu Server。
因為ubuntu Server安裝好後,一般是没有桌面(Desktop)環境可以運用的... 
雖然,以下提供了一種GUI介面來操控LINUX,
但身為LINUX系統管理者還是要有CLI的技能才是較正宗的管理方式。
+---------------------------------------------------------------------------------------------------+

How to setup Ubuntu with VNC for remote desktop

To run a VNC server on your VPS, you need to have the desktop version of Ubuntu installed. The server version, which you are probably running, is missing some required features.

On your VPS, run the following command to install the desktop version:

Code:
sudo apt-get install ubuntu-desktop
While you are waiting for this to install, download the latest version of tightVNC for your OS (it's free), or another VNC client.

After the desktop install is complete you want to make sure GNOME is installed and configured:

Code:
sudo apt-get install gdm
Code:
sudo /etc/init.d/gdm start
Code:
sudo dpkg-reconfigure xserver-xorg
In order to remotely control the server, you need to install a VNC server. We are going to be using TightVNC, instaling VNC on your server and your computer.

This step will install tightVNC on the server :

Code:
sudo apt-get install tightvncserver
You can now start the VNC. Note: make sure you set a password and remember it when prompted. The password will have 7 character limit:

Code:
vncserver :1 -geometry 1024×768 -depth 16 -pixelformat rgb565
If you forgot your password:

Code:
vncpasswd
Go a head and turn off the the VNC:

Code:
vncserver -kill :1
We want to configure it so the desktop environment uses GNOME. Open the startup file:

Code:
sudo nano ~/.vnc/xstartup
And add this line at the bottom:

Code:
gnome-session &
Restart your server:

Code:
sudo reboot
Start the VNC again:

Code:
vncserver :1 -geometry 1024×768 -depth 16 -pixelformat rgb565
All of our VNC requests will come from port 590x. The last number is reserved for the desktop number that you assign. We are using 1 (:1) so we only need to open up 5901. If we wanted to start another sever (:2) then we would need to open up port 5902.

On your PC open up TightVNC Viewer. Set the Host to the IP of your server. Set the Display to 1 (:1).
Enter the password that you set when you started the server and connect. You should be remotely viewing your VPS's Ubuntu desktop!



原文出處:
http://www.webhostingtalk.com/forumdisplay.php?f=116&lc=int_mb_1001
http://www.webhostingtalk.com/showthread.php?t=1029327

搜尋此網誌

本站大事記

這個部落格(網站)內容以分享LINUX和延伸出的技術文章為主!
特別是為了工作和進修需要,搜集了不少網站連結。
希望對來這裡觀文的朋友們,有提供一些有用的資訊或文章。
但這裡的文章中,也包含個人的心情扎記和隨興言談……
若是當中沒有對上你的口味,請多包涵!

原「琳娜絲與希斯寇的邂逅」,改名為「愛上琳娜絲」!

原「琳娜絲與希斯寇的邂逅」,改名為「愛上琳娜絲」!
--原序文--
就是當LINUX遇上CISCO啦!他們的結合還能作什麼事…不就是讓這個世界的網路,串…串起來啊…不然你們那能上這網站看部落格!