Archive for the ‘debian’ Category

Remove embedded album art

May 13, 2010

To remove embedded album art from music files from Ubuntu or variants, you can use eyeD3 which is in repository.

To install:

    apt-get install eyed3

To remove embedded album art :

    cd YOUR_MUSIC_DIR
    eyeD3 –remove-images * *.mp3
or
    eyeD3 –remove-images * *.ANY_OTHER_FORMAT

Advertisements

How to create a list of installed packages in Ubuntu / Debian

August 15, 2008

dpkg –get-selections

Changing mac address Ubuntu/Debian

February 28, 2008

Yo!

Finally I managed to connect to the net using my laptop. DHCP server was not giving an IP from the lease when I try to connect
from my lappy. I found out the issue – my ISP was blocking the mac address of my laptops network card 🙂 – why – who knows ! :p

So ? I thought I will change the mac. Here is a how to which I think could be useful to someone else too.

Manually set your MAC address for your network card.
—————————————————–

Edit the /etc/network/interfaces file. You can choose to use a different editor if you’d like.

sudo gedit /etc/network/interfaces

or

sudo vim /etc/network/interfaces

You should see the line for your network interface, which is usually eth0. If you have dhcp enabled, it will look like this:

auto eth0
iface eth0 inet dhcp

Just add another line below it to make it look something like this:

auto eth0
iface eth0 inet dhcp
hwaddress ether 01:05:03:04:0B:06

you can change the part after “ether” to some other balue, in the same format

Now restart networking

sudo /etc/init.d/networking restart

===========
Lazy ?

There is a tool availab le for Ubuntu to automate this – macchanger

To install
——-
sudo apt-get install macchanger

usage:
macchanger eth1
Now check the man page of macchanger for usage instructions, there are some interesting options out there.

Change Hostname Permanently on Debian or Ubuntu

February 10, 2008

Debian based systems use the file /etc/hostname to read the hostname of the computer at boot time and set it up using the init script /etc/init.d/hostname.sh

We can edit the file /etc/hostname and change the hostname and then run:

/etc/init.d/hostname.sh start

Steps:

1. sudo gedit /etc/hostname
2. Save the file with the hostname you like to set
3. sudo /etc/init.d/hostname.sh start

Ref: http://sysblogd.com/50/change-hostname-permanently-on-debian-or-ubuntu.htm

XGL/Compiz shortcuts

October 11, 2007

o Switch windows = Alt+Tab
o Arrange and view all windows = Moving the pointer to the top right screen corner turns on or off; clicking a window will zoom it to the front
o Switch desktops on cube = Ctrl+Alt+Left/Right Arrow (or moving your mouse to the edge of your screen and rolling your mouse wheel)
o Switch desktops on cube with the active window following = Ctrl+Shift+Alt+Left/Right Arrow
o Rotate cube manually = Ctrl+Alt+Left-click and grab an empty desktop space.
o Make window translucent/opaque = Either with the “transset” utility or Alt+Mouse wheel (or right clicking on a window’s title bar, and selecting the settings from ‘Appearance’)
o Zoom in once = Super-key+Right-click
o Zoom in manually = Super-key+Mouse wheel up
o Zoom out manually = Super-key+Mouse wheel down
o Move window = Alt+Left-click
o Snap move window (will stick to borders) = Ctrl+Shift+Left-click
o Resize window = Alt+Right-click
o Bring up the window below the top window = Alt+Middle-click
o Slow-motion = Shift+F10
o Water = Hold Ctrl+Super key, and move mouse
o Rain = Shift-F9

Finding UUID of a drive …

September 10, 2007

I had waring messages poping up on rebooting Ubuntu after installing Debian. It was demanding an fsck on the drive I formated from debian during installation. The error message was something related to UUID.

I have fixed it by adding the new UUID of the formated drive in /etc/fstab
You can find uuid using

sudo vol_id -u device