↓ Archives ↓

Posts Tagged → linux

s3fs for openwrt

If you’ve been following along with my wifi radio posts, you may recall my problem of storage for the platform. I chose an ultra-low power and nearly zero storage device for my music collection because I planned to buy an external storage device and serve music from that device. I still think that’s a good idea, but I’m too cheap to spring for the kind of device I really want. So I’ve been experimenting with cloud storage which has a number of big advantages which I won’t get into here.

Continue reading →

super fast batch file manipulation with GNU/Linux

My first large foray into the world of GNU/Linux was with a tutorial for replacing a machine’s operating system (RHEL) with Debian over SSH. I was successful even though I had no idea what I was doing, and since then I’ve done a lot of my learning this way. One thing I’ve picked up through reading tutorials is the varying styles of batch file manipulation. Often times, you’ll see something like this magic:
for i in *.example; do cp $i|sed s/.example/.ini/; done
Continue reading →

working with linux filesystem permissions and acl

Now that we have our fancy new VPS and are allowed to create multiple user accounts, I’ve run into a problem with basic linux permissions that you really only find when you have multiple users working in the same space. In my case, we need multiple users to have access to all of our online property web roots. I started by using chown to force the entire web root under the ownership of www-data:www-data and adding everyone who needed access to the secondary www-data group. This works fine until people start making changes. Each new file they write becomes owned by only them and their primary group. Continue reading →

openwrt wifi radio part 3

Array Finding a good, cheap sound card should have been as easy as ordering the one mentioned on the mighty ohm for $10, but I thought I’d save eight bucks and order the cheapest possible one on ebay. When it arrived, the right channel was totally non-functional and to say the sound quality was poor would be an understatement. It was impressive though, that anyone could manufacture and deliver to my door a brand new USB sound card even counting the defects for only two dollars. But that’s all beside the point. Continue reading →

debian on a sunfire v240

Flickr Tag Error: Call to display photo '44648845[m]' failed.

Error state follows:

  • stat: fail
  • code: 1
  • message: Photo not found

Recently I inherited a Sun Microsystems SunFire v240. This thing burns hot and loud (hence the name), quite a lot of fun. After plugging in a console cable and booting up the system, I was met with a very nice surprise on specs.

Sun Fire V240, No Keyboard
Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.22.33, 8192 MB memory installed, Serial #58631225.
Ethernet address 0:3:ba:7e:a4:39, Host ID: 837ea439.
Continue reading →

infuriate linux users

A fellow developer was burned today when an administrator ran a so-called “kill script” to free up some system resources. It got me thinking about another way to infuriate the users of the system. I wanted it to be a one liner so it could be quickly placed in a cron script. Here’s what I came up with:
# Joe Blo sucks --steve
*/15 * * * * ps aux | grep $(id --user jblo) | awk '{print $2}' | shuf | tail -1 | xargs kill -9 > /dev/null 2>&1
This effectively kills a random process belonging to target every 15 minutes. How infuriating is that? Make sure to leave a note so your victim knows who to blame.

jumped on the intrepid ibex wagon

At about this time semi-annually, I can no longer hold myself back from upgrading to the next version of Ubuntu; and usually I am quite sorry I did just because of the nature of alpha software. The transition from edgy to feisty, feisty to gutsy, and from gutsy to hardy was a little painful at the alpha stage because the new network-manager applet was in its early stages. Each of those upgrades caused problems with my internet activity which made it difficult to access the internet and hence report bugs. This time around my wireless internet connections are stable and we’re still only in alpha 4, plus the automated bug reporting system is much better tuned. We’re starting to see a much more mature product emerge after all this time. Looking at the upcoming features, you’ll see things like “encrypted private directories”, “3g support”, and a new “guest account”. Continue reading →

linux filesystem rotating incremental backup

Array

I recently got a new VPS from vpslink.com. Their service is great because I can choose from a list of operating systems. I, of course, chose “Hardy Heron”, Ubuntu 8.04. This service is totally unmanaged other than DNS and billing so I have to manage everything myself, including backup.

I haven’t found anything out there that I’ve fallen in love with as far as backup is concerned, so I started with a shell script that covered the basics. I needed a rotating incremental backup script with full backups performed once a week. I wanted all the backups to live in a top level path like /backup and I wanted the whole backup process to be owned and operated by a backup user. My distribution came with a backup user, it just needed to be configured.

Continue reading →