Linux Filesystem; MP3 to OGG
Nov. 19th, 2005 04:22 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I'm copying my MP3 collection from my Windows computer to my Linux computer. I'd like to have it all in OGG Vorbis format. For a while I had a program on Windows that changed them from one to the other, but it was shareware and expired. I tried installing a free open source program on Linux to do this but it's one of those programs that doesn't appear in the Applications menu. So it's apparently intended for use from the command line.
Of course that would involve finding the executable in the filesystem first, I guess. In a command line interface you are walking through a subterranean network of perfectly dark tunnels. Instead of a flashlight or lantern, you are provided with an infinite supply of camera flashbulbs called the ls command. I prefer searching the filesystem through the graphical browser. I figure at least I can find the darn executable, then I can go into the shell and start up the program.
I have been informed that programs are found in the usr/bin directory, but all the executables there are named cryptically. As I go through clicking every one, nine tenths of them do nothing. Anyway, let me know any advice you might have, from any approach you desire.
Of course that would involve finding the executable in the filesystem first, I guess. In a command line interface you are walking through a subterranean network of perfectly dark tunnels. Instead of a flashlight or lantern, you are provided with an infinite supply of camera flashbulbs called the ls command. I prefer searching the filesystem through the graphical browser. I figure at least I can find the darn executable, then I can go into the shell and start up the program.
I have been informed that programs are found in the usr/bin directory, but all the executables there are named cryptically. As I go through clicking every one, nine tenths of them do nothing. Anyway, let me know any advice you might have, from any approach you desire.
no subject
Date: 2005-11-19 09:32 pm (UTC)Slocate is your friend. The command "slocate ogg" will show you a detailed listing of every full pathname that contains "ogg". This is bad if you have a hundred songs in a directory named ogg, but excellent if you don't, and you want to find all executables with ogg in the name. Word of warning, though: slocate relies on a database of filesystem info. If you want slocate to find something recent, you need to run "slocate -u" to create a full database. Alternately, you can run "slocate -U " to make a database of just a particular directory (like slocate -U /usr/bin).
I like to run slocate -u as a cron job that runs periodically while I'm sleeping, because it does take some time to complete if you have a lot of files.
If you tell me the name of the app you are trying to run, I can make some educated guesses as to what the executable might be.
no subject
Date: 2005-11-19 10:07 pm (UTC)no subject
Date: 2005-11-19 10:23 pm (UTC)FWIW, if you think the program has "ogg" in its filename or path, the following incantation will find all files with "ogg" in the name or path without having to build a locate database...
find / -name "*ogg*" -print
But if it's a program than handles multiple file type conversions it probably doesn't have ogg in its name.
This may take a while to run, which is why you create a locate database if you will be doing this often.
Amy
(no subject)
From:no subject
Date: 2005-11-20 12:37 am (UTC)First, make sure you're running the korn shell...
/bin/ksh
Copy the following into the korn shell command line. If you're curious what this does I can explain.
for dir in `echo $MANPATH | tr : ' '` ; do grep -i vorbis $dir/*/* ; done
If nothing happens it probably didn't find the word "vorbis" in any man pages. If that's the case, to make sure the search worked, look for something much more likely to be there, like the word "description".
for dir in `echo $MANPATH | tr : ' '` ; do grep -i description $dir/*/* ; done
If that prints lots of results then the search probably worked. If not, then it probably didn't work.
Then exit the korn shell:
exit
Make sure the stuff in italics gets entered on a single command line. Ignore the post I deleted. It contained an error.
Oh, yeah, one last thing. It's dangerous to "copy the following into the korn shell command line" if you don't know what "the following" does. You can trust me, though. Really :-)
(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2005-11-20 02:54 am (UTC)no subject
Date: 2005-11-20 03:06 am (UTC)-=ShoEboX=-
(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2005-11-20 03:23 am (UTC)And that is a perfect example of the blind leading the blind, for anyone interested.
(no subject)
From:(no subject)
From:no subject
Date: 2005-11-20 02:02 pm (UTC)no subject
Date: 2005-12-29 04:08 am (UTC)No! You don't want to be doing this. Very bad!
(no subject)
From: