Anunţ

Caută printre mesajele de pe forum înainte de a scrie unul nou!
Formulează corect întrebarea sau problema pe care o ai.
Respectă regulile forumului și Codul de Conduită!

#1 11 Feb 2012 09:27:00

Shadowss
Membru
Locaţie: Craiova
Înregistrat: 17 Jan 2012
Mesaje: 30
Site web

[TUTORIAL] Cum sa instalezi ircu si gnuworld (server mIRC)

Install IRCU - version : ircu2.10.12.14

linux:/root# sudo apt-get install byacc
linux:/root# sudo apt-get install flex
linux:/root# sudo apt-get install screen
linux:/root# adduser
linux:/root# gnuworld

After that press ENTER and pick a password

Now we start to install ircu

linux:/root# su - gnuworld
linux:/gnuworld# wget http://dl.dropbox.com/u/45938412/ircu2.10.12.14.tar.gz
linux:/gnuworld# tar -zxvf ircu2.10.12.14.tar.gz
linux:/gnuworld# cd ircu2.10.12.14
linux:/gnuworld/ircu2.10.12.14# ./configure
linux:/gnuworld/ircu2.10.12.14# make
linux:/gnuworld/ircu2.10.12.14# make install
linux:/gnuworld/ircu2.10.12.14# cd ..
linux:/gnuworld/lib# cd lib
linux:/gnuworld/lib# wget http://dl.dropbox.com/u/45938412/ircd.motd
linux:/gnuworld/lib# wget http://dl.dropbox.com/u/45938412/ircd.conf
linux:/gnuworld/lib# cd ..
linux:/gnuworld# cd bin
linux:/gnuworld/bin# ./ircd
linux:/gnuworld# exit

NOW WE ARE BACK TO ROOT USER

Check if you have allready installed TCL

linux:/root# /usr/bin/updatedb
linux:/root# locate tclConfig.sh

Must to return : /usr/lib/tclConfig.sh if you have TCL INSTALLED

linux:/root# grep TCL_VERSION /usr/lib/tclConfig.sh

Must have return : 8.0 or higher

If you don`t have TCL installed must to follow :

Install TCL - version : 8.4.13-src

linux:/root# wget http://dl.dropbox.com/u/45938412/tcl8.4.13-src.tar.gz
linux:/root# tar -zxvf tcl8.4.13-src.tar.gz
linux:/root# cd tcl8.4.13-src/unix/
linux:/root/tcl8.4.13-src/unix/# ./configure
linux:/root/tcl8.4.13-src/unix/# make
linux:/root/tcl8.4.13-src/unix/# make install
linux:/root/tcl8.4.13-src/unix/# cd ..
linux:/root/tcl8.4.13-src/# cd ..
linux:/root# ln -s /usr/local/lib/tclConfig.sh /usr/lib

Install POSTGRESQL - version : 8.1.4

linux:/root# wget http://dl.dropbox.com/u/45938412/postgr … 1.4.tar.gz
linux:/root# tar -zxvf postgresql-8.1.4.tar.gz
linux:/root# sudo apt-get install readline
linux:/root# sudo apt-get install zlib
linux:/root# cd postgresql-8.1.4
linux:/root/postgresql-8.1.4# ./configure --with-CXX --enable-multibyte --with-tclconfig=/usr/lib --without-tk --without-readline --without-zlib
linux:/root/postgresql-8.1.4# ln -s /usr/bin/make /usr/bin/gmake
linux:/root/postgresql-8.1.4# sudo apt-get install gmake
linux:/root/postgresql-8.1.4# sudo apt-get install gcc
linux:/root/postgresql-8.1.4# sudo apt-get install g++
linux:/root/postgresql-8.1.4# sudo apt-get install automake
linux:/root/postgresql-8.1.4# gmake --version
linux:/root/postgresql-8.1.4# gmake
linux:/root/postgresql-8.1.4# gmake install

Here you can use any editor do you want , i use VIM

linux:/root/postgresql-8.1.4# vim /etc/ld.so.conf

Now press : a
Add line : /usr/local/pgsql/lib

Press : ESC

Type exactly what is BOLD : :wq

Install PGTCLSH - version : 1.5

linux:/root# wget http://dl.dropbox.com/u/45938412/pgtcl1.5.tar.gz
linux:/root# tar -zxvf pgtcl1.5.tar.gz
linux:/root# cd pgtcl1.5
linux:/root/pgtcl1.5# export PG_CONFIG=/usr/local/pgsql/bin/pg_config
linux:/root/pgtcl1.5# ./configure --with-tcl=/usr/lib/ --prefix=/usr/local/pgsql --exec-prefix=/usr/local/pgsql --with-postgres-lib=/usr/local/pgsql/lib
linux:/root/pgtcl1.5# gmake
linux:/root/pgtcl1.5# cd generic
linux:/root/pgtcl1.5/generic# vim pgtclAppInit.c

Now in edit mode press : a

Modify line :#include in #include "libpgtcl.h"

Press : ESC

Type exactly what is BOLD : :wq

linux:/root/pgtcl1.5/generic# cd ..
linux:/root/pgtcl1.5# gmake pgtclsh
linux:/root/pgtcl1.5# gmake install

You will recive an error but IGNORE HIM :

/usr/bin/install: cannot stat `./doc/*.n': No such file or directory
make: *** [install-doc] Error 1

IGNORE HIM

linux:/root/pgtcl1.5# mv pgtclsh /usr/local/pgsql/bin
linux:/root/pgtcl1.5# mv libpgtcl1.5.so /usr/local/pgsql/lib
linux:/root/pgtcl1.5# updatedb
linux:/root/pgtcl1.5# ldconfig
linux:/root/pgtcl1.5# /usr/local/pgsql/bin/pgtclsh

Must be something like this :

root@Shadow:/home/catalin/Server/pgtcl1.5# /usr/local/pgsql/bin/pgtclsh
%

Now we crate DATABASE

linux:/root# mkdir /usr/local/pgsql/data
linux:/root# chown gnuworld /usr/local/pgsql/data
linux:/root# su - gnuworld
linux:/home/gnuworld$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
linux:/home/gnuworld$ /usr/local/pgsql/bin/postmaster -S -B 64 -N 32 -i -D /usr/local/pgsql/data -o -F -h 127.0.0.1
linux:/home/gnuworld$ exit

Configure APACHE and PHP

linux:/root# sudo apt-get install apache2 (for ubuntu) / linux:/root# yum -y install httpd (for centos / fedora)
linux:/root# sudo apt-get install php5-curl php5-gd php5-dev php5-pgsql / linux:/root# yum -y install php-curl php-gd php-dev php-pgsql

Install GNUWorld - version : 2.0.0 by Seven & Shadow (UNOFFICIAL)

linux:/root# sudo apt-get install libpqxx-3.0 libpqxx3-dev libpqxx-dev

If don`t work try second command

Cod:

linux:/root# sudo apt-get install libpqxx-3.0 libpqxx3-dev
linux:/root# ls /usr/include/postgresql/libpq-fe.h
linux:/root# su - gnuworld
linux:/gnuworld# wget https://dl.dropboxusercontent.com/u/45938412/arhiva-gnuworld.tar.gz
linux:/gnuworld# wget https://dl.dropboxusercontent.com/u/45938412/arhiva-website.tgz
linux:/gnuworld# tar -zxvf gnuworld-hlds.tgz
linux:/gnuworld# cd gnuworld
linux:/gnuworld/gnuworld# ./configure --enable-modules=ccontrol,cservice,clientExample,cloner,dronescan,gnutest,nickserv,openchanfix,scanner,snoop,stats --with-pgsql-home=/usr/local/pgsql --with-extra-includes=/usr/include/postgresql/
linux:/gnuworld/gnuworld# gmake
linux:/gnuworld/gnuworld# gmake install
linux:/gnuworld/gnuworld# cd doc
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/createdb cservice
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/createlang plpgsql cservice
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql cservice < cservice.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql cservice < cservice.config.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql cservice < languages.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql cservice < language_table.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql cservice < greeting.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql cservice < cservice.help.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql cservice < cservice.web.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/createdb local_db
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql local_db < local_db.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql cservice < cservice.addme.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/createdb ccontrol
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql ccontrol < ccontrol.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql ccontrol < ccontrol.help.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql ccontrol < ccontrol.addme.sql
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql ccontrol < ccontrol.commands.sql
linux:/gnuworld/gnuworld/doc$ cd ..
linux:/gnuworld/gnuworld$ /usr/local/pgsql/bin/createdb chanfix
linux:/gnuworld/gnuworld$ cd mod.openchanfix/doc
linux:/gnuworld/gnuworld/mod.chanfix/doc$ /usr/local/pgsql/bin/psql chanfix < chanfix.sql
linux:/gnuworld/gnuworld/mod.chanfix/doc$ /usr/local/pgsql/bin/psql chanfix < chanfix.languages.sql
linux:/gnuworld/gnuworld/mod.chanfix/doc$ /usr/local/pgsql/bin/psql chanfix < chanfix.language.english.sql
linux:/gnuworld/gnuworld/mod.chanfix/doc$ /usr/local/pgsql/bin/psql chanfix < chanfix.help.sql
linux:/gnuworld/gnuworld/mod.chanfix/doc$ /usr/local/pgsql/bin/psql chanfix < chanfix.addme.sql
linux:/gnuworld/gnuworld/mod.chanfix/doc$ cd ..
linux:/gnuworld/gnuworld/mod.chanfix$ cd ..
linux:/gnuworld/gnuworld$ cd doc
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/createdb dronescan
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql dronescan < dronescan.sql
linux:/gnuworld/gnuworld/doc$ cd nickserv
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/createdb nickserv
linux:/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql nickserv < nickserv.sql

NOW EDIT GNUWorld.example.conf in what are you want and cservice.example.conf and ccontrol.example.conf

linux:/gnuworld/gnuworld/bin$ screen -A -m -d -S bin ./gnuworld -c -f GNUWorld.example.conf
linux:/gnuworld/gnuworld/bin$ screen -r bin

CTRL + A + D = out of screen
The result :
For login to X type next command :
/msg X@services.undernet.org login Admin temPass
-X- AUTHENTICATION SUCCESSFULL AS Admin!

Now we have a little and we will be done

linux:/home/gnuworld$ tar -zxvf arhiva-website.tgz
linux:/home/gnuworld$ cd website/php_includes

From the last command we are in here :

linux:/home/gnuworld/gnuworld$ exit
linux:/root# cd /var/www
linux:/var/www# chmod 711 ~gnuworld
linux:/var/www# chmod 711 ~gnuworld/website
linux:/var/www# chmod 755 ~gnuworld/website/php_includes
linux:/var/www# chmod 644 ~gnuworld/website/php_includes/config.inc
linux:/var/www# chmod 755 ~gnuworld/website/docs/gnuworld/
linux:/var/www# ln -s /home/gnuworld/website/docs/gnuworld live

http://localhost/live sau http://127.0.0.1/live

For report bug : [MESAJ PRIVAT] [EDITAT]

Pentru intrebari si sugestii : [MESAJ PRIVAT] [EDITAT]

TUTORIALUL ESTE INTEGRAL FACUT DE MINE ! ESTE SCRIS IN LIMBA ENGLEZA PENTRU CA ESTE POSTAT SI PE ALTE SITE-URI. ESTE TESTAT 100 % PE UBUNTU SI FUNCTIONEAZA PERFECT DACA RESPECTATI PAS CU PAS.
________________________________________________________________

Editat ultima oară de Shadowss (17 Jun 2013 14:07:12)

Offline

 

#2 17 Feb 2012 21:05:04

rudy87
Membru nou
Locaţie: Lugoj
Înregistrat: 19 Aug 2009
Mesaje: 7

Re: [TUTORIAL] Cum sa instalezi ircu si gnuworld (server mIRC)

Salut.Primesc o eroare si nu imi pot da seama de la ce este.Eroarea o primesc cand incerc sa dau make in folderu de la ircu.

Cod:

gnuworld@rudy-FreeData:~/ircu2.10.12.14$ make
Building ircd...
make[1]: Entering directory `/home/gnuworld/ircu2.10.12.14/ircd'
yacc -d ./ircd_parser.y
make[1]: yacc: Command not found
make[1]: *** [y.tab.h] Error 127
make[1]: Leaving directory `/home/gnuworld/ircu2.10.12.14/ircd'
Building ircd/test...
make[1]: Entering directory `/home/gnuworld/ircu2.10.12.14/ircd/test'
make[1]: Nothing to be done for `build'.
make[1]: Leaving directory `/home/gnuworld/ircu2.10.12.14/ircd/test'

I had a fortune cookie the other day and it said: 'Outlook not so good'. I said: 'Sure, but Microsoft ships it anyway'."

Offline

 

#3 17 Feb 2012 21:15:46

wladypauly
Membru
Locaţie: Pascani
Înregistrat: 14 Jun 2011
Mesaje: 4822
Site web

Re: [TUTORIAL] Cum sa instalezi ircu si gnuworld (server mIRC)

Cred ca trebuie instalat byacc (asa apare in Synaptic) care contine comanda yacc.


Răspunsul va fi pe măsura întrebării!
I am curious. Since I'm not a cat, that's not dangerous. House M.D.
(Adică ceva de genul „Curioșii mor repede, dar nu mor proști”)

Offline

 

#4 16 Apr 2012 18:21:51

NoMatter
Membru nou
Înregistrat: 16 Apr 2012
Mesaje: 1

Re: [TUTORIAL] Cum sa instalezi ircu si gnuworld (server mIRC)

Frumos tutorial si folositor. Thumbs up!
Tot ce as mai vrea sa fac este sa modific levelul 1000 la * sa nu fie pe userul Admin ci pe altul.am editat cservice.addme.sql, am schimbat doar userul nu si parola, apoi am folosit comanda: /usr/local/pgsql/bin/psql cservice < cservice.addme.sql (cu psql cservice < cservice.addme.sql nu am reusit deloc) si primesc eroarea asta:

ERROR:  duplicate key violates unique constraint "channels_name_key"
ERROR:  duplicate key violates unique constraint "channels_name_key"
INSERT 0 1
ERROR:  duplicate key violates unique constraint "levels_pkey"
ERROR:  duplicate key violates unique constraint "levels_pkey"

Ce pot face in privinta asta, cum pot schimba altcumva userul (ba chiar sa mai adaug unul, sa fie 2 useri de admin, level 1000)?
Multumesc anticipat.

Offline

 

#5 05 Jun 2013 15:20:55

Shadowss
Membru
Locaţie: Craiova
Înregistrat: 17 Jan 2012
Mesaje: 30
Site web

Re: [TUTORIAL] Cum sa instalezi ircu si gnuworld (server mIRC)

rudy87 a scris:

Salut.Primesc o eroare si nu imi pot da seama de la ce este.Eroarea o primesc cand incerc sa dau make in folderu de la ircu.

Cod:

gnuworld@rudy-FreeData:~/ircu2.10.12.14$ make
Building ircd...
make[1]: Entering directory `/home/gnuworld/ircu2.10.12.14/ircd'
yacc -d ./ircd_parser.y
make[1]: yacc: Command not found
make[1]: *** [y.tab.h] Error 127
make[1]: Leaving directory `/home/gnuworld/ircu2.10.12.14/ircd'
Building ircd/test...
make[1]: Entering directory `/home/gnuworld/ircu2.10.12.14/ircd/test'
make[1]: Nothing to be done for `build'.
make[1]: Leaving directory `/home/gnuworld/ircu2.10.12.14/ircd/test'

Daca de uiti bine este al 2-lea rand postat de mine in acest tutorial

sudo apt get-install byacc

NoMatter a scris:

Frumos tutorial si folositor. Thumbs up!
Tot ce as mai vrea sa fac este sa modific levelul 1000 la * sa nu fie pe userul Admin ci pe altul.am editat cservice.addme.sql, am schimbat doar userul nu si parola, apoi am folosit comanda: /usr/local/pgsql/bin/psql cservice < cservice.addme.sql (cu psql cservice < cservice.addme.sql nu am reusit deloc) si primesc eroarea asta:

ERROR:  duplicate key violates unique constraint "channels_name_key"
ERROR:  duplicate key violates unique constraint "channels_name_key"
INSERT 0 1
ERROR:  duplicate key violates unique constraint "levels_pkey"
ERROR:  duplicate key violates unique constraint "levels_pkey"

Ce pot face in privinta asta, cum pot schimba altcumva userul (ba chiar sa mai adaug unul, sa fie 2 useri de admin, level 1000)?
Multumesc anticipat.

Salut , imi cer scuze de raspunsul intarziat ca sa modifici access mai mult de 1000 trebuie sa ai phppgadmin instalat. Este exact in genul phpmyadmin numai ca administreaza pgsql in loc de mysql

Editat ultima oară de Shadowss (05 Jun 2013 15:22:19)

Offline

 

#6 09 Jul 2018 20:58:28

sadness
Membru
Locaţie: Constanta
Înregistrat: 11 Sep 2010
Mesaje: 220

Re: [TUTORIAL] Cum sa instalezi ircu si gnuworld (server mIRC)

Se poate face un update la tutorial, nu mai este valabil.

Offline

 
Feed

Antet forum

Powered by FluxBB