Installing from source/zh-tw

要將 UnrealIRCd 安裝於 Linux、FreeBSD、OpenBSD、OS X 以及其他 *NIX 系統，基本上需要取得原始碼進行編譯及安裝. 除此之外，你也需要去手動設定 UnrealIRCd. 本頁面將會解釋如何去完成這些動作，即使你對 UnrealIRCd 是完全的新手，根據教學步驟只需 30 分鐘以內就可以讓 IRCd 成功地運作.

=取得原始程式碼 (.tar.gz)=

在 Shell 中進行安裝
透過 SSH 連線至 *NIX 機器. 接下來所有的指令將會在 *NIX 機器上執行.

wget --no-check-certificate --trust-server-names https://www.unrealircd.org/downloads/Unreal3.4-latest.tar.gz

在 FreeBSD 上，你可以使用下面指令： fetch https://www.unrealircd.org/downloads/Unreal3.4-latest.tar.gz

如果兩種方式都失敗，例如出現錯誤訊息 'unknown command'，則代表你需要在你的機器中安裝 'wget' 套件，或透過上傳的方式安裝它.

替代解決案: 上傳至 Shell 中
You can also choose to download the .tar.gz of Unreal3.4 via your browser, save it to disk, and then upload it to the shell via SCP or SFTP.

= Extract the source = Extract the .tar.gz and enter the Unreal3.4.x directory: tar xzvf Unreal3.4.0.tar.gz cd Unreal3.4.0 NOTE: There's some logic here. If the file is called, say, Unreal3.4.0.tar.gz then it will extract to the Unreal3.4.0/ directory. As you can see, the directory name is different for each release to make sure you don't accidentally overwrite your existing installation.

=編譯= 首先執行 "./Config"，隨後會出現一些安裝相關的問題，若想使用預設值可直接 Enter 下一步. ./Config

接著，執行 "make" 指令來編譯 UnrealIRCd，這將會花費 1 至 2 分鐘. make

最後重要的一步，執行 "make install"： make install

= Creating a configuration file =
 * 1) Change to the installed UnrealIRCd directory, this is /home/yourusername/unrealircd by default (For more information on the directory structure see UnrealIRCd files and directories). cd ~/unrealircd
 * 2) Copy conf/example/example.conf to your conf/ directory and rename it to unrealircd.conf syzop@vulnscan:~/unrealircd$ cp conf/examples/example.conf conf/unrealircd.conf
 * 3) Open the file with an editor (eg: nano conf/unrealircd.conf)
 * 4) Read the Configuration file syntax article. It will only take a few minutes and will save you a lot of trouble in next step(s)!
 * 5) Walk through the unrealircd.conf block by block / line by line and edit the settings to suit your needs. This takes 10 - 20 minutes.
 * 6) Boot UnrealIRCd by running ./unrealircd start from your ~/unrealircd directory.
 * 7) Errors? Edit your unrealircd.conf, fix them (see the FAQ for common problems), and try starting UnrealIRCd again.
 * 8) Up and running? Connect with an IRC client to your server and have fun. See next section too.

= Further reading =
 * See Features for various available features on UnrealIRCd and Configuration for all possible things you can configure on UnrealIRCd.
 * Again, see the FAQ if you have any problems. A lot of common problems are answered there.