Category Archives: General Stuff

Ubuntu – How to Install MKVToolNix (Matroska tools) in Linux

Matroska is a new multimedia container format, based on EBML (Extensible Binary Meta Language), which is a kind of binary XML. MKVToolNix is cross-platform tools for Matroska.

MKVToolnix recently released its 5.3.0 verison with following changes:

1. Several fields have been added to mkvmerge’s verbose identification output.
2. File type identification and a segfault have been fixed for DTS files.
3. File type detection for (E)AC3 files has been improved.
4. mkvextract’s “timecodes_v2″ mode uses the same track IDs as mkvmerge’s identification mode outputs again.
5. An invalid memory access with certain broken Matroska files has been fixed.
6. mkvmerge can read input files as if they were part of a single huge file.
7. mkvmerge can extract and use the audio encoder delay information stored in MP4 files as written by iTunes

To Install MKVToolNix in Ubuntu:

First to import public GPG key with this command:

wget -O - http://www.bunkus.org/gpg-pub-moritzbunkus.txt | sudo apt-key add -

Then edit the source by:

gksudo gedit /etc/apt/sources.list

Read more »

Happy New Year 2012!

Wishing you a fabulous 2010 with full of great achievements and experiences.
A meaningful chapter waiting to be written HAPPY NEW YEAR!

Ubuntu – Change MAC Address in Ubuntu

Sometimes it is just necessary to change MAC address (also known as ethernet address, physical/arp/hardware address or even hwaddr) of network interface in Ubuntu.
It is far out of this post’s scope to list here all possible reasons of doing it so I just listed below several ways to change MAC address under Ubuntu Linux.
All of those ways require typing commands in terminal so open it in in Ubuntu menu.

In order to see all interfaces detected by your Ubuntu as well as their MAC addresses and hardware names type the following command:

sudo ip addr

Here is sample output:

1: lo:  mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0:  mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 4c:22:d0:b8:78:ae brd ff:ff:ff:ff:ff:ff
3: wlan0:  mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:19:7e:53:8c:a3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.18/24 brd 192.168.1.255 scope global wlan0
    inet6 fe80::219:7eff:fe53:8ca3/64 scope link
       valid_lft forever preferred_lft forever

It shows three interfaces: lo, eth0 and wlan0 (these are hardware names of them). MAC or hardware address is shown in link/ether line, e.g. current MAC address of eth0 is 4c:22:d0:b8:78:ae.

Change MAC address in Ubuntu using ifconfig

sudo ifconfig eth0 down

sudo ifconfig eth0 hw ether 4c:22:d0:b8:78:ae

sudo ifconfig eth0 up

Where eth0 is hardware name if the interface and 4c:22:d0:b8:78:ae is desired MAC address for it.

Read more »

Ubuntu – how to move databases

I recently wanted to move a database from one computer to another. Fortunately I found a welcome guide at linuxjournal.com. Moving the files is not really difficult, you can use FTP. Moving the database is a bit more challenging however.

If you have shell access, it’s a pretty simple process. On the old server, type:

    mysqldump -u username -p databasename > databasebackup.sql

You’ll be asked for the password assigned to “username”, and then mysqldump will create a file that contains all the information needed to restore your database. One thing to note, however, is that going between different versions of mysql can be problematic. That’s where the –compatible flag is handy. You can specify what type of database software you’ll be importing to, and mysqldump will (try) to give you a compatible file. Some options are mysql323, postgresql, mysql40, etc. Check the man page for more options and explanations about what they all do.

Read more »

Ubuntu – Create Flash video from DVD (DVD to FLV)

All the steps below are valid for any Linux, not just Debian and Ubuntu.
Simply use your distro’s package manager (YaST, Yum, Rpm, etc.) to install the necessary packages. Creating a flash video from a DVD will allow you to post it on Youtube or on your website.

1. Make sure that you have mencoder installed. Mencoder is Mplayer’s movie encoder and it can convert multiple video and audio formats.

If you have not yet installed it, do it now:

sudo apt-get install mencoder

This will install 4 packages: libfaac0 libmp3lame0 libx264-65 libxvidcore4 mencoder.

Read more »