Posts Tagged ‘Linux’

Write a DVD-Video from the Linux console

December 31st, 2007

This is probably my last post for this year, and it’s not about Ruby on Rails! Or web development! It’s about how to burn a DVD-Video from the Linux console.

I know, there are tons of fancy apps (with a decent GUI) that allow you to create DVD-Video disks from Gnome or KDE. But, my Linux machine has no monitor attached and I don’t care for hogging up resources by running X.

Bash it! – Number of messages in Postfix queue

November 15th, 2007

Got bash? Here’s a nice snippet that will return the number of messages currently in the postfix queue.

postqueue -p | tail -n 1 | cut -d' ' -f5

Feel free to post any updates or improvements.

Clear DNS Cache on your router

July 7th, 2007

I currently have a Linksys router at home that has the DD-WRT Firmware on it. I’ve been using it for quite some time now, and I’m very happy with it.

In my previous post I mentioned there was some trouble with DNS for Ariejan.net. I’ve changed nameservers and there’s always something that goes wrong.

Anyway, my router runs DNSMasq, a caching nameserver for my local network. (What this does is, it stores DNS queries and when the same request is made later on, the response is already here (on my network), and my ISP’s nameservers don’t have to be queried. This makes for a great speed optimalization!)

The problem was, that my router was caching parts from the old and parts from the new nameservers for Ariejan.net. I could have waited 24-48 hours to let DNSMasq figure it all out by itself, but I’m not that patient. What I needed to was reset the cache DNSMasq had built.

Rails production server setup and deployment on Ubuntu/Debian

June 20th, 2007

Please digg this story to spread the word! Thanks!

Okay, this is a big one! This article will show you (and explain to you) how to setup a Ruby on Rails production server with Ubuntu 7.04 or Debian 4.0 and how to deploy your Rails application there.

First, what’s getting installed:

  • Ruby 1.8.5
  • Ruby on Rails 1.2.3
  • Subversion 1.4
  • MySQL 5.x Server
  • Apache 2.2.x
  • Mongrel Cluster

I assume that you have just installed a fresh system with Ubuntu Linux 7.04 or Debian 4.0. If you haven’t, do so now! You don’t need to install the “DNS” or “LAMP” server in Ubuntu. Just a minimal system is enough for this tutorial.

I’ll be deploy an imaginary Rails application named “myapp” which uses MySQL and is stored in Subversion. More on that later on.

Well, let’s get going and get that Ruby on Rails server ready.

Coming up: Ubuntu Development Server Guide

June 7th, 2007

My articles about setting up a Ubuntu Development Server (part 1 and part 2) have been very successful.

I’m considering writing a new guide with more up-to-date information on how to setup a development server that allows you (and your team) to develop software, manage source code, track tickets and all that stuff.

Trac, WebAdmin plugin and global configuration

May 30th, 2007

As you may know I manage quite a few trac installations. A few days ago I upgrade my server from Ubuntu “Dapper Drake” 6.06 to Ubuntu “Feisty Fawn” 7.04. This also upgrade trac 0.9.x to 0.10.3.

I was happy, since trac 0.10.3 has many improvements over 0.9.x, but there was one thing I was not so happy about. After the upgrade, I upgraded all my trac installations and everything seemed to be okay, except for the WebAdmin plugin. Apparently it was not installed anymore.

What happened? After upgrading the trac package, the plugins directory was emptied. Well, just re-install the WebAdmin plugin for 0.10.x.

Slow connections with ProFTPD

May 29th, 2007

My shiny new VPS, which is running Ubuntu Linux, uses ProFTPD for FTP access. Today I noticed that setting up the connection takes about 5 to 10 seconds. This is really annoying when editing files through FTP.

5 Reasons why PC OEMs should offer Linux

March 29th, 2007

DELL currently offers Linux as an option for certain laptop and desktop models. Talk is that this service may be expanded to all models. This is a good thing, of course. Results of a recent survey by DELL show that more than 70% of over 100.000 respondents want to use Linux for home and office! What has been keeping companies like DELL away from this?

Ubuntu 6.10 Live DVD on the Apple MacBook

November 15th, 2006

Since I teach various Linux courses at Fontys Centrum IT, I want to run a live CD or DVD on my MacBook. First off, here are my specs:

  • Apple MacBook (White)
  • Intel Core Duo 2.0Ghz
  • 1.0Gb RAM
  • 13.3″ 1280×800 TFT
  • 60 Gb Internal Harddisk
  • 300 Gb External FireWire harddisk

As my Live medium I chose the Ubuntu Linux 6.10 Live DVD. This DVD has several nice options (install server, for example) that I like. It also can boot up in a live desktop environment.

CUPS: 426 – Upgrade Required

November 13th, 2006

As I was installing my printer on my Ubuntu 6.06 Dapper LTS server with CUPS I noticed the following error:

426 Upgrade Required

After some research I came to the conclusion that CUPS, by default, tries to use SSL whenever possible. So, with this 426 error, you are redirected to the SSL domain. Chances are, you haven’t configured SSL properly, if at all.

In my case, I didn’t want to configure SSL. To get rid of this problem, the key lies in editing your configuration files ( /etc/cups/cupsd.conf ) and adding the following line:

b59e67b384f91d795d3f90a8e6f43b0f043

There are several options, Never, IfRequired and Required. By setting this to Never, SSL will never be enforced. Just restart your CUPS server with

b59e67b384f91d795d3f90a8e6f43b0f044

and you’re good to go.