How to: Rotate a video in linux

For the life of me I can't figure out how to flip/rotate a video in linux using any GUI apps

Here's the commandline way to do it

mencoder -ovc lavc -vf rotate=2 -oac copy INPUT.AVI -o OUTPUT.AVI

The rotate=2 can be replaced with whatever option best suits your needs. Rotating video options are below:

0 Rotate by 90 degrees clockwise and flip (default).
1 Rotate by 90 degrees clockwise.
2 Rotate by 90 degrees counterclockwise.
3 Rotate by 90 degrees counterclockwise and flip.

How to disable the GDM pre-login 'music' in Ubuntu 11.04

To get rid of the annoying pre login gdm 'music' in Ubuntu 11.04 just open the 'Startup Applications' from the Control Panel
- click on the logout button on the top right - then select 'System Settings' to get to the Control Panel

Then just untick the 'GNOME Login Sound' option - refer image below
Screenshot

and then option the terminal/commandline and execute this command

sudo -u gdm gconftool-2 --type=bool --set /desktop/gnome/sound/event_sounds false

restart and you won't get those annoying drums

-- old posr --

One annoying issue in Ubuntu 11.04 is that there is no GUI to disable the pre-login sound that GDM (the Ubuntu login screen) makes when it opens.  This 'music' becomes an issue when you work in a quiet environment

from the command line execute 

gksudo gedit /etc/gdm/custom.conf 

and add the line

SoundOnLogin=false

and the [daemon] line

save the file and restart - now you won't hear the pre-login 'music' at the login screen

goodbye jolicloud 1.2, hello ubuntu 11.04

I've been using Jolicloud on my netbook since December and really enjoyed using, that was until Ubuntu 11.04 was releaed 

Whats great in Jolicloud
  • integrated your Google Docs and Dropbox files into your OS like normal files
  • all your apps and preferences are store on jolicloud.com
  • when you reinstall or setup a new laptop all your apps and settings are all auto installed and setup for you
Problems with Jolicloud
  • Apps disappear behind the jolicloud desktop and can't be alt-tab to etc.. - really annoying
  • The jolicloud file browser is really slow and a pain to use
    • yeah it looks nice but plain old nautilus is much better
  • its just not as nice to use as ubuntu with unity desktop
Whats great about Ubuntu `11.04 on a netbook
  • Unity desktop is fantastic - there was tonnes of negative press re Unity before the launch of 11.04
  • Everything pretty much 'just works'
Problems with Ubuntu on a netbook
  • The GDM pre-login sound can't be disabled via a GUI, really annoying when your working in a quiet environment ( i'll post next about how to fix this )
  • On a netbook when you click an app in the The Unity apps launcher on the left its very hard to tell if anything is happening, yeah the background of the icon pulses but on a small screen this is really hard to see.  This needs to be changed so the icon 'jumps' like OSX or something similar so you can actually see something happening after you click it 
  • Needs to be an easy way to find out what the Unity keyboard shortcuts are, Super-W and Super-S are fantastic - but I would never have found them if I didn't read about them in some comments on some a blog
Apart from those minor issues I can't recommend Ubuntu 11.04 enough

Ubuntu / Broadcom slow wifi issue solved

Since upgrading from Ubuntu 9.04 on my HP Mini 2140 I've found that all recent Ubuntu derivatives (Jolicloud etc.) and other recent distros (Fedora 14 etc..) have an issue with the Broadcom wifi drivers where download speed goes back to dial-up level.  If you search ubuntuforums.org you'll find heaps of posts all complaining of slow wifi speed with Broadcom devices (4322 in the case of my HP Mini). most posts have no real solution.

Whats the solution?

Set your wifi router to use G wifi mode.  My router was using N mode - This seems to have issues with the Broadcom wifi drivers, once this was changed to G mode my wifi speeds came straight back to normal levels :)

MongoDB php driver install for Ubuntu 9.10 UNR without pear/pecl

To manually install the MongDB PHP drivers without pear/pecl follow the below steps

# install required php tools
sudo apt-get install php5-dev

# grab the driver

# unzip and install
unzip mongodb-mongo-php-driver-a54a5f7.zip 
cd mongodb-mongo-php-driver-a54a5f7/
phpize
./configure
sudo make install

# the above step should place the mongo.so file in your php extensions directory
# but it didn't when i tried - to manually copy the driver follow the below steps
# find the php extensions directory
php -i | grep extension_dir

# copy the driver to that directory
sudo cp modules/mongo.so /usr/lib/php5/20060613+lfs/

# now create the php mongo config file create/open the below file in vi
sudo vi /etc/php5/conf.d/mongo.ini 

# and paste in the below configuration
extension=mongo.so

[mongo]

; If the driver should reconnect to mongo
mongo.auto_reconnect = true
; Whether to allow persistent connections
mongo.allow_persistent = On
; Maximum number of persistent connections (-1 means unlimited)
mongo.max_persistent = -1
; Maximum number of links (persistent and non-persistent, -1 means unlimited)
mongo.max_connections = -1
; Default host for mongo connection
mongo.default_host = localhost
; Default port for mongo database
mongo.default_port = 42
; When saving files to the database, size of chunks to split them into
mongo.chunk_size = 1024
; Specify an alternate character to $ to use for special db functions ($set, $push, etc.)
mongo.cmd = "$"

# save the above file and close
# now check php and ensure that it has picked up the mongo driver and configuration
php -re mongo

# assuming the above is OK restart apache
sudo /etc/init.d/apache2 restart

# your now all done - enjoy mongodb and php

MongoDB install on Ubuntu 9.10 UNR

tried to install MongoDB from the mongo apt repo but it failed, below are the steps to manually install mongo on ubuntu 9.10

# get the files

# extract
tar xzf mongodb-linux-i686-1.4.0.tgz

# create the required data directory
sudo mkdir -p /data/db
sudo chmod -Rv 777 /data/

# start the mongo server
cd mongodb-linux-i686-1.4.0/ 
./bin/mongod &

# open the mongo shell
./bin/mongo

next post will detail how to install the php mongo driver manually - without pear/pecl

google chrome in ubuntu 9.10

edit the apt sources file

$ sudo gedit /etc/apt/sources.list

add in

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main

then add in the apt key

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5

then update apt and install chrome

sudo apt-get update
sudo apt-get install chromium-browser