Thursday, June 26, 2008

Install openoffice from yum

# yum groupinstall "Office/Productivity"

Wednesday, June 25, 2008

Media Wiki email problems

I have moved my media wiki from one server to another and suddenly the email feature stopped working. After a lot of searching I found out that email for Media Wiki needs php-pear-Mail which can be easily installed by

# yum install php-pear-Mail

after that add the following to LocalSettings.php


# Sending e-mails (requires php-pear-Mail)
$wgSMTP = array
'host' => "localhost",
'IDhost' => "localhost",
'port' => 25,
);
Source

Wednesday, June 18, 2008

Remote desktop to Windows from Linux

First install rdesktop

#yum install rdesktop

To connect use
$ rdesktop windows_server

More info on rdesktop

Tuesday, June 17, 2008

VPN to windows from Linux

Use PPTP client.
PPTP Client is a Linux, FreeBSD, NetBSD and OpenBSD client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP. Allows connection to a PPTP based Virtual Private Network (VPN).

Link

Moving a Certificate from Apache to a Windows IIS Server.

1.) Back up your certificate:

To import your certificate to Windows, you will first need to combine your primary certificate, Intermediate (CA) Certificate, and your private key file into a .pfx type backup file. To do this, use the following command:

openssl pkcs12 -export -out DigiCertBackup.pfx -inkey your_private_key_file.txt -in your_domain_name.crt -certfile DigiCertCA.crt

This creates a backup of your primary certificate called DigiCertBackup.pfx. Copy this file to your IIS Server.

2.) Import the .pfx file to your Windows server
Once you have copied the .pfx file to your Windows server, follow the instructions for importing your .pfx file to Windows IIS server

Source

Wednesday, June 11, 2008

Nagios for network and service monitoring

Introduction
Nagios is a open source service and network monitoring program.

Installation

Install the following rpms

nagios-2.9-1.el5.rf.i386.rpm
nagios-plugins-1.4.9-1.el5.rf.i386.rpm


Configuration

Add users nagios to cgi.cfg for the following attributes

authorized_for_system_information=nagios
authorized_for_configuration_information=nagios
authorized_for_all_services=nagios
authorized_for_all_hosts=nagios
authorized_for_all_service_commands=nagios
authorized_for_all_host_commands=nagios

Web user setup
Add nagios to /path/to/nagios.htpasswd Add the following to /etc/httpd/conf.d/nagios

Options ExecCGI
AllowOverride None
order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /path/to/nagios.htpasswd
Require valid-user


Alias /nagios/ /usr/share/nagios/

Options None
AllowOverride None
order allow,deny
Allow from all
AuthType Basic
AuthName "Nagios Access"
AuthUserFile /path/to/nagios.htpasswd
Require valid-user

Add Hosts and Services to /etc/nagios/localhost.cgi Follow the example configuration
Any questions or problems put them in the comments, I will try to help

Tuesday, June 3, 2008

Create your own SSL certificate

Here is a quick document on creating SSLs of your own.
List of steps summarized just in case the original site goes down

$ openssl genrsa -des3 -rand file1:file2:file3:file4:file5 -out server.key 1024
To create a key file1-file5 are random compressed files.

$ openssl rsa -in server.key -out server.pem
To delete the password from the key

$ openssl req -new -key server.key -out server.csr
To create a certificate signing request

$ openssl x509 -req -days 60 -in server.csr -signkey server.key -out server.crt
To create a self signed certificate.


SSL Certificate