Archive

Archive for January, 2013

Search for a package containing a certain file

January 30th, 2013 No comments

Assumed you want to find the package that contains the shared object libGLU.so.1, e.g. because a binary is dynamically linked against it, and ldd tells you that the shared library requirements are not met. On Fedora (or any yum-type os) you’d run

$ yum whatprovides */libGLU.so.1

and yum would tell you, that mesa-libGLU comes with /usr/lib64/libGLU.so.1 which could fulfill your need (could because you could also be missing the i686 version of the package, depending on your binary).

The Ubuntu way of achieving the same thing:

$ apt-file search libGLU.so.1

And of course the corresponding package would be libglu1-mesa on any recent Ubuntu os.

Categories: Uncategorized Tags: , ,

Changing the default displaymanager in Fedora 18

January 21st, 2013 1 comment

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

# systemctl enable --force displaymanager.service 

Therefore, to switch from the default gdm to kdm you’d run:

# systemctl enable --force kdm.service 
Categories: Uncategorized Tags: ,

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

January 5th, 2013 1 comment

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):

UUID="616426f3-ac0b-4a4a-9221-62a0055bfb07"
NM_CONTROLLED="yes"
NETBOOT="yes"
BOOTPROTO="dhcp"
DHCP_HOSTNAME="MyFedoraBox"
DEVICE="eth0"
TYPE="Ethernet"
ONBOOT=yes
NAME="DHCP"
HWADDR=00:25:22:4A:3F:F2
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
USERS=user

Of course, this only works if you actually get your IP address via DHCP (since the DHCP server hands off the hostname to the DNS server). If you use a static IP configuration, nsupdate can be used to dynamically update the DNS server records. Examples and instructions on how to use nsupdate can be found at http://linux.yyz.us/nsupdate/ or http://dijks.wordpress.com/2012/07/17/register-a-hostnames-static-ip-with-your-corporate-dns-server/.

Categories: Uncategorized Tags: ,