Friday, July 18, 2008

How to move to a folder fast in the terminal

Assuming that the folder is placed in home directory you type

cd /home/the_name_of_the_folder_you_want_opened

You can work around the space in the folder name by using quotes:

cd "saya lagi"

- Or you can "escape" any special character by putting a \ before it:

cd saya\ lagi

- Or just make use of the autocomplete feature using the tab key:

Type: cd sa and then just press the tab key so that linux can automatically complete the line for you. This only works if there are no other folders that begin with the letters "sa", else you should try "cd say" and tab or "cd saya" and tab, etc. If you press tab twice you'll get a list of possible folder names.

You can also drag a long named folder in the terminal and type cd before the name; use Ctrl+a to move the cursor to the beginning of the line.

Lastly, in case you use regular ubuntu (Gnome/nautilus) you can install the package nautilus-open-terminal, that will allow you to right-click a folder and start a terminal from there.

Thursday, July 17, 2008

Installing the Perl Audio Converter Ubuntu

PACPL is a Perl based script for converting audio files. It is extremely powerful and is capable of encoding/decoding a large array of formats (aac, ac3, avi, divx, flac, m4a, mp3, mp4, mpeg, ogg, raw, shn, vcd, vob, wav, wma, wmv and many more). Installing the program itself is fairly easy but it does require a number of dependencies – this is what causes most people problems. This tutorial will show how to install PACPL, the dependencies, and codecs. To start with you need to make sure that you have all the repositories and codecs installed.
There are lots of How To's so if you get stuck on these just search in the forum threads.
  1. Install the Medibuntu repository https://help.ubuntu.com/community/Medibuntu.
  2. Follow these instructions for adding repositories and packages in Ubuntu https://help.ubuntu.com/community/InstallingSoftware
  3. Install the Ubuntu Restricted Extras https://help.ubuntu.com/community/RestrictedFormats
  4. Install “Build Essential” from Synaptic (or use apt get or aptitude get – whatever method you prefer)
.

Now you are ready to install PACPL.
  1. Go to the PACPL web site and download the source package to your desktop http://pacpl.sourceforge.net//. As of this writing the latest package is pacpl-4.0.1.tar.bz2.
  2. Extract the pacpl-4.0.1.tar.bz2 package to the desktop (right click>extract here).
  3. In the pacpl-4.0.1 folder is a folder called “extras”. This contains the script for installing all the dependencies. To run the script, open a terminal and change directories to the pacpl-4.0.1/extras folder on your desktop.
    Code:
    cd /home/yourusername/Desktop/pacpl-4.0.1/extra
    (where yourusername is your user name in Ubuntu).
  4. Next run the script that will install all the dependencies. At the terminal prompt type (or cut and paste):
    Code:
    ./mod-install-kubuntu.sh
  5. Once that is finished change directories again:
    Code:
    cd /home/yourusename/Desktop/pacpl-4.0.1
  6. Type or cut and paste the following commands at the prompt (1 line at a time).
    Code:
    ./configure
    Code:
    make
    Code:
    sudo make install

That's it. To run pacpl, open a terminal and type:
Code:
pacpl --longhelp
This will give display the list of commands available and instructions for using PACPL. In general, the commands are written in the following structure

Open a terminal and at the prompt type:
Code:
~$pacpl --to   directories/files
So for example I have a music file xyz.flac in my Home/music directory and I want to convert it to mp3. At the prompt I type:
Code:
cozmicharlie@ubuntu:~$ pacpl --to mp3 Home/music/xyz.flac
Hit enter and the file is converted to xyz.mp3.

There are a number of options including moving the file to a new directory, overwriting the original, tagging (you can tag and convert at the same time). See the pacpl --longhelp for all the commands.
source: http://ubuntuforums.org/showthread.php?t=712064

Root privileges in Ubuntu no root password

Root Sudo

In Linux (and Unix in general), there is a superuser named root. The Windows analog of root is Administrator. The superuser can do anything and everything, and thus doing daily work as the superuser can be dangerous. You could type a command incorrectly and destroy the system. Ideally, you run as a user that has only the privileges needed for the task at hand. In some cases, this is necessarily root, but most of the time it is a regular user.

By default, the root account password is locked in Ubuntu. This means that you cannot login as root directly or use the su command to become the root user, however, since the root account physically exists it is still possible to run programs with root-level privileges. This is where sudo comes in; it allows authorized users (normally "Administrative" users; for further information please refer to AddUsersHowto) to run certain programs as root without having to know the root password.

This means that in the terminal you should use sudo for commands that require root privileges; simply prepend "sudo" to all the commands you would normally run as root. For more extensive usage examples, please see below. Similarly, when you run GUI programs that require root privileges (e.g. the network configuration applet), you will also be prompted for a password. Just remember, when sudo asks for a password, it needs YOUR USER Password, and not the root account password.

source: https://help.ubuntu.com/community/RootSudo

Wednesday, July 16, 2008

Install Tutorial: Adding Ubuntu to XP


How to dual-boot Windows XP and Linux, on a system where you have already installed XP. Easy step-by-step tutorial that doesn't assume prior knowledge of Linux.


http://apcmag.com/how_to_dual_boot_windows_xp_and_linux_xp_installed_first.htm?page=3

Sunday, July 13, 2008

RubyRipper, Linux's EAC

Get it here: http://getdeb.net/app/Rubyripper
(older version 0.50)

Rubyripper is a digital audio extraction algorithm that uses cdparanoia in a sophisticated way to make sure that a CD rip is done successfully and accurately. It is very similar to and inspired by EAC. Rubyripper is written in the ruby programming language.
http://wiki.hydrogenaudio.org/index.php?title=Rubyripper

Features

* A GTK2 user interface
* Sophisticated error correction mechanism
* A command line interface (CLI) available
* CDDB-info is fetched via the cd-discid module
* Info can be edited after fetching
* The codecs supported are FLAC, Vorbis, MP3, and WAV
* Multiple codecs can be used in one run
* Direct offset support
* Detailed logfile creation
* A detailed overview of hard-to-correct positions
* Create m3u playlists

Installation tips :
Install on Ubuntu 8.04 plus newest version 0.51:
http://ubuntuforums.org/showthread.php?t=799621
New in 0.51:
What's New in This Release:

· important fix that prevents creating corrupted wav files
· move over to one single language file
· make ruby-gettext optionally
· single file ripping supported
· cuesheet support

Configuration tips:
http://filesharefreak.com/tutorials/rubyripper-native-secure-cd-ripping-on-linux/

Which Linux program replaces which M$ Windows program?

To be able to find replacement of the software you're used to this site of offering equivalents comes very handy. Be aware that some programs are better suited for your distro or desktop program (KDE, Gnome or XFSE) than others:
http://www.linuxappfinder.com/

Saturday, July 12, 2008

Split lossless audio (ape, flac, wv, wav) by cue file in Ubuntu

source:

http://aidanjm.wordpress.com/2007/02/15/split-lossless-audio-ape-flac-wv-wav-by-cue-file/

[only convert without splitting here ]


Lossless audio files can be split by cue file using “shnsplit” (part of the “shntool” package). You will also need the “cuebreakpoints” tool (part of the “cuetools” package). To install cuetools and shntool in Ubuntu/ Kubuntu, open a terminal window and enter the following:

sudo aptitude install cuetools shntool

You will also need software for your prefered lossless audio format. For Monkey’s Audio you need to install “mac” - see here for details. For FLAC and WavPack formats you need to install “flac” and “wavpack” respectively:

sudo aptitude install flac wavpack

Shnsplit requires a list of break-points with which to split an audio file. Conveniently, cuebreakpoints prints the break-points from a cue or toc file in a format that can be used by shnsplit. You can pipe the output of cuebreakpoints to shnsplit as follows:

cuebreakpoints sample.cue | shnsplit -o flac sample.flac

In this example, a flac file called “sample.flac” is split according to the break-points contained in “sample.cue” and the results are output in the flac format.

The output file format is specified via the “-o” option. If you don’t specify an output format your split files will be in shntool’s default format (i.e., wave files, “wav”).

To split a monkey’s audio file by cue file and output the results in the flac format:

cuebreakpoints sample.cue | shnsplit -o flac sample.ape

Note that a default prefix “split-track” is used to name the output files. (The default output format is split-track01, split-track02, split-track03, …). You can specify your own prefix via the “-a” option.

To see all the options for shntool split type “shntool split -h” or “shnsplit -h”.

Transferring tags

The audio files output by shnsplit do not contain tag data. However you can use the “cuetag” script (installed as part of the cuetools package) to transfer tag data directly from a cue file to your split audio files. You specify the individual audio files corresponding to the tracks contained in your cue file as follows:

cuetag sample.cue split-track01.flac split-track02.flac split-track03.flac split-track04.flac

This will transfer the tag data contained in “sample.cue” to the flac audio tracks “split-track01.flac” “split-track02.flac” “split-track03.flac” and “split-track04.flac”.

The above command could be streamlined as:

cuetag sample.cue split-track*.flac

Cuetag works with flac, ogg and mp3 files. The cuetag script is not currently able to handle file names containing spaces.

Note: If you are running flac version 1.1.4 or higher then you may need to make some small changes to the cuetag script before it will work correctly with flac files. Open the cuetag script (for Ubuntu installations it will be located at /usr/bin/cuetag) in a text editor and make these two changes: 1) search for the text “remove-vc-all” and replace it with “remove-all-tags”. 2) search for the “import-vc-from” and replace with “import-tags-from”.


Also see:

http://aidanjm.wordpress.com/2007/01/26/using-monkeys-audio-ape-files-in-ubuntu/


There you see you can convert image.ape to image.flac using

shnconv -o flac image.ape

Or an alternative to using shntool is to work via the mac and flac programs directly; to convert a monkey’s audio file to flac:

mac sample.ape sample.wav -d
flac -o sample.flac sample.wav
======================
Addition
What I usually do is batch processing to convert them to flac using pacpl audio conversion library:

> cd ~/yuckyapes
> pacpl -r -o ape -t flac *
.
. Test!
.
> find . -name '*.cue' -exec sed -i 's/\.ape/\.flac/' {} \;
> find . -name '*.ape' -exec rm {} \;

courtesy:Tri
=======================
first step: move in terminal to the folder where the ape file is,
2: convert image.ape to image.flac;
3: test the flac file;
4, rename image.ape to image.flac in the cuesheet;
5: remove the ape file.

A tutorial to install and use pacplin Ubuntu:
http://ubuntuforums.org/showthread.php?t=712064

Blog Archive