在GGn中,如果IRC在线的话会有额外gold coin
的进账,所以配置IRC是很有必要的。话不多说,开始:
安装ZNC
Ubuntu
依次执行下列语句:
sudo apt-get install python-software-properties software-properties-common
sudo add-apt-repository ppa:teward/znc
sudo apt-get update
sudo apt-get install znc znc-dbg znc-dev znc-perl znc-python znc-tcl
Centos
Centos下比较简单,如果安装了EPEL,直接:
sudo yum install znc
如果安装了dnf,直接:
sudo dnf install znc
配置ZNC
在非root账户下运行下面命令
Ubuntu:znc --makeconf
Centos:sudo -u znc znc --makeconf
运行上述命令之后会让你填一些端口和密码之类的信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
ubuntu@machunjie:/home$ znc --makeconf [ .. ] Checking for list of available modules... [ >> ] ok [ ** ] [ ** ] -- Global settings -- [ ** ] [ ?? ] Listen on port (1025 to 65534): [ ?? ] Listen on port (1025 to 65534): [ ?? ] Listen on port (1025 to 65534): 6502 [ ?? ] Listen using SSL (yes/no) [no]: [ ?? ] Listen using both IPv4 and IPv6 (yes/no) [yes]: [ .. ] Verifying the listener... [ >> ] ok [ ** ] Enabled global modules [webadmin] [ ** ] [ ** ] -- Admin user settings -- [ ** ] [ ?? ] Username (alphanumeric): admin [ ?? ] Enter password: [ ?? ] Confirm password: [ ?? ] Nick [admin]: [ ?? ] Alternate nick [admin_]: [ ?? ] Ident [admin]: [ ?? ] Real name [Got ZNC?]: [ ?? ] Bind host (optional): [ ** ] Enabled user modules [chansaver, controlpanel] [ ** ] [ ?? ] Set up a network? (yes/no) [yes]: no [ ** ] [ .. ] Writing config [/home/ubuntu/.znc/configs/znc.conf]... [ >> ] ok [ ** ] [ ** ] To connect to this ZNC you need to connect to it as your IRC server [ ** ] using the port that you supplied. You have to supply your login info [ ** ] as the IRC server password like this: user/network:pass. [ ** ] [ ** ] Try something like this in your IRC client... [ ** ] /server <znc_server_ip> 6502 admin:<pass> [ ** ] [ ** ] To manage settings, users and networks, point your web browser to [ ** ] http://<znc_server_ip>:6502/ [ ** ] |
在Ubuntu下,会询问是否运行,那肯定运行:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[ ?? ] Launch ZNC now? (yes/no) [yes]: yes [ .. ] Opening config [/home/ubuntu/.znc/configs/znc.conf]... [ >> ] ok [ .. ] Loading global module [webadmin]... [ >> ] [/usr/lib/znc/webadmin.so] [ .. ] Binding to port [6502]... [ >> ] ok [ ** ] Loading user [admin] [ .. ] Loading user module [chansaver]... [ >> ] ok [ .. ] Loading user module [controlpanel]... [ >> ] ok [ .. ] Forking into the background... [ >> ] [pid: 13657] [ ** ] ZNC 1.6.3+deb1ubuntu0.2 - http://znc.in |
而在Centos下则通过:sudo systemctl start zncy
运行
运行之后,会在用户目录下生成配置文件,两个系统的位置是不同的:
Ubuntu:/home/ubuntu/.znc/configs/znc.conf
Centos:/var/lib/znc/.znc
这样,就可以通过IP:端口号
的方式来运行了.
配置Network
打开网页控制端,是这样的:
选择Your Settings
:
把自己的信息填入:
关于GGn的网络配置这块,也比较简单:
这样服务端的配置就完成了,下面是客户端的配置,这里以Textual
为例介绍:
客户端配置
添加服务器
要想启动的时候自动连接,还需要在启动的时候自动输入验证命令:
语法是/quote PASS 账号:密码
如果启动的时候没有自动运行,那就手动运行一下就好了。
配置完之后,我们连接一下看看,验证无误之后,我们就见到了熟悉的麋鹿:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
[19:58:20] - __ __ ______ _ ____ ____ ________ ______ [19:58:20] - [ | [ | .' ___ | / \ |_ \ / _||_ __ |.' ____ \ [19:58:20] - .--./) ,--. ____ .---. | | | | .---. / .' \_| / _ \ | \/ | | |_ \_|| (___ \_| [19:58:20] - / /'`\;`'_\ : [_ ]/ /__\ | | | |/ /__\| | ____ / ___ \ | |\ /| | | _| _ _.____`. [19:58:20] - \ \._//// | |, .' /_| \__., | | | || \__.,\ `.___] |_/ / \ \_ _| |_\/_| |_ _| |__/ || \____) | [19:58:20] - .',__` \'-;__/[_____]'.__.'[___][___]'.__.' `._____.'|____| |____||_____||_____||________| \______.' [19:58:20] - ( ( __)) [19:58:20] - [19:58:20] - Galloping games, batman! [19:58:20] - [19:58:20] - [19:58:20] - /| |\ [19:58:20] - `__\ //__' [19:58:20] - || || A Gazelle Based [19:58:20] - \__`\ |'__/ Tracker... [19:58:20] - `_\ //_' [19:58:20] - _.,:---;,._ Welcome to the official [19:58:20] - \_: :_/ GazelleGames.net IRC network [19:58:20] - |@. .@| [19:58:20] - | | Join #GGn-Help for assistance. [19:58:20] - ,\.-./ \ [19:58:20] - ;;`-' `---__________-----.-. [19:58:20] - ;;; \_\ [19:58:20] - ';;; | [19:58:20] - ; | ; [19:58:20] - \ \ \ | / [19:58:20] - \_, \ / \ |\ [19:58:20] - |';| |,,,,,,,,/ \ \ \_ [19:58:20] - | | | \ / | [19:58:20] - \ \ | | / \ | [19:58:20] - | || | | | | | [19:58:20] - | || | | | | | [19:58:20] - | || | | | | | [19:58:20] - |_||_| |_| |_| [19:58:20] - /_//_/ /_/ /_/ [19:58:20] - [19:58:20] - |
剩下的就一切如常了。
over!