Category Archives: Linux

VMware player 6 and Ubuntu 14.04 (Linux Kernel 3.13)

I’ve installed Ubuntu 14.04 Beta 2 and found that VMware didn’t work because the vmnet module wasn’t able to be compiled. After some research I found some posts about this problem, the VMware vmnet module source has to be patched … Continue reading

Posted in Linux, OpenStudio | Leave a comment

How to block Skype on your network using IPTABLES

One way of blocking Skype on a network is to block the registration process. After the registration the communication between peers is done in several different ports and it difficult to define rules to block it. Using a OpenWRT router … Continue reading

Posted in Linux, OpenStudio | Leave a comment

Install Polipo Proxy server on Centos

As you can see in this previous topic, I needed to install Polipo Proxy on a Centos 5 server. Since the Polipo package is not available on the plain Centos 5 server installation I had to add first the EPEL … Continue reading

Posted in Linux, OpenStudio | Leave a comment

How to add EPEL repository to Centos

I needed to add the EPEL repository (Extra Packages for Enterprise Linux) in order to install some packages not available on plain Centos 5 server installation (like the polipo proxy). Based in what I found here, this is what I … Continue reading

Posted in Linux, OpenStudio | Leave a comment

Replace Unity desktop with Cinnamon on Ubuntu 12.04 (and Ubuntu 13.10)

I did never get used to Unity, and I think Cinnamon is getting a very good desktop, so here is how I replace Unity with Cinnamon on Ubuntu 12.04 (based on this tuturial): First add a repository with Cinnamon: sudo … Continue reading

Posted in Linux | Leave a comment

How to install VMWare Tools on Ubuntu Server (command line only)

When we install Ubuntu Server on a VMWare Virtual Machine and choose to add the VMWare tools, there is no desktop where the tools appear to be installed, so this is a way to install VMWare tools on a command … Continue reading

Posted in Linux | Leave a comment

Ubuntu Server 12.04 LTS – Using English language for the installation and other location and language for the keyboard

When I install Ubuntu Server 12.04 LTS (or 12.10, it has the same behavior), I choose the English language for the system, but since I work with computers with a Portuguese keyboard, I need to choose the Portuguese keyboard during … Continue reading

Posted in Linux | Leave a comment

How to install Oracle Java 7 on Ubuntu and Mint Linux

There are several different ways, this one is simple and has worked flawlessly for me many times, so I hope it can help you installing Oracle Java 7. This is based on this WEBUPD8 procedure. The tests I’ve made were … Continue reading

Posted in Linux | Leave a comment

Openmeetings 1.6 RC1 VMWare appliance (using Ubuntu Server 10.04 LTS)

I’ve made a new VMWare image running Openmeetings, V1.6 RC1, available�here(the previous one is still available�here). There is also a�how-to�that I made during the VMWare image creation, if you are interested.�

The operating system is Ubuntu 10.04 LTS Server Edition, the login credentials are administrator / password. The same username and password was used for the Openmeetings login. MySQL root password is password. Openmeetings database user credentials are openmeetings / password. All functions are configured, including OpenOffice server for document conversion.

When starting the VM, VMWare will ask if the VM was moved or copied. I suggest to choose ‘moved’, if you choose ‘copied’, VMWare will create a new MAC Address for the network interface and the VM will start with no network interface (it has to be manually reconfigured to match the new MAC Address)

The VM is using DHCP (you will have to execute ifconfig to know its IP address and have a DHCP server running in your network). If you need to configure a fixed IP address you have to manually reconfigure the network interface.

After having the image running, use the following URL to access it: http://[ip address]:5080/openmeetings

Login using the credentials administrator / password

Choose the tab “Administration” and then “Configuration”. Now configure at least the SMTP server, port, system email address, email username and email userpass to enable the email notifications.�

Continue reading

Posted in Linux | Tagged , | 4 Comments

How to install Openmeetings 1.6 rc1 on Ubuntu Server 10.04 LTS

This how-to is based on�this�how-to written in�Spanish�for the 1.5 rc1 openmeetings version.

First we need to add the partner repositories, editing the sources.list file and removing the comments for the partner lines

sudo nano /etc/apt/sources.list

sudo apt-get update

Then install the necessary packages

sudo apt-get install -y java-package sun-java6-bin sun-java6-jdk sun-java6-jre mysql-server openoffice.org-writer openoffice.org-calc

sudo apt-get install -y openoffice.org-impress openoffice.org-draw openoffice.org-math imagemagick gs-gpl libart-2.0-2 libt1-5 zip unzip bzip2 subversion git-core checkinstall

sudo apt-get install -y yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev libogg-dev sox libvorbis0a libvorbis-dev libgsm1 libgsm1-dev libfaad2 flvtool2 lame swftools

Now, for the ffmpeg, it is necessary to download, compile and install it:

wget http://www.ffmpeg.org/releases/ffmpeg-0.6.1.tar.gz

tar -zxvf ffmpeg-0.6.1.tar.gz

cd ffmpeg-0.6.1/

./configure –enable-libmp3lame –enable-libxvid –enable-libvorbis –enable-libgsm –enable-libfaad –enable-libfaac –enable-gpl –enable-nonfree

make

sudo checkinstall

Now that all the dependencies for Openmeetings are met, let�s start the Openmeetings installation.

Get openmeetings (this includes the Red5 server):

wget http://openmeetings.googlecode.com/files/openmeetings_1_6_rc1_r3621.zip

Extract it and move it to /opt

unzip openmeetings_1_6_rc1_r3621.zip

sudo mv red5 /opt/

Change owner to nobody

sudo chown -R nobody: /opt/red5

Make all the scrips executable

sudo chmod +x /opt/red5/*.sh

sudo chmod +x /opt/red5/webapps/openmeetings/jod/*.sh

Now let�s create the startup script for openmeetings:

sudo nano /etc/init.d/red5

Paste the following code:

#! /bin/sh

#

# red5 red5 initscript

#

# Author: Simon Eisenmann .

#

set -e

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

DESC=”Red5 flash streaming server”

NAME=red5

RED5_HOME=/opt/red5

DAEMON=$RED5_HOME/$NAME.sh

PIDFILE=/var/run/$NAME.pid

SCRIPTNAME=/etc/init.d/$NAME

# Gracefully exit if the package has been removed.

test -x $DAEMON || exit 0

# Read config file if it is present.

if [ -r /etc/default/$NAME ]

then

����������� . /etc/default/$NAME

fi

#

# Function that starts the daemon/service.

#

d_start() {

����������� start-stop-daemon –start -c nobody –pidfile $PIDFILE –chdir $RED5_HOME –background –make-pidfile –exec $DAEMON

}

#

# Function that stops the daemon/service.

#

d_stop() {

����������� start-stop-daemon –stop –quiet –pidfile $PIDFILE –name java

����������� rm -f $PIDFILE

}

case “$1” in

����������� start)

���echo -n “Starting $DESC: $NAME”

���d_start

���echo “.”

����������� ;;

����������� stop)

���echo -n “Stopping $DESC: $NAME”

����������� d_stop

���echo “.”

����������� ;;


����������� restart|force-reload)

���echo -n “Restarting $DESC: $NAME”

���d_stop

���sleep 1

���d_start

���echo “.”

����������� ;;


����������� *)

���echo “Usage: $SCRIPTNAME {start|stop|restart|force-reload}” >&2

���exit 1

����������� ;;


esac

exit 0

exit 0

(above code available�here)

Now the same thing for openoffice startup script:

sudo nano /etc/init.d/openoffice

Paste the following code:

#!/bin/bash


# openoffice.org headless server script


#

# chkconfig: 2345 80 30


# description: headless openoffice server script

# processname: openoffice

#

# Author: Vic Vijayakumar

# Modified by Federico Ch. Tomasczik

#

OOo_HOME=/usr/bin

SOFFICE_PATH=$OOo_HOME/soffice

PIDFILE=/var/run/openoffice-server.pid

set -e

����������� case “$1” in

����������� start)

����������� if [ -f $PIDFILE ]; then

����������� echo “OpenOffice headless server has already started.”

����������� sleep 5

����������� exit

����������� fi

����������� echo “Starting OpenOffice headless server”

����������� $SOFFICE_PATH -headless -nologo -nofirststartwizard -accept=”socket,host=127.0.0.1,port=8100;urp” & > /dev/null 2>&1

����������� touch $PIDFILE

����������� ;;

����������� stop)

����������� if [ -f $PIDFILE ]; then

����������� echo “Stopping OpenOffice headless server.”

����������� killall -9 soffice && killall -9 soffice.bin

����������� rm -f $PIDFILE

����������� exit

����������� fi

����������� echo “Openoffice headless server is not running.”

����������� exit

����������� ;;

����������� *)

����������� echo “Usage: $0 {start|stop}”

����������� exit 1

esac

exit 0

(above code available�here)�

Make both scripts executable:

sudo chmod +x /etc/init.d/red5

sudo chmod +x /etc/init.d/openoffice

Now let�s make both services start automatically:

sudo update-rc.d red5 defaults

sudo update-rc.d openoffice defaults

Almost done, now to create openmeetings database (we have created a database user named openmeetings with the password password):

echo “CREATE USER openmeetings@localhost;” | mysql -u root -p

echo “CREATE DATABASE openmeetings DEFAULT CHARACTER SET ‘utf8’;” | mysql -u root -p

echo “GRANT ALL PRIVILEGES ON openmeetings.* TO ‘openmeetings’@’localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;” | mysql -u root -p

echo “FLUSH PRIVILEGES;” | mysql -u root -p

And now configure openmeetings to use the database user created above:

sudo nano /opt/red5/webapps/openmeetings/conf/hibernate.cfg.xml

In the User / Password section, configure the correct database username (openmeetings) and password (password)�

Now start openmeetings and openoffice:

sudo /etc/init.d/red5 start

sudo /etc/init.d/openoffice start

Go to a browser and point to the following link:

http://[server ip]:5080/openmeetings/install

Press �Continue with step 1�

Then, fill the following fields:

Username

Userpass

Email

User time zone

Name

Default language

Then, finally click on the �Install� button, and that�s it!�

Please post your comments and�suggestions�

Continue reading

Posted in Linux | Tagged , | 1 Comment