Posts Tagged ‘Linux’
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 | No Comments »
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 | No Comments »
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 »
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 »
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 »
Sunday, April 1st, 2007
I’ve been running Xubuntu Feisty Fawn on my desktop computer at home since Herd 4 (so… uh… at least a month I think…?) and I’ve found that there’s not much I can say about it that’s bad. In fact, it’s the first time I was able to upgrade via the “apt-get dist-upgrade” method without a whole mess, complete with a busted X server. I was able to do the upgrade and still have everything working, even Beryl.
Still as successful as the upgrade was, I generally prefer back shit up and to do clean install since I think that a lot of the fun of a distribution upgrade is seeing all the changes, bells and whistles as they appear fresh out of the box (or the ISO, in my case). A dist-upgrade can at times hide these things from my since it may upgrade a program but it still relies on my old config files for the most part.
(more…)
Tags: beryl, desktop, feisty, kde, kubuntu, Linux, Ubuntu, xfce, xubuntu
Posted in Geeky, Linux, Reviews | 2 Comments »
Wednesday, November 29th, 2006
I’ve decided to try and give up using Firefox for at least one week. In it’s place I plan on using Konqueror and in some cases where I’m using OSX, Safari or perhaps Camino. The real test for me though is to see if I can make Konqueror do everything I’m used to doing (and worry that I can’t live without) with Firefox.
I’ve been falling slowly out of infatuation with Firefox for a while now. Version 2.0 left me mildly underwhelmed and dealing with much of the same-old including an annoying memory leak. Since I use KDE as my desktop environment, I’ve always had Konqueror kicking around and have been very impressed with it’s abilities as a file manager. In my job, where I often have to migrate many files from server A to B, Konqueror’s view splitting features kick serious ass. As a web browser that I’ve had access to for almost two years, I’ve probably used it a handful of times, mainly because of my dependence on Firefox extensions.
This reliance on extensions bothers me. The fact that enough people use it now that exploits are starting to show up isn’t great news to me either. Granted, they’re generally addressed pretty fast, but whatever. Really cool people use fringe, obscure browsers like Konqueror or Lynx.
(more…)
Tags: browser, extensions, Firefox, kde, konqueror, kubuntu, Linux, Ubuntu, web
Posted in Geeky, Linux | No Comments »