Category Archives: rhel

PHPHOST BLOG

Web Hosting Related Articles You May Need

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

CentOS RPM Tutorial Part 3 – Building your own RPM of JBoss

Getting Started

In this 3rd instalment of my series on RPM packages I’m going to show an example where I package up a zip file and roll it into an RPM file. For this example I’ll be packaging the Java Application Server, JBoss 4.2.3.GA. NOTE: Refer to my previous posts (part 1 & part 2) regarding [...] Continue reading

Posted in centos, linux, package management, rhel, rpm, Syndicated, tutorials | Leave a comment

[one-liner]: Increasing a KVM guest’s Memory on CentOS 5

Background

Recently the need came up to increase the amount of RAM I had allocated to an already running KVM guest VM on a CentOS 5 KVM host. This is a pretty easy task using other virtualization technologies so I assumed, maybe foolishly, that this would be an easy task using KVM too. Looking [...] Continue reading

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

[one-liner]: How to Change the Hostname on a Fedora/CentOS/RHEL System

Background

Changing your system’s hostname is probably one of the most confusing things to do on a Redhat based Linux system. Turns out there are several ways to do it, part of the reason why it’s so confusing … I guess. Here’s my attempt to capture as many of them that I’m aware of.

Solution

There are essentially [...] Continue reading

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

[one-liner]: Managing RPM Repo GPG keys on a RPM base Distro (Fedora/CentOS/RHEL)

Background

Occasionally you might need to remove an RPM GPG signing key from your system. These are the keys that typically get installed using a command similar to this:

1
rpm –import http://packages.atrpms.net/RPM-GPG-KEY.atrpms

Turns out they’re pretty easy to remove….

Solution

The key is to understand that most of the same commands that you’d use to query your RPM database apply [...] Continue reading

Posted in centos, fedora, linux, one-liner, package management, redhat, rhel, rpm, Syndicated, sysadmin, tips & tricks | Leave a comment

How to Override DHCP Settings on a Fedora/CentOS/RHEL Linux Box

Background

If you maintain your own DNS server and internal domainname then you’re going to want to read this article! I’m going to cover how you can override settings that are coming from your ISPs DHCP sever with your own internal values progmatically.

Little bit more Background

Now before I go too much further, I need to give [...] Continue reading

Posted in centos, dhcp, fedora, linux, redhat, rhel, Syndicated, tips & tricks | Leave a comment

[one-liner]: Connecting to VMware Server 2.x from Linux without using a Browser

Background

Here’s a quick tip on how to connect to VMware server 2.x remotely from a Linux box. In this case it’s a Fedora 14 system but this approach should work just fine from any Red Hat distro such as RHEL and/or CentOS.

Solution

2 so-so workarounds

One of the annoyances of using VMware Server 2.x, is that it’s [...] Continue reading

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