Using MP3gain to losslessly adjust volume of tracks without re-encoding files

MP3gain doesn’t just normalize an MP3, it analyses it using the Replay Gain algorithm to determine how loud the file actually sounds to the human ear… and quite well, too.

Instructions coming soon, in the meantime:

MP3gain website (SourceForge.net)
MP3gain downloads (SourceForge.net)

Reload config file for Icecast radio streaming server without dropping listeners

Type:

or, find the PID for your Icecast process using “ps aux” (example: 1234) and type:

 

While kill and killall do normally terminate tasks, in this instance they’re being used to send a “hangup signal” (-HUP) which forces Icecast to refesh the configuration file (usually /etc/icecast2/icecast.xml) without dropping any of the client connections. Pretty hard to understate the usefulness of this, especially on a production server.

How to switch to another user using sudo in Ubuntu 12.04 shell

Usage: sudo -u <username> <shell>

Assuming your account has root/sudo permissions:

You may have to type in your password (not the password of the account you’re switching to.)

Just type “exit” to get back to your original session:

 

How to create symbolic links in Ubuntu 12.04 shell

Usage: ln -s <target> <link>

target = existing file or folder you wish to create a symbolic link of.
link = the new file/folder link to be created

For example, to create a link to /var/www/html/wordpress in my home folder:

Or:

Output:

 

How to check your hard drive space in Ubuntu 12.04 shell

Type the following command from your shell prompt:

Output:
The device mounted on / is the root folder of your file system.

If you want to see the file system types as well:

Output:

Enable (or disable) the mod_rewrite module on Apache2 web server on Ubuntu 12.04

Enable mod_rewrite module using ‘a2enmod’ (Apache2 Enable Module tool) with sudo permissions:

Output:
Then restart Apache to activate:

That’s it!

If you ever need to disable this module:

Disable mod_rewrite module using ‘a2dismod’ (Apache2 Disable Module tool) with sudo permissions to disable “rewrite”:

Output:
And then restart Apache to activate the changes:
 

How to display ‘Now Playing’ ticker from an Icecast server on website

[Read more…]

Using ‘eyeD3’ to show/edit/copy MP3 ID3 tags in Ubuntu 12.04 shell

To install eyeD3:

Note: lowercase ‘d’ unlike the actual command.

To display ID3 info, use “eyeD3 <filename>”, surrounding the filename in quotes if it contains spaces:

Note: uppercase ‘D’ when using the command.

Output:

You can also display the ID3 info for multiple files at once, for example to see the ID3 tags for every file in a directory:

 

There’s lots you can do with eyeD3, including retagging, copying tags, removing tags, converting one tag format to another, etc.. here’s the full “eyeD3 –help” usage output:

 

How to customize your Icecast web server interface

Coming soon.

Change colours, insert your logo, add additional menu links, etc.

 

Customize folder display on Apache2 using .htaccess file on Ubuntu 12.04

Coming soon.