↓ Archives ↓

Posts Tagged → ubuntu

stevecrozz' custom nginx binary for ubuntu 0.7.59

Update:

I've removed the links to these files because newer and supported versions of nginx are being distributed with with 9.10. You're much better off using those anyway. This was only a stopgap.

nginx logoThe nginx build in the official ubuntu package repository is somewhat out-of-date, so I built my own package from source using 0.7.59. I'm going to provide it here in case anyone else would like it. One of the new features I like is the try_files directive. Here's an example of what I'm doing using 0.6.35, the full post is here http://lithostech.com/lighten-apaches-load-nginx:

location / {
  root /var/www/fresnobeehive.com;
  proxy_set_header X-Forwarded-For  $remote_addr;
  if (-f $document_root/beehive$uri) {
    rewrite (.*) /beehive$1 break;
  }
  if (-f $request_filename) {
    break;
  }
  if (-f $request_filename/index.html) {
    rewrite (.*) $1/index.html break;
  }
  if (-f $document_root/beehive$uri/index.html) {
    rewrite (.*) /beehive$1/index.html break;
  }
  if (!-f $request_filename) {
    proxy_pass http://fresnobeehive.com:8080;
    break;
  }
}

Here's the same thing using the new try_files syntax:

upstream backend {
  server fresnobeehive.com:8080;
}
location / {
  try_files /beehive/$uri /beehive/$uri/index.html $uri $uri/index.html @mt;
}
location @mt {
  proxy_pass http://backend;
  proxy_set_header X-Forwarded-For  $remote_addr;
  proxy_set_header Host $host;
}

Attached is a copy of my newer build of nginx, you are free to use my version as long as you don't expect me to support it or provide any kind of assurance that it actually works. Here's the configure line so you can see what I have enabled/disabled. I have disabled a lot of things so make sure you look it over.

./configure $(CONFIGURE_OPTS) \
    --conf-path=/etc/nginx/nginx.conf \
    --error-log-path=/var/log/nginx/error.log \
    --pid-path=/var/run/nginx.pid \
    --lock-path=/var/lock/nginx.lock \
    --http-log-path=/var/log/nginx/access.log \
    --http-client-body-temp-path=/var/lib/nginx/body \
    --http-proxy-temp-path=/var/lib/nginx/proxy \
    --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
    --with-http_flv_module \
    --with-http_ssl_module \
    --without-mail_pop3_module \
    --without-mail_smtp_module \
    --without-mail_imap_module \
    --without-http_ssi_module \
    --without-http_userid_module \
    --without-http_auth_basic_module \
    --without-http_autoindex_module \
    --without-http_browser_module

upgrading movabletype-opensource on debian/ubuntu

Since 2008, Debian has had a movabletype-opensource package available in the repository. That's good news for people who like to make short work of system administration. Unfortunately, the package in the repository isn't the very latest and greatest. Even so, there are big benefits to using aptitude to install movable type, the main one being that it automatically installs all the various dependencies and offloads your job (maintaining those packages) to someone else. Plus the file locations are well-thought-out. Rather than throwing everything right into the web root the package maintainer put the cgi files into a common cgi-bin folder, the shared files into /usr/shared, the perl modules into the shared perl library, and the configuration files into /etc.

Continue reading →

trying to use PDT with GCJ, again

eclipse pdt screenshotAfter upgrading to Intrepid Ibex Alpha 5, I was presented with a familiar problem. I knew I had dealt with this at least a half-dozen times in the past, but I never seem to learn. It all happened when I tried to import a project I'd started from my subversion repository into eclipse on my laptop. I began to get very strange un-googlable Java errors that I knew I'd seen before. Here's two of them:

java.lang.nullpointerexception
java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.util.EcoreEMap$DelegateEObjectContainmentEList
Continue reading →

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 →

2560x1024 Hardy Heron desktop background

hardy heron desktop backgroundI couldn't resist making a nice big desktop wallpaper for my dual monitor setup out of the cool new hardy heron ubuntu artwork. I found the vector graphic file to work with, and simply widened it up and moved the heron further to the right using Inkscape. I exported the bitmap and touched it up a bit in the GIMP, and I'm posting it here to save others the 15 minutes I took to do it.