Posts

Showing posts with the label debian

I welcome SoundBridge to my network

I have bought a new toy that is connected to the computer. It is a Pinnacle SoundBridge , which is the same as Roku SoundBridge . It download and plays music from my Ubuntu Server and can also play internet radio. I have installed Fire fly media server on my server to stream music using the daap-protocol. There is an Ubuntu/Debian package in the default repositories that is called mt-daapd, which is the old name of Fire fly. A nice thing with Fire fly is that it converts music files that are in formats that SoundBridge doesn't understand so they can be played anyway.

Defense your web server

Afraid of hackers, spammers, script kiddies will take over your Web-site? Want to be a bit safer? In Ubuntu there is an Apache module called mod_defensible who's aim is to block well know attacking sites to reach your web server. The module locks up every host that access your site and check if it is in a blocking database on the net. If thats the case the host will get Error 403 Forbidden, i.e. your server can not be reached. I have been using a similar tool for ssh for a while called deny host . I did not know about mod_defensible until today when I saw a how to for Debian on the how to forge. There are some small differences installing it between Debian and Ubuntu 8.04 (Hardy Heron). The main difference is that it is included in universe. So here is a quick instruction how to install mod_defensible. Login to your webserver and become root using sudo -s Install mod_defensible: apt-get install libapache2-mod-defensible Activate the module: a2enmod defensible Create a configfil...

Tell the world that Ubuntu is easy to upgrade

I am reading an article on the Swedish news site IDG about pro and cons between re-install and upgrading Ubuntu. The attached forum shows a clear doubt to upgrading. I meet the same opinion and lack of knowledge at work when talking about how easy it is to upgrade Ubuntu/Debian, in fact that it is as easy as do a security update. People do not believe me. Why? My guess is that MS Windows, commercial Unix such as Solaris, True64 and RPM-based Linux distribution have an upgrading scheme between releases that differs from security upgrades. You need to reboot the machine on a CD run a special upgrading program and hope that everything goes well. Most of the time you get a very crapy result whith lost configuration, broken application etc. Some OS (read MS Windows) are more or less impossible to upgrade to new releases, a new installation is the only option. It is time for a information campain about how easy it is to upgrade between Ubuntu releases. If it was not so easy it would be impo...

Service and /etc/init.d

Christer Edwards asked in his blog today about the difference between starting a init-script through /etc/init.d and the command service that exist on at least Red Hat boxes. I left a comment on his blog, but thought it would be nice to write some more about it here. It is not the first time I got the question. What Christers blog was about was that you can get the service command on Ubuntu too: sudo aptitude install sysvconfig At boot of your Linux machine the scripts in the /etc/rcX.d are started. X corresponds to your run level. On clients is it normally 5 and servers 3, but all Debian and Ubuntu-boxes uses 2. Anyway, those scripts are actually links to /etc/init.d/. The software that has called these scripts has traditionally been init, now days it is upstart on Ubuntu. Init does not necessary have the same environment variables set as you will have when you log in as root. Therefore is the service command fix so that the environment variables are the same as when starting the se...

Red Hat are funny guys

Red Hats Colby Hoke tells here that they introduced yum to solve the dependency hell. He continues: "Red Hat led the way [...] to solve a customer problem the dependency hell." He missed totally that they were more or last the last of the major Linux distributions to solve this problem. Or does he means that they were the first suits that talked about that they had solved a problem, other Linux users didn't have. To lead does not mean to just be in front of Solaris and Microsoft, it means to be in front of all. Does he knows that Y in yum stands for Yellow Dog, which is a Linux-distribution Macs. The dependency hell was one of the reason why I left Red Hat and Fedora in favor of first Debian and later Ubuntu.

Firefox and certificates

I am setting up my own CA (Certificate Authority) for all my services using SSL on my machines. Yesterday I wanted to import the Root-certificate into Firefox. Thats easy, if it is for a single user. Just click on the root certificate. But if you have a lot of users and computers? One do not want to force each user to do this manually. I want the root CA should be installed on each computer by the administrator and automatically work for the users. This is not possible with Firefox. The Root-CA:s certificates are compiled into the Firefox binaries and then at first start each user get its own certificate database. There are no central certificate database that Firefox looks into too. Ubuntu and Debian has a nice functionality where all CA-certs are stored in one place and then used by all well written applications, but not Firefox. I hope this will change in Firefox 3.0.

Start building Ubuntu/Debina packages

Hans asked a while ago about packaging software for Ubuntu/Debian. Here are some hints and good pointers, I hope. I have for a long time build RPM-packages for various distributions. When I began to create .debs this was booth good and bad to have a good knowledge about RPMs. Debian has a lot of utilities that makes things very smoothly, there are a lot of these tools I miss when creating RPM:s now days. On the other hand when you are used to describe your package in one .spec-file you may be a bit scared of all files you got in your debian-directory. Briefly described, the debian directory and .spec file has the same goal. They describe how to build the package from the source. I would say that if you are building a very simple package RPM:s are easier but as soon as you want to do more complex things deb:s are easier. for instance one thing you get help with creating debs is restarting daemons correct after upgrades etc, this is a mes for RPMs. I will not describe exactly what to ...

Debian package patches

The small amount of time I have spent on Apparmor to day have been to merge my and Kees Cooks work. Then I updated to the latest subversion revision. Now I run into problems with dpatch , which I never have used before. I have to spend some time to look into more details, but it have to be another day. I have not released any new packages to day, but Kees uploaded his packages to revu a few days ago. I will soon watch on Jamie Oliver on TV.

New release of Apparmor packages

I have now repackage the Apparmor packages for Ubuntu as a Multibinary package. This means that the source is one tar.gz-file and I will only need to do one upload to a central repository. Other changes are that they are based on the March 2007 snapshot and include build dependencies. But also minor changes to better conform with Ubuntu/Debian policies. Packages can be found at: http://www.linuxalert.org/ubuntu/apparmor/ . Unfortunately, I can at the moment see any possibility to get them into Feisty. It have to be for Feisty+1. If my assumption is correct I will host my own repository or try to get them in the official backports repository.

What is this?

I have been using Linux since before 1.0 of the kernel. I have been using it at home, school and work. Actually, Linux is my main task at work to day. I am responsible for the Linux servers at the Swedish weather service, SMHI . At work we are mostly running Red Hat Enterprise Linux. But at home I am running Ubuntu since an early release candidate of Warty. Before that I ave been running Red Hat/Fedora , Slackware , Yggdrasil, Debian , Gentoo and Suse . Booth me and my wife are running Linux on our desktop. I have an extra lab-machine, that I easy can change between different versions due to network boot. The server is also running Ubuntu with an addition of Xen. So the server is hosting four other servers: One for internal file, printing, web etc. One authentication and authorization server running MIT Kerberos and OpenLdap. One DMZ server accessible from internet with web and mail. Finally a lab server that I am using to develop a music jukebox together with some friends. Okey, s...