“UbuntuHelp:Dancer-IRCD”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/Dancer-IRCD}} {{Languages|UbuntuHelp:Dancer-IRCD}} == Introduction == Internet Relay Chat (IRC) is a form of real-time Internet chat or synchron...) |
小 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Dancer-IRCD}} | {{From|https://help.ubuntu.com/community/Dancer-IRCD}} | ||
{{Languages|UbuntuHelp:Dancer-IRCD}} | {{Languages|UbuntuHelp:Dancer-IRCD}} | ||
− | |||
− | |||
== Introduction == | == Introduction == | ||
Internet Relay Chat (IRC) is a form of real-time Internet chat or synchronous conferencing. It is mainly designed for group (many-to-many) communication in discussion forums called channels, but also allows one-to-one communication and data transfers via private message. | Internet Relay Chat (IRC) is a form of real-time Internet chat or synchronous conferencing. It is mainly designed for group (many-to-many) communication in discussion forums called channels, but also allows one-to-one communication and data transfers via private message. | ||
− | |||
Dancer-IRCD is an IRC server designed for centrally maintained networks This is the ircd designed for use on [http://www.freenode.net/ FreeNode], based on Hybrid IRCD used by Efnet. It attempts to handle the network transparently as a unit, and to provide features to support the OPN philosophy. | Dancer-IRCD is an IRC server designed for centrally maintained networks This is the ircd designed for use on [http://www.freenode.net/ FreeNode], based on Hybrid IRCD used by Efnet. It attempts to handle the network transparently as a unit, and to provide features to support the OPN philosophy. | ||
− | |||
== Installation == | == Installation == | ||
Download and install Dancer-IRCD and Dancer-Services | Download and install Dancer-IRCD and Dancer-Services | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude install dancer-ircd dancer-services | sudo aptitude install dancer-ircd dancer-services | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
== Configuration == | == Configuration == | ||
In this article, we need to configure two files ''/etc/dancer-ircd/ircd.conf'' and ''/etc/dancer-services/services.conf''. They should be opened as root by your favorite text editor, it may be Gedit, Nano, or even Kate. | In this article, we need to configure two files ''/etc/dancer-ircd/ircd.conf'' and ''/etc/dancer-services/services.conf''. They should be opened as root by your favorite text editor, it may be Gedit, Nano, or even Kate. | ||
− | |||
We also need an IRC client to test it out. It can be GAIM or Pidgin, Konversation, Chatzilla, or Ksirc. | We also need an IRC client to test it out. It can be GAIM or Pidgin, Konversation, Chatzilla, or Ksirc. | ||
− | |||
=== /etc/dancer-ircd/dancer-ircd === | === /etc/dancer-ircd/dancer-ircd === | ||
In line 48, change it to: | In line 48, change it to: | ||
第25行: | 第17行: | ||
localhost.: :dancer-services localhost: | localhost.: :dancer-services localhost: | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
In line 314, change it to: | In line 314, change it to: | ||
<pre><nowiki> | <pre><nowiki> | ||
第31行: | 第22行: | ||
</nowiki></pre> | </nowiki></pre> | ||
where '''P@ssw0rD''' is Your Password. Please change it accordingly. | where '''P@ssw0rD''' is Your Password. Please change it accordingly. | ||
− | |||
In line 315, change it to | In line 315, change it to | ||
<pre><nowiki> | <pre><nowiki> | ||
第37行: | 第27行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Trust me, you have to place xxxx on this line, this is temporary until we get our hashed password. | Trust me, you have to place xxxx on this line, this is temporary until we get our hashed password. | ||
− | |||
=== Hashed Password: === | === Hashed Password: === | ||
Open a text editor and place your password there. Please make sure you don't include a space after your password and do not hit the Enter key, thereby creating a new line. Save it as ''password'' in your home directory. | Open a text editor and place your password there. Please make sure you don't include a space after your password and do not hit the Enter key, thereby creating a new line. Save it as ''password'' in your home directory. | ||
− | |||
https://help.ubuntu.com/community/Dancer-IRCD?action=AttachFile&do=get&target=hash1.jpg | https://help.ubuntu.com/community/Dancer-IRCD?action=AttachFile&do=get&target=hash1.jpg | ||
− | |||
Open a terminal window and type this command: | Open a terminal window and type this command: | ||
<pre><nowiki> | <pre><nowiki> | ||
makepasswd --crypt-md5 --clearfrom password | makepasswd --crypt-md5 --clearfrom password | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
https://help.ubuntu.com/community/Dancer-IRCD?action=AttachFile&do=get&target=hash2.jpg | https://help.ubuntu.com/community/Dancer-IRCD?action=AttachFile&do=get&target=hash2.jpg | ||
− | |||
Now you have there your Hashed password. Copy this string and replace the xxxx word on line 315 with this. | Now you have there your Hashed password. Copy this string and replace the xxxx word on line 315 with this. | ||
<pre><nowiki> | <pre><nowiki> | ||
N:127.0.0.1:$1$CdjQLLLa$/Mq69SSgCK/wtyNo/eIuw/:services. | N:127.0.0.1:$1$CdjQLLLa$/Mq69SSgCK/wtyNo/eIuw/:services. | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Please take note that if you run the makepasswd command again, it'll spit out a completely different string. Don't worry, this works either way. It's a hashed result, so it will be a different string everytime you run the command. | Please take note that if you run the makepasswd command again, it'll spit out a completely different string. Don't worry, this works either way. It's a hashed result, so it will be a different string everytime you run the command. | ||
− | |||
=== /etc/dancer-services/services.conf === | === /etc/dancer-services/services.conf === | ||
In line 10, replace it with the following: | In line 10, replace it with the following: | ||
第63行: | 第46行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Obviously, it's the Operator's username and password | Obviously, it's the Operator's username and password | ||
− | |||
In line 17, replace it with the following: | In line 17, replace it with the following: | ||
<pre><nowiki> | <pre><nowiki> | ||
N:services.:dancer-services | N:services.:dancer-services | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
In line 28, replace it with the following: | In line 28, replace it with the following: | ||
<pre><nowiki> | <pre><nowiki> | ||
第75行: | 第56行: | ||
Again, please replace the password with your own. | Again, please replace the password with your own. | ||
If you want to use another port, do so here. | If you want to use another port, do so here. | ||
− | |||
In line 57, replace it with the following: | In line 57, replace it with the following: | ||
<pre><nowiki> | <pre><nowiki> | ||
O:~oper@127.0.0.1:xxxx:YourNick:segjO | O:~oper@127.0.0.1:xxxx:YourNick:segjO | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Replace the xxxx string with your hashed password | Replace the xxxx string with your hashed password | ||
<pre><nowiki> | <pre><nowiki> | ||
第86行: | 第65行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Also replace Your``Nick with the nick you plan on using with this server | Also replace Your``Nick with the nick you plan on using with this server | ||
− | |||
In line 62 and 63, replace it with the channel you want Oper``Serv to monitor. Please take note that this is Optional. | In line 62 and 63, replace it with the channel you want Oper``Serv to monitor. Please take note that this is Optional. | ||
<pre><nowiki> | <pre><nowiki> | ||
第92行: | 第70行: | ||
C:#friends | C:#friends | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
In line 130, replace it with the following: | In line 130, replace it with the following: | ||
<pre><nowiki> | <pre><nowiki> | ||
M:localhost:6667:127.0.0.1:6667:1m 4s | M:localhost:6667:127.0.0.1:6667:1m 4s | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
== Testing == | == Testing == | ||
Before firing up your favorite IRC client, make sure you double-check your settings. Once you're done, restart dancer-ircd and dancer-services. | Before firing up your favorite IRC client, make sure you double-check your settings. Once you're done, restart dancer-ircd and dancer-services. | ||
第104行: | 第80行: | ||
sudo /etc/init.d/dancer-services restart | sudo /etc/init.d/dancer-services restart | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
In my system, there's a zlib warning, don't you worry about this. After restarting dancer-ircd and dancer-services, launch your favorite IRC browser and try connecting to localhost:6667 | In my system, there's a zlib warning, don't you worry about this. After restarting dancer-ircd and dancer-services, launch your favorite IRC browser and try connecting to localhost:6667 | ||
− | |||
Now let's test dancer-services by issuing this command. | Now let's test dancer-services by issuing this command. | ||
<pre><nowiki> | <pre><nowiki> | ||
/msg nickserv register | /msg nickserv register | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
If Nick``Serv responded to the above command, then you know that dancer-services works. You're also sure that Oper``Serv, Chan``Serv, and Memo``Serv's working. | If Nick``Serv responded to the above command, then you know that dancer-services works. You're also sure that Oper``Serv, Chan``Serv, and Memo``Serv's working. | ||
− | |||
So that's it.. congratulations. You now have an IRC server for your friends, family, and/or your business. If you need other Dancer's advanced features, please consult the documentation. | So that's it.. congratulations. You now have an IRC server for your friends, family, and/or your business. If you need other Dancer's advanced features, please consult the documentation. | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 16:39的版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
目录
Introduction
Internet Relay Chat (IRC) is a form of real-time Internet chat or synchronous conferencing. It is mainly designed for group (many-to-many) communication in discussion forums called channels, but also allows one-to-one communication and data transfers via private message. Dancer-IRCD is an IRC server designed for centrally maintained networks This is the ircd designed for use on FreeNode, based on Hybrid IRCD used by Efnet. It attempts to handle the network transparently as a unit, and to provide features to support the OPN philosophy.
Installation
Download and install Dancer-IRCD and Dancer-Services
sudo aptitude install dancer-ircd dancer-services
Configuration
In this article, we need to configure two files /etc/dancer-ircd/ircd.conf and /etc/dancer-services/services.conf. They should be opened as root by your favorite text editor, it may be Gedit, Nano, or even Kate. We also need an IRC client to test it out. It can be GAIM or Pidgin, Konversation, Chatzilla, or Ksirc.
/etc/dancer-ircd/dancer-ircd
In line 48, change it to:
localhost.: :dancer-services localhost:
In line 314, change it to:
C:127.0.0.1:P@ssw0rD:services.
where P@ssw0rD is Your Password. Please change it accordingly. In line 315, change it to
N:127.0.0.1:xxxx:services.
Trust me, you have to place xxxx on this line, this is temporary until we get our hashed password.
Hashed Password:
Open a text editor and place your password there. Please make sure you don't include a space after your password and do not hit the Enter key, thereby creating a new line. Save it as password in your home directory. Open a terminal window and type this command:
makepasswd --crypt-md5 --clearfrom password
Now you have there your Hashed password. Copy this string and replace the xxxx word on line 315 with this.
N:127.0.0.1:$1$CdjQLLLa$/Mq69SSgCK/wtyNo/eIuw/:services.
Please take note that if you run the makepasswd command again, it'll spit out a completely different string. Don't worry, this works either way. It's a hashed result, so it will be a different string everytime you run the command.
/etc/dancer-services/services.conf
In line 10, replace it with the following:
A:Your Name <your@email.com>
Obviously, it's the Operator's username and password In line 17, replace it with the following:
N:services.:dancer-services
In line 28, replace it with the following:
S:P@ssw0rD:127.0.0.1:6667
Again, please replace the password with your own. If you want to use another port, do so here. In line 57, replace it with the following:
O:~oper@127.0.0.1:xxxx:YourNick:segjO
Replace the xxxx string with your hashed password
O:~oper@127.0.0.1:$1$CdjQLLLa$/Mq69SSgCK/wtyNo/eIuw/:YourNick:segjO
Also replace Your``Nick with the nick you plan on using with this server In line 62 and 63, replace it with the channel you want Oper``Serv to monitor. Please take note that this is Optional.
C:#family C:#friends
In line 130, replace it with the following:
M:localhost:6667:127.0.0.1:6667:1m 4s
Testing
Before firing up your favorite IRC client, make sure you double-check your settings. Once you're done, restart dancer-ircd and dancer-services.
sudo /etc/init.d/dancer-ircd restart sudo /etc/init.d/dancer-services restart
In my system, there's a zlib warning, don't you worry about this. After restarting dancer-ircd and dancer-services, launch your favorite IRC browser and try connecting to localhost:6667 Now let's test dancer-services by issuing this command.
/msg nickserv register
If Nick``Serv responded to the above command, then you know that dancer-services works. You're also sure that Oper``Serv, Chan``Serv, and Memo``Serv's working. So that's it.. congratulations. You now have an IRC server for your friends, family, and/or your business. If you need other Dancer's advanced features, please consult the documentation.