Author Archives: admin

How to send a client’s hostname to the DHCP server

In contrast to Ubuntu (or even Microsoft Windows) default installations of Fedora do not send the client’s hostname to the DHCP server. To change this behaviour, add a DHCP_HOSTNAME variable to your /etc/sysconfig/network-scripts/ifcfg-eth0 file (eth0 being your NIC’s interface name): Of course, this only works if you actually get your IP address via DHCP (since the DHCP server hands off… Read more »

Run JUnit test from the command line

      No Comments on Run JUnit test from the command line

JUnit tests can be run easily from within your IDE. Every remotely up to date IDE has some built-in view that gives nice visual feedback, usually red or green indicators. But of course it is also possible to invoke your tests from the command line. A simple example: A very nice article on JUnit testing by Lars Vogel can be… Read more »

KDE multi-monitor display settings are lost on logout

There are quite a few bug reports on the kde bug tracking system about kde losing display settings on logout (e.g. Bug 183143). But since this problem has been present for a couple of years and is still existing in the latest version of KDE (i.e. 4.8.5 at this writing), here’s a workaround: Add a parameter called StartupCommands to the… Read more »

Expendable Fedora 17 default services

      No Comments on Expendable Fedora 17 default services

Based on Harald Hoyer’s great tutorial on boot time optimization for Fedora 17, here’s a list of services I usually disable on my Fedora 17 boxes: This is just a memory hook for myself. YMMV and of course what’s expendable depends on the configuration you use on your box. For an explanation of the systemctl mask command have a look… Read more »

Bootstrapping a Fedora 17 rootserver

      No Comments on Bootstrapping a Fedora 17 rootserver

Quite a few things have changed since I made the Bootstrapping a Fedora 15 rootserver post, e.g. download urls, anaconda options and the way you add boot targets to grub2 (in contrast to legacy grub). So here’s an updated version… Get initial ramdisk and kernel This is basically still the same as with Fedora 15. The download links have changed… Read more »

Adding custom boot target to GRUB2

      No Comments on Adding custom boot target to GRUB2

In GRUB2 one doesn’t alter the main configuration file /boot/grub2/grub.cfg manually any more. Boot menu entries are automatically determined by the grub2-mkconfig script. To add a custom menu entry, edit /etc/grub.d/40_custom Note that GRUB2 partition numbering starts with 1 (not 0 like GRUB) but disk numbering starts with 0, e.g. if your kernel and inital ramdisk are located on /dev/sda2,… Read more »

Change GRUB2 default boot target

      2 Comments on Change GRUB2 default boot target

In GRUB, the default boot menu entry was determined by the order of entries in /boot/grub/menu.lst, the default one being the n-th specified by the default=n parameter. In GRUB2 the main configuration file /boot/grub2/grub.cfg isn’t usually altered manually any more but automatically generated by invoking grub2-mkconfig. You can change the default boot target by changing the GRUB_DEFAULT paramater in /etc/default/grub…. Read more »