Jason Sares is a Giant Dork

Bash One Liner - Human Readable Sorted du

du -s * 2>/dev/null | sort -n | cut -f2 | xargs du -sh 2>/dev/null

Posted in Linux Quick Tip | 1 comment

Linux Quick Tip - Linux RAID Driver

If you buy a RAID Adapter often you’ll have to create a driver disk for your OS. Most of these are 1.44MB floppy images and since modern systems often lack a floppy drive I needed some way of creating the disk.

I used a USB stick and dd for Windows (I’m sure dd for Linux would work just as well)

From the Windows Comand Prompt:

C:\>dd if=mini.img od=x: (Where X is the drive letter of the USB stick)

Then just insert the USB stick before loading your Linux Installation Media.

Posted in Linux Hardware, Linux Quick Tip | No comments

Linux Quick Tip - Benchmark Disk Performance

A very quick way to benchmark your disk performance is hdparm -t /dev/Xda (hda or sda):

you should get results like this:

[root@esx-mars root]# hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads:  358 MB in  3.00 seconds = 119.33 MB/sec

This is from a Dell PowerEdge 2900 with the PERC 5i SATA RAID Controller.

Roughly you want to see 50 MB+ per disk, if you have a RAID 0 of two disks you should get 100 MB+.

What numbers are your getting?

Posted in Linux Hardware, Linux Quick Tip | 6 comments

Little Quick Tip - Rename Multiple Files

I used to use mv in a for loop or with exec, or xargs until I found a very useful command that’s included in almost every distro

rename

Usage

$ rename oldfilename newfilename *filepattern

Example

To rename all the files in the current directory ending with .htm to .html

$ rename .htm .html *.htm

You can use RegEx and for more sophisticated selections and use -n to test your changes before you commit them.

Posted in Linux Quick Tip | No comments

OLPC XO and Guinness

Two great parts of my Festivus Travels!

dsc00010-large.JPG

Posted in Linux Hardware | 1 comment

OLPC XO First Thoughts

I got home and found my OLPC XO Laptop had arrived in time for Christmas!

Some quick thoughts

  • The packaging is awesome
  • The hardware design is top notch
  • The software looks great
  • Has the best font rendering I’ve ever seen
  • Adobe Flash isn’t working
  • The processor is too slow

I’ll take some pictures tomorrow!

Posted in Linux Hardware | No comments

No One Listens

dilbert_linux3.gif

Posted in Uncategorized | No comments

Sansa View 16GB Flash MP3 Player Linux Support

I’ve stopped using Apple products since they decided to screw all their customers over that unlocked iPhones.  Luckily (at least that’s the way I’m looking at it) my 5G iPod died a month ago and I started looking around for another MP3 player.

I wanted a flash based player with at least 8GB on-board and a MicroSD (SDHC) slot that was as attractive as the 5G iPod.  I found a great looking player in the Sansa View and the 16GB model was a great price at $200.  It was a little hard to find but after a week of looking I got one straight from SanDisk.

It had some problems reading my ID3 tags from some of my music but they released firmware 1.06 which corrected the problem.

The other problem was mounting it in Linux.  Normally when you connect it to USB it’s using the MTP Media Transfer Protocol (should be called Microsoft Transfer Protocol) which of course doesn’t work under Linux.

But by holding down the left arrow when you connect it will use the standard USB Mass Storage Protocol MSC Mass Storage Class (sometimes referred to as UMS) and mount as a normal drive.  Then you can just drag and drop your music folders and all is good in the world.

Bottom line, it’s a nice player that should work with any OS and let’s you easily backup your music.   The forums over at Any Thing But iPod where very helpful.

Posted in Linux Hardware | 4 comments

Free as in Pizza

One of the best things about living in the Silicon Valley is all the meetups cool companies host where you get to hear straight from the developers and get free food.  Even if you don’t know anything about their projects you can just show up and freeload some carbs.

Just in the last week I’ve went to Mozilla and TWIKI.NET meetups and if I had to compare the two companies on hospitality TWIKI.NET is the superior project (sorry Mozilla).

TWIKI.NET is the commercial support company for the crazy popular TWiki project. Peter Thoeny, Rod Beckström, and Amir Shobeiri hosted a great meetup at the PlugAndPlayTechCenter and served some gourmet pizza and beer.  The turnout was really good and the presentation solid.

Mozilla gave a talk on Firefox 3 (which rocks BTW) and did give me some cool stickers but the pizza wasn’t the best and worst of all no beer.  That might have been because it was at lunch but still, I need beer.  The room was packed and Mike Schroepfer the VP of engineering gave a great presentation.

So thanks Open Source, for all the free pizza and beer, oh yeah and the code!

If you’d like to get some free food for yourself checkout Meetup, Upcoming, and Lunch20.

Posted in Silicon Valley | 1 comment

Asus is Releasing Code

Asus has corrected the error it made in not releasing the code it used for ACPI. This is a great sign that when companies are called out they will support the GPL.

Posted in Linux Hardware | No comments

Next Page »