GNUWorld (X and UWorld)Modules Setup On Debian 7

Post Reply
User avatar
TheDavid
Site Admin
Posts: 2
Joined: Fri Jun 19, 2020 10:26 pm

GNUWorld (X and UWorld)Modules Setup On Debian 7

Post by TheDavid »

Hello,
Bellow you can find all the steps needed to be done in order to build the GNWuorld (X and UWorld) Modules using a Debian 7.

1. Change the current "sources.list" to be able to download some updates.
  • cd /etc/apt
  • mv sources.list sources.list.orig
  • cd
  • apt-get update
  • apt-get install gcc g++ cpp flex byacc bison make autoconf automake openssl libssl-dev libpcre3-dev sudo gpac mediainfo build-essential git libreadline6-dev zlib1g-dev
2. Install Postgresql 9.3.4: - Skip this step if you already have PGSQL SETUP and RUNNING.
  • tar zxvf postgresql-9.3.4.tar.gz
  • cd postgresql-9.3.4/
  • ./configure --without-readline --without-zlib
  • make && sudo make install
  • cd
  • nano /etc/ld.so.conf
## add the following line:
  • /usr/local/pgsql/lib
## save and exit
  • sudo mkdir /usr/local/pgsql/data
  • chown gnuworld /usr/local/pgsql/data
  • chgrp gnuworld /usr/local/pgsql/data
  • su - gnuworld
  • /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
  • /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data &
## This line is useful to put in crontab, so on server reboot you get postgres running
  • crontab -e
## At the end insert:
  • @reboot /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data
## save and exit

3. Build as root OATH Library needed if your are using TOTP authenticating mode. Skip this step if you dont use TOTP.
  • cd /usr/local/
  • tar zxvf oath-toolkit-2.6.2.tar.gz
  • cd oath-toolkit-2.6.2
  • ./configure --prefix=/usr/local/oath
  • make
  • make install

4 . Download and build GNUWorld (X and UWorld) modules
  • su - gnuworld
  • cd gnuworld-enhanced
4.1 #run the following command ONLY if you build gnuworld to use TOTP
  • ./configure --with-extra-includes=/usr/local/include --with-extra-includes=/usr/include/postgresql/ --with-pgsql-home=/usr/local/pgsql/ --enable-modules=cservice,ccontrol --with-liboath=/usr/local/oath --with-liboath-lib=/usr/local/oath/lib --with-liboath-include=/usr/local/oath/include
  • nano mod.cservice/cservice_config.h
  • change #undef TOTP_AUTH_ENABLED to #define TOTP_AUTH_ENABLED
## save the file and exit
  • make
  • make install

##if you selected step 4.1 skip step 4.2

4.2 # Run the following command if you build gnuworld WITHOUT TOTP Support and skip step 4.1
  • ./configure --with-extra-includes=/usr/local/include --with-extra-includes=/usr/include/postgresql/ --with-pgsql-home=/usr/local/pgsql/ --enable-modules=cservice,ccontrol
  • make
  • make install
5. Now Let`s build the databases !!!

## run the following commands under user gnuworld !!!
  • cd gnuworld-enhanced/doc

5.1 ## Building cservice database! Note!: You can try to shortcat all of these with running the script!
  • chmod +x do-db.sh
  • ./do-db.sh
5.2 ## Or manually: if you selected step 5.1 skip step 5.2
  • /usr/local/pgsql/bin/createdb --template=template0 -E=SQL_ASCII cservice
  • /usr/local/pgsql/bin/psql cservice < cservice.sql
  • /usr/local/pgsql/bin/psql cservice < cservice.config.sql
  • /usr/local/pgsql/bin/psql cservice < languages.sql
  • /usr/local/pgsql/bin/psql cservice < language_table.sql
  • /usr/local/pgsql/bin/psql cservice < greeting.sql
  • /usr/local/pgsql/bin/psql cservice < cservice.help.sql
  • /usr/local/pgsql/bin/psql cservice < cservice.web.sql
  • /usr/local/pgsql/bin/psql cservice < cservice.addme.sql
  • /usr/local/pgsql/bin/createdb --template=template0 -E=SQL_ASCII ccontrol
  • /usr/local/pgsql/bin/psql ccontrol < ccontrol.sql
  • /usr/local/pgsql/bin/psql ccontrol < ccontrol.help.sql
  • /usr/local/pgsql/bin/psql ccontrol < ccontrol.addme.sql
  • /usr/local/pgsql/bin/psql ccontrol < ccontrol.commands.sql

##Skip this step ONLY if you already done it when you set the webpage !!!

5.3 ## Building local_db (Website) database !!!
  • /usr/local/pgsql/bin/createdb local_db
  • /usr/local/pgsql/bin/psql local_db < local_db.sql

6. GNUWorld config files needed to be edited before running gnuworld.
  • cd gnuworld-enhanced/bin

6.1 ## edit cservice.conf with your needed settings for your network.
  • cp cservice.example.conf cservice.conf
  • nano cservice.conf
6.1.1 ## hello_sendmail_enabled = 1 ,the feature has to be enabled in cservice.conf ** IMPORTANT: mailutils or mailx package must be installed on your system! Build as root mailutils Library needed
  • su -
  • apt-get install sendmail
  • tar zxvf mailutils-3.9.tar.gz
  • cd mailutils-3.9/
  • ./configure --prefix=/usr/
  • make
  • make install
  • ls -all /usr/bin/ | grep mail
  • services sendmail restart
## return on gnuworld directory
  • su - gnuworld
  • cd gnuworld-enhanced/bin

6.2 ## edit ccontrol.conf with your needed settings for your network.
  • cp ccontrol.example.conf ccontrol.conf
  • nano ccontrol.conf
6.3 ## edit GNUWorld.conf with your needed settings for your network. Enable modules ccservice and ccontrol:
  • cp GNUWorld.example.conf GNUWorld.conf
  • nano GNUWorld.conf
7. Starting GNUWorld
## If GNUWorld.conf , cservice.conf and ccontrol.conf files are set please proceed with starting GNUWorld, if NOT, please go back to step 6
## to start gnuworld type te following command:
  • ./gnuworld &
Now X should be up on your Network. Login to X and UWorld with username : Admin - password : temPass

This HOWTO was last updated by TheDavid
07 Jul 2020
Post Reply