Unix

Notes on accessing SVN over SSH

Submitted by Aleksey Tsalolikhin on Fri, 2008-09-26 12:32.Unix


Here are my notes how I set up SVN over SSH to an SVN server that had been set up to run SVN as a single user, "svn".

So, we have multiple users on the remote side, all logging in as "svn" on the SVN server side.
Authentication is done via a dedicated key-pair, with special options to make SVN+SSH work.

See http://svn.collab.net/repos/svn/trunk/notes/ssh-tricks for more details.

These are just my notes, the above link is authoritative.


Procedure:

1. Generate a dedicated key pair

	[SVN Client]$ ssh-keygen -f ~/.ssh/svnssh
	Generating public/private rsa key pair.
	Created directory '/home/tsalolia/.ssh'.


  

Grub-booting memtest86 on x86 hardware

Submitted by nomad on Tue, 2008-07-08 09:28.Linux | Unix

It is trivial to set things up so you are able to select memtest86 as a boot option in GRUB:

Download the latest memtest source from http://www.memtest86.com.

Extract and follow the instructions in the README that comes with it to compile. Copy the resulting memtest.bin to /boot and edit /etc/grub.conf to have the following 3 lines:

title Memtest86
        root (hd0,0)
        kernel /boot/memtest.bin

Make sure you reboot to test.

In theory this should work with any x86 OS + bootloader. I am doing this with RHEL 4 + GRUB.

Mixing Multiple Volume Managers (especially ZFS and VxVM)

Submitted by spp on Mon, 2008-07-07 13:15.Process | Storage | Unix

I've recently had a number of projects at work that want to mix multiple volume managers on a single server, specifically ZFS and VxVM for SAN volumes (actually, three including SVM for internal boot disk mirroring). The projects generally are for database servers, and want to use VxVM for database volumes because ZFS currently has some serious limitation on database size (limited number of devices recommended in a single zpool) and performance (single threaded checksumming, for one). However, at the same time, they want to have access to some of ZFS's features (in particular, the ability to oversubscribe filesystems, dynamic resize, snapshots and rollback) for some of the other filesystems.

Heartbeat / Linux-HA

Submitted by dlang on Tue, 2007-10-16 22:51.Availability | Unix

Failover and availability clustering for *nix systems

linux-ha.org

Wed, 1998-03-18 10:58

Mature

Linux-HA aka Heartbeat is a modular package to control high-availability clustering. In spite of it's name it is not limited to Linux (although that is the primary platform), It has an automake based compile and has been used on *BSD, Solaris, and to some extent on AIX as well.

It can hearbeat in multiple ways (UDP broadcast, multicast, and unicast as well as over serial ports, although the serial port heartbeat has been accidently broken in some versions), and over multiple channels (up to 32 as of the time of writing)

It can support sub-second failover

It delays heartbeat checking on initial boot to allow switches time to get through their spanning tree detection timeouts.

Notes on *nix atime

Submitted by ski on Thu, 2007-08-09 12:53.Linux | Performance Tuning | Unix

Read an interesting discussion on the lkml list where Linus and friends talked about atime's performance impacts (http://kerneltrap.org/node/14148). Ingo phrased the problem best with:

' For every file that is read from the disk, lets do a ... write to
the disk! And, for every file that is already cached and which we
read from the cache ... do a write to the disk! '

Solutions are to mount your file systems with the noatime, nodiratime options. The only time this may cause a problem is if you have a local mail spool (the mailer will not know that new email arrived) or possibly with some backup software.

ifinput

Submitted by jm on Fri, 2007-07-06 16:12.System management | Unix

A wrapper command to run another command if there is any output on stdout

Wed, 2001-02-14 15:00

Stable

Often Unix system administrators need an easy way to redirect any stderr output generated from crontab entries to a specific email address. With the ifinput binary, it's simple. For example:

20 8 * * * /usr/local/sbin/daily_stuff.sh 2>&1 | /usr/local/bin/ifinput mailx -s "Error: daily_stuff.sh" system-errors@foo.org

Just arrange the crontab entries so that the periodic jobs don't generate stdout unless there's something interesting there. Then redirect stderr to stdout and pipe both to ifinput.

ifinput can be used in a variety of different scenarios, not just cron jobs.
The source code is available here: http://www.generalconcepts.com/resources/software/gctools-1.0.tar.gz
It has a very small footprint and will compile without issue on most unix systems.

Bcfg2

Submitted by nld on Sat, 2007-02-10 13:02.Configuration Mgmt | Unix

Bcfg2 is a centralized configuration tool that provides reconciliation of the current actual configuration with a specification.

Wed, 2004-10-06 15:48

Stable

Bcfg2 is a generative configuration management system that can be used for management of aspects of client systems, complete control of client systems, and the range in between. Bcfg2 is designed to work well in pre-existing environments, and in the presence of manual administration.
Bcfg2's most interesting feature is a web frontend that presents client configuration conformance information to administrators. This provides administrators with a direct way to observe how good of a job they are doing describing how their network should look. To our knowledge, this approach is unique to bcfg2, both as a goal and as a supported operation.

Django

Submitted by eadmund on Mon, 2007-01-22 14:08.Applications | Database | Linux | Software Development | Unix | Windows | WWW

Excellent Python web development framework

Fri, 2005-07-15 14:00

Stable

I like to use this to throw together nice web frontends for the PHBs to look at stats & stuff. It's pretty simple to use, interfaces easily to a database--very useful for the sorts of sysadmin-plus stuff I tend to do.

NMAP


Fast enumeration of network services

insecure.org/nmap

Sun, 2007-01-14 10:00

Active

Nmap is a powerful tool for discovering hosts on a network and enumerating what service they are offering. This can be used to find vulnerable systems, to locate rogue services on your network or simply for a first step in troubleshooting.

The latest admin trick I learned...

Submitted by bwilson on Wed, 2006-12-20 09:02.Unix

Although LOPSA is platform-agnostic, my current job has me solidly as a Solaris and EMC storage admin. I have experience on just about every other platform of at least a limited extent (DEC UNIX, SCO, HPUX, Windows 4.0, 2000, 2003, Linux mainly RedHat, FreeBSD, OSX, etc...). However all the new tricks I learn, most are going to be on the Solaris platform.

The latest two things I had to learn are how to handle shared memory allocations under Solaris 10, and the 'supported' way to make Veritas filesystems mounted in a zone.

Shared memory was interesting, I mainly googled and asked around until I got a couple of command lines. Then when that didn't work quite as expected in a zone, I borrowed a copy of the new Solaris Internals books to see if I was doing something wrong. Turns out I wasn't really, I just seemed to be running the box out of memory completely.