Category Archives: centos

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]: 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

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]: 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

[one-liner]: Getting Networking Info from the Command Line using NetworkManager’s nm-tool Command

Background

This is just a quick post to capture a pretty useful networking command line tool, nm-tool, that’s included with NetworkManager.

Solution

nm-tool is really nice in the sense that it takes information from a lot of other command line tools, (such as ifconfig, iwconfig, iwlist, etc.) and integrates it into a single command. For example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# output from [...] Continue reading

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

[one-liner]: Installing LibreOffice on CentOS 5 & 6

Background

I recently took the opportunity to install LibreOffice on my CentOS 5 system. The same steps worked on a CentOS 6 system as well. This blog post, LibreOffice for CentOS 5 or CentOS 6 install howto, was extremely helpful in figuring out how to accomplish this task.

Solution

This was pretty straight forward. The following steps, were [...] Continue reading

Posted in centos, LibreOffice, one-liner, OpenOffice, Syndicated, tips & tricks | Leave a comment

[one-liner]: Determining a CD/DVD Drive’s Write Speed Capabilities under Fedora/CentOS/RHEL

Background

Here’s a quick primer on how to determine the capabilities of a CD/DVD drive you may have on your Linux laptop or desktop using the little known command wodim. In truth, wodim is actually the app behind cdrecord & dvdrecord, which are little more than aliases.

NOTE: it’s available as wodim-1.1.11-3.fc14.x86_64 in the default Fedora 14 [...] Continue reading

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

[one-liner]: Archving a Directory Tree into a CD or DVD via the Command Line Using mkisofs on Fedora 14 & CentOS 5

Background

Recently I was putting together a script to build an archive of all the various files that a project was comprised from. One of the final tasks was to burn the entire lot of files to a CD or DVD, so I took the opportunity to figure out how to do this from the command [...] Continue reading

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

[one-liner]: How to Backup a Movie DVD via the Command Line on Fedora 14 & CentOS 5

Background

Have you ever wanted to make a backup copy of a DVD via the command line? I don’t really care about the politics/legal issues around this simple task, I have 3 kids and don’t really feel like purchasing multiple copies of the same discs. So here’s a quick and dirty way to accomplish the [...] Continue reading

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