Monitoring UPS Power Status Using Network UPS Tools (NUT) 2.2.0 on Multiple OpenSuSE 10.3 Servers
Network UPS Tools is a collection of programs which provide a common interface for monitoring and administering UPS hardware. The primary goal of the Network UPS Tools (NUT) project is to provide reliable monitoring of UPS hardware and ensure safe shutdowns of the systems which are connected. This document describes how to configure one machine connected to the UPS so it monitors the power status. This can relay alerts to other machines that are running off the same power line. This way, multiple servers can perform a safe shutdown in case of power failure.
Read more...How To Install mod_security/mod_security2 On SuSE Linux Enterprise Server 10 (SLES10)
The Apache module mod_security is a very powerful security module. Combined with predefined rules, you can close many security wholes on your server, opened by bad written php or perl apps. Unfortunately mod_security is not part of the SLES10 distribution. To install mod_security to have to install some 3rd party modules. This guide helps you to install mod_security on SLES10 in a reproducable way (RPM). It also helps you to remove the module, by building RPM packages you can easily uninstall.
Read more...Read more of this story at Slashdot.
How To Install mod_security/mod_security2 On SuSE Linux Enterprise Server 10 (SLES10)
The Apache module mod_security is a very powerful security module. Combined with predefined rules, you can close many security wholes on your server, opened by bad written php or perl apps. Unfortunately mod_security is not part of the SLES10 distribution. To install mod_security to have to install some 3rd party modules. This guide helps you to install mod_security on SLES10 in a reproducable way (RPM). It also helps you to remove the module, by building RPM packages you can easily uninstall.
Read more...Monitoring UPS Power Status Using Network UPS Tools (NUT) 2.2.0 on Multiple OpenSuSE 10.3 Servers
Network UPS Tools is a collection of programs which provide a common interface for monitoring and administering UPS hardware. The primary goal of the Network UPS Tools (NUT) project is to provide reliable monitoring of UPS hardware and ensure safe shutdowns of the systems which are connected. This document describes how to configure one machine connected to the UPS so it monitors the power status. This can relay alerts to other machines that are running off the same power line. This way, multiple servers can perform a safe shutdown in case of power failure.
Read more...Integrating XCache Into PHP5 (OpenSUSE 10.3 & Apache2)
This guide explains how to integrate XCache into PHP5 on an OpenSUSE 10.3 system (with Apache2). From the XCache project page: "XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load." It's similar to other PHP opcode cachers, such as eAccelerator and APC.
Read more...The following tutorial covers the process of installing SUSE Linux to an external USB Hard Drive using the OpenSUSE Live CD. The process is made possible due to a custom Portable SUSE script created by James Rhodes. The user basically boots from the Live OpenSUSE CD and performs the installation via the included YaST2 Install script to install SUSE to a USB Hard drive. Then the user reboots from the Portable SUSE installation and launches the custom script to convert some files in the running SUSE system for portable compatibility.
Tags: external usb hard driveInstallOpenSUSEPortable SUSESUSEUSB SUSEThis article contains my notes and detailed instructions on setting up a MySQL cluster. After reading it, you should have a good understanding of what a MySQL cluster is capable of, how and why it works, and how to set one of these bad boys up. Note that I'm primarily a developer, with an interest in systems administration but I think that every developer should be able to understand and set up a MySQL cluster, at least to make the dev environment more robust.
Notes
My Setup
This is my sample configuration with sample IPs:
Sample Screenshot
Here is a sample screenshot of another one of my configurations showing a similar setup. This is the output of show on the management node:
Setup Instructions
On the management node (as root):
1 2 3 4 5 6 7 | groupadd mysql useradd -g mysql mysql mkdir -p /root/src/ cd /root/src/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.22-rc-linux-i686-icc-glibc23.tar.gz/from/http://mysql.he.net/ tar xvzf mysql-*.tar.gz rm mysql-*.tar.gz |
1 2 3 4 5 | cp mysql-*/bin/ndb_mg* /usr/bin/ chmod +x /usr/bin/ndb_mg* mkdir /var/lib/mysql-cluster chown mysql:mysql /var/lib/mysql-cluster vi /var/lib/mysql-cluster/config.ini |
Download /var/lib/mysql-cluster/config.ini
1 2 3 | ndb_mgmd -f /var/lib/mysql-cluster/config.ini ndb_mgm show |
On each storage and SQL node (as root):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | groupadd mysql useradd -g mysql mysql cd /usr/local wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.22-rc-linux-i686-icc-glibc23.tar.gz/from/http://mysql.he.net/ tar xvzf mysql-*.tar.gz rm mysql-*.tar.gz ln -s `echo mysql-*` mysql cd mysql chown -R root . chown -R mysql data chgrp -R mysql . scripts/mysql_install_db --user=mysql cp support-files/mysql.server /etc/init.d/ chmod +x /etc/init.d/mysql.server vi /etc/my.cnf |
Download /etc/my.cnf
1 2 3 4 5 6 7 8 9 | mkdir /var/lib/mysql-cluster chown mysql:mysql /var/lib/mysql-cluster cd /var/lib/mysql-cluster su mysql /usr/local/mysql/bin/ndbd --initial # start the storage node and force it to (re)read the config exit echo "/usr/local/mysql/bin/ndbd" > /etc/init.d/ndbd chmod +x /etc/init.d/ndbd /etc/init.d/mysql.server restart # start the query node |
SUSE:
1 2 3 4 | chkconfig --add mysql.server # this is SUSE's way of starting applications on system boot chkconfig --add ndbd chkconfig --list mysql.server chkconfig --list ndbd |
Ubuntu:
1 2 3 4 5 | sudo apt-get install sysv-rc-conf # this is chkconfig's equivalent in Ubuntu sysv-rc-conf mysql.server on sysv-rc-conf ndbd on sysv-rc-conf --list mysql.server sysv-rc-conf --list ndbd |
That's it! At this point you should go back to the management console that you logged into earlier (ndb_mgm) and issue the 'show' command again. If everything is fine, you should see your data and SQL nodes connected. Now you can login to any SQL node, make some users, and create new ndb tables. If you're experiencing problems, do leave a message in the comments.
In the next mysql cluster article, I will explore various cluster error messages I have encountered as well as config file tweaking. Now go and spend some time outside in the sun - life is too short to waste it at a dark office.
How To Install VMware Server On OpenSUSE 10.3
Today, I will explain to you how to install VMWare Server on openSUSE 10.3. What this will do for you is be able to run Windows inside your Linux computer. If you have that Windows app that just doesn't run under Wine, then this is the setup for you.
Read more...Below is documentation for using SourceLabs Self-Support Suite for Linux and Open Source Java to gather, organize, and search Syslog messages.
You can setup syslog to connect to the relay. In this release, we only support syslog over UDP. To set this up, you need to modify your syslogd config file. Often this is in /etc/syslog.conf
To get started, you can add
. @relayMachineName:4657
This will send all your syslog messages to a machine named relayMachineName over port 4657. Port 4657 is the default port the relay listens to for Syslog UDP messages. You can change this in the relay’s property file. This properties file is located in the ‘conf’ directory of your relay installation (e.g. /opt/sourcelabs/relay/conf).
To filter the syslog messages sent to the relay, please read the syslog documentation or man pages for more information.
Syslog-ng:
You can also setup syslog-ng to use the relay. For the current version of the relay, you will need to use UDP logging to the relay instead of TCP. To set this up, you need to modify your syslog-ng config file. Often this is in /etc/syslog-ng.conf
To get started, you can add
destination d_relay { udp("relayMachineName ", port(4657)); };
log { source(s_sys); destination(d_relay); };
Assuming that you are using a default syslog-ng configuration where source ‘s_sys’ represents all syslog messages (modify source as necessary for your configuration),this will send all your syslog messages to a machine named relayMachineName over port 4657. Port 4657 is the default port the relay listens to for Syslog UDP messages. You can change this in the relay’s property file. This properties file is located in the ‘conf’ directory of your relay installation (e.g. /opt/sourcelabs/relay/conf).
To filter the syslog messages sent to the relay, please read the syslog documentation or man pages for more information.
Find more information about SourceLabs Self-Support Suite for LInux and Open Source Java
linux
centos
RedHat
syslog
SuSE
SourceLabs
logging
Ubuntu
Debian
support
YAST is an installation and system management tool for Linux and is explicitly part of OpenSuse.
Tips and Tricks including hotkeys.
SourceLabs covers YAST as part of its Self-Support for Linux and Open Source Java Suite
How To Install suPHP On Various Linux Distributions For Use With ISPConfig (2.2.20 And Above)
Starting with version 2.2.20, ISPConfig has improved support for suPHP. This article explains how to install suPHP on various distributions supported by ISPConfig. (If you have used suPHP with previous ISPConfig versions, your installation will still work.)
Read more...