Personal tools
You are here: Home Archive 2006
Tag cloud
christchurch cssxhtml food-and-drink general japan kiwipycon lca2010 linux nzpug plone python sci-fi technical-info zopeplone
Topics
Topics in Detail…
Our Sponsors
 

Entries For: 2006

24-12-2006

Sysadmin Stresses

What helped me to sleep at night.

This may be my last post as a sysadmin as like some other people, I've discovered that being a sysadmin has its own challenges, most especially the need to be constantly available, as computer systems can fall over at any time. Something, though, that proved invaluable in my previous role was some Systems Monitoring software called Zenoss (another attraction was that it runs on Zope!).
After ensuring I had the prerequisite software, the installation wasn't difficult. It was a bit of a nuisance that Zenoss creates its own Zope instance but the specific python products it installed within the Zope instance really required this for ease of setup.
Once the Zenoss server software was installed, I then had to configure the network devices to notify Zenoss via SNMP of their current status. Though the organisation where I worked had a few varied operating systems and devices, this wasn't a problem. SNMP Informant (with the MBM module for CPU, case, and component monitoring), Syslog, and Zenwin provided monitoring for the Windows 2003 server (there were some gotchas with the setup of the SNMP service but a big thanks to #zenoss as they helped me resolve the particular issues I had). The snmp package took care of my Linux boxes and Zenoss' builtin Cisco support provided monitoring for the Cisco router.
Once I had added all the network devices, I then setup Zenoss to send notifications via email whenever specified Zenoss events occured.
When Zenoss is notified of an event it categorises the event by such things as type of event, severity, etc. When Zenoss is unsure of how to categorise an event, you can categorise it manually. Zenoss can use this criteria for its event notification system.
Something that really impressed me about the Zenoss project was that when I subscribed to the mailing list, I requested a Zenoss t-shirt and though I live at the bottom of the world in New Zealand they sent me one!

30-08-2006

Setting Up Windows Active Directory LDAP Authentication In Plone 2.5

Filed Under:

A howto regarding setting up authentication against Active Directory in Plone 2.5 (PlonePAS)

Emerge Technology had an enquiry from a client recently regarding setting up authentication via Active Directory in Plone 2.5. I share our response here for the benefit of anyone else who wishes to do this (the test environment I setup included Microsoft Small Business Server 2003, Zope 2.9, and Plone 2.5):

One recommendation I would have is that you install LDAPMultiPlugins1.2 (available from here http://www.dataflake.org/software/ldapmultiplugins/ldapmultiplugins_1.2) and remove LDAPUserFolderExt-0.41 (As per normal Zope Product installation procedures you will need to stop and start your Zope instance after installing the product).

Following this, do the following:

  1. Go to acl_users and add a 'ActiveDirectory Multi Plugin'
  2. Go to 'Contents' of the new plugin, go to 'acl_users' and configure your LDAP settings there. You can test if it works correctly by searching for users via the 'Users' tab
  3. Setup your LDAP Schema mappings to Plone fields in the 'LDAP Schema' tab
  4. Go back to the ActiveDirectory Multi Plugin and enable the functionalities you require in the 'Activate' tab.

25-07-2006

An Alternative To Ubuntu

Filed Under:

The Mepis distribution offers a KDE front-end to Ubuntu.

Mepis Screenshot

I recently installed Ubuntu on a desktop computer at work and do like it but as Ubuntu uses Gnome as its Window Manager and I'm a KDE fan (unsure whether this is due to my familiarity with the desktop environment or its extensive feature set), I was still seeking a version of Ubuntu that used KDE instead of Gnome. I was already familiar with Kubuntu but had heard from a few friends that it had bugs so I wasn't that keen to try it out. Then one of my company's suppliers told me about Mepis and that it uses the same repositories as Ubuntu and best of all it uses KDE!
I installed it on an Acer notebook and it installed with no problems. I thought this was quite impressive considering the recentness of the notebook. I am currently trying to get my Linksys WPC54G Version 3 going using ndiswrapper but haven't been successful yet.
My only complaints are that in my opinion it installs a little too much software by default. For example, it installs Kaquarium, Ksensors, and a whole lot of other utilities that I possibly won't ever use. I suppose, though, the maintainers of any Linux distribution have to balance ease of installation and the number of applications they will include by default (it was nice,though, to see Skype included in the default install). The base install was about 2 gigabytes, though, and Mepis installs this all to the root partition so ensure you make the root partition large enough.

12-07-2006

A Router Configuration Itch

Filed Under:

A seemingly common router configuration that I just couldn't seem to get to work.

In New Zealand, due to our older telecommunications infrastructure, many people are using ADSL for their broadband internet connections, which uses the older copper-based telephone lines for transmission. This means slower speeds and in my case problematic internet configurations.
Specifically, I was trying to setup a web server that could be accessed over the internet. Our network configuration at work is as follows: we have an ADSL router with 2 network interfaces, a WAN interface (which we'll call r-eth0) and a LAN interface (which we'll call r-eth1). We also have a m0n0wall firewall with 2 interfaces, which we'll call fw-eth0 and fw-eth1. r-eth0 has a public internet address (assigned by the ISP), both r-eth1 and fw-eth0 are on the same subnet, and fw-eth1 is connected to our internal company network (a separate subnet). The web server is on the same subnet as fw-eth1 (our internal company network), and NAT is enabled on the ADSL router and is port-forwarding web traffic (TCP Port 80) through to the IP address of the web server.
The problem was that when people would try and open a website on the web server, it would just sit there and eventually timeout. The m0n0wall firewall logs indicated that the web traffic was successfully getting to the web server but traffic from the web server back out to the internet was being blocked. This was when I worked out that the cause of the problem was the firewall. A big thanks to Kent Brown Lee of Connect Logic here as he spent a lot of time helping me resolve this problem and eventually determined that as the m0n0wall firewall has inbuilt NAT, the outbound connections from the web server were being 'double-NATed'. To stop this occuring we turned on 'Advanced Outbound NAT' on the m0n0wall firewall and now people can access the website over the internet.

01-07-2006

Time Makes the Wine - Part 2

Filed Under:

It truly does take time!

Following on from my previous entry - the homebrew brewed out in about 4 days. My friend said that you can tell when it has finished brewing because the carbon dioxide stops bubbling out the fermentation lock. Another perhaps more accurate way to determine that the brew is ready for bottling is to use a hydrometer.

From here we performed the following steps:

  1. Check all the bottles for mould by pearing inside the neck of the bottles. It is important to check not only the bottom of the bottle but also the sides as mould can ruin your beer.
  2. Use a ratio of 1 teaspoon of sterilisation powder to 1 litre of water and pour the liquid via a funnel into each bottle. Then rinse the bottles out with water.
  3. To initiate the second fermentation process, put 1 level teaspoon of sugar in each bottle. This process is where the beer gets its fizz.
  4. Cap the bottles. I was recommended to use a bottle-capper but I do know of others who successfully use the screw tops that came with their beer bottles.
  5. Store the bottles in a stable, warm enviroment, such as a hot water cupboard for 2-3 months. I initially stored mine for 2 months but found that when I opened them, a lot of the beer fizzed out the top and was wasted. If this happens, the beer needs to be left longer, perhaps for an additional 2 weeks, and then tested again until they don't fizz out any longer.
  6. Now your beer is ready to enjoy!

N.B. You will need to get a beer glass in order to truly enjoy your homebrew beer and you will also need to learn how to pour your beer properly. This is because there is sediment that settles at the bottom of the bottle and which you don't want to drink (it tastes awful!).

As some of you may be aware, this recipe is licensed under a Creative Commons License, which means you can copy and use it any way you like, as long as you attribute me as the author. As an side, these generous folk have also opensourced their beer making process.


Powered by Plone, the Open Source Content Management System