Kevin Hatfield’s Blog

VirtualBox 3.0 Beta 1 adds Gaming Support!

by khatfield on Jun.19, 2009, under Daily Blog, Open Source Projects, Tech Blog

Windows/Mac/Linux: If you’re a gamer or heavy graphics user of virtual machines, VirtualBox 3.0 has an early beta out that introduces OpenGL 2.0 and Direct3D support. If you have no clue what that means, the release has other goodies, too.

The graphics support for Windows, Linux, and Solaris guest machines are the marquee features in the upcoming 3.0 release, but a lot of other fixes and tweaks are looking to make the cut, too, including a streamlined settings window, better synchronization of shared folders between Linux and Windows host/guest setups, and continued optimizing of virtual processors. The OpenGL and Direct3D additions will, of course, depend heavily on your hardware, and how much video memory you allot to your virtual machines, but it should clear up quite a few compatibility problems.

Hit the link below to read up on VirtualBox 3.0 beta 1 and grab a free binary for Windows, Mac, or Linux systems, and tell us what features VirtualBox needs to add to win over your heart in the comments. Want to get started with the ‘Box, but find it all a bit too much? Check out LifeHacker’s Guide to Virtualbox!

Leave a Comment :, , , , , , , , , more...

Free WinRAR 3.51 Download

by khatfield on Apr.15, 2009, under Daily Blog, Tech Blog

WinRAR decided to have a one day free-for-all promotion, giving away license keys to anyone who was on thier mailing list. So obviously, if you were not on their mailing list you had no idea of the free giveaway.

With promotion expired, there is still a way to get this free key. Here’s the trick, they sent the same key to all 40,000 users that benefited from the promotion, and now that key is available for download from Simtel (one of WinRAR’s partners in this).

* Download the key: WinRAR Free Key 3.51
* Now download WinRAR version 3.51
* Install WinRAR 3.51, go to where you downloaded the key (rarkey.rar) and unpack it. You’ll get a rarreg.key that you’ll have to copy in Program Files-WinRAR (the installation folder for WinRAR). After that you should see Registered to “PCA Special Offer”

Leave a Comment :, , , , , , , more...

Fast File Copy – Linux!

by khatfield on Mar.31, 2009, under Daily Blog, Daily Linux Tip, Open Source Projects, Tech Blog

If you’ve ever had to move a huge directory containing many files from one server to another, you may have encountered a situation where the copy rate was significantly less that what you’d expect your network could support. Rsync does a fantastic job of quickly syncing two relatively similar directory structures, but the initial clone can take quite a while, especially as the file count increases.

The problem is that there is a certain amount of per-file overhead when using scp or rsync to copy files from one machine to the other. This is not a problem under most circumstances, but if you are attempting to duplicate tens of thousands of files (think, server or database backup), this per-file overhead can really add up. The solution is to copy the files over in a single stream, which normally means tarring them up on one server, copying the tarball, then untarring on the destination. Unless you are under 50% disk utilization on the source server, this could cause you to run out of space.

Brett Jones has an alternative solution, which uses the handy netcat utility:

After clearing up 10 GBs of log files, we were left with hundreds of thousands of small files that were going to slow us down. We couldn’t tarball the file because of a lack of space on the source server. I started searching around and found this nifty tip that takes our encryption and streams all the files as one large file:

This requires netcat on both servers.

Destination box: nc -l -p 2342 | tar -C /target/dir -xzf -
Source box: tar -cz /source/dir | nc Target_Box 2342

This causes the source machine to tar the files up and send them over the netcat pipe, where they are extracted on the destination machine, all with no per-file negotiation or unnecessary disk space used. It’s also faster than the usual scp or rsync over scp because there is no encryption overhead. If you are on a local protected network, this will perform much better, even for large single-file copies.

If you are on an unprotected network, however, you may still want your data encrypted in transit. You can perform about the same task over ssh:

Run this on the destination machine:
cd /path/to/extract/to/
ssh user@source.server 'tar -cz -C /source/path/ *' | tar -zxv

This command will issue the tar command across the network on the source machine, causing tar’s stdout to be sent back over the network. This is then piped to stdin on the destination machine and the files magically appear in the directory you are currently in.

The ssh route is a little slower than using netcat, due to the encryption overhead, but it’s still way faster than scping the files individually. It also has the added advantage of potentially being compatible with Windows servers, provided you have a few of the unix tools like ssh and tar installed on your Windows server (using the cygwin linked binaries that are available).

Leave a Comment :, , , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!