Postfix Satellite configuration: Remote SMTP with auth

If you have ever run into the problem that your computer will not send e-mails directly, then this might help. Install Postfix and configure it as a satellite server. This was done on a Ubuntu desktop installation, so I don’t know what Fedora and co. will say. In the /etc/postfix/main.cf file add or modify the […]

Ubuntu Netboot

Notes on getting Ubuntu netboot to work so that I don’t have to burn any CD’s This document expects a DHCP server to be available in the network Install tftp sudo aptitude install tftpd-hpa tftp-hpa Get netboot files: cd /var/lib/tftpboot sudo wget -r -nH -np –cut-dirs=8 http://archive.ubuntu.com/\ ubuntu/dists/maverick/main/installer-amd64/\ current/images/netboot find ./ -name “index.*” | sudo […]

VirtualBox resolution problems in a headless environment

In certain cases running a VirtualBox VM in a headless linux environment can lead to a Windows XP having an undesired resolution. I fixed this using the following two commands: Global command: VBoxManage setextradata global GUI/MaxGuestResolution 1920,1200 For a running VM: VBoxManage controlvm “remote” setvideomodehint 1920 1200 24 I found the resolution in this forum: […]

aptitude search vs apt-cache search

Over the years I have grown used to the fact that when I search for a package on a debian based distro, then I use: apt-cache search foo bar The result was a list of all the packages which had the text ‘foo’ and ‘bar’ in the description. Lately it has been discouraged to use […]

Determining the base directory of a bash script

While writing bash scripts, I find it a good idea to put reusable functions into their own scripts and then source them into other scripts. This means that one must use the source /file/to/source call to load these files. To be able to do this, the bash script must know where the scripts to source […]

Ubuntu 10.04 and Lucid Lynx: No icons in menu or buttons

For the Ubuntu 10.04 Lucid Lynx, the developers decided to remove the Interface tab in System -> Preferences -> Appearance. What made them do that I can not fathom. Yet there is (still) an option to put the icons back. You can put it back for all new users by adding the following two lines […]

DHCP Internet and own DNS Server

If you’re running your own DNS Server and your internet connection is using DHCP to get the WAN IP, then you might run into the same problem I have. I have configured my own LAN DNS-Server on a local IP and configured this in /etc/resolv.conf. Periodically the DHCP Client refreshes the WAN IP, thus overwriting […]

Remote Desktop from Ubuntu

I don’t want to search for the right commands everytime I want to connect to a windows machine with RDP when I’m on a Linux machine running Ubuntu or Kubuntu that is. The best tool I know, that really does the work is rdesktop. Install this package: sudo apt-get install rdesktop And then just connect […]

MySQL new user SQL statements

A quick and dirty explanation to create a new MySQL datbase with a user Create the user: CREATE USER ‘hibtest’@’localhost’ IDENTIFIED BY ‘*******’; Set some permissions: GRANT USAGE ON * . * TO ‘hibtest’@’localhost’ IDENTIFIED BY ‘*******’ WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0MAX_USER_CONNECTIONS 0 ; Create the database: CREATE DATABASE IF NOT EXISTS `hibtest` […]