Jacob Peddicord

April 2008 Archives

Know of some users who might be new to the terminal and are willing to explore? I've made a cheat sheet for beginners and experts alike of frequently used (and frequently forgotten) commands in Hardy, including from new applications like ufw. Check it out below!

Comments, suggestions? If you like it, pass it on!

Edit: I've reworded apt-get dist-upgrade, switched out xserver-xorg reconfigure and reworded description, and changed apt-get remove to purge.

Ohio!

| No Comments

Hey! Going to be in Ohio this Saturday, April 26? Then come join us for an 8.04 release party!

There are currently two locations that you can attend; the wiki page will be updated with any more:

Click the links above for driving directions and parking information. Both locations provide free WiFi. Bring money for food if you want. Bring friends!

Both parties start at 5:00 PM EST on Saturday. Open to anyone and everyone interested in Linux, Ubuntu, or free software. Sign up so we can get a good idea of who is going to which locations. Registration is optional, but if you do it we'll have a better idea of who to expect.

See you there!

Explaining the Ubuntu release schedule

| 2 Comments

I met someone on IRC who had a difficult time understanding Ubuntu's release style, so I came up with the following:

[jacob] Windows beta releases come in chunks [jacob] consider that like going down a river on a tour boat that stops at sites for a few days, then keeps going to stop some more. each stop is a beta, and eventually they will arrive at the destination. [jacob] Ubuntu's release scheme is like white water rafting [jacob] you can jump in at any time, and you will constantly get hit with updates [jacob] eventually you will end up at the end; there are no "stopping points" per say, just landmarks that represent betas

Yes, I'm weird. But hey, it worked.

Check how much web bandwidth your users are using

| 7 Comments

This is the ckbw script I briefly mentioned earlier. Before going any deeper into the subject, realize that this script assumes some things about your system:

  1. You are using the "combined" Apache2 log format.
  2. Logs are stored as /home/username.logs/domainname.com.access.log and compatible logrotate (.1, .2, etc) equivalents.

In a general sense, ckbw parses through all log files in the above directory and gets a file size total for all items used. Some things, such as unbuffered PHP scripts, will not return a file size and so will not be counted. Be sure that you at least have a month of logs if using logrotate or data can not be reported accurately.

Onto the script itself:
ckbw script; Perl

Basic usage:
ckbw apr - grab the bandwidth used in April on the current user
sudo -u bob ckbw apr - get the bandwidth used in April by "bob"

The script is hardcoded to grab the bandwidth per user and not per site, but it should be very easy to adapt it for a getting stats of a single site.
If anyone has a more elegant way of grabbing the output of system() or similar without piping to a file, let me know.

DreamFAIL

| 2 Comments

I have no issues with DreamHost's service. Before I moved to a VPS provider, I was with them for all of my hosting. They had provided (and still do provide) great service and reliability for a shared host. Customer service for the most part is excellent, and gets things done in usually 5 minutes to an hour.

But when your signup form begs you not to leave, then you better run as fast as you can.

When trying to close the page:


  1. An alert appears.

  2. A confirmation dialog appears.

  3. If you hit Cancel, the "live chat" appears.

  4. Trying to close the "live" chat yields another confirmation box.

dreamhost-dontleave.png


While I'm at it, might as well join the parade:
jacob@codechunk:~$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' |sort -rn|head
108 sudo
56 cd
36 tail
35 ls
31 svi
28 vi
19 screen
19 fg
17 ckbw
14 htop

svi = sudo vim
ckbw = script to check bandwidth on an apache site.

There you have it.

Feed identi.ca Twitter LinkedIn Launchpad OpenID