Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Sunday, March 21, 2010

Symantec EndPoint Protection

My company uses Symantec Endpoint Protection on all the windows servers. I've known for some time that there was a Linux client, but over the last week Nessus security scans were run against both some really old legacy Solaris servers, the Linux servers and also against the windows servers.

Now the Windows servers were protected by EndPoint and received a clean bill of health.

The Linux servers all have iptables firewalls and SELinux in enforcing mode, and so generated a few false positives, but were generally clean. The worst was that a few web servers hadn't had the TraceEnable Off parameter added to their configuration.

The Solaris servers fared worse. Simply due to their age and the fact that their purpose had been in a development environment.

The thing about EndPoint which I hadn't previously realised was that it detected attempted intrusions and refused further connections from those hosts originating the attacks. In this way it seemed to be operating much much like one of the modes that it was possible to configure into PortSentry. (It is really surprpising to think that the last release of  PortSentry is almost seven years old now!) Consequently, I began lobbying for additional budget to purchase licences for the additional platforms.

The ability to have a single "management station" control the security protection across heterogenous server environment is incredible.

That's that for now!

Friday, March 12, 2010

What a PITA!!

This week I've been configuring a couple of new HP servers, ProLiant DL 360 G6s to be precise. They were configured to have 8 internal disks so the internal CD/DVD-ROM had to be sacrificed.

So to configure them, I temporarily attached a USB CD_ROM drive, Keyboard and Mouse and attached a monitor.

Having installed the latest CentOS x86_64 Linux from CD on the first one, I removed the CD-ROM and rebooted. It hung coming up configuring the USB storage driver!

So I spent a day googling for help. I re-installed Linux half a dozen or so times. I downloaded the DVD and followed the instructions to make that available via both HTTP and NFS and tried using the first CD to boot from and then installing across the network. Actually that was considerably faster than the CD method!


Nothing changed the hang during boot. Always on the USB storage driver installation.

As a punt with nothing else to lose, I unplugged the USB keyboard and mouse and rebooted.

The b*$#*^d box booted all the way.

I plugged the keyboard in and it was recognized without fuss and was immediately useful.

So it goes! Some days are just like that.

Tuesday, February 16, 2010

Some good links

I came across a blog just today by following a link on Scott Lowe's bookmarks: Linux Performance Tuning

This is really useful information. All pulled together in one place. Some of it might seem common sense, but as has frequently been said it is surprising how uncommon common sense can be.


As I wrote in my previous post about recovering from a disaster, documentation on your environment is vital. And these two links below provide that.


I've only just noticed that RVTools has been considerably updated. This is an excellent tool and the more so for being free. I feel a bit guilty about  not being in a position to donate some of my employers' money via paypal.

Actually, the new feature that I'm most excited by is one that has been there for several versions now. Specifically, the ability to export all the information in csv format. And to do that from the command line!


I was browsing sunfreeware and came across sys_diag, a script generated by Todd Jobson. For doumenting the state of a Solaris server, it looks damn comprehensive. I intend to use it on the Solaris systems at my work and save the results into our database of server information.

Thursday, February 11, 2010

Strange Virtualbox Error

Yesterday, I upgraded to the latest version of Virtualbox - its my favourite virtualisation product for the laptop/desktop market. I like to stay up to date.

Suddenly the shared folders weren't!

The virtual network was still working, so that wasn't the problem.

A quick 
lsmod | grep vboxsf
produced no result. But entering
modprobe vboxvfs
returned the error message:
FATAL: Module vboxvfs not found.

Aha! Something I could use. I reckoned that something had happened to the virtualbox addins. Which doesn't completely make sense. I could see that they might have become out of date, but not that they "disappear". Lets try re-adding those additions.

I selected Install Guest Additions from the devices menu and a cdrom image appeared the VM desktop. A quick
mount /dev/cdrom /media/cdrom
Ignore the messages about read-only filesystems and then 
cd /media/VBOXADDITIONS_3.1.2_56127
and enter
/bin/sh VBoxLinuxAdditions-x86.run 
Answer the questions as appropriate. And Bob's your uncle.
# mount -t vboxsf Downloads /mnt
# mount 
...
Downloads on /mnt type vboxsf (rw)
#

Its all there. And that's that!

Monday, February 8, 2010

SNMP on grml/debian

I've been adding some additional servers into my Zenoss system. As most of my Linux boxes are running CentOS Linux, adding them in is no problem.

But I have one grml system. Why different? I had downloaded an appliance from the vmware community site. I needed a bugzilla system - there was one ready built - it seemed like a good idea at the time!

So,...
I had checked that snmp was installed on the system.
I had edited the /etc/snmp/snmpd.conf file to include the settings I wanted.
I had started the snmpd service.

But I couldn't perform an snmpwalk from my zenoss server and couldn't add it as a device into Zenoss!

Some digging with netstat revealed that port 161 was only listening for the localhost/127.0.0.1! Which was confusing because I wasn't configuring it to be like that.

Where was it picking that up from?

A quick google, quickly found these two sites, HowToForge & DebianWiki with essentially the same information.

There are some default setting in /etc/default/snmpd including the value of the environment variable SNMPDOPTS.
Out of the box, it is set to
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
which I chenged to
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'

I restarted the snmpd service and checked the result from netstat -an
Huzzah!

I checked the snmpwalk and saw screeds of stuff fly up my console. And lastly, I successfully added the box into zenoss.

And that's that!

Sunday, February 22, 2009

Linux Magazines - the March issues

Not a particularly good month for either magazine. Although to an extent for any topical magazine it is acase of working with what you have.

The DVDs provided by the magazines were surprisingly similar:
LinuxFormat: Slackware 12.2, OpenSuse 11.1 & Mint 6
LinuxMagazine: Slackware 12.2, Fedora 10

Personally I only found a couple of interesting articles across both magazines.

LinuxFormat had an article about GIT, and the ext3cow filesystem.
LinuxMagazine had an article on parallelizing bash  scripts, the Conky system Monitor and Debian's Fully Automated Installation mechanism.

I have to say that FAI was remarkably similar to Sun's Jumpstart technology.  Which is a good thing. Jumpstart is a really useful tool. Of course there should be similarities as they are trying to do the same thing, if for different OSs. 

Whilst LinuxFormat dedicated 4 pages to GIT, whereas LinuxMagazine had a three inch column referring to David Howell's The Git Hater's Guide to the Galaxy - which shows a little pretention. Or perhaps was an attempt to indicate the level of humour the author was attempting to inject into the dry subject of software configuration management.

Conky is perhaps most similar to Windows Taskmgr. Until this article it hadn't occurred to me that I didn't use such a tool when I run Linux desktops, but it is usually the first thing I fire up, if I haven't already added it to my startup, on Windows.

ext3cow is an interesting development, mirroring the UFS snapshot facility on Solaris. I'd like to really look at ext3cow in much more detail though before considering using it to replace the NetApps at work.

And that's that!

Tuesday, February 17, 2009

First thoughts on Accurev

I've just installed Accurev.

On a Linux box as the server and a client. And on a XP box as just a client.

Admittedly, the "boxes" were actually virtual machines running on Sun's xVM VirtualBox software - my favourite free PC Virtualization software. At the moment, anyway. Starting up an XP image on a PC running XP is much faster than booting the XP machine!

Anyhow, back to Accurev.

It is was a very smooth installation. As you'd expect from a commercial application. The installation begins by listing what will happen, and ends by showing you the same list with the success status of each item. A very favourable installation compared to the installation of Subversion a couple of months earlier. Installing Subversion wasn't bad experience, mind! Just not as polished as Accurev.

I took screenshots all the way through the install process with the aim of throwing them up on the web, but frankly I do not think it is necessary. Unless you are an irredeemable newbie, it is just so straightforward. Just "Click Next to continue". Well... Almost. There was a small amount of text to type in.

Perhaps the only benefit from showing you a screen shot would have been to demonstrate that the two installations were essentially the same. A benefit of Java technology!

The one thing I had to remember was to copy the keys.txt licence file I was sent by Accurev to the /opt/aacurev/storage/site_slice/ directory to overwrite the empty keys.txt file already there. Once done, I was licensed.

I've only been using the client for a couple of days now. Again it is looks and feels the same across the two platforms. Again the benefit of using Java. Having used ClearCase and Attache on *nix and Windows for 13-ish years now, I'd have to say that any ClearCase user would feel at home.

Adding files and directories is straightforward. Promoting those files to the parent stream was also quite straightforward. I might not have that terminology quite correct just yet. However, by comparison to Perforce it seems much more userfriendly. That also might not be fair on Perforce. We haven't paid maintenance on Perforce since , well probably since 2002!

That's that for now. I'll keep posting on my progress.

Monday, January 12, 2009

Modifying the Keyboard on Debian Linux

So I've downloaded the SyslogAppliance v0.0.4 to act as a Syslog Server in the company's DMZ. I ran the appliance initially in VM Player and then used the Enterprise Converter to import the appliance into a Virtual Machine on our VMwareESX server.

By default, the appliance is set up for a US audience with US keyboards. That's not a problem. After 20+ years in IT, you expect that and I know my way around a US keyboard, especially as I work for an American concern. Anyway, the ReadMe.txt file that's packaged with the appliance provides you with information on how to configure a UK keyboard.
...
VMWare Settings
- 256 MB memory (you should increase this for large log volumes)
- 64GB virtual disk
- listening on port 514/UDP and port 514/tcp
- US keyboard, to install a different local, do
$ apt-get install console-setup
$ dpkg-reconfigure console-setup
...

Obviously, despite both being Linux, it uses a different mechanism from that used by rPath in an earlier post on this blog. But two command lines isn't too painful.

appliance:/etc# apt-get install console-setup
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package console-setup
appliance:/etc#

Oh. That's unfortunate! Maybe this won't be so easy.

15 minutes of googling around apt-get and reading the more obvious looking results.

appliance:/etc# apt-get update
Get:1 http://security.debian.org lenny/updates Release.gpg [189B]
Ign http://security.debian.org lenny/updates/main Translation-en_US
Get:2 http://ftp.us.debian.org lenny Release.gpg [189B]
Get:3 http://security.debian.org lenny/updates Release [40.8kB]
Ign http://ftp.us.debian.org lenny/main Translation-en_US
Get:4 http://ftp.us.debian.org lenny Release [74.5kB]
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Get:5 http://security.debian.org lenny/updates/main Packages [18.1kB]
Get:6 http://security.debian.org lenny/updates/main Source [5175B]
Get:7 http://ftp.us.debian.org lenny/main Packages [6942kB]
Get:8 http://ftp.us.debian.org lenny/main Source [2982kB]
Fetched 10.1MB in 23s (423kB/s)
Reading package lists... Done
appliance:/etc#
appliance:/etc# apt-get install console-setup
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
console-terminus xkb-data
The following NEW packages will be installed:
console-setup console-terminus xkb-data
0 upgraded, 3newly installed, 0 to remove and 70 not upgraded.
Need to get 1539kB of archives.
After this operation, 5968kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.us.debian.org lenny/main console-terminus 4.26-2.1 [420kB]
Get:2 http://ftp.us.debian.org lenny/main xkb-data 1.3-2 [645kB]
Get:3 http://ftp.us.debian.org lenny/main console-setup 1.28 [474kB]
Fetched 1539kB in 5s (264kB/s)
Preconfiguring packages ...
Selecting previously deselected package console-terminus.
(Reading database ... 18500 files and directories currently installed.)
Unpacking console-terminus (from .../console-terminus_4.26-2.1_all.deb) ...
Selecting previously deselected package xkb-data.
Unpacking xkb-data (from .../xkb-data_1.3-2_all.deb) ...
Selecting previously deselected package console_setup.
Unpacking console-setup (from .../console-setup_1.28_all.deb) ...
Setting up console-terminus (4.26-2.1) ...
Setting up xkb-data (1.3-2) ...
Setting up console-setup (1.28) ...
appliance:/etc#

Despite the quantity of output, it didn't take more than 10 to 20 seconds.

Now to configure the software.

appliance:/etc# dpkg-reconfigure console-setup
























And that's that!

Thursday, December 25, 2008

Linux Magazines

For the longest time I had preferred Linux Format. But the latest issue of Linux Magazine was really useful. At least for this month's edition I prefer it!

The Linux Magazine introduced me to new software that I had previously not heard of. Also, it seems to have caught up with the latest distributions. Previously it always seemed to be two or three months behind the times. But this month it has Ubuntu 8.10 at the same time as Linux Format!

The review of Virtual Machine management software was timely. I'm heavily involved in virtualization of Linux, Windows and Solaris (both x86 & Sparc) systems. I had been unaware of the software reviewed. As I've used UNIX for approx 25 years, the command line nature of the most interesting tool, MLN, won't worry me, but for SysAdmins who have only ever used the Windows interface of VMware Virtual Center server or the Virtual Infrastructure client (the "Click Next to continue" generation - or to be ruder lets call them SysAdmin Lites!) it will probably seem quite daunting.

The review of the O'Reilley book "Python for Unix and Linux System Administrators" was interesting. Although why anyone would want to use Python, when Perl is not only available but frequently seems designed for the job, is a mystery to me. Thats probably 13-ish years of prejudice coming to the fore!

The regular SysAdmin section is also usually very useful. This month's feature on Siege was particular interesting. I'll be looking into seeing if I can use that.

The websites for both magazines closely reflect the characters of the magazines themselves. The site of Linux Format is flashier, but the content of Linux Magazine is more detailed. Which sort of reminds me of a report I heard about about 15 or so years ago. The professors at an University examined the quality of thesis produced by their students. The best work from an academic point of view was produced by PC users. Mac users spent too much time chosing the just the right font or font size or slightly tweaking the layout and so didn't have enough time for "thinking".

Thursday, July 10, 2008

Blogging needs Wordpress not Wiki kludges

So our COO decided that we were going to provide a blogging solution in addition to a wiki. The "My blog" add-on to Mediawiki doesn't really cut it, although as a quick and dirty workaround it has a place.

I downloaded WordPress as a Jumpbox appliance. Quick, easy, restrictive. For a small company, it would be really good solution. For a larger company with an infrastructure to tie into, it is lacking. However, I'm really only talking about the free download version. I briefly considered registering the appliance, but didn't want any delay. So perhaps I am being slightly unfair. But hey its my blog!

I downloaded v2.5.1 of the WordPress application, created a CentOS v5.2 Linux VM configured as a Web & MySQL server and rolled my own! As a standalone application that you can install plugins into, its pretty straightforward and looks pretty good too.

I needed the Ldap plugin to enable integration with the Company's Lotus Notes LDAP service. This was actually a bit tricky to set up. I remember it taking a number of hours to accomplish. Events since have wiped out quite a bit of my recollection of the event. It was quite cool after I had configured everything properly, though.

At this point, I realized that what the COO really wanted wasn't a single blog, but the ability for many VPs to have a blog.

Back to the drawing board?

Not completely. At this point, I downloaded v1.5.1 of the WordPress MultiUser software. A default installation is just as simple as the single user version of the application.

Again I needed the Ldap plugin to enable integration with the Company's Lotus Notes LDAP service. This was actually very tricky to set up.

If you follow the above links to the Ldap plugins you'll discover that they are completely different. The wpmu-ldap plugin is different from the WordPress ldap plugin, written by different people.

The writer of the ldap plugin for WordPress MU has a blog here where he announced the release of the latest version. The maillists Aaron refers to at the bottom of his blog are an invaluable source of information, because to say the documentation is sparse is like saying that I'm an overweight bearded slaphead, i.e. a completely accurate and unbiased statement of fact.


Things I discovered whilst deploying WordPress MU and the ldap plugin are:
All the ldap files have to be owned by the httpd/apache/web server process owner. Otherwise the plugin isn't even seen. This is a file permissions problem, so not serious, but it can take an embarrassingly long time to track down. Or at least it did for me.

If after the WPMU ldap plug-in is enabled one of the files is edited by the root user and becomes owned by root, then the result is the infamous "White Screen of Death". Again, not something I immediately recognized. It took an embarrassingly long seeming hour to work it out!

The most obvious difference is that the single user wordpress plugin lets you specify the attribute to filter against, whereas the multiuser plugin lets you choose between linux LDAP and windows LDAP. Now the wpmu-ldap plugin maps linux to uid and windows to sAMAccountName. I was authenticating against Lotus Notes and needed cn! My only immediate option was to hack the source code.

Now its working its quite cool, but I did pick up some scars and a few more white hairs.

phpBB installation

This is yet another case where my mileage hasn't actually varied. But I had to write about the phpBB installation as it is just so damn slick.

It must be roughly 6 or7 years ago when I first installed and configured a phpBB site on a Solaris 8 server with MySQL v3.23.42, Apache v1.3.26 and php v4.0.6. Even then the install was pretty good, although it left enough techie stuff to be done that you felt you'd undertaken a "real man's job"! Afterall, I had to compile the Apache, MySQL and PHP distributions.

In this case, I created:
  • a new VM on my development ESX server,
  • loaded up CentOS v5.2 configured as a Web & MySQL server
  • loaded up some additional php libraries
  • started the httpd & mysqld services
  • download and installed the latest phpMyAdmin
  • created a DB
  • created a DB User with appropriate priviledges
  • started and finished the phpBB configuration very quickly
The phpBB configuration is performed via a web page. It recognises the current state of the installation and just steps you through it. When it has acquired all the relevant configuration details, it creates the tables in the database and sets up the initial admin account. And then you are in a position to start using the system.

Bob's your parental sibling, usually of the male variety!


This does slightly simplify the process, but only in terms of creating/deploying a new machine. I had to add a new server into the company QIP (now called VitalQIP) system and push that out to DNS.

After deploying a server, there's also planning that has to be undertaken for administration, usage policies, backup and restoration for the system.

Wednesday, June 25, 2008

Mediawiki VMware appliances

In general I really like downloading appliances from the VMware Community website. However, when I had to provision a Wiki for the entire company I quickly moved away from the appliances you can download.

The Jumpbox appliance is wonderful if you do not need or want anything further.

The rPath appliance is a bit is a bit more functional for an enterprise deployment. There is afterall a console that can be logged into. However the built-in OS upgrade didn't work. Via the website, it just hung. Via the commandline it ended up in an inconsistent state from which it could no longer be updated. D'Oh!

In the end I rolled my own from a CentOS Linux v5.1 Virtual Machine. I installed the latest MySQL, Apache, PHP (& loads of php libraries) and Mediawiki v1.12.0 - much further on than the v1.6.x version that the rPath appliance provided.

Part of the power and frustration of Mediawiki is the ability to extend the functionality using extensions.

I added a number of extensions to the instalation:
  • Ldap Authentication (to the company MS 2003 AD)
  • ImageMap
  • WhosOnline
  • etc

However, I battled the Ldap Authentication extension for most of a day and the ImageMap extension for most of an afternoon. The slightest mistake in the LocalSettings.php configuration file for Mediawiki or a missing library or misspelled filename would cause everything to fall apart. In contrast, WhosOnline was a dream to install. Its special page just loads and just works. Huzzah!

Trying to make the result pretty, like the Wikipedia homepage, is a whole different story. There is still knowledge required of the dhtml, css, etc.

Tuesday, June 24, 2008

The Initial Cost of VMware

I've written elsewhere abut the incremental cost of a VMware licence at the firm at which I work. But what about the initial cost?

There is the cost of:
  • the new hardware
  • training
  • VMware software
  • OS Licences
  • additional Application Licences
  • Administrator time!?!?
I try and use CentOS Linux for everything these days, but sometimes you need to use Windows. It takes just 5 to 10 minutes to create a new Windows VM from a template. However, just because you can doesn't mean you should. Each one of those Windows VMs will need a licence.

How do you factor in the cost of the mistakes you'll make with new technologies?

Some of these mistakes you will hope to avoid. Who makes mistakes? Or admits to them anyway?


Administrator time is a constant surely? I'm joking, but sometimes it does seem like there is a belief that a finite group can undertake infinite work.

There is also the opportunity cost of your Administrators not just improving and optimizing your existing infrastructure.

Training!? Choosing the right training first off for a new technology is difficult. For VMware, I'd recommend Elias Khnaser's Training DVDs. Having used VMware for nearly two years now, there are holes in his coverage. However, he also covers some topics I've yet to need to get involved with.

And new hardware! Well that wasn't a road we went down. To start with our development box was an IBM 366 with an EXP400 that had been forklifted from site to site to site. The downside, which we've had to explore extensively, is that as it originated in California IBM are unable supply a replacement motherboard in this country - a 366 in this country has different part numbers! In the long run, completely new hardware might have been the cheaper option, simply in Administrator time. Whilst we were getting the server back up, we weren't doing other more productive work!

So it goes.

Friday, June 13, 2008

Lotus Notes install on CentOS Linux

Actually this is a case where my mileage didn't vary at all.

I needed to install IBM's Lotus Domino server software onto a Linux machine - for once these days real iron not a virtual machine.

Obviously, I started with the latest version of CentOS - v5.1. I had no choice on the version of Lotus Domino - it had to be v6.5.5. It had to match our windows servers.

I ran into the problem of libstdc++-libc6.1.1.so.2 being missing which I resolved by loading the compat-libstdc++-296.2.96 rpm and linking the missing library to the later library provided by that rpm.

This still didn't resolve the problem. I still had a missing library: libXp.so! A quick yum install -y libXP resolved that. However, the Lotus Domino java installation program now just hung trying to create a session.

I ran out of time. A swift look at the IBM website for OS requirements for Lotus Domino installation and I conceded defeat. Next step I downloaded the CentOS v2.1 !! That was another 20 to 30 minutes to install and then it was back to the Lotus Domino install.

The only alternative would have been to use version 8 of the Lotus domino software. Something that just wasn't possible. Sigh!

Friday, May 30, 2008

*nix & Windows integration software I'd like to use

Vintela have some pretty cool software for integrating Solaris & Linux systems into an AD environment.

Perhaps because it has to compete against Samba and other freeware solutions, their products aren't ridiculously expensive either. Quite a refreshing experience. Its a shame that the normal mode of operation for most software houses is to seek to soak their customers. No names! No packdrill! But we all know who I mean.

Perhaps the coolest feature is the ability to apply GPOs to *nix clients. Add in the inexpensive nature of the software, and it seems pretty compelling.

What's the downside?

For my company, its the fact that our AD Servers aren't running Windows 2003 R2, which is a requirement of the solution.