Archive for the ‘Linux’ Category
Friday, April 18th, 2008
I’ve been looking for a decent way to convert FLAC files to MP3 under Linux for a while now. I’d been using SoundConverter, but I notice that there’s something not right with it. I’ll set my preference to VBR, highest quality (target rate is ~256), but I end up with files at around 150-192, which is not right.
So, I’ve done a bunch of searching around and have cobbled together this script, taking a little bit from here and a lot from there:
##START SCRIPT##
#!/bin/sh
for a in *.flac
do
OUTF=`echo "$a" | sed s/"\.flac$"/"\.mp3"/g`
ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
ALBUM=`metaflac "$a" --show-tag=ALBUM | sed s/.*=//g`
GENRE=`metaflac "$a" --show-tag=GENRE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
DATE=`metaflac "$a" --show-tag=DATE | sed s/.*=//g`
flac -c -d "$a" | lame -V 0 - "$OUTF"
id3v2 -t "$TITLE" -T "$TRACKNUMBER" -a "$ARTIST" -A "$ALBUM" -g "$GENRE" -y "$DATE" "$OUTF"
done
mkdir "$ARTIST" && mkdir "$ARTIST"/"$ALBUM"
mv *.mp3 "$ARTIST"/"$ALBUM"/.
## END SCRIPT##
It works beautifully.
Tags: audio, conversion, files, flac, lame, Linux, mp3, Music, Ubuntu
Posted in Geeky, Linux, Music, video | No Comments »
Tuesday, March 11th, 2008
Nice. I just figured out how to eject my CD/DVD drive on my Linux desktop (Xubuntu) via command line!
First, display your fstab file to see what the drive is named: ’sudo cat /etc/fstab’
Then look for your disc drive. Mine was called ‘cdrom0′.
Once you’ve found it, type ‘eject [name of drive]‘ and watch the magic.
I mapped that command to my keyboard. Gnome, Xfce and KDE all have a an interface to help you map keyboard shortcuts in their system preferences, or you can just edit the config files manually with a little googling. I mapped ‘ALT-Shift-F12′ to run ‘eject cdrom0′. Easy.
Tags: CD, command, drive, dvd, Linux, Ubuntu, xubuntu
Posted in Geeky, Linux, Tutorials | 1 Comment »
Monday, January 21st, 2008
I’ve been using Firefox, Ubuntu and Thunderbird for years now and one thing that always irked me was the fact that the “Send Link” option in Firefox was totally non-operational. Ideally, I’d ALT-F - E and bang, a new email would open up in Thunderbird with the page title in the subject and the link in the body of the mail, but no go. Nothing.
This morning, I wanted to email a buddy of mine a link and got to feeling like there must be some fix out there for this, so I did some Googling and after hitting on the sweet search string, I found the answer.
To get Firefox to open a compose window via the “Send Link” option, do this:
- Open firefox and in the address bar, type “about:config”
- Right-click within the body of the page that opens and select “New” and then “String”
- In the dialog box, where it says “Enter preference name”, paste:
network.protocol-handler.app.mailto
- In the next dialog box, enter your path to Thunderbird. Mine is
/usr/bin/thunderbird.
- Hit OK and restart Firefox. “Send Link” should now work with Thunderbird.
Sweet.
Tags: email, Firefox, fix, hack, howto, Linux, thunderbird, Ubuntu
Posted in Geeky, Linux, Tutorials | 1 Comment »
Sunday, December 23rd, 2007
Bang for buck, Amarok is the best music player/library manager on earth. But lately, since I’ve been flying Gnome, Xfce and other non-KDE-native environments, I’ve been using Exaile, just for the heck of it. It’s also nice to not have to load KDE libraries, just to play some music. Anyway, Exaile a good program. It’s come a damn long stretch since I first checked it out. It can handle large libraries and with every realease, closes the gap on features that make Amarok the best.
I’ve been using exaile, pretty much exclusively for about a year or more now. I’m not sure what took me so long but I just now ran ‘exaile –help‘ and got the command line arguments. Why didn’t I do this a year ago? I love command line music control. I don’t know if they’re any better, but to me, it’s always much more satisfying to execute tasks via command. Managing my playlist via command line makes it uber.
Usage: exaile.py [option...|uri]
Options:
-h, –help show this help message and exit
-d DIR, –duplicates=DIR
Finds and deletes all duplicate tracks (based on their
md5 sum)
-n, –next Play the next track
-p, –prev Play the previous track
-s, –stop Stop playback
-a, –play Play
-t, –play-pause Toggle Play or Pause
-q, –query Query player
–gui-query Show a popup of the currently playing track
–get-title Print the title of current track
–get-album Print the album of current track
–get-artist Print the artist of current track
–get-length Print the length of current track
–current-position Print the position inside the current track as a
percentage
-i VOL, –increase_vol=VOL
Increases the volume by VOL
-l VOL, –decrease_vol=VOL
Decreases the volume by VOL
–play-cd Start playing a CD
–new Start new instance
–set-rating=RATING Set rating for current song
–get-rating Get rating for current song
–settings=SETTINGS Settings Directory
–cleanversion
–version
–testing
–no-equalizer Disable Equalizer support
–start-minimized Start Exaile minimized to tray, if possible
Awesome. For me, at least.
Tags: cli, commands, exaile, Linux, Music, player
Posted in Geeky, Linux, Music | 2 Comments »
Saturday, September 29th, 2007
I’ve got a lot of good things to say about the eMusic service. I’ve been using it for getting close to one year now and I love it. However, I am totally unimpressed with the new downloader they’re pushing, emusicremote. It’s opensource and cross-platform, which is appreciated, but it’s essentially a customized web browser. I don’t need another browser. I have Firefox. Why would I want to install a whole other program that’s essentially a modified version of the same browser? I want a good, basic downloading program, which eMusic has never been able to deliver for Linux. Instead, I rely on eMusicj which has and continues to work great for me.
I had the same complaint when I gave the media player, Songbird a spin. I don’t need another Mozilla-based browser running. I just need a good media player. Instead of this behemoth of a downloader, eMusic should concentrate on improving the basic program they’ve used in the past. If they want the browser integration, make a Firefox extension.
Tags: downloading, emusic, Linux, Music
Posted in Linux, Music, Ranting, Reviews | 2 Comments »
Monday, September 3rd, 2007
I switched my desktop over to Kubuntu Gutsy Gibbon yesterday. Previously, I was running Ubuntu 7.04, Feisty Fawn. Gutsy’s final release is in October and I always get antsy whenever the release dates get close, usually breaking down and installing the beta releases when they come out. This time however, I gave in a bit earlier than usual. Gutsy goes beta in a little less than a month, but I decided to go for it anyway, since I can alway reinstall the older OS version and I also have a laptop for backup if things are problematic, but I want to stick it out and play with things. So, I’m currently running Kubuntu 7.10, Tribe 5 and things are moving pretty smoothly. I see some things are missing or unfinished, but I’ve got a stable and functional desktop and I’m able to do just about everything I need or want. I’m sticking with it.
Another thing I’ve done is switched back over to KDE from Gnome, mainly just to see what’s new. I’m well familiar with KDE, so it’s a smooth transition. I do notice some annoying font issues, but I can probably fix that and though I’ve checked it a few times already, my resolution seems off. I could have sworn my windows weren’t so huge with Gnome. I vaguely recall this being something I had to fix in KDE before, way back when. I have a flat screen monitor on this desktop, so there’s only one resolution and I’ve amended my xorg.conf to retain only the correct one…yet something looks off. I’ll figure it out at some point, I guess. Perhaps it will fix itself by the beta or final release.
One thing I notice with 7.10 is that Kopete, the KDE instant messaging client now comes with built-in OTR encryption support as well as the GnuPG it was using before. I’m loving this, since most other clients out there like Gaim/Pidgin and Adium as well as others, are equipped with OTR. I’d previously switched over to Gaim since I couldn’t encrypt messaging between my friends with Kopete because none of them had GnuPG capable clients.
Anyway, I have a new desktop to play with. Maybe at some point in the near future I’ll put Beryl on it for some eye-candy, but for now, I’m just checking things out.
Tags: gnome, gutsy-gibbon, kde, kubuntu, Ubuntu
Posted in Geeky, Linux, Reviews | No Comments »
Sunday, June 3rd, 2007
I was playing World of Warcraft pretty regularly, early last year. I had the game installed on a Windows partition on my laptop but I completely loathe booting XP, so as time went on, I was playing less and less till I eventually stopped altogether, though keeping my account active.
Tonight I finally got off my ass and installed WoW in Ubuntu, my preferred Linux OS of Doom. It was one of those things I knew was possible, but I was too lazy to take on the task. I followed this howto and after about thirty minutes, hosing the X server a good six or seven times, I finally got WoW running on my laptop. At first, I had no sound, but after manually incresing the sound buffer to 250, I was completely set. The result is awesome. Warcraft runs perfectly on Ubuntu using just Wine. The only thing I notice is that it does not play nicely with Beryl, but it’s simple to switch the window manager over to metacity. I actually hotkeyed the switch, so it’s even simpler.
Considering that I now no longer have to boot the dreaded Windows to play, I’ll probably be logged in a lot more. This could be a good or bad thing, considering how completely addicting it is.
Tags: Games, gaming, Linux, Ubuntu, videogames, warcraft, wine, WoW
Posted in Coolness, Games, Geeky, Linux | No Comments »
Tuesday, May 15th, 2007
I was just doing some reading about a new p2p client called Alliance. It’s a cross-platform program (the main project homepage only offers the EXE, but for Linux and Mac jarfile, go here) that marries social networks and file sharing; sort of like instant messaging meets BitTorrent. Instead of joining a large network of unknown peers and sharing a file, you construct your own network of trusted peers.
For example, Joe Q. Paranoid installs Alliance and adds his old college buddy, Hubert P. Piratepants as a trusted peer, as well as a few other people he knows and trusts. Together, they make up a private network that can transfer files back and forth from designated shared directories. If the file is present on more than one peer’s computer, it works like BitTorrent, using the multiple peers to increase the download speeds. There’s also a chat feature, letting you communicate with the people in your network.
Another great feature is encryption. By default, Alliance uses a rather simplistic encryption algorithm. SSL and AES are available as an option, but as of the current version (0.9.8), they are both in an experimental stage.
Overall, Alliance looks really fucking sweet. I haven’t had the chance to install and test it as of yet, but definitely plan on it.
Tags: alliance, bittorrent, encryption, file-sharing, p2p
Posted in Coolness, Geeky, Linux | No Comments »
Wednesday, May 9th, 2007
I am officially the coolest dude in Brooklyn (in my head at least). I have my very own Tor t-shirt! A few weeks ago one of the developers of the software emailed me to let me know that I had been running a fast Tor server for some time now and he asked me if I wanted a free t-shirt. Naturally I said yes. Soon after, I received a package with the shirt. It’s the coolest, ever. Click the thumbnails if you want a better look at the front and back.
Tor is a free program that provides onion routing anonymity for just about any program using the TCP protocol (browsing, blogging, instant messaging, IRC and SSH to name a few of the uses). In this day and age, with privacy rights getting raped, prison-style and draconian governments throwing people in prisons for thought crimes, it’s a good and necessary thing to have and to support. I run Tor on a Linux server (Ubuntu) I rent somewhere in Florida to give back to the network I occasionally use. I don’t really use the server for much, so I don’t limit the bandwidth I give to Tor, allowing it to be one of the faster middlemen in the web of servers that make up the Tor network. I think it’s pretty cool shit.
Tor is available for Linux, Windows and Mac. The project is non-profit and is supported by the Electronic Frontier Foundation and people like you (if you’re cool) and me (I’m so totally neat). You should download Tor, in case you should ever need it. If you have some free bandwidth, consider running a Tor server. You can also help the project by donation. If all of this isn’t your bag of nuts, you might want to think about becoming a member of the EFF and supporting the fight to protect digital rights and privacy. It’s all good shit.
Tags: anonymity, digital-rights, eff, freedom, Linux, privacy, proxy, Security, server, t-shirt, tor, Ubuntu
Posted in Coolness, Geeky, Linux, Security | 2 Comments »
Monday, May 7th, 2007
I bought received Doom 3 for the PC as a gift, way back in 2004 and really dug it’s dark, brutal, visually twisted and genuinely scary vibe for an FPS game. I got stuck fairly close to the end and never managed to finish it and some time later, I bought an expansion for the game, but never installed it. Since I was running a dual-boot between Linux and XP (strictly for video games), I eventually backed up my save files and uninstalled it to make room for newer games and kind of forgot about it.
Yesterday, while sorting through some old shit for a trip to the storage center to grab some summer clothes, I found the game in a pile of CDs. Remembering that the Id Software guys were into supporting Linux with their titles, I checked to see if a install package for Doom 3 on Linux was out. Sure enough, there was one, so I decided to try it out.
I found this FAQ and following the instructions, downloaded the install package, ran it and installed the game to ‘/usr/local/games/’ and then copied a bunch of files off the game CDs I had to the same directory. I still had to enter the software key off the game’s jewel case, but the result is a very fine looking Doom 3 running under Xubuntu. Totally fucking sweet.
I still have a Windows partition on my laptop and there are some games installed on it, but I rarely have the patience to boot it and rely mostly on my beloved Wii and PS2 for gaming fixes. The more Linux install packages I can get for PC games, the more money I’m going to
spend on the industry. I’m not really into paying a monthly fee for Cedega so I can run Windows games and I rarely have the patience to attempt to get a game running myself using Wine. I wish more game companies did this for Linux users.
Tags: doom3, Games, gaming, Linux, pc
Posted in Coolness, Games, Geeky, Linux | 2 Comments »