everything else

Maintenance: 8:00AM CST 1/10/2008

–sync failed last night because I didn’t change back to the correct settings. Though I was surprised it executed on Wednesday and not Thursday (45 5 * * 1,4). Isn’t 1,4 supposed to mean Monday and Thursday? My clock is set to UTC so 5:45AM is 11:45PM CST.

ebrake@medusa ~ $ emerge -pvuDN world

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild     U ] sys-apps/util-linux-2.13-r2 [2.12r-r8] USE="crypt nls -old-linux% (-selinux) (-old-crypt%) (-perl%*) (-static%)" 2,679 kB 

Total: 1 package (1 upgrade), Size of downloads: 2,679 kB
Computing Linux

Weird Gmail behavior

I finally got ssmtp working after fixing the mistakes in my config. I discovered, however, that email gets lost in Google when sending to a gmail address using gmail’s servers. Email works if I use gmail servers to send to a different service or I can use different servers to send to a gmail address. When I turned on verbose output from ssmtp there were no errors and the connection ended normally.

Computing gentoo

Slow Rsync Servers Need Love Too

Since getting my home server setup I’ve been struggling to increase the timeout during –sync. The server I’m using is a 400Mhz PII, 192MB of RAM tower that takes slightly longer to chew on a problem. At first I tried removing –compress and increasing –timeout in PORTAGE_RSYNC_OPTS but the results weren’t very satisfying. So I went back to reading more documentation, in make.conf(5) I found the magic option. It’s PORTAGE_RSYNC_INITIAL_TIMEOUT and it has a default value of 15 seconds. I changed that to 30 seconds and now it works like a charm. sigh… It took too long to find a simple fix like this.

Random Links

2007 WD5 Odds, Now 1 in 28

Additional position observations for asteroid 2007 WD5 taken on December 29 through January 2 have been used to improve the accuracy of the asteroid’s orbit. As a result, the range of possible paths past Mars has narrowed by a factor of 3 and the most likely path has moved a little farther away from the planet, causing the Mars impact probability to decrease slightly to 3.6% (about one chance in 28).

2007 WD5 (1/2/2008)

everything else

Maintenance: Tue 1/8/2008 8:00AM CST

ebrake@medusa ~ $ emerge -pvuDN world
These are the packages that would be merged, in order:
Calculating world dependencies... done!

[ebuild  N    ] dev-libs/libxml2-2.6.30  USE="python readline -debug -doc -ipv6 -test" 4,616 kB

[ebuild  N    ] dev-libs/libcroco-0.6.1  USE="-debug" 373 kB

[ebuild   R   ] sys-devel/gettext-0.17  USE="acl%* nls openmp%* -doc -emacs -nocxx" 0 kB

Total: 3 packages (2 new, 1 reinstall), Size of downloads: 4,989 kB

Feature Complete

My previous To-Do list is complete. Server changes will be made only during announced maintenance periods. Two issues to consider later is that the rsync server seems to timeout on the first attempt then it will work on later attempts. I’m unsure whether this is related to the slow pokey server. The other is that the tower seems to have problems booting if the SimpleTech NAS is plugged into an adjacent plug on the battery backed side of the UPS. The problem is removed if I move the NAS to a different battery backed plug.

everything else

Initial update complete

All of the existing software is now up-to-date except for the kernel until I get gentoo-sources-2.6.23-r3 compiled. I’ve got a short list of tasks before this server will be fully operational. After I deem the server feature complete then I’ll start blogging specific maintenance periods and holding myself to them. Not making changes on a whim is possibly the most important part of this exercise. Given that any length of downtime is unacceptable during business hours; a good Sys-Admin makes a plan for doing specific updates including how to rollback when things go wrong.

To-Do: Short list of services offered.

  • rsync/distfiles mirror (rsync: not listening/distfiles: ftp server not installed)
  • ntpd time server (installed but not listening for inbound connections)
  • gkrellmd server (already operating)
  • sshd (already operating)
  • apcupsd (not installed)

Immediate tasks

  • configure a static IP. Right now DNS resolution only works when it’s configured by dhcp.
  • install sudo and remove root logon
  • compile new kernel
  • install and configure the above services
everything else

Initial state

Here is the emerge –info output before I begin the long update cycle.

Gentoo Base System version 1.12.6
Portage 2.1.1-r1 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r7 i686)
System uname: 2.6.17-gentoo-r7 i686 Pentium II (Deschutes)
Last Sync: Thu, 03 Jan 2008 01:47:01 +0000
app-admin/eselect-compiler: [Not Present]
app-shells/bash:     3.1_p17
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/baselayout: 1.12.6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
CFLAGS="-march=pentium2 -Os -fomit-frame-pointer -pipe"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium2 -Os -fomit-frame-pointer -pipe"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
USE="x86 acl acpi..."

The USE variable has been severely truncated just because it was overly long and mostly unhelpful. make.conf attached just to show that I really didn’t have anything in USE.

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-march=pentium2 -Os -fomit-frame-pointer -pipe"
USE="acpi -X -gtk -gtk2 -gnome -firefox usb -ipv6 -oss -apm -spell -kde -qt -qt3 -qt4 -arts"