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 line only installation.

On VMWare choose Instll VMWare Tools. On the guest OS (Ubuntu Server on my case) we have first to mount the virtual CD with the tools:

sudo mount /dev/cdrom /media/cdrom

Then extract the CD contents to the tmp dir

tar xzvf /media/cdrom/VMwareTools-xxxxx.tar.gz -C /tmp/

Now execute the tools installer (-d options uses all the default parameters, to choose them manually do not use the -d option):

cd /tmp/vmware-tools-distrib/
sudo ./ -d

If there is no GCC installed on the guest OS the VMWare tools configuration will fail, so GCC should be installed first (you could install it and run again the script if it has failed because of the missing GCC)

sudo apt-get install gcc

Run again the installer if it has failed because of the missing GCC:

cd /tmp/vmware-tools-distrib/
sudo ./ -d

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 the setup process, so after choosing the English language, I choose Other/Europe/Portugal for the Location. With this kind of Language / Location combination, Ubuntu Server setup asks to configure manually the Locale since there is no Locale defined for the Language / Location combination entered. In this case, and since i want it to work correctly in English, I choose always en_US.UTF-8, like this:


Hope that this could be useful!

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 done on Ubuntu 12.04 and 12.10, and Mint Mate 14, but according to the WEBUPD8 post it should work from Ubuntu 10.04 up to the coming 13.04, and the corresponding Mint versions. Ok, let’s do it:

sudo add-apt-repository ppa:webupd8team/java

If this command fails reporting that add-apt-repository is missing, please run this command before the previous one:

sudo apt-get install python-software-properties

Then do the following commands

sudo apt-get update
sudo apt-get install oracle-java7-installer

After finishing the installation execute the following command in order to verify that the result is the expected:

java -version

You should see something like this:

java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

The version number might change slightly depending of when you do it, this result was obtained today (Feb 1 2013). If the version is not the correct one (1.7) or if you are seeing OpenJDK there, please run the following additional command to select Oracle Java as the active Java stack:

sudo update-java-alternatives -s java-7-oracle

To uninstall it, just run:

sudo apt-get remove oracle-java7-installer

I hope it could be usefull, please comment with questions or corrections.

Posted in Linux | Leave a comment

New OpenStudio home

Finally I’ve made the change I wanted to do for a long time, change the server where I have OpenStudio and other sites hosted. In the meantime I have taken this oportunity to change also the CMS I was using, from Joomla to WordPress – the site is very simple and can be easily handled by the WordPress functionalities and for me it is easier to configure and administrate it using WP.

If during the migration process something got wrong please let me know. I am still correcting some minor glitches, and hope the major glitches are all corrected by now :-)

Posted in OpenStudio | Tagged , | 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.

Posted in Linux | Tagged , | 4 Comments

How to install Openmeetings 1.6 rc1 on Ubuntu Server 10.04 LTS

This how-to is based onthishow-to written inSpanishfor 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
sudo apt-get install -y 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:

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
sudo checkinstall

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

Get openmeetings (this includes the Red5 server):


Extract it and move it to /opt

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ӳ 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
DESC="Red5 flash streaming server"
# 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 ]
    . /etc/default/$NAME
# 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
   echo -n "Starting $DESC: $NAME"
   echo "."
   echo -n "Stopping $DESC: $NAME"
   echo "."

   echo -n "Restarting $DESC: $NAME"
   sleep 1
   echo "."

   echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
   exit 1

exit 0
exit 0

(above code available here)

Now the same thing for openoffice startup script:

# headless server script
# chkconfig: 2345 80 30
# description: headless openoffice server script
# processname: openoffice
# Author: Vic Vijayakumar
# Modified by Federico Ch. Tomasczik
set -e
    case "$1" in
    if [ -f $PIDFILE ]; then
       echo "OpenOffice headless server has already started."
       sleep 5
    echo "Starting OpenOffice headless server"
    $SOFFICE_PATH -headless -nologo -nofirststartwizard -accept="socket,host=,port=8100;urp" & > /dev/null 2>&1
    touch $PIDFILE
    if [ -f $PIDFILE ]; then
       echo "Stopping OpenOffice headless server."
       killall -9 soffice && killall -9 soffice.bin
       rm -f $PIDFILE
    echo "Openoffice headless server is not running."
    echo "Usage: $0 {start|stop}"
    exit 1
exit 0

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:

User time zone
Default language

Then, finally click on the install button, and that’s it!

Please post your comments and suggestions

Posted in Linux | Tagged , | 1 Comment

Install low latency kernel on Ubuntu (Studio) 10.10 (Maverick)

After upgrading my Ubuntu from 10.04 to 10.10 I’ve noticed that there was no realtime or low latency kernel for it :-(

The standard kernel behaves very well (for a standard kernel at least) with audio applications, at least up to what I tested – hydrogen, rackarrack (even with heavy processing effects) and 2 instances of ZynAddSubFx. But I want to test Maverick with audio applications at least with a Low Latency kernel, so I used google, and found some references for how to do it.Unfortunatelythey link to unavailable kernel versions. I’ve also asked in Ubuntu Studio mailing list andMike Holstein said that he used the process described in the following link:

This was one of the links I have found googling, and has the problem of broken link (the kernels referenced are not available anymore). So to make the story short, I’ve searched for newer kernel packages and headers (these are for Natty (11.04) but work on Maverick), and this is what I have done to have a low latency kernel installed in my Ubuntu Maverick (10.10) home studio PC (AMD64):

First, download the packages (headers from a Ubuntu Natty mirror, kernels from Alessio PPA):




Then, install the packages:

sudo dpkg -ilinux-headers-2.6.37-12_2.6.37-12.26_all.deb

sudo dpkg -ilinux-headers-2.6.37-12-lowlatency_2.6.37-12.26~ppa3_amd64.deb

sudo dpkg -ilinux-image-2.6.37-12-lowlatency_2.6.37-12.26~ppa3_amd64.deb

And Voila, a working low latency kernel on Maverick :-)

For i386 architectures (didn’t test it), you can use the following packages instead:

PAE (more than 4GB RAM):

Non PAE:

Now it is time to test this new kernel, but this will be another article. Please post any comment or correction, as I said I didn’t test the i386 platform, so you could post your results. I want to thank to Mike for its help in the Ubuntu Studio mailing list (and all the other users from Ubuntu Studio mailing list that gave me suggestions about this) and Alessio for his excellent work with the low latency and realtime kernels.

Posted in Linux | Tagged , | Leave a comment

How to flash the BIOS without a floppy, using the CD-ROM

This is based on this how-to from Ubuntu forum, I’ve tested the CD-ROM method and it works flawlessly :-)

In summary, after being sure that a bios update is REALLY necessary, this is what I’ve done:

gunzip FDOEM.144.gz
mkdir /tmp/cdr
sudo mount -t vfat -o loop FDOEM.144 /tmp/cdr
sudo cp ~/NewBiosFiles/* /tmp/cdr
sudo umount /tmp/cdr
sudo apt-get install mkisofs
mkisofs -o newBIOS.iso -b FDOEM.144 FDOEM.144
cdrecord -v newBIOS.iso

I hope this can be useful if you need to upgrade the BIOS and don’t have a floppy (and in my case the BIOS also didn’t support USB boot using a PEN, in that case I could use unetbootin to make a bootable DOS pen like I normally do with other PCs.


Posted in Linux | Tagged , | Leave a comment

Openmeetings VMWare appliance

I’ve made a VMWare image running Openmeetings, V1.0 RC1, available here

The operating system is Ubuntu 9.04 Server Edition, username administrator, password is password. The same username and password was used for the Openmeetings login. MySQL root password is 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.

I’m using the VM with version 0.9RC5 for videoconference inside my company and it is working well. The VM with version 1.0RC1 has been less tested, but all the tests made succeeded, so I think you should prefer the V1.0 RC1. If you find something not working feel free to post a comment (you have to register, because do to all the spam I have restricted anonymous comments on this site)


Posted in Linux | Tagged , , | 1 Comment

Ubuntustudio 9.10 (Karmic) beta

I’ve installed the Ubuntustudio 9.10 daily release today and it worked almost without a problem. It is working on my homestudio PC (AMD 780G chipset with a Athlon 64 X2 processor) where the previous Ubuntustudio 9.04 and 8.10 failed to boot and I had to use Ubuntustudio 8.04 or a custom built rt kernel for the 9.04 release. Now for the (few) problems:

  • Grub installation asked for including a menu item for the Windows installation already present on my PC, but it didn’t include the menuitem, so I had to include it manually
  • It detected the availability of restricted hardware drivers (ATI), but failed to install it
  • When using audio in realtime the system hangup from time to time, blocking eerything (keyboard, mouse), but leaving the ‘RT’ label on jack client flashing slowly.

So these are the first impressions, not bad for a beta release, extremely fast boot and shutdown time (it seems about half the time I had with 8.04, but didn’t measure it), and my homestudio PC hardware seems now do be (almost) supported :-)

Posted in Linux | Tagged , | Leave a comment