Installing from source/zh-tw

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

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

From the shell
Connect to the *NIX server via SSH. All the following commands execute on the *NIX server.

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

On FreeBSD you may have to use: fetch https://www.unrealircd.org/downloads/Unreal3.4-latest.tar.gz

If neither works, for example you get an 'unknown command' then you should install the 'wget' package on your system or try uploading (see next).

Alternative: uploading to 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.

=解壓縮原始程式碼= 解壓縮 .tar.gz 並輸入 Unreal 3.4.x 資料夾： tar xzvf Unreal3.4-alpha999.tar.gz cd Unreal3.4-alpha999 備註：如果檔案名稱為 Unreal3.4.0-lala1.tar.gz，執行解壓縮後檔案會存在於一個名為 Unreal3.4.0-lala1 的資料夾內. 每一次釋出版本的檔案名稱都會不同，所以資料夾名稱也會不同，這樣可以避免你不小心在解壓縮時覆蓋已存在的檔案.

=編譯= 首先執行 "./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.