Archive

Archive for the ‘Linux’ Category

Configuration Management (Part III): Managing your configuration

August 9th, 2010 No comments

This one has been sitting idle for a couple of weeks.  Lethargy kicked in, and work was consuming too much of my brain power, but here it is, I’m working on getting it out the door.  In this episode, we’ll be running through the basics of svn, and getting it working with the files we have in place, adding new files, reverting, and planning for big upgrades… Note, this is more of an SVN primer than anything.  If you know how to tag, branch, revert, have a good general knowledge of SVN, this one can be skipped.

Read more…
Categories: Linux, Technology Tags:

Configuration Management (Part I): Introduction

June 20th, 2010 1 comment

I’ve been asked to write a post on configuration management, and version control by a friend, Steven Klassen. Instead of a single post, I’m going to break this into several posts as some parts might be unimportant to some, and they can easily skip a whole post. I’ll be posting this over a few days, so stay tuned. If you’re not subscribed to my RSS feed, now would be a great time.

Read more…

Categories: Linux, Sys Admin, Technology Tags:

Hiding web server information

April 17th, 2010 1 comment

In a case of what I’d call security through obscurity, the Linux Poison blog has a posting up on how to hide the PHP information in your web server. The idea is that the less a potential hacker knows about a system, the better. Here, I’m going to take it one step further, and show you the impact of some other options, and what data gets hidden.

Read more…

Categories: Linux, Sys Admin, Technology Tags:

MySQL: Error 127 when reading table

January 12th, 2010 No comments

After today’s little hiccup, I noticed the random image in the top right of my page throwing an error message, something about ERROR_STORAGE_FAILURE. A little digging about, I stumbled across an error in the daemon.log file…

mysqld[4478]: 100112 20:31:04 [ERROR] Got error 127 when reading table g2_ItemAttributesMap

Fortunately, most of the times, this is relatively easy to resolve.

mysql> USE mydbname;
mysql> REPAIR TABLE g2_ItemAttributesMap;
+----------------------+--------+----------+----------+
| Table                | Op     | Msg_type | Msg_text |
+----------------------+--------+----------+----------+
| g2_ItemAttributesMap | repair | status   | OK       |
+----------------------+--------+----------+----------+
1 row in set (0.01 sec)

As you can see from the Msg_text column, the command completed OK. A quick refresh of the blog page, and the error is now gone, and the random picture is back…

Categories: Linux, Open Source, Technology Tags: ,

Corral those processes…

January 12th, 2010 No comments

Running on from today’s outage, I’ve put a few more safety measures in place. I’ve always had old faithful Nagios watching over my servers, however sometimes a little more is needed. Introducing Monit into the picture…

Read more…

Categories: Linux, Open Source, Technology Tags:

Tinkering with Temperature (Part Deux)

August 1st, 2009 No comments

As a follow up to the previous Tinkering with Temperature post, here is more on what I did, and how.

Read more…

Random Mail Stats

July 20th, 2009 1 comment

I’ve been meaning to get some proper stats setup for my mail server, but until then, I’ve been mostly content with reading the LogWatch reports from my server. It has been dutifully analyzing my log files, and giving me all kinds of useful data, such as the mail stats from Saturday, 18th July…

Read more…

Debian Lenny, and tab auto-complete

June 28th, 2009 No comments

I’m currently working on rebuilding a server on a project, and went to hit the tab key to auto-complete, when I was presented a delightful error…

$ vim RE-sh: <( compgen -d — ‘RE’ ): No such file or directory
-sh: <( eval compgen -f -X ‘*.@(o|so|so.!(conf)|a|rpm|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)’ — $(quote_readline $cur) ): No such file or directory

This is actually a reported bug in Debian [#502804] and is caused by using /bin/sh as a shell, rather than /bin/bash due to some POSIX compliant code.  A simple change to the shell until they release the fix..

usermod –s /bin/bash jangliss

And we’re all set again.

Categories: Linux Tags: ,

Sad Day…

April 7th, 2009 3 comments

Today I’ve decided to finally shut down a trusty server.  It’s been the office firewall for 4+ years, happily chugging away on an old HP desktop, running Gentoo linux.

$ uptime
08:44:48 up 267 days, 17:51,  1 user,  load average: 0.00, 0.00, 0.00

It’s currently been running for nearly a year.  It’d be double that if we’d not had an issue with a snake, and the office transformed.  Before that, it’d been running without issues for nearly 2 years, where the failure before that was caused by a PSU fan failure.

It was recently phased out with some network reconfigurations, and is no longer needed…

Good night lestats.

Categories: Linux, Technology, Work Tags:

Bash One-Liners

February 4th, 2009 2 comments

I love one-liners to make my life easier.  Today I decided to clean up a directory full of CSV files, and compress them down.  After all, a 2MB CSV file can be reduced quite substantially, and I had 300 of them.

Read more…
Categories: Linux, Work Tags: ,