Archive

Archive for the ‘linux’ Category

Favourite additional packages for Ubuntu

March 13th, 2009 1 comment

The standard Ubuntu installation comes already with a pretty complete set of software packages. Next to the standard set of packages I install on my desktop/laptop:

  • ubuntu-restricted-extras: allerlei extra fonts, video codecs, etc.
  • default-jre: installeer de java JRE
  • geany: my favourite editor, very usefull for php, html, css, etc.
  • meld: an easy diff program which also enables melding differences per line
  • mozplugger: show PDF’s inside a tab of Firefox
  • compizconfig-settings-manager: tune je desktop effecten
    • schakel de “Ring wisselaar” aan, zet daarbij “Volgende venster (alle werkruimten)” op toets Alt-Tab

And a bit of tuning:

  • For 9.04 following command prohibits the pop-under of the upgrade program. It returns to the previous policy showing a notification icon:
    gconftool -s –type bool /apps/update-notifier/auto_launch false
Categories: linux Tags:

Installing awstats on Debian system

March 8th, 2009 No comments

To see who is visiting your website there is a nice opensource package available called awstats. After installing awstats by the usual command a few extra actions are required. I’ll explain in the rest of these post the required steps for a simple configuration. Read more…

Categories: linux Tags:

Sudo command from php

March 4th, 2009 No comments

I wanted to have an easy button in a webpage to restart some process that requires sudo rights. After quite some Google searches I combined a few techniques that made this work.

Although this method only grants very limited rights to the webserver, granting superrights to a web process might open up some security issues somehow. However family or co-workers simply pressing the on/off button on the server when something is not working and I’m not around is a worse problem in my opionion. Read more…

Categories: linux Tags:

SSH Port forwarding

February 11th, 2008 No comments

Because I always forget the precise syntax here the diagram I use to remember.

SSH Port forwarding

Categories: linux Tags:

Easy favicon.ico creation

July 17th, 2007 No comments

There are many ways to create a favicon.ico but I found this to be quick and easy.
The setup on Ubuntu:

 sudo apt-get install imagemagick icoutils

then to create an icon:

convert image.gif -resize 32x32 favicon.png
icotool -c -o favicon.ico favicon.png
Categories: linux Tags: ,

Optimizing Ubuntu server with low memory

July 17th, 2007 No comments

My home server has “only” 128MB memory. With following modifications I got this webiste working at a very acceptable speed for use by a few users.

Create a file /etc/apache2/mods-enabled/memory.conf with following content:

MaxClients 5
StartServers 1
MinSpareServers 1
MaxSpareServers 2

After this change restart apache with:

sudo /etc/init.d/apache restart

This tip is based on the very interesting article at rimuhosting.com

Categories: linux Tags: