Instalare GNUWorld si IRCU pe orice platforma LINUX

titlul spune totul. Ai nevoie de un sfat sau o parere din partea unui utilizator mai experimentat? Atunci ai ajuns la locul potrivit...

Instalare GNUWorld si IRCU pe orice platforma LINUX

Mesaj necititde bGircu » Mie 15 Aug 2012 5:45 am

Ne-am gandit sa facem un tutorial pentru asa ceva poate mai vrea cineva sa stie si sa instaleze GNUWorld fara errori. Desi exista tutorialul pe gnuworld.undernet.org este facut varza si tutorialul si CVS-ul de la gnuworld.
Si acuma sa dam drumu si sa vedem ce ne rezerva ircu.org

sudo apt-get install - comanda pentru ubuntu/debian
yum -y install - comanda pentru centos

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

Dupa care enter enter si va alegeti o parola

Acum download ircu si configurare

Download ircd

linux:/root# su - gnuworld
linux:/gnuworld# wget http://gnuworld.ircu.org/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://gnuworld.ircu.org/ircd.motd
linux:/gnuworld/lib# wget http://gnuworld.ircu.org/ircd.conf
linux:/gnuworld/lib# cd ..
linux:/gnuworld# cd bin
linux:/gnuworld/bin# ./ircd
linux:/gnuworld# exit

ACUM TRECEM INAPOI PE USERUL ROOT

Acum verificam daca avem instalat TCL

linux:/root# /usr/bin/updatedb
linux:/root# locate tclConfig.sh
Trebuie sa returneze : /usr/lib/tclConfig.sh daca aveti TCL instalat
linux:/root# grep TCL_VERSION /usr/lib/tclConfig.sh

Trebuie sa returneze : 8.0 sau mai mare

Daca nu aveti TCL instalat :

linux:/root# wget http://gnuworld.ircu.org/tcl8.4.13-src.tar.gz
linux:/root# tar -xzf 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

Instalare POSTGRESQL :

linux:/root# wget http://gnuworld.ircu.org/postgresql-8.1.4.tar.gz
linux:/root# tar -xzf 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
linux:/root/postgresql-8.1.4# vim /etc/ld.so.conf

Acum in editare apasa : a
Adauga linia la final : /usr/local/pgsql/lib
Apasa : ESC
Tasteaza exact ce este scris cu bold : :wq

Acum instalare pgtclsh

linux:/root# wget http://gnuworld.ircu.org/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
Acum in editare apasa : a
Modifica linia :#include <libpgtcl.h> in #include "libpgtcl.h"
Apasa : ESC
Tasteaza exact ce este scris cu bold : :wq
linux:/root/pgtcl1.5/generic# cd ..
linux:/root/pgtcl1.5# gmake pgtclsh
linux:/root/pgtcl1.5# gmake install
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

TREBUIE SA ARATE ASA :

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

%

ACUM CREEM BAZA DE DATE :

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

Configurare APACHE SI PHP SI ALTE LIBRARII NECESARE IN USER ROOT

linux:/root# sudo apt-get install apache2
linux:/root# sudo apt-get install mysql
linux:/root# sudo apt-get install phpmyadmin
linux:/root# sudo apt-get install aptitude
linux:/root# sudo apt-get install cvs
linux:/root# sudo apt-get install perl5 libnet-ssleay-perl
linux:/root# sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
linux:/root# sudo apt-get install curl-ssl php5-gd
linux:/root# sudo apt-get install php5-dev php5-pgsql

CONFIGURARE GNUWORLD SI WEBSITE

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

Sau daca nu merge incearca varianta 2

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 http://gnuworld.ircu.org/gnuworld.tgz
linux:/gnuworld# wget http://gnuworld.ircu.org/gnuwebsite.tgz
linux:/gnuworld# tar xzvf gnuworld.tgz
linux:/gnuworld# cd gnuworld
linux:/gnuworld# chmod +x *
linux:/gnuworld/gnuworld# ./configure --enable-modules=ccontrol,cservice,chanfix,clientExample,cloner,dronescan,gnutes t,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 -L /usr/local/pgsql/lib 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$ cd ..
linux:/gnuworld/gnuworld/mod.chanfix$ cd ..
linux:/gnuworld/gnuworld$ cd bin

AICI EDITEZI GNUWorld.example.conf in ceea ce vrei tu si cservice.example.conf

DUPA CE AI EDITAT FISIERELE DORITE:

linux:/gnuworld/gnuworld$ ln -s /usr/lib/libpq.so.5 /usr/lib/libpq.so.4

DACA SISTEMUL DE OPERARE ESTE PE x86_64 machine (64bit):

linux:/gnuworld/gnuworld$ ln -s /usr/lib64/libpq.so.5 /usr/lib64/libpq.so.4
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 = iesi din screen

REZULTATUL :

Pentru a te loga la X folositi urmatoarea comanda :
/msg X@services.ircu.org login Admin temPass
-X- AUTHENTICATION SUCCESSFULL AS Admin!

Acum mai avem putin si gata.

linux:/home/gnuworld$ tar xzvf gnuwebsite.tgz
linux:/home/gnuworld$ cd website/php_includes

Aici gasim fisierul config.inc care il editam dupa bunul nostru plac dar la final nu uitam sa adaugam :
add // at the begining of the following line :
//die("<h2><b>Error</b>: Edit website/php_includes/config.inc file !</h2>");

Acum ca avem instalat apache si pgsql si toate cele

De la ultima comanda rulata am ramas aici :

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 sau http://ip/live

DACA PRIMITI EROARE DE PHP :

linux:/var/www# nano /etc/php5/apache2/php.ini

CAUTATI IN php.ini LINIA : register_globals CARE ESTE:

register_globals = Off

EDITATI LINIA SI SETATI :

register_globals = On

DUPA CARE :

linux:/var/www# service apache2 restart

Acest tutorial a fost creat cu ajutorul lui :
- bG - For coding above and beyond the call of duty
- SadSoul - For coding above and beyond the call of duty
- rec - For coding above and beyond the call of duty
- Shadow - For coding above and beyond the call of duty
Ultima oară modificat de bGircu pe Joi 16 Aug 2012 6:31 pm, modificat de 2 ori în total.
bGircu
 
Mesaje: 1
Membru din: Mie 15 Aug 2012 5:43 am

Re: Instalare GNUWorld si IRCU pe orice platforma LINUX

Mesaj necititde slackx » Mie 15 Aug 2012 7:48 am

mutat.

apropo, pe debian tot cu apt-get se instaleaza un pachet
Nu raspund in privat

Imagine
slackx
 
Mesaje: 2544
Membru din: Mie 07 Iun 2006 3:00 am
Localitate: miserupia


Înapoi la Tips & tricks

Cine este conectat

Utilizatorii ce navighează pe acest forum: Niciun utilizator înregistrat şi 2 vizitatori