Thanx to WIntellect @BSD Nexus heres a even more propper way to fire up MySQL on OpenBSD, add the following line to your rc.local
/usr/local/bin/mysqld_safe -u _mysql > /dev/null & echo -n â€˜ mysqldâ€™;
I’ve just created my 1st patch, to add support for Slackware to the iSCSI Enterprise Target software
Read this guide if youre interested in rolling out your patches
--- Makefile.orig 2004-11-22 10:30:57.000000000 +0000
+++ Makefile 2004-11-22 10:35:16.000000000 +0000
@@ -28,6 +28,8 @@
install -v -m 755 scripts/initd.debian /etc/init.d/iscsi-target;
elif [ -f /etc/redhat-release ]; then
install -v -m 755 scripts/initd.redhat /etc/init.d/iscsi-target;
+ elif [ -f /etc/slackware-version ]; then
+ install -v -m 755 scripts/initd /etc/rc.d/iscsi-target;
install -v -m 755 scripts/initd /etc/init.d/iscsi-target;
Following the Quick Guide to iSCSI on Linux I managed to setup a iSCSI Target host on Slackware 10 running on a virtual machine on VMware then connected to it from the Windows 2000 box which was the VMware host! 🙂
I used the iSCSI Enterprise Target rather then the Ardis Target which the guide covers but as the Enterprise Target is a fork of the Ardis Target there is no variation in steps carried out.
The Windows Initiator can be dowloaded from here
To start the apc-upsd daemon automatically on boot add the following line to your rc.local file
if [ -x /usr/local/sbin/apc-upsd ]; then
/usr/local/sbin/apc-upsd & echo -n 'APC UPSD '
I came across this neat util today called BootCD which lets you create a bootable OSX cd with your choice of tools for those emergancy situations!!
System Spec & benchmark results of my 12″ iBook
You can compare your results online here
Xbench Version 1.1.3
System Version 10.3.5 (7M34)
Physical RAM 256 MB
Processor PowerPC G3 @ 500 MHz
Version 750CXe v2.4 v2.5
L1 Cache 32K (instruction), 32K (data)
L2 Cache 256K @ 500 MHz
Bus Frequency 67 MHz
Video Card ATY,RageM3
Drive Type TOSHIBA MK1017GAP
CPU Test 21.88
GCD Loop 36.86 1.44 Mops/sec
Floating Point Basic 62.30 225.29 Mflop/sec
vecLib FFT 7.96 123.57 Mflop/sec
Floating Point Library 71.46 2.86 Mops/sec
Thread Test 39.37
Computation 27.76 374.72 Kops/sec, 4 threads
Lock Contention 67.68 849.69 Klocks/sec, 4 threads
Memory Test 15.30
Allocate 344.83 224.93 Kalloc/sec
Fill 12.87 102.42 MB/sec
Copy 9.24 46.21 MB/sec
Copy 13.89 101.51 MB/sec
Scale 13.51 99.70 MB/sec
Add 15.74 100.73 MB/sec
Triad 16.29 99.55 MB/sec
Quartz Graphics Test 38.91
Line 36.91 941.80 lines/sec [50% alpha]
Rectangle 42.64 3.00 Krects/sec [50% alpha]
Circle 43.94 1.02 Kcircles/sec [50% alpha]
Bezier 41.58 458.64 beziers/sec [50% alpha]
Text 32.10 523.27 chars/sec
OpenGL Graphics Test 54.63
Spinning Squares 54.63 38.23 frames/sec
User Interface Test 41.95
Elements 41.95 13.49 refresh/sec
Disk Test 25.01
Uncached Write 21.22 8.85 MB/sec [4K blocks]
Uncached Write 21.16 8.67 MB/sec [256K blocks]
Uncached Read 46.04 7.29 MB/sec [4K blocks]
Uncached Read 21.85 8.83 MB/sec [256K blocks]
Uncached Write 17.32 0.26 MB/sec [4K blocks]
Uncached Write 24.20 5.46 MB/sec [256K blocks]
Uncached Read 39.93 0.26 MB/sec [4K blocks]
Uncached Read 29.43 6.06 MB/sec [256K blocks]
I managed to pick up a broken iBook which needed some TLC.
After 3 hours in the operating theatre everything went A-ok, I managed to replace the broken tft panel & lid. With a fully working laptop I started messing around, then got a bit cocky & managed to nearly rip off the slot which the ribbon for the trackpad slots into, so now I have to sort that out as Im trackpad less.
Being a geek is my own curse sometimes! 🙁
More themes for WMI can be found here
After a serious plugging by some of the peepz @ BSD Nexus (WIntellect!!) I decide to give the new window manager called WMI a try on my laptop running OpenBSD.
WMI is coming from the same angle as flux & black box in that its a totally stripped down window manager with heavy focus on keyboard shortcuts.
For OpenBSD the site links straight to the OpenBSD ports cvsweb page, where you can download the necessary files to build WMI, the build process went totally smoothely & a package was created in /usr/ports/packages/i386/all/ but as there is a error in one of the Make files, the package doesnt complete the install & outputs a error (will investigate this & keep you updated).
I wasnt particularly impressed with the default theme that WMI comes with (called industrial) but there are 2 aditional themes currently available on the WMI site which you can install, which I did (im currently running the DragonflyBSD theme) & judging from the contents of a theme if you dont like the themes available it wouldnt be very difficult to make your own one, a quick edit of my theme file to add some wallpaper & Its all systems go. 🙂
its been so long that i’d actually forgotten the password to the admin page on wordpress, thnx to this article I managed to reset the password
As Darwin SS uses the RTSP protocol to stream (unless youre streaming via port 80) you must have the following ports open on your firewall 554, 7070, 8000, 8001 then anything starting from 6970 & up depending on how many clients you want to support.
Apple have a basic support article on this here
Today I have mostly been playing with streaming servers, I’ve been meaning to give Apple’s Darwin Streaming server a go for a while now but never got around to trying it, unfortunatly theres no official binaries for OpenBSD but a quick google around & I found this
I download the patch from the url specified in the post & then onto Apples site to download the sources. I was unable to use the patch in its original form as the creator had specified the paths from his computer to the files which ofcourse where invalid on my system. A quick edit of the dif & i was back on track. 🙂
Heres my moded patch with the paths taken out, place it inside the DarwinStreamingSrc184.108.40.206 directory & patch away 🙂
As specified in the Jeff Ross’s post, patch the source with
patch -p0 < DSS_5.diff
then compile & install with
./DSS_MakeRoot -f DarwinStreamingSvr
once installation is completed run
rmuser qtss then run
adduser & create a new user with the username qtss,with the shell /sbin/nologin & no password.
otherwise Darwin fails with the following error
Cannot switch to group qtss
/usr/local/sbin/streamingadminserver.pl then openup your browser & goto http://localhost:1220
You should be presented with a login screen! 😀
Been dealing with a D-link DSL300T ethernet modem today & I now have a even bigger hatred for their kit, the pony piece of kit re-enables the dhcp server & sets the clock back to 1970 after powercycling the unit (even though you’ve saved the changes) resulting in a impressive uptime stat on the modems admin page & a confused firewall (which sits behind the modem) wondering why it has a 192.168.x.x IP address on both the wan & lan port.
I’ve just come across a cool toy called goose , its a google search tool for the shell & a wopping great 9kb in size!
been pulling my hair out as cron wasnt firing up, tracked the problem down to rc.local, the command to start mysql was preventing cron from running but everything seemed A-OK on the outside.
heres the correct lines to insert into rc.local on OpenBSD to fireup mysql without causing any knock on effects:
if [ -x /usr/local/bin/mysqld_safe ]; then
/usr/local/bin/mysqld_safe > /dev/null & echo -n 'mysql '
Today I’ve mostly been messing with IRC bots & toys.
setup a bot (eggdrop) & irc stat generator (pisg) on my server here at home. Unfortunately the channels website is hosted elsewhere, using crontab I created a cron job to run pisg at a regular interval, then planned on using ftp in another job to upload the generated stats page. Unfortunately there no way of telling the ftp command to upload files.
To get around this I resorted to setting a cron job on a script which ran ftp & included the necessary ftp commands to upload the file piped to the ftp command.
Heres the script I used (thnx Dan!):
ftp -i -n ftp.hostname.net <<EOF
user myusern mypasswd
the crontab entry looks like this
0 * * * * /pathto/sh /pathtothe/script >/dev/null 2>&1
Sooo tired, I keep on meaning to sit down & write some articles for here, defo over the weekend Ill sit my arse down & get some stuff typed up, got some tidbits for openbsd I wanna share 🙂
Welcome to my blog
I have setup this site to share my thoughts & experiences of all things geek/tech like with all you ppl out there, I hope you enjoy your visit here 🙂