常见问题

From GhostBSD Wiki
Revision as of 03:57, 7 October 2019 by Litchi (Talk | contribs)

Jump to: navigation, search
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎日本語 • ‎русский • ‎Türkçe • ‎中文

本文檔意圖涵蓋有關 GhostBSD 系統的最常見問題。 儘管最初是為了減少帶寬,並避免重複問題,不過 FAQ 已被大家公認為價值頗高的信息。

我們會盡力豐富本文檔。 若有任何改進建議,請隨時和我們聯繫。

介紹

何為 GhostBSD?

簡單來說,GhostBSD 是 類UNIX® 操作系統,運行在 英特爾® AMD64 平台上。GhostBSD 系統基於 FreeBSD,而 FreeBSD 基於伯克利大學(U.C. Berkeley)的「4.4BSD-Lite」 發行版,以及 「4.4BSD-Lite2」 加強部分。同時少部分基於伯克利大學的 William Jolitz 的i386平台的 「Net/2」 ,也就是 「386BSD」。GhostBSD 提供了 MateXfce 兩個桌面環境版本 。

誰可使用 GhostBSD?

全球各地的公司、研究人員、計算機專業人員、學生和家庭用戶都可以免費使用 GhostBSD ,進行工作,教育以及娛樂。

GhostBSD 的目標是什麼?

GhostBSD 項目的目標是結合 GTK桌面環境的易用性,以及 FreeBSD的機制。 GhostBSD 是學習 FreeBSD 並開始在 BSD 世界裏暢遊的絕佳工具。 GhostBSD 可用於任何目的,無需附加約束。

GhostBSD 許可證是否有限制?

是的。不過這些限制不會約束你如何使用代碼,也不會約束你如何對待我們 GhostBSD 項目本身。 如果你對許可有興趣,請閱讀實際的許可證。做一個簡單的回覆,可以將許可證總結如下:

  • 不要聲稱為本篇文章原文作者。
  • 若是代碼有誤,請勿起訴我們。

GhostBSD 能替代我現有的系統嗎?

對大多數人來說,是可以的。

實際上,多數人並不是直接使用操作系統,而是系統上的應用程式。程序讓計算機變得豐富多彩。 GhostBSD 旨在提供一套 桌面環境,和功能齊全的應用程式。 GhostBSD 支持多種網絡瀏覽器、辦公套件、電子郵件、圖形程序、編程環境、網絡服務器以及幾乎其它所有用戶所需。 可以使用FreeBSD Ports 集合來構建這些應用程式。

如需想使用某個系統上的專有程序,則無法輕鬆替換操作系統(被稱為供應商鎖定)。 不過,在 GhostBSD 系統上可能有類似的應用程式。如果正好需求穩定的辦公或網絡服務器、可靠的工作站、不間斷的工作環境,則 GhostBSD 幾乎能滿足上述所有需求。

如果想從其它UNIX®-like環境遷移到 GhostBSD,估計你已經具備一定的計算機基礎,無需過多擔心。不過若是你以前習慣的是桌面化操作系統,如 Microsoft Windows®和舊版的MacOS®,則需投入更多時間來學習 UNIX的風格。

為什麼起名為 GhostBSD?

GhostBSD 起初來源於BSD 技術和 Gnome 桌面,即 「Gnome hosted by BSD」。如今則更傾向於 GTK 環境,即 "GTK hosted by BSD"。

最新的 GhostBSD 版本是?

At this point in time, we are at version 10.3 codenamed Enoch.

一般幾個月後會更新版本。

Version 11.0 is next to come, following the release cycle of FreeBSD.

Many GhostBSD users stay up to date using other mechanisms available to FreeBSD users. You can read about them in the Chapter Updating and Upgrading FreeBSD in the FreeBSD Handbook.

GhostBSD 構建路線?

開發團隊每隔幾個月發佈一個新版本。 GhostBSD 遵循FreeBSD 的發行日期。發行版本之前都有一個測試期,以確保新添加的功能不會削弱版本穩定性。

如何參與貢獻?

There is a number of ways to contribute to the GhostBSD project:

  • If you possess abilities in programming and knowledge of the FreeBSD operating system, or you simply want to learn these things, you might want to consider joining the team by becoming an active developer. If you are feeling adventurous, you might want to try building GhostBSD, but you might as well join our development mailing list to get in touch with the team and see what work currently has to be done.
  • If you are interested in helping from the artistic perspective, you could contribute fan art, logos, wallpapers, or help design/maintain the website layout. In this case, the website mailing list is something to look on for additional information.
  • If you have decent writing skills and know English quite well, you might want to help by writing documents and producing website and wiki content. Get in touch with us on the website mailing list.
  • If none of the above apply to you, you might just want to use GhostBSD and tell us about bugs you've discovered and the ideas you have about how to improve the system You can report them via forums. You might also consider simply spreading the word about GhostBSD!

If you feel like you might be able to help us grow and improve GhostBSD in any of the above ways (or any other way you can come up with), please contact us using the forums, an IRC channel (#ghostbsd on irc.freenode.net) or any of the mailing lists above.

支持

最好的獲取幫助的方式是?

當前,聯繫 GhostBSD 用戶或開發人員的最佳方案是:

FAQ 用戶手冊逐步撰寫中,可訪問論壇或去 IRC 獲取幫助,也可查閱手冊。

有關在 GhostBSD 中完成工作的完整信息,在哪裏可以找到?

多數情況下,和 FreeBSD 類似,可在GhostBSD上完成操作。有任何疑問時,我們也鼓勵用戶在查看FreeBSD手冊。 如果手冊沒有涵蓋你感興趣的特定領域,或者某些方面 GhostBSD 與 FreeBSD 不同,則論壇或 IRC 頻道可能會有答案。

安裝

從哪裏獲取 GhostBSD?

所有的 GhsotBSD 發行版鏡像文件都在 SourceForge:

如何創建 USB 啟動盤?

4.0 版本開始適用於USB閃存驅動器(img鏡像)。 從10.1 版本開始,GhostBSD 以 ISO 鏡像發佈,可在 DVD上刻錄,也可刻錄在或在閃存驅動器上。 選擇喜歡的桌面和對應的架構,下載ISO。 下載完成後,校驗鏡像(可選),並使用下列方式,將iso寫入閃存驅動器。 由於鏡像容量高於 2GB,建議閃存容量至少為 4GB。

Linux 系統下

終端命令(鏡像後綴為 iso,替換要刻錄的設備為 'sdX' ),需要root權限(以 root 用戶,或者使用 sudo):

dd if=GhostBSD10.3-RELEASE-20160829-213046-mate-amd64.iso of=/dev/sdX bs=1M

BSD 系統下

終端命令(鏡像文件後綴為 iso,替換要刻錄的設備為 'daX' ),需要root權限(以 root 用戶,或者使用 sudo):

dd if=GhostBSD10.3-RELEASE-20160829-213046-mate-amd64.iso of=/dev/daX bs=1m

Windows 系統下

可在Ubuntu 幫助站點獲取幫助,同時適用於 GhostBSD 。也可使用以下兩種工具在 Windows 上創建可啟動盤。

Windows 下圖形刻錄工具
  1. 下載 ISO 格式的鏡像文件
  2. http://sourceforge.net/projects/win32diskimager/ 下載 Disk Imager
  3. 插入 U 盤(或其它類型啟動盤)
  4. 查看分配給您的閃存介質的驅動器號
  5. 運行 Disk Imager
  6. 選擇下載文件(iso 鏡像)和目標設備(如 U 盤),點擊"寫入(Write)"
  7. 安裝完成後,移除安裝盤。
Windows 上的命令提示工具
  1. 下載 ISO 文件
  2. http://shounen.ru/soft/flashnul 下載 flashnul
  3. 插上 USB 設備
  4. 運行 flashnul -p
  5. 記下 USB 對應的設備號
  6. 運行 flashnul <number obtained in prior step> -L \path\to\downloaded.iso
  7. 如果目標設備正確,輸入 "yes" 確認
  8. 命令完成後,移除 USB 設備

結論

完成上述步驟後,啟動盤裏會裝有可啟動的 GhostBSD 系統。 只需重啟計算機,並確保從USB引導,就可進入 Live 系統。

哪兒有 GhostBSD 安裝指導?

可在 GhostBSD 手冊里找到 安裝 GhostBSD

軟件安裝

如何安裝新軟件?

有三種安裝方式:

  • OctoPkg 是基於 GTK+ 的圖像化工具,可安裝(查找、安裝和刪除軟件) BSD 系統下的二進制文件包。
  • FreeBSD 軟件管理器 PKG ,使用命令行安裝文件 pkg install XXX (10.x 版本以前 , 為舊式的 pkg_* 工具)
  • FreeBSD Ports is one of the most useful and unique features of FreeBSD compared to most Linux distributions. If installed, it can be found under /usr/ports and contains the Makefiles (think "recipes" if you are new to this concept) used to automatically build (fetch source code, configure, compile, install) a vast amount of software. A menu-driven system allows you to tweak compile options which makes this an easy to use but extremely flexible method of installing software.

GhostBSD 系統下能使用 Linux 軟件麼?

大多數 Linux 軟件百分百都是「開源」軟件。這意味着,它們不僅限於 Linux,而是可免費運行在許多操作系統上。 因此,在Linux 上運行的大多數軟件,也可運行於 GhostBSD 。

和 FreeBSD 一樣,GhostBSD 使用了 Linux Binary Compatibility 。可以安裝許多原生 Linux 程序。 FreeBSD 手冊 [1]詳細說明了兼容情況,並描述了啥時候不起作用。

不過,GhostBSD 用戶不必設置 Linux Binary Compatibility,因為系統已經配置好了,且可以「正常工作」。

GhostBSD 是否支持 Flash 插件?

支持,不過 Adobe® 沒有為 GhostBSD 提供原生的 Flash® 插件。而我們仍然可選擇 Linux® 版本的插件。 這個插件也支持 RealPlayer® 等格式。

查看 安裝 Flash 插件

系統和軟件升級

如何升級 GhostBSD 至最新版本?

可使用 freebsd-update 命令,來更新 FreeBSD 類型系統

(包括 FreeBSD、TrueOS 和 GhostBSD)。

freebsd-update fetch install

網絡

為什麼未識別 WiFi 設備?

查看 wlan0 配置文件。

cat /etc/rc.conf | grep wlan0

如果輸出類似以下:

wlans_run0="wlan0"
ifconfig_wlan0="WPA DHCP"

則 WiFi 已配置好,可能還未開啟,運行

sudo ifconfig wlan0 up

應該可以工作。

如果未輸出,則 GhostBSD 網絡配置可能未檢測到無線網卡。這時需要查看有沒有安裝了無線驅動。

sudo ifconfig | grep -B 3 802.11

通常 run0 是無線驅動。

run0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
       ether 00:1e:e5:e6:5d:1
       nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
       media: IEEE 802.11 Wireless Ethernet autoselect mode 11a

如果輸出了類似上面的,則可以配置 /etc/rc.conf文件(ee 為文本管理器,可替換為你喜歡的 vim、nano和 pluma等)。

sudo ee /etc/rc.conf

/etc/rc.conf 中添加文本(替換run0 為你的無線設備)

wlans_run0="wlan0"
ifconfig_wlan0="WPA DHCP"

Esc 並保存,然後重啟netif

sudo /etc/rc.d/netif restart

則無線已配置好,可能需要開啟無線。

sudo ifconfig wlan0 up

如果輸出sudo ifconfig | grep -B 3 802.11後無反饋。則系統未編譯此無線模塊,或是上游的 FreeBSD 不支持這款網卡。請去問題報告 處提交錯誤報告,幫助我們改進系統。

為什麼無線網絡管理器無法工作?

你可以查看 #Why my WiFi don't work? (from above). If you have your WiFi Configured and the WiFi Network Manager still not working.

sudo ifconfig wlan0 scan

You should have something similar to this:

SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
rogerwifi       bc:14:01:e6:33:48    1   54M -23:-42  100 EP   WPS HTCAP WPA RSN WME
-               bc:14:01:e6:33:49    1   54M -20:-38  100 EP   HTCAP RSN WME
WLAN_6EF1       00:13:f7:c4:6e:f3   11   54M -12:-21  200 ES  
BSDHacker       5c:d9:98:69:df:2e   11   54M -15:-27  100 EP   HTCAP WPA WME WPS

If not sudo ifconfig wlan0 up scan should do it. Now you can setup to your network. From above you have none encrypted and encrypted WiFi network.

對非加密的 WiFi 網絡,可在/etc/wpa_supplicant.conf文件中添加以下內容

network={
        ssid="WLAN_6EF1"
        bssid=00:13:f7:c4:6e:f3
        key_mgmt=NONE
}

對於加密 WiFi 網絡,可在 /etc/wpa_supplicant.conf文件中添加以下內容

network={
        ssid="BSDHacking"
        bssid=5c:d9:98:69:df:2e
        key_mgmt=WPA-PSK
        proto=WPA
        psk="yourpasword"
}

欲獲取更多信息,請查閱Wireless Networking.

如果代碼sudo ifconfig wlan0 up scan 無法掃描,請去問題頁面提交報告,幫助改善 GhostBSD。

硬件

GhostBSD 下,我的顯卡是否支持 3D 硬件加速 ?

取決於你的顯卡, 想獲取 GhostBSD 支持(不一定有).[1]

ATI/Radeon
除非 FreeBSD 完成TTM[2] [3],否則ATIRadeon顯卡無法執行 3D 加速。 你仍可以驅動顯卡,不過要選擇 2D 驅動程序。如果 2D無法啟動,則需使用 Vesa 驅動程序。
Intel
在 GhostBSD 系統下,大多數英特爾顯卡支持 3D 加速。當前KMS 支持 [2], 當使用 "sc"驅動時,你不能使用( Crtl+Alt+F#) 在圖形和文本間切換。
使用 "vt" 控制台驅動程序時,可以在圖形和文本控制台之間切換,現在 GhostBSD 默認為 "vt"文本控制台。
Nvidia 顯卡:
可以,不過必須加載nvidia-driver[3] 軟件安裝很容易,如使用 (bxPKG/pkg) Package ManagerNvidia driver installation上的ports 包。

參考

  1. FreeBSD Handbook: Xorg Configuration#Caveats
  2. FreeBSD Wiki: Graphics#Kernel drivers
  3. FreeBSD Wiki: Ports/X11/Roadmap