Intram in Terminal (Applications – Accessories – Terminal sau Aplicatii – Acessorii – Terminal )
Tastam sudo su si scriem parola care o avem la contul de la Ubuntu Linux
(Exemplu: Eu ma loghez in Ubuntu Linux cu numele ION si parola ” GHEORGHE “)
Instalam MySQL, folosind comanda apt-get install mysql-server
Dupa aceasta setam parola la user si stergem anonimul din MySQL folosind comenzile urmatoare
mysql -u root
mysql> DELETE FROM mysql.user WHERE User = ”;
mysql> FLUSH PRIVILEGES;
mysql> SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(‘aici puneti parola la MySQL’);
Acum instalam fisierele care depind de VerliHub folosind comanda
apt-get install build-essential libmysqlclient10-dev libpcre3-dev geoip-bin libgeoip-dev g++-3.3
In cazul in care aveti Ubuntu Feisty Fwan, pentru a instala fisierele care depind de VerliHub folositi comanda
apt-get install build-essential mysql-server libmysqlclient15-dev libpcre3-dev geoip-bin libgeoip-dev g++-3.3
Acum downloadam VerliHub folosind comanda
wget http://prdownloads.sourceforge.net/verlihub/verlihub-0.9.8c-RC2.tar.gz?use_mirror=mesh
Acum dezarhivam VerliHub folosind comanda
tar xzvf verlihub-0.9.8c-RC2.tar.gz
Acum intram in folderul un este locat VerliHub folosind comanda
cd /home/numele contului/verlihub-0.9.8c
Acum il compilam folosind comenzile
CXX=g++-3.3 ./configure
make
make install
Acum sa instalam VerliHub folosind comanda
vh_install
Acesta este scriptul de configurare/instalare al VerliHub-ului si arata asemanator textului de mai jos
~ Nota: Cititi textul de mai jos deoarece va explica fiecare lucru ce aveti de facut
——————————–
Your name ? (root) (aici apasati enter)
Hello root,
let’s start with configuration of database access..
——————————–
mysql database for verlihub will be called? (verlihub)(aici apasati enter)
mysql user to access verlihub gonna be? (verlihub)(aici scrieti root si apoi apasati enter)
password to access verlihub be? (1110079846)(aici introduceti parola de la MySQL, iar apoi apasati enter)
mysql server will run where? (localhost)(aici apasati enter)
——————————–
user = verlihub
password = parola
host = localhost
database = verlihub
——————————–
This database account cannot be accessed
——————————–
Is this info correct ? (Y/N)(daca toate datele sunt corecte, adica cele de mai sus corespund cu cele introduse de dumneavoastra, scrieti ” y ” si apasati enter)
Do you want to create database now? (Y/N)(aici scrieti ” y ” si apasati enter)
——————————–
Ok preparing mysql..
You probably need administrator access to mysql database
mysql administrator username? (root)(aici apasati enter)
——————————–
You’ll be now promted by mysql client for password of root@localhost
Enter password:enter mysql root password(aici introduceti parola de la MySQL)
——————————–
This database account exists
——————————–
——————————–
root, you need to choos a place for the configuration files
——————————–
The order of folder that verlihub is looking for is following:
1 – variable $VERLIHUB_CFG – -inexisting-
2 – ./.verlihub – /root/verlihub-0.9.8c/scripts/.verlihub -inexisting-
3 – /root/.verlihub – /root/.verlihub -inexisting-
4 – /usr/local/etc/verlihub – /usr/local/etc/verlihub -inexisting-
5 – /etc/verlihub – /etc/verlihub -inexisting-
if two or more of these exist, lower number has priority
——————————–
——————————–
what is will be the configuration folder ? (/etc/verlihub)(aici apasati enter)
The config folder /etc/verlihub does not exist and would be created
——————————–
Do you want to continue with these settings (if not then select another folder) ? (Y/N)(aici scrieti ” y” si apasati enter)
——————————–
Written: /etc/verlihub/dbconfig
——————————–
Wait few seconds..
./vh_install: line 63: <PID> Killed $bindir/verlihub 1 >&/dev/null
——————————–
root, now I will ask you few more questions about your future hub, if you permit..
——————————–
Try to not put many special characters, you’ll be able to put some laer
Give me your DC hub master nickname.. ([SU]root)(aici scrieti numele care il aveti pe hub, dupa care enter)
Choose your password.. (1110079846)(aici scrieti parola cu care intrati pe hub, dupa care enter)
Which
will be default ONE hub port number? (4111)(aici setezi portul pe care vrei sa asculte hubul, preferabil 411, dupa care enter)
What will be your hub hostname? (<numecomputer>)(aici puneti adresa hubului, dupa care enter)
Give me the name of your hub (hub of root)(aici puneti numele hubului, dupa care enter)
——————————–
Hub: ‘<hubname entered above>’
url: ‘dchub://<hostname entered above>:<port entered above>’
Master user: ‘<master username entered above>’
Master’s password: ‘<master password entered above>’
——————————–
Is this info correct ? (Y/N)(daca toate datele de mai sus corespund cu cele introduse de dumneavoastra, tastati ” y ” si apoi enter)
FYI: settings are going to be created or updated
/etc/verlihub
/etc/verlihub
/etc/verlihub
will invoke the command
class is 10
nick is <master username entered above>
password is <master password entered above>
done
Am terminat instalarea VerliHub.
Pentru a porni hubul folositi comanda vh_runhub sau verlihub