How to Set up an IRC Server and Anope IRC Services
Total Page:16
File Type:pdf, Size:1020Kb
How To Set Up An IRC Server And Anope IRC Services By ZcWorld Published: 2007-01-31 15:48 How To Set Up An IRC Server And Anope IRC Services This tutorial describes how to set up and run an UnrealIRCD server on OpenSuSE 10.2 and Fedora Core 6. It also shows how to install Anope IRC services. Anope is a set of Services for IRC networks that allows users to manage their nicks and channels in a secure and efficient way, and administrators to manage their network with powerful tools. Before We Start What we need to get: - a DNS name : get one for free from like no-ip or dyndns - IF you dont want SSL on the server you gotta edit my .conf files to make them work or you going to have an error on them but it will tell you what line the error is on This was tested on - OpenSuse ver 10.2 - Fedora Core ver 6 (I386) Who Did What Writen / Tested by ZcWorld Helped / Tested by Craz1 Tested by Granddad Check List What we need: Copyright © 2007 All Rights Reserved. HowtoForge Page 1 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ - Linux OS ( fc 6 or opensuse ) - UnrealIRCD 3.2 - Anope services - compiler - SU access rights (superuser) - and a LOT of time - and a good signing voice (joke) but im sur eyou will be doing a lot of yelling doing this - water and coffee n something to eat as well (there is a lot of waiting at times. .. when its does the compiling and building) My setup: I got a personal account on my server pc. SUB Notes ::: If working in a VM make a backup of the OS - just in case it goes ass up or u can redo the test to make sure you got it down. :) Or if it's on a real pc .. than arrr good luck and hope it doest stuff up first time around that's all I can say. Step 1 Time to get a copy of the UnrealIRC server and a coyp of anope services for the server - in total about 3.5 MB. http://www.unrealircd.com/ http://www.anope.org/ My demo .conf files (are in .RAR and .ZIP format :)): RAR 16 KB ZIP 20 KB Copyright © 2007 All Rights Reserved. HowtoForge Page 2 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ If you download them on another pc than the linux pc then copy them over via WinSCP or something else. If you downloaded them on the pc .. just move them over to a build folder like at /home/zcworld/src/ (you may have to make a build folder ;)). Make a folder called src then open the folder on server side in WinSCP. Then drag and drop the files over and click copy. It will take an min or two to copy over. Then that's it. Copyright © 2007 All Rights Reserved. HowtoForge Page 3 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Copyright © 2007 All Rights Reserved. HowtoForge Page 4 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Step 2 Log in as your normal user, then type Copyright © 2007 All Rights Reserved. HowtoForge Page 5 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ su - <ENTER> <password> <ENTER> << Find the OS you're using and do what it says here. >> User info Username: ircadmin Password: what you want Group: ircadmin OpenSuSE OS Step 1: type yast Step 2: then pick from the list Security and Users then tab pick Group Management: Copyright © 2007 All Rights Reserved. HowtoForge Page 6 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Step 3: alt + a then in the group name box type: ircadmin: then alt +a (make sure you write down what was in there first: normal just users). Copyright © 2007 All Rights Reserved. HowtoForge Page 7 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Copyright © 2007 All Rights Reserved. HowtoForge Page 8 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Step 4: then alt +u then alt + x then enter on Defaults for New Users: Copyright © 2007 All Rights Reserved. HowtoForge Page 9 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Copyright © 2007 All Rights Reserved. HowtoForge Page 10 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Step 5: pick from the list the ircadmin as default group: nothing in the secondary groups then alt + a: Copyright © 2007 All Rights Reserved. HowtoForge Page 11 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Copyright © 2007 All Rights Reserved. HowtoForge Page 12 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Step 6: then alt + a: then type the full name for the ircadmin account / account name / password then alt + a: Copyright © 2007 All Rights Reserved. HowtoForge Page 13 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Copyright © 2007 All Rights Reserved. HowtoForge Page 14 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Copyright © 2007 All Rights Reserved. HowtoForge Page 15 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ Step 7: alt + f then wait 10 secs then alt + q. ***************************** Copyright © 2007 All Rights Reserved. HowtoForge Page 16 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ FC 6 arrr < sorry i don't know how to add users via command line on FC :( sorry > Step 3 Type su - root password here (if the bin folder is there than skip this part but do the chown part) cd /home/ircadmin make bin make conf chown -R ircadmin:ircadmin ./ ls -al Copyright © 2007 All Rights Reserved. HowtoForge Page 17 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ (Note: I'm sure you will see that I don't have a conf folder in my screenshot < bad me >.) Exit out of SuperUser access: Copyright © 2007 All Rights Reserved. HowtoForge Page 18 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ exit pwd to make sure you are in your home folder /home/zcworld cd src tar -zxf Unreal3.2.6.tar.gz tar -zxf anope-1.6.5.tar.gz 33 cd Unreal3.2 ./Config (Here's my screen dump when I built mine up. :)) Do you want to enable the server anti-spoof protection? [No] -> Yes <ENTER> What directory are all the server configuration files in? [/home/zcworld/src/Unreal3.2] -> /home/ircdadmin/conf What is the path to the ircd binary including the name of the binary? [/home/zcworld/src/Unreal3.2/src/ircd] -> /home/ircadmin/bin/ircd Would you like to compile as a hub or as a leaf? Type Hub to select hub and Leaf to select leaf. Copyright © 2007 All Rights Reserved. HowtoForge Page 19 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ [Hub] -> hub <ENTER> What is the hostname of the server running your IRCd? [dhcppc2] -> irc.zcworld-evil.mine.nu <ENTER> What should the default permissions for your configuration files be? (Set this to 0 to disable) It is strongly recommended that you use 0600 to prevent unwanted reading of the file [0600] -> <ENTER> Do you want to support SSL (Secure Sockets Layer) connections? [No] -> y <ENTER> If you know the path to OpenSSL on your system, enter it here. If not leave this blank [] -> <ENTER> Do you want to enable IPv6 support? [No] -> <ENTER> Do you want to enable ziplinks support? [No] -> y <ENTER> If you know the path to zlib on your system, enter it here. If not leave this blank [] -> <ENTER> Do you want to enable remote includes? [No] -> <ENTER> Do you want to enable prefixes for chanadmin and chanowner? This will give +a the & prefix and ~ for +q (just like +o is @) Supported by the major clients (mIRC, xchat, epic, eggdrop, Klient, PJIRC, irssi, CGI:IRC, etc.) Copyright © 2007 All Rights Reserved. HowtoForge Page 20 of 40 How To Set Up An IRC Server And Anope IRC Services http://www.howtoforge.com/ This feature should be enabled/disabled network-wide. [Yes] -> y <ENTER> What listen() backlog value do you wish to use? Some older servers have problems with more than 5, others work fine with many more. [5] -> <ENTER> How far back do you want to keep the nickname history? [2000] -> <ENTER> What is the maximum sendq length you wish to have? [3000000] -> <ENTER> How many buffer pools would you like? This number will be multiplied by MAXSENDQLENGTH. [18] -> <ENTER> How many file descriptors (or sockets) can the IRCd use? [1024] -> <ENTER> Would you like any more parameters to configure? Write them here: [] -> <ENTER> ./configure --with-showlistmodes --enable-nospoof --enable-hub --enable-ssl --enable-ziplinks --enable-prefixaq --with-listen=5 --with-dpath=/home/ircadmin/conf --with-spath=/home/ircadmin/bin/ircd --with-nick-history=2000 --with-sendq=3000000 --with-bufferpool=18 --with-hostname=irc.zcworld-evil.mine.nu --with-permissions=0600 --with-fd-setsize=1024 --enable-dynamic-linking checking for gcc..