Archive for July, 2011

Requirements

    Ubuntu 10.04 32-bit or 64-bit server
    2 GB of memory
    5G of free disk space

    Install BBB apt repository

wget http://ubuntu.bigbluebutton.org/bigbluebutton.asc -O- |  apt-key add -

echo 'deb http://ubuntu.bigbluebutton.org/lucid/ bigbluebutton-lucid main' | tee /etc/apt/sources.list.d/bigbluebutton.list

echo 'deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse' | tee -a /etc/apt/sources.list

Install Asterisk

    apt-get update 
    apt-get install bbb-voice-conference
    

    Install BBB

    apt-get install bigbluebutton
    

    Restart service and check for any errors in configuration

    bbb-conf --clean
    bbb-conf --check
    

    Access BBB at http://yourip
    Make sure port 80 is not blocked by your server and no other service except nginx
    is listening on port 80.

    Create meeting rooms with BBB wordpress plugin

Add php support to nginx

apt-get install python-software-properties
add-apt-repository ppa:brianmercer/php
apt-get update
apt-get install php5-fpm

Edit /etc/php5/fpm/php5-fpm to include

listen = /var/run/php5-fpm.socket

Add the following line to /etc/nginx/sites-enabled/bigbluebutton

location ~ .php$ {
    fastcgi_split_path_info ^(.+\.php)(.*)$;
    fastcgi_pass   unix:/var/run/php5-fpm.socket;
    fastcgi_param  SCRIPT_FILENAME  /var/www/bigbluebutton-default$fastcgi_script_name;
    include /etc/nginx/fastcgi_params;
    fastcgi_index index.php;
  }

Restart nginx and php5-fpm

/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart

Install wordpress

    cd /usr/local/src
    wget -c http://wordpress.org/latest.tgz
    tar xzvf latest.tgz
    mv latest /var/www/bigbluebutton-default/bbbwordpress
    cd /var/www/bigbluebutton-default/bbbwordpress
    cp wp-config-sample.php wp-config.php
    

    Create mysql database for worpress
    mysql -u root -p (enter your password, or if there is no password set,just type
    mysql -u root)

    create database bbbwordpress;

    grant all privileges on *.bbbwordpress to bbbuser@localhost identified by 'yourpass';
    exit;
    

    Then edit wp-config.php

    define('DB_NAME', 'bbbwordpress');
    define('DB_USER', 'bbbuser');
    define('DB_PASSWORD', 'yourpass');
    

    Go to http://yourip/wordpress and set administrative user and password. Then login to the administrative
    dashboard and click on the plugins in the left hand pane. In the ‘search plugin’ box, type “bigbluebutton”
    and install/activate it.

    To integrate it with BBB click on Appearance–>Widgets–>BigBlueButton and drag/drop it to the content area.
    GO to Settings–> put the URL to your BBB link http://yourip/bigbluebutton and insert the salt from the
    setting page.

    Within the administrative wordpress dashboard you can create meetings and the passwords for participants/moderator.
    You should be able to access the rooms in http://yourip/wordpress/.

      Sources

    http://code.google.com/p/bigbluebutton/wiki/InstallationUbuntu
    http://cbanta.wordpress.com/2010/12/18/enable-php-on-bigbluebutton/
    http://wordpress.org/extend/plugins/bigbluebutton/

Imperva (http://www.imperva.com ) isolated the four most prevalent Web application attacks:

1. Directory traversal = 37%
2. cross site scripting =36%
3. SQL injection =23%
4. Remote file include =4%

Sources:-
http://www.imperva.com/index.html
http://www.pcmag.com/article2/0,2817,2389117,00.asp

How to use ncftpget to copy directories from FTP server.

The old ftp command is not convenient for recursively copying directories from the command line. An alternative to the ftp command is the ncftpget.

1. Download ncftpget

a. RHEL/Fedora/CentOS


yum install ncftpget

b.Debian/Ubuntu


apt-get install ncftpget

2. Make sure you have the hostname, username and password of the ftp server, from which you want to download a bunch of directories. Let us say you want to copy /var/www/html in the ftp server to a local directory /home/user1/Desktop


ncftpget –u ftpusername -R -v ftp.example.com /home/user1/Desktop /var/www/html

You will be prompted for a password, once you entered the correct password, it will recursively(-R) download the files under /var/www/html to /home/user1/Desktop in a verbose(-v) mode – that is you will see the file transfer on your screen for each file.

The format is


ncftpget -u username -R -c hostname-of-ftp-server local-directory remote-directory

Of course it is recommended to use ftp as a last resort, otherwise you should use secure tools or protocols for security reasons. Recommended ones are sftp and scp.