headache form hell with love from family.

Considering the headache and the number of times I’ve fucked sshd_config, the size of my splitting headache, and the hell that this house is — It looks like getting any _real_ work done is going to have to wait until next weekend.

Oh wait, the fuckers will screw me over then too

So it will have to wait to the weekend after that

Oh wait, the fuckers will screw me over then too

So it will have to wait to the weekend after that

Oh wait, the fuckers will screw me over then too

So it will have to wait to the weekend after that

Some times I wish I could just _legally_ bind and gag people for a few hours, it really would make life so much fuckin’ easier.

Fixing last nights screwups

Well this is what happens when your working around 0400 local time :

After last nights double upgrades my system wouldn’t except my login over ssh citing an invalid password (when it was correct!). Plus it was refus8ing connections on the port I have sshd listing to but accepting on the default port 22, even though I merged my sshd_config with the new one.

Hooked up a monitor and keyboard to the server and even root was being rejected. I know I forgot to run /dev/MAKEDEV before rebooting the kernel but if that had any problems either init, rc, or getty would be dying from problems setting up TTYs and mounting disks!

Booted off the install floppy I had left over from the 4.0 upgrade and dropped to shell. Since I had to did a rude shutdown when I realized what was up, I had to force the mounts before I could go to work. Then I change rooted into the servers file system to get to fixing the login problem.

mount -f /dev/wd0a /mnt
mount -f /dev/wd0g /mnt/usr
chroot -u root /mnt sh

I knew I forgot to make the new device nodes so I did that and took a look at /etc/group and /etc/passwd before touching any thing else.

/dev/MAKEDEV all
TERM=vt220 vi /etc/group
...

I had to set TERM for nvi because with an empty $TERM after the chroot operation, vi couldn’t handle the situation :

checked out the group file and noted my custom user groups were missing, changed files :e /etc/passwd and noted that my user account was also missing!

Made a fix of this:

group add -g 7778 nfsusers
adduser
...

Added the nfsusers group for the file shares and recreated my personal user before mounting /home. That gave me enough that I could reboot, strip monitor and keyboard, and SSH into it from the desktop to finish poking around.

On login my shell prompt was ‘Terry@noname-$ ‘ and I know my ksh prompts are ‘username@hostname-$ ‘ which means my systems hostname settings were nuked.

Lo and behold, it hit my like a bus.

During last nights upgrade I remembered specifically that I did remove etc42.tgz in /usr/obj/4.2 before using a for loop to extract all of the file sets. But I could not remember doing the same with etc43.tgz in /usr/obj/4.3 when I installed the last file sets :

Sure enough I looked in both directories and last nights log and bingo that is what happened! I ended up extracting the default configuration files for OpenBSD 4.3 after my upgrade.

I didn’t take a backup of /etc before hand because I knew it wouldn’t be harmed, assuming I didn’t fsck things up. And of course any thing irreplaceable is backed up in like 4 or 5 places any way.

It looks like the only major losses in /etc were exports which I rewrote simply. I copied the %ProgramFiles%etcgroup file to the server as /etc/group.old and used vimdiff to merge my other custom groups in before moving on.

rc.local was overwritten but that’s no loss because everything I had in there was commented out and there depends got pkg_delete’d last night 😉

I repaired /etc/hosts, checking my changes against the hosts file on my desktop, (%WinDir%system32driversetchosts). Each of my machines defines a couple of ‘quick’ items in hosts. Then fixed /etc/myname with my machines proper name.

the settings in /etc/ntpd.conf were overwritten but unused for ages, the patch operations also left me my original file as /etc/ntpd.conf.orig hehe and I cleaned the rest out

cp /etc/ntpd.conf.orig /etc/ntpd.conf.ORIG
rm /etc/*.orig

Then set to fixing ssh_config and sshd_config

cd /etc/ssh && vim .

This really is what I get for doing things so late at night +S

Upgrading OpenBSD — so darn easy!

Tonight I finally got around to upgrading my OpenBSD machine, Vectra functions as my file server among other things hehe. The 4.2 upgrade screwed around with the expat library making it depend on xbase42.tgz which is the X Windows System, normally not needed unless one is running a graphical desktop environment.

The system runs headless with no monitor, keyboard, or mouse and functions as a file server. So I have no need what so ever to run a GUI, using a command prompt over SSH is actually my preferred way of working on the box any way. because it means I don’t need a monitor, keyboard, or mouse to work on Vectra and because SSH is not as heavy on the network as using VNC/X Forwarding and crap. Now that 4.3 was released May 1st and fixed the libexpat thing I can update

I took the machine from OpenBSD 4.1 to 4.2 to 4.3. I could probably have saved time by not dealing with any of the *42.tgz files besides etc42.tgz but I did it any way. I’ve also learned the hardway to back up /root first hehe (see end of post notes). OpenBSD is one of the most easy to install, upgrade, use, and maintain operating systems I have ever used.

Here is my general log of things, and yes I do use the shells command grouping and flow-control constructs when I feel like it :-P. Most of the configuration file changes in 4.2/4.3 were never modified by me so I could install most of them over the old ones

EDIT:, be sure to remove BOTH etc*.tgz before using any the for loops to install files!!! or end up in my sleepy boat. Updating the files in /dev before rebooting is also not a bad idea.

su – root
Password:
cd /usr/obj
mkdir {4.2,4.3} && cd 4.2
cat ~/.profile          # look up my mirrors address
ftp ftp.usa.openbsd.org
        …             # login as anonymous
ftp> cd /pub/OpenBSD/4.2/i386
        …             # fetch files for OpenBSD 4.2
ftp> get base42.tgz
        …
ftp> get etc42.tgz
        …
ftp> get comp42.tgz
        …
ftp> get misc42.tgz
        …
ftp> get man42.tgz
        …
ftp> get games42.tgz
        …
ftp> lcd ../4.3
        …     # change directories
ftp> cd /pub/OpenBSD/4.3/i386
        …             # fetch files for OpenBSD 4.3
ftp> get bsd
        …
ftp> get bsd.rd
        …
ftp> get base43.tgz
        …
ftp> get etc43.tgz
        …
ftp> get comp43.tgz
        …
ftp> get misc43.tgz
        …
ftp> get man43.tgz
        …
ftp> get games43.tgz
        …
ftp> close
221 Goodbye.
ftp> bye        # return to my shell, pwd := /usr/obj/4.2
ftp>  http://openbsd.org/faq/upgrade42.patch      # fetch patch file for /etc
tar -xzphf etc42.tgz
cd etc          # pwd := /usr/obj/4.2/etc
# install the etc42 files as directed by the upgrade notes
cp magic man.conf netstart rc rc.conf rpc services /etc
cp mtree/* /etc/mtree/
cp mail/helpfile mail/localhost.cf mail/submit.cf /etc/mail
cp mail/sendmail.cf /etc/mail
cp etc/bgpd.conf /etc/                                                      
cp etc/mail/spamd.conf /etc/mail/                                            
cp etc/ospfd.conf /etc/                                                      
# test the patch
cd ..           # pwd:= /usr/obj/4.2 again
(cd /; patch -C -p0) < ./upgrade42.patch        # test patch
(cd /; patch -p0) < ./upgrade42.patch           # apply patch
        …    
# my /etc/ntpd.conf is customized and fails to patch clean
# remove the left over notes, _AFTER_ reviewing them !
(cd /etc; for i in `ls /etc/|grep rej`; do rm $i; done)
vimdiff etc/ssh/sshd_config /etc/ssh/sshd_config
        …    
# manually merge the new sshd_config with mine
                # this puts both files in a verticle split, new on the left,
                # old on the right. Merge changes in with the :diffput command
cd ../4.3              
# pwd := /usr/obj/4.3
ftp>  http://openbsd.org/faq/upgrade43.patch      # fetch patch file for /etc
# install the etc43 files as directed by the upgrade notes
tar -xzphf etc43.tgz
cp moduli netstart ospf6d.conf rc rc.conf relayd.conf security snmpd.conf /etc
cp mtree/* /etc/mtree/
cp mail/README /etc/mail
cp ../var/named/etc/root.hint /var/named/etc
cp etc/ttys /etc/ttys                                                        
(cd /; patch -C -p0) < ./upgrade43.patch        # test patch
(cd /; patch -p0) < ./upgrade43.patch           # apply patch
        …
# remove the left over notes, _AFTER_ reviewing them !
(cd /etc; for i in `ls /etc/|grep rej`; do rm $i; done)
# remove uneeded files, as directed in 4.3 upgrade
notes

rm /etc/hoststated.conf /var/named/standard/root.hint
# add the new users and groups in 4.3:
useradd -u90 -g=uid -c"OSPF6 Daemon" -d/var/empty -s/sbin/nologin _ospf6d
useradd -u91 -g=uid -c"SNMP Daemon" -d/var/empty -s/sbin/nologin _snmpd
newaliases      
        …    
# update mail aliases
mtree -qdef /etc/mtree/4.4BSD.dist -p / -u                                  
        …    
# create new directories as needed
# change permissions as instructed by the 4.3 upgrade notes
chown root:operator /etc/chio.conf                                          
chmod 644 /etc/chio.conf                                                    
# install the new kernel as directed, pwd := /usr/obj/4.3
ln /bsd /bsd.41                                                              
cp bsd /bsd.41
mv /bsd.41 /bsd                                                              
shutdown -r now         # reboot into the new kernel so we can begin
extracting

                        # upgrade files safely.
# wait for the machine to come back up, and ssh back to it
ping vectra
ssh2v                   # an alias that expands to ssh’ing me into vectra
        …
su – root
Password:
# install all of the 4.2 upgrade files
(cd /usr/obj/4.2/; for ark in `ls | grep .tgz`; do tar -C / -xzphf $ark; done
# install all of the 4.3 upgrade files
(cd /usr/obj/4.3/; for ark in `ls | grep .tgz`; do tar -C / -xzphf $ark; done

Since there are a lot of printing related packages from back when I screwed with setting up a Lexmark WinJet with cups awhile back and the Samba system which is no longer used… Since oddly integrating Windows and BSD clients forced me into NFS shares : I’ve opted to delete all of the packages installed on the server and reinstall the only ones I actually give a flying rats rear end about

pkg_delete -cxi -F dependencies /var/db/pkg/*
pkg_add -vi bzip2 lzma

Sadly it seems that /root/profile for some odd reason was overwritten by one of the upgrade files, which really sucks… Because I didn’t stop to think — the tarballs for upgrade are the same as a fresh install which has to create roots default home directory!!!

I had set up roots ~/.profile to set PKG_PATH dynamically based on the current architecture and release level. So I redirected the output of ‘set’ to a file to retain the values and rewrote my file by hand and changed ~/.profile to source a separate ~/.kshrc before rebooting the system

set > /tmp/root.profile
vim -o ~/.profile -o ~/.kshrc
shutdown -r now

GRRRRRRRRRRR!!!!!!!!!

It seems, any time I even think about trying to get some thing done…

These @%@!%!’ers find someway of dropping a hydrogen bomb on it :

What the hell do I have to do in order to get work done when I’m home from work? Hog tie people to a chair and ducktape there mouths lol.

<joke>Hey… That’s not a bad idea</joke>

Another pointless day almost done…

We started work today at our new clients, just as I expected it’s more stressful then it is hard work… Gotta love being driving batty but at least the clients are not the ones causing it >_>

Spent some time in PG#1 and in TG#3 and cruised the usual forums, sent over a dozen spam-reports on forums.pcbsd.org :

Knee deep in flood, shells, and bullets.

Managed to fight through the flood running gun battle levels all the way to Cortana popping up to save the universe >_>

Perhaps it’s just me but I think it was actually harder playing it the first time way back when, rather then playing through on Heroic of late :

Or maybe it’s because I concentrated more on wiping out the flood then just keeping in Master Chief in one piece lol.

If my ISP could keep the (snip) connection working things would be much easier… Made it to 455MB on the last ISO Kriss Moore posted for PC-BSD 7Alpha before it the aDSL finally died.

Why pay for service that works like crap?

I want to get it setup for some testing, the PC-BSD install on my test machine uses a partition that I’ve reserved largely for testing Linux/BSD alpha/beta/release candidates any way so it’s no loss. Later on I also would like to ‘play’ with an idea that needs a fresh FreeBSD-7 install… 😉

*sigh* another unfulfilling day almost gone.

I’d rather like to hit some code… But I’m to fscking tired tonight. Looks like I’ll have to make do with a few rounds of kpat (KPatience) instead :

Killin’ headaches, uhhh aliens…

A little Halo to curve the days annoyances…

Continued off from “If I had a super weapon” on Heroic mode but still found the mission a bit sticky. Almost beat it, using my pistol with a mag & a half to clear the front way and plasma pistol shots to take down the Banshees. Making it to the end of the bridge only to meet a pair of Hunters that gave me a Fuel-Rod kiss off lol.

So… enough of that crud, I dogged it back past the checkpoint into the area I had cleared last time — lots of dead Covenant and a pair of hunters guarding supplies. Ran in there between the hunters, grabbing more grenades, a full stash of pistol magazines, and a health pack ;-).

Ran back out of there dodging between Hunters trying to pancake me but got out without a scratch. That was fun, to bad I didn’t get to slap one on the way out >_>

With the piutol fully loaded, sniped out the Elites on the bridge and kept them from getting into the Banshees. Triggering the hunters to emerge, I dashed back and climbed in, oh man… Dive bombing Hunters and Grunts with a Banshees plasma guns xD

Finished them off and made it to the objective, unlocked the door and gave the Golden sword wielding Elite a plasma missile on the way through 😉

Fighting towards the flood, I actually found a nice trick. The looks quid like floods are dangerous in groups, perfect time for the assault rifle but… The pistol and the shotgun is a bit more useful against the larger floods then shotgun and assault rifle. So what I started to do to conserve pistol ammo, was dancing between flood and when the little critters jump to try infecting the Master Chief, pistol whip’em in mid air. It has to be timed right or they will hit the shields or miss, but it’s fun to time it right and whack’em with the pistol instead of shooting them all.

Left off on The Library, the best part of the game but the start off is a bit rough. Swarms of flood all over and my shotgun traded out for a pistol grr… But I generally find once you manage to get decent weapons. The levels like the most stress-reliving one in the game.

Running, jumping, shooting, and fending off swarm after swarm of zombie like and well armed enemies during one of the most prolonged running gun battles in video-gaming lol.

Just slide into it and relax, good way to clear the brains thoughts for a little while hehe.

More then meets the eye

I finally gotten a chance to watch Transformers and it was freaking awesome !

When I had first heard that they were making a life action movie of it, I thought the amount of CGI they would need would ruin it totally. But I was quite pleased to see the awesome job that showed through the trailers. And interestingly, Michael Bay was one of those involved. With the exception of Perl Harbor which bored the ever loving crap out of me, I’ve enjoyed most of the films that hes directed.

Transformers is arguably one of the best movies I’ve seen in a _long_ time. It’s gotta be like the best movie since T2. And people that know me well, would know that is indeed high praise from me!

Because for me, T2 is just that kind of definitive movie… The kind that, if I had to select one movie to describe my generation. I would probably reach for Terminator 2: Judgment Day.

Transformers really was done well, not purely authentic to the originals but close enough hehe. I remember talking with a friend, and were some what amazed that between me and her, that we could still remember most of the crud we watched when we were knee high lol.

*sigh*

work’ward bound again but at least I finished my Perl script…