參照
http://forum.ubuntu.org.cn/viewtopic.php?f=44&t=136860
幾個注意的地方:
1. enable TCP connections to XServer
sudo gedit /etc/gdm/gdm.schemas
find:
<schema>
<key>security/DisallowTCP</key>
<signature>b</signature>
<default>true</default>
</schema>
shift from true to false:
<schema>
<key>security/DisallowTCP</key>
<signature>b</signature>
<default>false</default>
</schema>
注:網上流傳的做法是在當前用戶下
運行:
user@hardy:~$ xhost +127.0.0.1
xhost 是用來控制X server訪問權限的。 通常當你從hostA登陸到hostB上運行hostB上的應用程序時, 做為應用程序來說,hostA是client,但是作為圖形來說,是在hostA上顯示的,需要使用hostA的Xserver,所以hostA是 server.因此在登陸到hostB前,需要在hostA上運行xhost + 來使其它用戶能夠訪問hostA的Xserver. xhost + 是使所有用戶都能訪問Xserver. xhost + ip使ip上的用戶能夠訪問Xserver. xhost + nis:user@domain使domain上的nis用戶user能夠訪問 xhost + inet:user@domain使domain上的inet用戶能夠訪問。
2.轉換為超級用戶注意,這里用sudo su -而不是sudo -s是有原因的:sudo su - 將用戶轉換為超級用戶,并新起一個會話(空的會話),而不是像sudo -s那樣將當前會話傳遞個新的超級用戶,減少環境變量可能造成的影響和危害。
參考:
http://www.pythian.com/news/968/installing-oracle-11g-on-ubuntu-804-lts-hardy-heron/
靜默安裝:http://www.itpub.net/thread-1216438-1-1.html