Aug
09

Kingston RAM may bring LibreOffice cppcheck batcher back from the dead

To bring my cppcheck rolling fcron job machine back to life, I bought $60 worth of RAM from Kingston, rather than send bad RAM (thanks, memtest86+, you groovy tool, you) back to Crucial first. So, after doing some Gentoo updating, which included a cppcheck version bump to 1.49, and a glibc and kernel bump, it seems to be running well so far.

I’ve got my fingers crossed that we may leave segfault land behind for a bit. You’ll hopefully see the page I linked to above update when the first job is complete, baring any changes to the git tree at LO… which reminds me, I should probably look. ;)

Aug
04

Making an orchestration sandbox

So, I’m finally making a configuration orchestration lab. I’ll play around with Puppet, and perhaps Chef. I’ll try Vagrant to manage a virtual network of virtual hosts to play with. (I saw Vagrant demonstrated at DevOps; looked nifty.) Plus, I get to play with more of the Ruby universe, rvm and friends. Should be fun; I’m going to capture some methods and process, so I’ll post them if they are interesting.

May
18

LWN: A Linux system running over JavaScript

Boot it.

Then read about it on LWN.

X86 emulated in JavaScript. Stupefyingly stupendous. Bravo!

May
16

Too much cloud, not enough silver lining

Dropbox Accused of Lying About Security

What? A business lied about their product to gain advantage over competitors? I’m shocked. Shocked, I tell you! ;)

Self-managed encryption FTW.

Apr
16

My .screenrc

I often work a lot in GNU Screen, and have for years. It is a really well built, feature-filled program which allows a user to have multiple managed virtual text terminals. Screen allows users to detach from the master terminal, and screen’s virtual terminals will continue to run unaffected. A screen session on the remote hosts you connect to is very good for performing work which cannot be interrupted by communication issues between you and the machine you have a shell session on. Among other valuable uses, including session logs.

Here’s my current .screenrc:
defflow on
scrollback 65535
caption always " %?%F%{.R.}%?%3n [%h]%?"
password [no you can't see it]

This gives me 65535 lines of scrollback buffer. This is terribly useful during package installs, or reference in long interactive sessions. “defflow on” disables the function of XON/XOFF (ctrl-S/ctrl-Q), which can cripple a screen session if you’re not careful. The caption is harder to show without an image. Basically, it displays each virtual terminal’s number (1, 2, 3, etc.) and <user@hostname:pwd>. I set a password just to make it a bit harder to get in to my detached screens. Dunno how strong or weak that actually is.

Jan
10

Fun with Debian on a SheevaPlug

I’ve had a SheevaPlug “Dev Kit” since April, 2010. I ordered it along with the GuruPlug Server and Server Plus Heaters (not ready for prime time, unless you’re cooking steak). I hadn’t had a compelling use for it, so other than playing with it the first week, it sat idle.

OK, really, that’s not true. The truth is, I was trying to create a working ARM “Stage 4″ port of Gentoo for it with Gentoo’s nifty crossdev suite and qemu-user. I think I’ve done it, but I could never just get it together to install the resulting software bundle on the SheevePlug, boot it, customize it further, and put it into heavy service. I always had in the back of my mind questions about how I’d maintain this host with Gentoo. It was hard enough to maintain well-supported x86 servers with Gentoo, let alone an even more complex, time consuming and human-error prone build. Each time I sat down to work on it, I’d get totally sidetracked in Gentoo-land (update packages, trim filesystem fat, etc.), and forget what purpose I was really aiming to put the SheevaPlug to work for, other than taking up space. I learn (and retain) a ton when I use Gentoo, including the intricacies of qemu, gcc, embedded systems software design, cross-compiling and such. But this was not the right place or time.

Within the last 6 months or so, my primary home Network service server (LAMP, SILCd, Asterisk, hosting ticketing, resume, blogs, Drupal webapps, etc.) started showing some signs of old age. It’s a Shuttle SN41G2V2, bought in 2004. It has worked really well over the years, and its twin, my MythTV/Cacti/Nagios box, is still chugging. 2004 Vintage Computing! I had started to see full system freezes more and more over the last several months. I can deal with the web sites being offline for a bit until I powercycle it, but it is also serving Asterisk, and losing phones isn’t so great (I remember Ma Bell. We reboot phones, now, too.).

I couldn’t wait any longer to begin moving services to a low-power platform. But, instead of getting Gentoo to finally run on my plug, I decided to try out Debian. Debian is known for providing well tested and predictable binary packages, and that’s what I needed for this task. I followed Martin Michlmayr’s excellent guide at http://www.cyrius.com/debian/kirkwood/sheevaplug/ . On my Plug, Debian Squeeze boots from a 8GB USB stick and I’ve done some tweaks to reduce writes to the USB stick to very low levels. (I don’t touch the internal SheevaPlug flash.) I copied over daemon configs from my Gentoo server, and only had to make minor adjustments. I have the SheevaPlug plugged into my APC BackUPS 1500, so hopefully it will help extend its lifespan.

It’s pretty sweet! Now, I need to set up Duplicity for secure automated off-site backups with GPG. I also need to purchase another SheevaPlug or other armv5tel device so I can have a backup in case the Sheeva’s power supply fails (which seems common), and do some fancier things like MySQL replication, maybe even try some DRBD/HAproxy/Heartbeat kind of fun. After I let it settle in, I’ll start tasking out the Drupal/Wordpress move. Hopefully I can keep MySQL and syslog file flash writes low. We’ll see.

Jul
30

MySQL CLI pager tweaks

The default settings for the MySQL command line client are a bit annoying. There’s no output paging; columns with more than 80 characters are wrapped making matching field name to field data difficult. Here’s a way to make life easier.

Read the rest of this entry »

Jul
27

P7120D xorg.conf

Yeah, it’s ugly, but I thought others might make use of the xorg.conf from my groovy little fanless laptop, the Fujitsu Lifebook P7120D, running Gentoo Linux and xorg-server 1.2.0. I based this off of an xorg.conf I found on the web last year, and has been edited (a lot) as I found new information. This also requires use of 915resoultion, at least with xorg-server 1.2.0 (I’ve heard rumors that 1.3.0 will eliminate this dependency), to handle the non-standard resolution of the laptop’s LCD (1280×768). Switching between dual screens and single screen still requires editing of this file and uncommenting the desired configuration in “ServerFlags” and commenting the other section lines before restarting X.
Read the rest of this entry »

Jul
26

Asterisk, the incredible convergence machine

So, I finished my first run-through of getting an Asterisk PBX set up in my home. With the awesome community resource http://voip-info.org/, the book Asterisk: The Future of Telephony, and, of course, Asterisk’s own documentation and configuration file comments, I built myself a much more well-featured answering machine. ;) Initially, I purchased two pieces of hardware – the Grandstream BudgeTone 200 IP Phone and the Grandstream HandyTone 488 FXS/FXO device. However, the 488 didn’t work well for my purposes, as it didn’t support passing caller-id information from the PSTN to Asterisk, and it was annoying that you couldn’t use the FXS when the FXO was active on the PSTN line. I e-mailed Grandstream tech support, and they said that they were never going to offer a firmware update to the 488 to add this function, so, I broke down and bought a Cisco/Linksys/Sipura SPA-3102. For around $30 more, the SPA-3102 offered much, much more, including a better web interface, caller ID from the PSTN, and, to my ears, a bit better sound quality both in the FXS and the PSTN connection.

So what do I get with this effort?

  • Message storage limited only by the size of my hard drive.
  • VoiceMail via e-mail to main e-mail account and cell phone as a short text message, complete with caller ID info, time length, and the message attached as a WAV audio file.
  • Internal extensions over 802.11g wireless network (no cable lays), with uLaw (PSTN-level quality audio codec).
  • Using Twinkle (or any softphone), make calls in my home area from anywhere there’s an Internet connection.
  • So many possibilities!

Jul
26

Liftoff!

OK, well, here it is. I moved over the howtos and tips from Plone, and made nice little mod_rewrite rules to make that happen without losing their Googleness. ;) I might post to announce them a bit later.

Older posts «