linux

Rotate an avi or video file

Using linux we can rotate a video very easily using the command line.

mencoder -of avi -oac copy -ovc lavc -lavcopts vbitrate=7776000 -vf rotate=1 -ofps 25 -o output.avi input.avi
where 7776000 is the bitrate and 25 is the framerate, you can find out what your original files settings were by using:

ffmpeg -i input.avi
Note: that's a lowercase I

This rotates 90 degrees clockwise, to go anticlockwise use "rotate=2"

http://commacommacrash.com/2008/09/my-video-rotation-adventures.html?sho...

Copy your SSH public key to another server over SSH

Log in as the user who's public key you want to transfer

$ cat ~/.ssh/*.pub | ssh -p 22 remoteuser@ip.add.re.ss "mkdir ~/.ssh; cat >> .ssh/authorized_keys"
Change the details for the remote server

Don't forget to accept the remote server key

Wireless broadband dongles in Ubuntu Linux (UK)

I've found that getting these wireless broadband dongles to work in Ubuntu 9.04 really easy, but getting the correct connection details took ages.
So as a self reference and incase anyone else needs them:

These were working as of July 2009

O2 pay and go (UK)

number: *99#
username: o2bb (that's a lower case o not a zero)
password: password
APN: m-bb.o2.co.uk

The only site you can get to without credit is: http://mobilebroadbandaccess.o2.co.uk

Vodafone pay and go (UK)

number: *99#
username:
password:
APN: pp.vodaphone.co.uk

Access Radius secured WiFi with Linux

Ubuntu using WiCD to connect to WPA2 access point authenticated by Windows RADIUS PEAP/MSCHAPv2

Assuming you have WiCD installed and working with simpler access points.

First you will need to aquire the root CA certificate and convert it to a suitable format

sudo openssl x509 -inform der -in inl-ca.cer -out /etc/ssl/certs/inl-ca.pem

We store the converted version in a central place as above.
We then create a new WiCD template:

/etc/wicd/encryption/templates/peap-mschapv2

name = PEAP with MSCHAPv2
author = Satish Vellanki [www.cs.ttu.edu]
version = 1

Convert SSL cer to pem certificate

# Convert a DER file (.crt .cer .der) to PEM
openssl x509 -inform der -in certificate.cer -out certificate.pem

http://www.sslshopper.com/article-most-common-openssl-commands.html

Syndicate content