sysadmin

Remove Apache

I have multiple installations of apache on my Mac OS X 10.5 and would like to remove them including any dependencies. They are installed in 3 different directories. How can this be achieved? ...

What are the various files that could have PATH declarations for OS X Terminal in them?

So I'm having a path issue on OS X Leopard. It seems OS X is adding other paths that I'm not stating and it's messing with my path priority. I only have a .bash_login file, I don't have a .bashrc or a .profile file. My .bash_login file is as such: export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" When I run expor...

In unix/linux how to you find out what group a given user is in via command line?

In unix/linux how to you find out what group a given user is in via command line? ...

Free DNS server for Windows XP/Vista/Win7?

I'm currently developing a security solution that should work across domains and as such I need a small private dns server to add various entries to. I could alter the hosts file to achieve the same result but since the hosts file doesn't support wildcard chars I will have a whole lot of entries, so a DNS server that supports wildcards w...

How to make php5 on a machine running php4, without breaking anything

I know with python and a couple other languages there is a way to safely make install a newer generational version of a language onto a machine, but after digging through PHP5's configure & makefile the only thing I've seen is the prefix dir option and the ini scan path. Ideally I'd like php5 to have its own lib/bin subdirectories in /u...

Font for mac osx that is as readable and compact as the default xterm (X11) font.

The font used in xterms is extremely compact yet readable. What font is that? The closest I've found that I can use in other other applications is DejaVu Sans Mono or Bitstream Vera Sans Mono. Those are as compact as xterms vertically but take up more space horizontally. I'd really like to switch from xterms to Terminal.app and this ...

A program to kill long-running runaway programs

I manage Unix systems where, sometimes, programs like CGI scripts run forever, sometimes eating a lot of CPU time and wasting resources. I want a program (typically invoked from cron) which can kill these runaways, based on the following criteria (combined with AND and OR): Name (given by a regexp) CPU time used elapsed time (for pro...

Configuring Postfix to not use a daemon

I realize this is wildly offtopic but this is my last hope. I would like to only send mail from my computer, both locally and to remote servers, so I don't think I need postfix to run a daemon, but I can't find anything that will tell me how to configure it. Would anyone happen to know? ...

How to detect anomalous resource consumption reliably?

This question is about a whole class of similar problems, but I'll ask it as a concrete example. I have a server with a file system whose contents fluctuate. I need to monitor the available space on this file system to ensure that it doesn't fill up. For the sake of argument, let's suppose that if it fills up, the server goes down. It ...

Monitor a set of files for changes and execute a command on them when they do.

The (command line) interface I have in mind is like so: watching FILE+ do COMMAND [ARGS] (and COMMAND [ARGS])* Where any occurrence of "{}" in COMMAND is replaced with the name of the file that changed. And note that "do" and "and" are keywords. For example: > watching foo.txt bar.txt do scp {} somewhere.com:. and echo moved {} to ...

Best practice to run Linux service as a different user

Services default to starting as root at boot time on my RHEL box. IIRC, the same is true for other Linux distros which use the init scripts in /etc/init.d. What do you think is the best way to instead have the processes run as a (static) user of my choosing? The only method I'd arrived at was to use something like: su my_user -c 'dae...

How do I install MySQL and the python MySql package on OSX Leopard? Or how do I learn about being a web developer using OSX?

I'm new to the Mac OS and I'm just about ready to throw my brand new MacBook pro out the window. Every tutorial on setting up a Django development environment on Leopard is insidiously wrong. They are all skipping over one step, or assuming you have setup something one way, or are just assuming that I know one thing that I must not. I...

URL redirection in Apache2

Hi, Trying to redirect a URL on one webserver on my LAN to another webserver on my LAN. I assumed that all I needed was a .htaccess file in my /var/www directory whose contents are the following 3 lines only: Options +FollowSymLinks RewriteEngine on RewriteMatch newsite\.level2\.level1\.com http://192.168.0.250:8080 Also I created a...

ssh/VPN access from dynamic IPs / while travelling. knockd or dynDNS based authentication?

What are the advantages and disadvantages of using knockd vs. using dynamic DNS based authentication for ssh or VPN logins from a dynamic IP address or while travelling (i.e. some random hotel IP)? Ideally, any device with ssh/VPN client capability should be able to use whatever additional client software is necessary. (The alternative...

Configuration of BIND DNS server, I'm lost...

I hope you'll forgive me for thinking that configuring a DNS server would be easy. It turns out it is quite hard... especially if you never did it before. To recap a little, I previously asked if someone could recommend a personal DNS server for Windows XP for use in a development project. My basic wish is to host a DNS server that rep...

Coordinating tasks between multiple servers

Is there a utility/library that facilitates the coordination of tasks between multiple servers? For me, I need to run scheduled tasks, copy lots of data between servers, and restart processes (a series of dependent operations that occur on different machines in a cluster). I can go with cronjobs and batch scripts, although I can't he...

What is your favorite free Netstat GUI / Connection Monitor app for Windows?

I need something a little more feature rich than Sysinternals TCPView (which I regularly use) ... but it also must be freeware. :) ...

Python script to list users and groups

I'm attempting to code a script that outputs each user and their group on their own line like so: user1 group1 user2 group1 user3 group2 ... user10 group6 etc. I'm writing up a script in python for this but was wondering how SO might do this. Thanks! p.s. Take a whack at it in any language but I'd prefer python. EDIT: I'm...

Provisioning new LVM volumes?

I looking to use LVM to easily limit a users usable disk space. Is it possible to provision new LVM volumes from unallocated space LVM space without having to create/initialize all the drives and partitions again? Lets say I have a volume group named "datag". Can create new logical volumes as needed (lvcreate)? Or do I need to create ...

Linux system to manage configurations of servers?

I need a software to manage configurations of linux servers in one central location. It should be able to push changes to servers automaticly. Version control would be an advantage... ...