Category Archives: one-liner

PHPHOST BLOG

Web Hosting Related Articles You May Need

[one-liner]: Using the Linux Command, dirsplit, to Dynamically Backup a Directory Over Multiple DVDs

Background

At my day job I deal with a fair amount of image data. We typically are shipping the data out on either hard drives, thumb drives, or via SFTP. On occasion we will some times burn it to a CD and/or a DVD. But until today all the data was either large sets (200-400GB) variety, [...] Continue reading

Posted in backup, centos, DVD, fedora, iso, one-liner, redhat, rhel, script, Syndicated, sysadmin, tips & tricks | Leave a comment

[one-liner]: Script to Cleanly Start Dropbox During a boot sequence on Linux (Fedora & CentOS)

Background

I’m an avid user of Dropbox. I run it on all my Linux and Windows systems, and it simply just works. However, one annoying thing that I’ve just dealt with for a while now on Linux, is when I reboot my laptop, Dropbox, doesn’t come up correctly due to the wireless network not being up [...] Continue reading

Posted in dropbox, linux, one-liner, script, Syndicated, tips & tricks | Leave a comment

[one-liner]: Howto get Firefox 10.x to Launch a BitTorrent Client via a Magnet Link on Linux

Background

If you’ve ever used BitTorrent you’re probably familiar with having to download a .torrent file and then opening it in a BitTorent client such as Vuze (previously known as Azureus). You may not however be that familiar with magnet links, so called trackerless torrents.

The difference? Where a .torrent is a file that includes among other [...] Continue reading

Posted in bittorrent, firefox, linux, one-liner, Syndicated, tips & tricks | Leave a comment

[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

[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