因為ubuntu Server安裝好後,一般是没有桌面(Desktop)環境可以運用的...
雖然,以下提供了一種GUI介面來操控LINUX,
但身為LINUX系統管理者還是要有CLI的技能才是較正宗的管理方式。
+---------------------------------------------------------------------------------------------------+
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:
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:
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 :
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:
If you forgot your password:
Go a head and turn off the the VNC:
We want to configure it so the desktop environment uses GNOME. Open the startup file:
And add this line at the bottom:
Restart your server:
Start the VNC again:
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!
On your VPS, run the following command to install the desktop version:
Code:
sudo apt-get install ubuntu-desktop
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
This step will install tightVNC on the server :
Code:
sudo apt-get install tightvncserver
Code:
vncserver :1 -geometry 1024×768 -depth 16 -pixelformat rgb565
Code:
vncpasswd
Code:
vncserver -kill :1
Code:
sudo nano ~/.vnc/xstartup
Code:
gnome-session &
Code:
sudo reboot
Code:
vncserver :1 -geometry 1024×768 -depth 16 -pixelformat rgb565
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
http://www.webhostingtalk.com/forumdisplay.php?f=116&lc=int_mb_1001
http://www.webhostingtalk.com/showthread.php?t=1029327
沒有留言:
張貼留言