特殊:Badtitle/NS100:ServerGUI
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ServerGUI }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/af | • {{#if: UbuntuHelp:ServerGUI|Afrikaans| [[::ServerGUI/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/ar | • {{#if: UbuntuHelp:ServerGUI|العربية| [[::ServerGUI/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/az | • {{#if: UbuntuHelp:ServerGUI|azərbaycanca| [[::ServerGUI/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/bcc | • {{#if: UbuntuHelp:ServerGUI|جهلسری بلوچی| [[::ServerGUI/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/bg | • {{#if: UbuntuHelp:ServerGUI|български| [[::ServerGUI/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/br | • {{#if: UbuntuHelp:ServerGUI|brezhoneg| [[::ServerGUI/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/ca | • {{#if: UbuntuHelp:ServerGUI|català| [[::ServerGUI/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/cs | • {{#if: UbuntuHelp:ServerGUI|čeština| [[::ServerGUI/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/de | • {{#if: UbuntuHelp:ServerGUI|Deutsch| [[::ServerGUI/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/el | • {{#if: UbuntuHelp:ServerGUI|Ελληνικά| [[::ServerGUI/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/es | • {{#if: UbuntuHelp:ServerGUI|español| [[::ServerGUI/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/fa | • {{#if: UbuntuHelp:ServerGUI|فارسی| [[::ServerGUI/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/fi | • {{#if: UbuntuHelp:ServerGUI|suomi| [[::ServerGUI/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/fr | • {{#if: UbuntuHelp:ServerGUI|français| [[::ServerGUI/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/gu | • {{#if: UbuntuHelp:ServerGUI|ગુજરાતી| [[::ServerGUI/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/he | • {{#if: UbuntuHelp:ServerGUI|עברית| [[::ServerGUI/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/hu | • {{#if: UbuntuHelp:ServerGUI|magyar| [[::ServerGUI/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/id | • {{#if: UbuntuHelp:ServerGUI|Bahasa Indonesia| [[::ServerGUI/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/it | • {{#if: UbuntuHelp:ServerGUI|italiano| [[::ServerGUI/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/ja | • {{#if: UbuntuHelp:ServerGUI|日本語| [[::ServerGUI/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/ko | • {{#if: UbuntuHelp:ServerGUI|한국어| [[::ServerGUI/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/ksh | • {{#if: UbuntuHelp:ServerGUI|Ripoarisch| [[::ServerGUI/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/mr | • {{#if: UbuntuHelp:ServerGUI|मराठी| [[::ServerGUI/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/ms | • {{#if: UbuntuHelp:ServerGUI|Bahasa Melayu| [[::ServerGUI/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/nl | • {{#if: UbuntuHelp:ServerGUI|Nederlands| [[::ServerGUI/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/no | • {{#if: UbuntuHelp:ServerGUI|norsk| [[::ServerGUI/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/oc | • {{#if: UbuntuHelp:ServerGUI|occitan| [[::ServerGUI/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/pl | • {{#if: UbuntuHelp:ServerGUI|polski| [[::ServerGUI/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/pt | • {{#if: UbuntuHelp:ServerGUI|português| [[::ServerGUI/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/ro | • {{#if: UbuntuHelp:ServerGUI|română| [[::ServerGUI/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/ru | • {{#if: UbuntuHelp:ServerGUI|русский| [[::ServerGUI/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/si | • {{#if: UbuntuHelp:ServerGUI|සිංහල| [[::ServerGUI/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/sq | • {{#if: UbuntuHelp:ServerGUI|shqip| [[::ServerGUI/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/sr | • {{#if: UbuntuHelp:ServerGUI|српски / srpski| [[::ServerGUI/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/sv | • {{#if: UbuntuHelp:ServerGUI|svenska| [[::ServerGUI/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/th | • {{#if: UbuntuHelp:ServerGUI|ไทย| [[::ServerGUI/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/tr | • {{#if: UbuntuHelp:ServerGUI|Türkçe| [[::ServerGUI/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/vi | • {{#if: UbuntuHelp:ServerGUI|Tiếng Việt| [[::ServerGUI/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/yue | • {{#if: UbuntuHelp:ServerGUI|粵語| [[::ServerGUI/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/zh | • {{#if: UbuntuHelp:ServerGUI|中文| [[::ServerGUI/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/zh-hans | • {{#if: UbuntuHelp:ServerGUI|中文(简体)| [[::ServerGUI/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ServerGUI | UbuntuHelp:ServerGUI | {{#if: | :}}ServerGUI}}/zh-hant | • {{#if: UbuntuHelp:ServerGUI|中文(繁體)| [[::ServerGUI/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:ServerGUI|:ServerGUI|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :ServerGUI/zh | | {{#ifexist: ServerGUI/zh | | {{#ifeq: {{#titleparts:ServerGUI|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ServerGUI|1|-1|}} | zh | | }}
Introduction
This guide covers installing an X11 GUI environment on the Ubuntu Server Edition. In most cases it is better to not install a GUI on a production server!
Arguments Against a GUI
Most Ubuntu Server developers do not recommend installing X on a server. There are multiple reasons for not installing a GUI, but on the other hand there are certain cases where it is useful. Some reasons to not install a GUI include:
- You'll have more code subject to security vulnerabilities, more packages that need updated, and more server downtime.
- X11 and desktop packages are not supported for the full 5 years that server packages are in the LTS releases of Ubuntu.
- Performance may suffer because resources (memory, hard disk space, CPU, etc.) will be consumed by the GUI.
- It is best practice to only install needed software on a production server.
- The GUI may include other network services that are inappropriate for a server.
- One of the goals of Ubuntu Desktop Edition is to make it easier for users to use Linux. When installing some desktop environments, services that you may not specifically want will be installed. For example avahi-daemon, which is used to help configure networking, adds another open port and may introduce unwanted DNS conflicts with a .local domain.
So for the most secure server it is best to not install a GUI.
GUI Alternatives
Instead of installing a full GUI on an Ubuntu server, you might consider using a web based administration package such as eBox.
X11 Client Installation
You may find it preferable to only run specific X11 clients on the server, and forward the X11 connections over ssh to display them on your desktop of choice. This way you avoid the need for an X11 server or desktop environment on the server itself. But note on the other hand that this opens up different vulnerabilities if the remote desktop can be compromised. To do this, simply install the applications you need, and apt-get will bring in other packages as needed to satisfy the dependencies.
X11 Server Installation
If you want an X11-server-based GUI there are several light weight desktop environments that may work better than a standard Gnome or KDE environment.
To install a minimum X11 on Ubuntu Server Edition enter the following:
sudo apt-get install xserver-xorg x-window-system-core
Next install a Window Manager:
sudo apt-get install openbox
Note: you can replace openbox with fluxbox, blackbox, etc.
Full Desktop Environments
To install the Gnome desktop on Ubuntu server Edition enter:
sudo apt-get install gnome-desktop-environment
- For KDE change gnome-desktop-environment to kubuntu-desktop.
- For XFCE enter xubuntu-desktop.
Note: This guide has been tested on Ubuntu 6.06 (Dapper Drake), and the upcoming Ubuntu 8.04 (Hardy Heron).