Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNDERNET GNUWORLD HOWTO
- Postgresql
- ----------
- # as root user
- apt-get install build-essential
- apt-get install tcl8.6-dev
- apt-get install bison
- wget https://ftp.postgresql.org/pub/source/v9.6.11/postgresql-9.6.11.tar.gz
- tar xzf postgresql-9.6.11.tar.gz
- cd postgresql-9.6.11
- ./configure --with-tcl --with-tclconfig=/usr/lib/tcl8.6
- make
- make install
- echo '/usr/local/pgsql/lib' >/etc/ld.so.conf.d/postgres.conf
- ldconfig
- Gnuworld
- --------
- 1) oath-toolkit installation
- # as root user
- wget http://download.savannah.nongnu.org/releases/oath-toolkit/oath-toolkit-2.6.2.tar.gz
- tar xzf oath-toolkit-2.6.2.tar.gz
- cd oath-toolkit-2.6.2
- ./configure
- make
- make install
- 2) gnuworld installation
- # as root user
- useradd -m -s /bin/bash gnuworld
- su - gnuworld
- # you are now as gnuworld user
- git clone https://github.com/UndernetIRC/gnuworld
- cd gnuworld
- ./configure --with-pgsql-home=/usr/local/pgsql --with-liboath-lib=/usr/local/lib --enable-modules=ccontrol,openchanfix,cservice,dronescan
- # you may want to check/modify the following files to suit your needs before building
- # include/gnuworld_config.h
- # mod.cservice/cservice_config.h
- # mod.openchanfix/chanfix_config.h
- make
- make install
- # Hint : you may want to add it to gnuworld's ~/.bashrc to make it persistent
- export PATH=$PATH:/usr/local/pgsql/bin
- initdb -D /usr/local/pgsql/data
- pg_ctl -D /usr/local/pgsql/data -l postgres.log start
- cd ~gnuworld/gnuworld/doc
- # At this point you can check ~gnuworld/gnuworld/doc/README.<module> files before going on
- # cservice main database
- createdb cservice
- psql cservice < cservice.sql
- cp language_table.sql _language_table.sql
- iconv -f iso-8859-1 -t utf8 _language_table.sql > language_table.sql
- psql cservice < language_table.sql
- cp cservice.help.sql _cservice.help.sql
- iconv -f iso-8859-1 -t utf8 _cservice.help.sql > cservice.help.sql
- psql cservice < cservice.help.sql
- psql cservice < cservice.web.sql
- psql cservice < cservice.config.sql
- cp greeting.sql _greeting.sql
- iconv -f iso-8859-1 -t utf8 _greeting.sql > greeting.sql
- psql cservice < greeting.sql
- # cservice local_db website database
- createdb local_db
- psql local_db < local_db.sql
- # add Admin cservice user level 1000 (login Admin password temPass)
- psql cservice < cservice.addme.sql
- # ccontrol database (Uworld)
- createdb ccontrol
- psql ccontrol < ccontrol.sql
- psql ccontrol < ccontrol.help.sql
- # import fails : psql ccontrol < ccontrol.shells.sql
- # add Admin Uworld user with login temPass (*@* and pass shoud be changed at first connection)
- psql ccontrol < ccontrol.addme.sql
- # add Uworld commands
- psql ccontrol < ccontrol.commands.sql
- # dronescan database
- createdb dronescan
- createuser dronescan
- psql dronescan < dronescan.sql
- # Now configure modules configuration files
- cd ~gnuworld/gnuworld/bin
- cp cservice.example.conf cservice.conf
- cp ccontrol.example.conf ccontrol.conf
- cp openchanfix.example.conf openchanfix.conf
- cp dronescan.example.conf dronescan.conf
- cp cp GNUWorld.example.conf GNUWorld.conf
- # Edit all copied .conf files to suit your needs (change lines sql_user = gnuworld and sql_pass = gnuworld) or config security users of your postgres
- # Finally
- ./gnuworld -c -f GNUWorld.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement