Install Webmin on Fedora 22 Using DNF

You can install Webmin by either downloading and installing the RPM directly or you can add Webmin to your repo list then use DNF to install Webmin; I prefer the latter method.

First, make sure your Fedora installation has the prerequisite dependencies installed. These dependencies are usually resolved and installed by DNF but I like to install them beforehand just to be safe. I also install vim and wget at the same time for convenience.

dnf -y install vim wget perl perl-Net-SSLeay openssl perl-IO-Tty

Second, create a repo file for Webmin:

vim /etc/yum.repos.d/Webmin.repo

Press the “I” key then copy and paste the following in your Webmin.repo file:

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

Save this file by pressing “Esc”, then “:”, then “x” (this will save your changes and exit VIM), then press “Enter”.

Third, install the Webmin GPG key:

rpm --import http://www.webmin.com/jcameron-key.asc

Fourth and finally, install Webmin:

dnf -y install webmin

You should now be able to open your favorite browser and browse to https://servername:10000/

Posted in Linux, Servers, Software | Leave a comment

2011 Buick Regal Turbo vs 2000 BMW M5

This is something of a shout-out to the guy driving the late model Buick Regal Turbo this morning. Here’s the setup: I was driving on Walnut Grove this morning and was behind a guy driving his Buick about 30 in a 40 zone so he is clearly not in a hurry to get anywhere. The light ahead of us turned red and the lane to my left was vacant so I pulled out from behind the Buick into the empty lane. When the light turned green, I didn’t floor it but I did take off with a bit more than “normal” acceleration because I had to get back over into the right-hand lane so I could exit onto the expressway; I was well ahead of the Buick now and didn’t think anything of it. I got onto the expressway and got up to speed when I noticed the Buick coming up behind me – fast. He got right on my bumper then abruptly changed into the lane to my left and floored it past me; keep in mind this is a construction zone – I’m moving along with traffic at between 45 and 50, this guy is now doing North of 70… in a 45. I’m thinking not only is this guy not a safe driver and not particularly mature in the way he drives but I’m also thinking he should know cars before he starts acting aggressive like that.

The 2011 Buick Regal Turbo, which is what I’m nearly certain his car was, is a turbo, granted, but that doesn’t mean it will kick any other car to the curb. Let’s look at some numbers. According to Motor Trend, the Regal has a 2.0 liter in-line 4 cylinder turbo engine producing 220 hp and 258 ftlbs of torque in a 3,773 lb car. It has a blisteringly fast 0-60 time of 7.1 seconds with a quarter-mile time of 15.7 at 92.8 mph. Okay, so it’s not as impressive as I would expect when I see “Turbo” as part of a car’s specifications.

Now let’s look at the car I’m driving – it’s not a turbo but she is fast. The 2000 BMW E39 M5 (‘nough said) I’m driving may be nearing 12 years old with over 100,000 miles on her but she will still hold her own. According to Motor Trend (so I’m comparing apples to apples), the 2000 M5 has a 5.0 liter (it’s actually 4,941 cc but what’s 59 cc among friends?) V8 that cranks out 400 hp and 395 ftlbs of torque in a 3,792 lb car. The M5’s 0-60 is an impressive 4.7 seconds (BMW’s official 0-60 is 5.2 seconds but every other independent review I have read has come up with either 4.7 or 4.8 and I am comparing one Motor Trend Review to another so…) with a quarter-mile time of 13.2 seconds at 102.4 mph.

I don’t think I really need to say more, especially when you consider the 2000 M5 has nearly twice the horse power to weight ratio and nearly twice the torque to weight ratio that the Buick Regal Turbo has, never mind the M5 is 2.4 seconds faster from 0-60 and 2.5 seconds faster in the quarter-mile at nearly 10 mph faster (9.6 mph to be exact).

My point in all this being that you should be very careful of the car you choose to bug, if the driver is in the right (or wrong, depending on your point of view) state of mind and you may well be put to shame.

Here are links to the two Motor Trend Reviews if you’re interested in them:
Buick Regal Turbo
BMW M5

Posted in Cars and Driving | Tagged , , , , , , , , , | Leave a comment

Installing Webmin Using YUM

I like to use webmin to administrate some aspects of my Linux servers but, for some strange reason, I’m not big on using an RPM to install or update it – I prefer YUM. Here’s how.
Install the GPG key for webmin:
wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc

Create the repo file for webmin in /etc/yum.repos.d:
vim /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

Now you are ready to install webmin using YUM:
yum clean all
yum -y install webmin perl-Data-Dumper

Posted in Linux, Servers, Software | Leave a comment

Installing Webmin Using YUM

One of the first and most useful packages I like to install once I have a Fedora server up and running is Webmin. This handy administration tool provides you with a web interface for configuring just about anything you could possibly want to configure on your server. The process for installing Webmin has gotten much more simple recently and you should be able to install it using the following commands:

su root
Password:
vim /etc/yum.repos.d/webmin.repo

Insert the following into webmin.repo (press the “i” key to insert text):

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

Save your changes to webmin.repo and exit VIM (press the Esc key then a colon (:) and an “x” then Enter will save and exit) then you’re ready to install Webmin:

rpm --import http://www.webmin.com/jcameron-key.asc
yum -y install webmin

You should now be able to browse to https://your.server.com:10000/ then login using your username and password. If you have any trouble accessing Webmin on your server, make sure you have allowed access to port 10000 through your firewall; you might also have to log in as your root user the first time then grant your account permission to Webmin under Webmin > Webmin Users > Create a New Webmin User.

Posted in Linux, Servers, Software | Tagged | Leave a comment

Driving Habits

I don’t know what has gotten into people lately, perhaps its buck fever brought on by the cooler fall weather, whatever it is has affected their driving habits for the worse. I have watched drivers drifting across lanes, running red lights, blowing through stop signs, cutting other drivers off, and speeding at insane levels (greater than 90 in a 55 during rush hour) to name a few. What I witnessed this morning was one of the worst examples of reckless driving I think I have ever seen.

I was driving in to work when a pickup truck flew past me on Walnut Grove Road somewhere between Germantown Parkway and Farm road. I was in the right-hand lane maintaining 55 mph; given how quickly this guy passed me, I would guess he was going 80 mph or faster – in a 55 mph zone. The truck he was driving was a copmany truck that had one of those large yellow “How’s My Driving” decals on the back but I didn’t get a chance to read the toll-free number, much less the vehicle ID since this guy passed me and was out of sight so quickly.

The traffic light at Farm Road had just turned green as I approached it and I could see that the truck that had been going so fast had been stopped by the light. Traffic was pretty heavy from the Humphrey’s overpass to the junction at I240, I watched the guy in the truck dart past other cars and careen into and out of different lanes as he worked his way to the ramp off of Walnut Grove onto I240, which is where things got really ugly.

The line of cars trying to get onto I240 was bumper to bumper, there was an SUV that had a little blue car following close behind it – there was less than a car length between the two. The white pickup truck decided that was where he wanted to slip into the line of cars, nevermind there was less than no room for him to get in there. I watched as he swerved toward the lane two or three times I assume with the intention of forcing the blue car to brake hard, creating an opening this guy could get into. The blue car wasn’t playing that game and stayed tight on the back of the SUV. The white pickup truck finally turned his turn signal on to let other drivers know that he wanted over but the blue car had obviously had enough of this guy’s antics and did not make an opening for him.

This is all taking place in the space of about fifteen to twenty seconds; I was far enough behind all of this action that I had a very good view of everything that went on. It is also worth noting that there was ample room behind the blue car that the white truck could have slipped into had he been willing to slow down just a little and let the blue car go ahead of him. Not that the person driving the blue car couldn’t have seen that this guy was out of control and could have slowed down himself to let the pickup truck in.

The guy driving the white truck abrubtly swerved into the lane occupied by the blue car, the blue car had to brake hard and swerved toward the curb, almost hitting the curb; the driver of the blue car layed into his horn (I probably would have done the same thing) so the guy in the white pickup truck – a company truck with a logo on the side and tailgate along with that “How’s My Driving” decal – rolled down his window and flipped off the guy driving the blue car. Normally, I would get onto I240 here but I didn’t want to be anywhere near these idiots so I stayed on Walnut Grove. As I drove past the exit ramp, I was only able to get a partial number and ID off the “How’s My Driving” decal (800-800-???? and Y4V???). I wish I had a photographic memory because I would have definitely called that number to let someone know just how safely and courteously this driver was behaving.

Posted in Cars and Driving | Tagged , , , , | Leave a comment

Original Author Unkown:

Sometimes, we try too hard to get to the greener grass, in the process we end up in trouble.

Cow Stuck Under Fence

When you find yourself in trouble and you are stuck in a situation that you can’t get out of, there is one thing you should always remember: Not everyone who shows up is there to help you!

Posted on by Andy | Leave a comment

Using Tail with Grep

I recently needed to search through my mail log to see if an email had been sent when someone told me it had been sent. I knew I could use grep for this but had no clue how to make it work so that it would show me only the data I needed to see. I did a quick review of the man page for grep and came up with a very simple search. To get the information I needed, I knew I wanted to search the maillog in /var/log and I knew I needed to see when, or even if, sender@domain.com had sent their email; here is the command I used:

# tail -n 100 /var/log/maillog | grep sender@domain.com

The tail command returns output from the log file I direct it to parse (in this instance, /var/log/maillog), the -n option returns the number of lines I specify – in this case, 100.
This query didn’t return any results which made me question the command I had used; to verify my query was valid, I ran the command again using my email address (since I knew I had sent an email from my gmail acocunt to my personal email account that day). This time I got a result back showing me sending an email from my gmail account; here’s the command and the resulting output:

# tail -n 100 /var/log/maillog | grep me@gmail.com
# Jul 19 12:24:25 sendmail[25379]: p6JHOKeI025379: from=me@gmail.com, size=1667, class=0, nrcpts=2, msgid=, proto=ESMTP, daemon=MTA, relay=mail.gmail.com [xxx.xxx.xxx.xxx]

Now let’s say I want to actively watch for an email to come in to the server so I can watch for an email from sender@domain.com; all I have to do is add the option “f” so that the tail command will “follow” the log file and report any changes to the log file that match my search criteria:

# tail -fn 100 /var/log/maillog | grep sender@domain.com

Since my query didn’t return any results, I know that, for whatever reason, the email sent from sender@domain.com isn’t making it to my server; oddly enough, about six hours later an email from them appeared in the logs – funny how that works…

Posted in Linux, Servers, Software | Tagged , , , , , , | Leave a comment

Now That’s Ironic

Our neighbors, who have stopped by to pay us a couple of “friendly” visits about our allegedly draining water into their yard when we flush our pool’s sand filter (never mind we have a cartridge filter that we can’t back flush and the drain valve for the pool connects directly to our sewer line), are watering their yard. What’s the irony? In the amount of time they have been running their sprinkler, they have used between 900 and 2,700 gallons of water (more than 3 hours at anywhere from 5 to 15 gallons per minute). The pool pipe I broke a couple of weeks ago sent less than 3,000 gallons of water through our back yard into theirs; I simply saved them the trouble of having to water their grass that day. What about the chlorine in the water? The consensus amongs lawn experts I have either talked to or have documentation from tell me that the amount of chlorine in pool water is not sufficient to harm the grass and may even be benificial by killing off harmful bacteria and insects. I also keep the chlorine level in our pool so low, between 1ppm and 2ppm, that it just keeps the algae and cloudiness under control. Should I point out that there is chlorine and fluoride in tap water, the same water they are using to water their lawn? According to the 2010 Water Quality  Report provided by MLGW, the chlorine in tap water in Memphis averages 2.2ppm which is slightly above the levels present in our pool water.

Posted in Pool | Tagged , , , | Leave a comment

I would like to point out that today is June 1st and the outside temprature gauge in my car was reading 103º on the way home today. Looks like we’re in for a long, hot summer.

Posted on by Andy | Leave a comment

Toad

I found another Toad hanging out around the potato barrels this morning; he waited patiently while I photographed him then went back to finding his breakfast.

Posted in Gardening | Tagged , , , | Leave a comment