Treat ISO as DVD in Gnome-MPlayer

Wow, it’s been a while!

I’ve been using Zenwalk Linux 5.0 (5.2 seems to break my DVD drive) for most of the summer. I really like it and I think I finally found a video player I like — Gnome-player.

One of the features that is missing from Gnome-MPlayer is the ability to treat a DVD iso as the dvd device like in MPlayer or GXine. Adding a dvd-device section to ~/.mplayer/config should fix the problem.

You can take this one step further by adding a custom action for Thunar. Here’s the custom action: ~/dskchng.sh %f

And here is the dskchng.sh script


#!/bin/sh
# usage: dskchng.sh full_dvd_iso_path
# TODO: add a dvd-device line if it does not exist
# TODO: there should be a way to have awk update infile so the
# whole output redirection, mv stuff is not required
awk -v dev=$1 'BEGIN{OFS=FS="="} /dvd-device/{$2=dev}{print}' ~/.mplayer/config > ~/dskchng.tmp && mv ~/dskchng.tmp ~/.mplayer/config && g-mplayer dvdnav://

To change the dvd-device back to /dev/dvd just do ~/dskchnge.sh /dev/dvd

I haven’t tested this yet, but changing the thunar action to ~/.dskchng.sh %f; ~/dskchng.sh /dev/dvd should change the device back automatically when Gnome-MPlayer is closed.

It isn’t the disk changer application I’ve always wanted, but if I could somehow get Thunar to show a video thumbnail for the ISO’s it would be a step in the right direction.

September 13, 2008 at 6:38 pm 1 comment

It’s Official

I think I’m officially a geek now. I got my first black computer. ;) It has a multicolored blinking lights on the inside and everything.

… then again its just some (really nice assuming everything works) old junker that a family member was getting rid of and not one I built myself. :\

Oh well. I’ll swap out a drive or something and take all the credit. (That’s just as good, right? :-P)

December 2, 2007 at 9:48 pm Leave a comment

Hack Attempt


Dec 2 14:19:52 myHostname sshd[8843]: Did not receive identification string from someip
Dec 2 14:20:31 myHostname sshd[8846]: Invalid user fluffy from someip
Dec 2 14:20:33 myHostname sshd[8848]: Invalid user admin from someip
Dec 2 14:20:35 myHostname sshd[8850]: Invalid user test from someip
Dec 2 14:20:38 myHostname sshd[8853]: Invalid user guest from someip
Dec 2 14:20:41 myHostname sshd[8855]: Invalid user webmaster from someip
Dec 2 14:20:46 myHostname sshd[8859]: Invalid user oracle from someip
Dec 2 14:20:48 myHostname sshd[8861]: Invalid user library from someip
Dec 2 14:20:52 myHostname sshd[8863]: Invalid user info from someip
Dec 2 14:20:54 myHostname sshd[8865]: Invalid user shell from someip
Dec 2 14:20:57 myHostname sshd[8867]: Invalid user linux from someip
Dec 2 14:20:59 myHostname sshd[8869]: Invalid user unix from someip
Dec 2 14:21:02 myHostname sshd[8871]: Invalid user webadmin from someip
... more like this ...

So that’s what a brute force attack on an SSH server looks like! ;)

Fortunately, I took time to read and secure the SSH as best I know how and no damage appears to be done. (If the output of less can be trusted) There were only two real attacks.

All in all I learned from the whole thing. I should probably start getting into the habit of reading my logs, and I learned a couple of user names not to use. (my favorites being fluffy, gopher, and Zmeu) I think I also want to look for an ipchains rule to limit access to only IP addresses in my state.

December 2, 2007 at 9:37 pm 7 comments

Mega Man X

I think Mega Man X remains my favorite video game of all time.

It was one of the first video games I bought, (if not the first) and I still remember the day I bought it. I was about 7 and payed $20 for it at Walmart. I was so mad it cost that much, because up until then most Super Nintendo games ran about $15. (Now I’m ecstatic if I can get a game for $30!) It was also before they started locking up their video games.

It was years before I could beat the first level, (With loooong breaks in between) and years before I could beat all the bosses before Sigma’s levels, and longer to get all the upgrades. I had no idea how to save the passwords. (I kept trying to keep track of the Mettaurs that would pop up.) The chameleon was the easiest boss to get to, but the most difficult to beat. (The armadillo comes in a close second) I remember the accomplishment I felt beating my first boss. (Chill Penguin) The spider boss was also insanely hard. I now am at least decent at the game, but I still can’t beat Sigma’s final form. (Yes, I am the most awesome gamer ever! ;) )

I’m glad Capcom released an anniversary collection. Now I can play all the Mega Man X games I never had a chance to buy, and be entertained for decades to come.

November 6, 2007 at 9:18 pm Leave a comment

Mercurial: First Impressions

I decided to make the switch to Mercurial from Subversion.

One of the first things I noticed is the speed difference. Mercurial, despite the name and the reputation of distributed SCMs, seems to be slightly (half second or less) slower than Subversion. (despite hg being nicer to type than svn ;) )

The other thing I noticed is that Mercurial doesn’t ignore certain files by default. Backup files show up in the status listings and are added if you try to add a directory.

Another thing that bugs me is the way Mercurial handles adding files. First, it doesn’t seem to want to add empty directories. hg status isn’t as nice as svn, but I’m sure it’s just something I haven’t got the hang of yet.

The main thing I like about Mercurial is the configuration. Give me an rc file over a directory any day! :)

October 31, 2007 at 9:06 pm Leave a comment

Absolute Bare Bones httpd.conf

What is the exact minimum you need to get Apache to start? Here it is:

Listen 80

User apache
Group apache

ErrorLog /var/log/httpd/error_log

That’s all you need to get Apache to start serving pages. Pages are served from /usr/htdocs. (not sure if that’s set during compile time or if it’s hard coded) Pages are also served without MIME detection so you will probably wind up seeing the HTML code in your browser instead of a nicely formatted document unless you set the DefaultType directive.

October 27, 2007 at 2:45 pm 1 comment

Testing Apache

Here’s a hint for those trying to set up an Apache web server: turn off your browser cache, or refresh the page using ctrl+shift+r.

While trying to come up with the minimal httpd.conf needed I disabled the mime module. After I re-enabled it I couldn’t for the life of me figure out why the MIME type was incorrect at http://localhost/index.html but not http://localhost.

October 27, 2007 at 2:05 pm Leave a comment

Older Posts


Feeds


Follow

Get every new post delivered to your Inbox.