Posts Tagged ubuntu

ubuntu and bind acting as slave

While installing a slave dns server with bind, I went into trouble. I could not understand why my slave zone would not synchronize. Actually I found these entries in /var/log/daemon.log:

named[24309]: dumping master file: /etc/bind/tmp-b0KyuKU5pG: open: permission denied
named[24309]: transfer of '' from w.x.y.z#53: failed while receiving responses: permission denied

It appears that since hardy, ubuntu doesn’t allow the named process to write in /etc/bind/ while it’s running.
Ubuntu is configured to allow slave zone to stay in /var/cache/bind/

So your slave zone will look like:

zone "" IN {
        type slave;
        file "/var/cache/bind/";
        masters { w.x.y.z; };

For the details, it’s due to apparmor, and precisely the file /etc/apparmor.d/usr.sbin.named.
As shipped with ubuntu, this file contains the authorizations for the named process that restricts where bind can write its zones, and reserves /var/cache/bind/ as the directory where bind is supposed to put its slave zones.
This seems to me technically good because /etc is pretty much supposed to be “read-only able” (beside /etc/mtab and /etc/resolv.conf that you can put in /dev/shm or link from /var/etc). This makes me wonder where to put master zones that you want to change ? Probably in /var/lib/bind because it’s where dynamically updated zone are.

Comments (3)

Installing redmine 0.8 on intrepid (ubuntu 8.10)

I’ve successfully insalled redmine pretty much easily but I needed to find out what packages to install with apt, which one with gem, which version …
Here is my magic receipe to install it all:

apt-get update 
apt-get install subversion mysql-server rubygems rake pwgen
# next line generates a password for the database
export PASSWORD=`pwgen -nc 8 1`
gem install -v=2.1.2 rails
cd /opt/
svn export redmine-0.8
cd redmine-0.8/
cat <<EOF >> config/database.yml
  adapter: mysql
  socket: /var/run/mysqld/mysqld.sock 
  database: redmine
  host: localhost
  username: redmine
  password: $PASSWORD
  encoding: utf8

rake db:migrate RAILS_ENV="production"
rake redmine:load_default_data RAILS_ENV="production"
apt-get remove pwgen subversion
RAILS_ENV="production" ./script/server  

And that’s it ! Redmine is running on port 3000.
I did this on an EC2 instance and it works like a charm (ami-7cfd1a15).
Maybe next article will discuss running redmine in mongrel or apache, and creating an init script for having redmine running on boot !

Comments (2)

Crossover Chromium: google’s chrome browser for osx and linux

Codeweavers, the company which is famous for releasing Crossover (a kind of windows emulator for linux and osx, based on the famous wine project) have released crossover chromium which is a package that contains just enough of crossover and a build of chromium to be able to run it. There’s an OSX and a Linux build. Chromium is google’s project which is the base of the chrome browser. Crossover released the packages 11 days after google chrome got out, this is a proof of concept, wine and crossover have became mature, codeweavers are reactive, but becarefull, it’s not advised to use crossover chromium as day to day browser for now (anyway, I think I’ll try to do it !).

Get the OSX package here, and ubuntu 32 bit pacakge here, and Have Fun !

Update: on osx, my chromium keeps crashing, I think this might because of my firewall, on linux, the windowing is quite slow but for me it works.

Leave a Comment

Hardy (ubuntu 8.04) Xen images

I have found Ubuntu Hardy Heron (8.04) XEN images.
It’s here and If you want a 64bit version, you have one here. Use this if you are lazy (I’m usually making my own images from scratch, but it’s not really necessary, using these images is faster and you get pretty much the same result).

Leave a Comment