Archive for the ‘ Miscellaneous ’ Category

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/

Linux baby rocker

This so simple bash script ejects the cdrom and immediately pulls it back repeatedly, till the script is manually stopped.

while [ 1 ]
do
eject -T /dev/cdrom
sleep 10
eject -T /dev/cdrom
sleep 10
done

check it out, it can even be used as a baby rocker!

osama bin laden is dead

Killing obama from the command line in linux

$whoami
bush
$rm -rf /bin/laden
permission denied
$su obama
$date
05-01-2011
$pwd
/home/pakistan/abbottabad
$rm -rf /bin/laden
file permanently deleted
$echo “We got him” > potus.txt | wall

Recently I was looking for a solution which would allow me to transfer files and make mysql db connection securely between to servers with public IP address located in different hosting companies. That is when i decided to try out pptp – one of the machine is CentOS (pptp server) and the other one is Ubuntu (pptp client). Here goes the setup –

1. Server side

Install pptpd

rpm -ivh http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.x86_64.rpm

Edit /etc/pptpd.conf to look like

option /etc/ppp/options.pptpd
logwtmp
localip 172.16.1.1
remoteip 172.16.1.2

Edit /etc/ppp/options

name pptpd
refuse-pap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd

Edit /etc/ppp/chap-secrets

myusername  pptpd   mypassword       *

Finally start pptpd daemon

/etc/init.d/pptpd start

2. Client Side

apt-get install pptp

Edit /etc/ppp/chap-secrets

myusername  pptpd   mypassword       *

Edit /etc/ppp/peers/myprovider

pty "pptp xx.xx.xx.xx --nolaunchpppd"   ###xx.xx.xx.xx: remote host IP
name myusername   
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam myprovider
mru 1412
mtu 1412

Finally, connect to pptp server with

pon myprovider debug dump logfd 2 nodetach

In both servers, make sure the ports for pptp are open – the default is 1723.

Appeal from wiki founder

Support Wikipedia

The Monkey business illusion

While watching this video, your job is to count how many times the players in white shirt pass the ball.