Skip to content

Category Archives: Linux

Tripwire Setup

26-Aug-09

This guide documents how to install and configure Tripwire on a brand new system. This guide is based on installing Tripwire onto a Fedora system. Description of tripwire “Open Source Tripwire software is a security and data integrity tool useful for monitoring and alerting on specific file change(s) on a range of systems” Install Tripwire [...]

Apache and SSL Setup

11-Aug-09

Ok this post documents how to setup Apache with SSL and either be your own singing authority or use one like Thawte I assume that you already have apache installed. Create a Key Pair Create your site RSA private Key and CSR (Certificate Signing Request) [root@server ~]# openssl genrsa -des3 -out domain.tld.key 1024 You will [...]

HP SMHP Setup on Fedora

26-Jun-09

I have a HP DL380 running Fedora, but the problem is I cant install the HP tools, which are really useful, they provide things from PSU monitoring to array configuration all through a nice web interface. See this link: http://h18006.www1.hp.com/products/servers/management/agents/index.html HP only provide this software for a few Linux Distributions such as SUSE and RHEL, [...]

Add new drive array to linux HP server

25-Mar-09

This post is gonig to show you how to add a second drive array to a linux hp server. I am using a HP DL380 G3 and my current setup is 2 drives configured as a raid 1+0 set to install my OS on and now i need to use the other 4 drives to [...]

Time Stamp in BASH History

09-Mar-09

The history command is used to display a list of all executed commands at the shell. It is a useful tool to find out what command was executed before a certain problem arose with a server. (e.g. a file is deleted, you can look through the history to see who executed the command) The problem [...]

Determine network port connection speed

11-Feb-09

This short note describes how to determine the network speed on a given network interface. Firstly you must have ethtool installed to display or change the ethernet settings. You will be able to view settings such as Speed Negotiation RX / TX parameters Type the following command to get speed for eth0: [root@server ~]# /usr/sbin/ethtool [...]

Force Password Change

11-Feb-09

This short post describes how to set a users account so that they have to change their password upon logging into your Linux system. Firstly, lock the account to prevent the user from using the login until the change has been made: [root@server ~]# usermod -L {username} Change the password expiration date to 0 to [...]

SSH Key Based Login

20-Jan-09

This How To describes how to create SSH keys to allow SSH key access to a server. Create the group This command creates the group jsmith. /usr/sbin/groupadd jsmith This command creates a user called jsmith and the “-g jsmith” means put it in the jsmith group, which we have already created. /usr/sbin/useradd -g jsmith jsmith [...]

BASH Colour Codes

20-Jan-09

You can make text in BASH specific colours using the following codes and examples. If you want to use this in a BASH script for example, to highlight that output is good you can set the word [OK] to green, or the word [FAIL] to red just to make it look pretty and more noticable. [...]

Reboot Linux System

15-Jan-09

Linux comes with various utilities that allow a system administrator to reboot, halt or poweroff the system. Reboot Linux command Login or SU to root. Immediate Reboot Open a terminal and type the following command to reboot the system: [root@server ~]# /sbin/reboot Or [root@server ~]# /sbin/shutdown -r now It is a good idea to provide [...]