With the release of Fedora 18, there have been some changes to the /etc/sysconfig directory. For example, switching the default display manager is no longer done by altering parameters in /etc/sysconfig/desktop but via Therefore, to switch from the default gdm to kdm you’d run:
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 »
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 »
Jhead is a great tool for manipulating jpeg exif headers. To change a file’s time stamp to what’s stored in the header, invoke: To change the time stamp of all files that were changed within the last day: See also http://www.sentex.net/~mwandel/jhead/usage.html
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 »
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 »
There are basically two ways of archiving this Changing rsync’s rsh parameter You can simply feed ssh with a different port parameter as remote shell to ssh: Create a per host config for ssh Add a Host entry to ~/.ssh/config and invoke rsync with that alias
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 »
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 »
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 »