unrealircd - irc server

Sve u vezi mreža i povezivanja na Internet

Moderator: Urednik

Post Reply

Poznata ličnost
Poznata ličnost
offline
User avatar

Posts: 114
Joined: 14 Jan 2013, 09:52
Location: /dev/hda1, etc
Contact:

Post Napisano: 24 Feb 2013, 15:07


Za ovu proceduru potrebno je koristiti root ovlašćenja!
Počnimo!
Unreal3.2 smestiti u opcioni folder /opt

Code: Select all

su
cd /opt
wget http://www.unrealircd.com/downloads/Unreal3.2.9.tar.gz
tar zxvf Unreal3.2.9.tar.gz
cd Unreal3.2
./Config
Prilikom izvršavanja komande ./Config pritiskajte slobodno ENTER do kraja.

Code: Select all

make
Na kraju kompajliranja Unrealircd ce postaviti još par pitanja, tipa: ime servera, email ... ENTER slobodno do kraja.
Potreban je još jedan fajl za pokretanje servera...u pitanju je unrealircd.conf
Kreirati ga:

Code: Select all

nano /opt/Unreal3.2/unrealircd.conf
treba izgledati ovako:

Code: Select all

/* /opt/Unreal3.2/unrealircd.conf */
me {
	name "irc.tech.net";
	info "irc server";
	numeric 1;
};

admin {
	"admin";
	"high";
	"admin@tech.net";
};
class clients {
	pingfreq 90;
	maxclients 500;
	sendq 100000;
	recvq 8000;
};
class servers {
	pingfreq 90;
	maxclients 10; /* Max servers we can have linked at a time */
	sendq 1000000;
	connfreq 100; /* How many seconds between each connection attempt */
};
allow {
	ip *;
	hostname *;
	class clients;
	maxperip 5;
};
allow {
	ip *@*;
	hostname *@*.passworded.ugly.people;
	class clients;
/*	password "lozinka";	*/
	maxperip 2;
};
listen *:6667;

oper admin {
	from {
		userhost *;
	};
	class clients;
	flags {
		global;
		admin;
		services-admin;
		netadmin;
		can_die;
		can_localkill;
		can_globalkill;
	};
	password admin-lozinka;
};
loadmodule "src/modules/commands.so";
loadmodule "src/modules/cloak.so";
set {
	kline-address "my@emailadresa.com";
	auto-join "#kanal";
	maxchannelsperuser 15;
	services-server services.tech.net;
	default-server irc.tech.net;
	network-name ime-irc-mreze;
	
/*
[error] set::maxchannelsperuser is missing
[error] set::services-server is missing
[error] set::default-server is missing
[error] set::network-name is missing
[error] set::hosts::admin is missing
[error] set::hosts::servicesadmin is missing
[error] set::hosts::netadmin is missing
[error] set::hosts::coadmin is missing
[error] set::help-channel is missing
[error] set::hiddenhost-prefix is missing
[error] set::cloak-keys missing!

*/

	options {
		hide-ulines;
	};
	hosts {
		local "LocalOp.tech.net";
		global "globalop.tech.net";
		admin "network-admin";
		servicesadmin "services-admin";
		netadmin "network-admin";
		coadmin	"co-admin";
	};
	help-channel "#help";
	hiddenhost-prefix "TANT";
	cloak-keys {
		"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";
		"aoAr1HnR6gl3tJ7hVz4Zb7x4YwpW";
		"aoAr1HnR6gl4sJ7hVz4Zb7x4YwpW";
	};
};
Promeniti vlasništvo (ownership) foldera /opt/Unreal3.2 jer nikako nije preporučljivo pokretati irc server kao root ...

Code: Select all

chown -R korisnik:korisnik /opt/Unreal3.2
izlogovati se iz root naloga komandom:

Code: Select all

exit
...zatim pokrenuti ircd kao korisnik

Code: Select all

cd /opt/Unreal3.2
./unreal start
Proces se zaustavlja komandom:

Code: Select all

./unreal stop
IRC server se nalazi na lokaciji 127.0.0.1 na default portu 6667, a pokrećete ga kroz nekog od irc klijenata (xchat, irssi, konversation...) .
Operatorske (server) privilegije ćete u ovom slučaju (pogledajmo oper blok u konfiguracionoj datoteci) dobiti komandom:

Code: Select all

/oper admin admin-lozinka
Proces možete prekinuti i iz dijalog bara u irc klijentu komandom:

Code: Select all

/die
Toliko za sada o IRC serveru!



Administrator
Administrator
offline
User avatar

Posts: 2792
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 24 Feb 2013, 15:56


Ovo ni najmanje ne deluje komplikovano, baš ću da se igram malo :)
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Poznata ličnost
Poznata ličnost
offline
User avatar

Posts: 114
Joined: 14 Jan 2013, 09:52
Location: /dev/hda1, etc
Contact:

Post Napisano: 24 Feb 2013, 16:22


:)
Basic SetUp je lagan, servisi zadaju muke :)



Administrator
Administrator
offline
User avatar

Posts: 2792
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 24 Feb 2013, 16:28


Ne verujem da je nešto preterano komplikovano, sve će se srediti. Imam mašinu za testiranje pa ću videti kako ide.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”


Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests