Category Archives: tips & tricks

PHPHOST BLOG

Web Hosting Related Articles You May Need

[one-liner]: Howto Install Firefox 10.x on Fedora 14, CentOS 5.x & 6.x

Background

If you’re like me and still hanging back on Fedora 14, here’s a way to stay on the latest versions of Firefox without having to upgrade Fedora just yet.

Solution

Thanks to this post on the if-not-true-then-false blog (aka. if !1 0), it’s pretty easy to get firefox 10 working just fine on Fedora 14. Here are [...] Continue reading

Posted in centos, fedora, firefox, one-liner, redhat, rhel, Syndicated, tips & tricks | Leave a comment

[one-liner]: Running a Windows Program from a HTML Page in Internet Explorer

Background

We recently needed a way to launch executables on a Windows system, but wanted to run them from a web browser, locally. Turns out to be pretty easy with a little bit of VBScript.

Solution

Here’s a quick example on how to make a .html file that can be used to launch applications locally. This seems like [...] Continue reading

Posted in HTML, one-liner, script, Syndicated, tips & tricks, vbscript, web, windows | Leave a comment

[one-liner]: Using the Command lsb_release to Determine Linux Distro Version Info

Background

If you need to determine which version of Linux you’re using you can use the command lsb_release. It’s part of the Linux Standards Base which is a specification that was created by the Linux Foundation.

Solution

Obviously there are other ways to do this, for example, on a Redhat based system you can look for the file [...] Continue reading

Posted in linux, LSB, one-liner, Syndicated, sysadmin, tips & tricks | Leave a comment

How to Analyze Network Performance using iperf on Fedora, CentOS & Windows

I’ve been experiencing some slow network connections between a couple of Linux systems (CentOS), Window systems (Server 2008R2), and a NAS device (Netgear ReadyNAS) and wanted to confirm that my network connections weren’t the source of the problem. To limit any variability due to different tools, I decided to use iperf, which can run on [...] Continue reading

Posted in centos, fedora, linux, networking, performance, redhat, rhel, Syndicated, sysadmin, tips & tricks, windows | Leave a comment

[one-liner]: Redirecting an Already Running Program’s STDOUT to a File using dupx

Background

Recently I came across this really cool UNIX tool called dupx. I was looking for a way to connect to a program’s STDOUT and STDERR after I had already started it. This was a long running, think 30+ hours job, and I didn’t want to have to stop and restart it. As is the case [...] Continue reading

Posted in centos, fedora, linux, one-liner, rhel, shell, Syndicated, sysadmin, tips & tricks | Leave a comment

[one-liner]: Adding Git Repos to SparkleShare Doesn’t Appear to Work

Background

I’ve been using SparkleShare for almost a year now and it has impressed me with how well it’s able to act as my Dropbox replacement. It took a little coaxing, mainly around setting up a unique ssh key pair just for SparkleShare, so that I could allow it to run both when I’m at home [...] Continue reading

Posted in git, one-liner, sparkleshare, Syndicated, tips & tricks | Leave a comment

[one-liner]: Adding Git Repos to SparkleShare Doesn’t Appear to Work

Background

I’ve been using SparkleShare for almost a year now and it has impressed me with how well it’s able to act as my Dropbox replacement. It took a little coaxing, mainly around setting up a unique ssh key pair just for SparkleShare, so that I could allow it to run both when I’m at home [...] Continue reading

Posted in git, one-liner, sparkleshare, Syndicated, tips & tricks | Leave a comment

[one-liner]: Using tcprobe to Detect a DVD’s Video Format, PAL or NTSC, via the Command Line

Background

Having kids I’m always dealing with DVDs, either backing them up or repairing them. Recently we received a bunch of DVDs from a friend of various kid movies. Some of them just refused to play in our DVD player and being a geek who’s curious I wanted to better understand why. Turns out the DVDs [...] Continue reading

Posted in DVD, fedora, one-liner, redhat, Syndicated, tips & tricks | Leave a comment

[one-liner]: Getting Started with Object Oriented Perl, Moose, and MooseX

Background

I’ve started to focus on getting more proficient with Object Oriented programming, specifically using Perl. I’ve used the more traditional approaches of OO in Perl and find them way too wordy, compared to a more modern language such as Ruby. So when I came across Moose and MooseX and was intrigued. They seemed to really [...] Continue reading

Posted in one-liner, OOP, perl, programming, Syndicated, tips & tricks | Leave a comment

[one-liner]: Opening CAD/CAM .dwg/.dxf Files under CentOS/Fedora/RHEL

Background

A co-worker of mine handed me some .dwg & .dxf files which I’d never seen before. Turns out they’re AutoCAD/AutoDesk files, but I had a hard time finding a decent viewer under Linux.

.dwg – a binary file format used for storing two and three dimensional design data and metadata
.dxf – Drawing Interchange Format, or [...] Continue reading

Posted in CAD, centos, fedora, one-liner, redhat, rhel, Syndicated, tips & tricks | Leave a comment