Version 8 (modified by dozzie, 9 years ago) (diff)

--

dozzie's code

Initial page rolled out

An initial version of code home page is on the wild. Beware!

Welcome to the page dedicated to tools written by dozzie.

Most (all?) of these tools are written with system administrator's tasks in mind, so they address specific needs encountered by sysadmin (by me, in this case).

Projects

All the projects can be found here: http://dozzie.jarowit.net/code/

They are managed in git version control system, so you'll need to learn it a bit if you want to access the code. No tarballs with code are provided, at least for now.

Quick build how-to

Many of the tools (especially recently) are prepared to make a package (DEB and RPM).

  1. Clone the repository:
    git clone http://dozzie.jarowit.net/code/cfgen.git
    
  2. Install tools for building packages
    • for Debian: packages dpkg-dev, fakeroot, build-essential
    • for Red Hat/CentOS: packages make, rpm-build

And possibly compilers (gcc, g++).

  1. Build a package:
    • for Debian:
      dpkg-buildpackage -b -uc
      
    • for Red Hat/CentOS:
      make srpm
      rpmbuild -bb --rebuild *.src.rpm
      

Tools descriptions

cfgen

Config generator that uses templates (Template::Toolkit) parametrized with YAML files filled with values for each host.

cron builder

Tool that pulls sources from one repository, builds them using supplied command and pushes changes to another repository.

Not a difficult thing, but constant rewritting scripts (to keep silence when no changes were made) is annoying when it comes to details.

flowmon

Network flow monitor. Displays traffic summaries for flows, which are defined by BPF filters.

You can think of this being similar iftop.

munc

Netcat multiplexer.

TODO: be more specific about munc.

SSL-enabled rsync

The Right Way(tm) of doing rsync over SSL. Uses stunnel 4.x.

sftponly

Remember scponly, a shell providing copy-only access to users?

Want to close them in chroot() environment?

Don't want to bother with creating full-blown chroot() or even small /dev contents?

This is the (my) way to go.

sftponly doesn't need any files -- especially device files -- in user's home directory, so it's quite easy to manage multiple copy-only accounts. Your users will not be able to break their environment anymore.

Time Shifter?

Tool for changing reported time for specific processes.

When you need to change current time for some processes, but not for the whole system or when you just can't change the time for the system (no root privileges).

OpenVZ stats?

Little daemon that collects OpenVZ statistics in guest system and pushes them to collectd.

Requires that collectd has UnixSock plugin enabled.

XML-RPC daemon

Daemon and shell client utility, both using XML-RPC protocol wrapped in SSL and provided with HTTP authentication.

Daemon is just a trivial HTTP server, that passes XML-RPC calls to appropriate Perl scripts. It's just simpler to configure such a small daemon than Apache, lighttpd or nginx.


For original Trac start page, see WikiStartOld.

Attachments