Translate

Image of Modern Operating Systems (3rd Edition)
Image of Beginning Google Maps API 3
Image of RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302) (Certification Press)
Image of Linux Kernel Development (3rd Edition)

Revisiting Systemd D-Bus Interfaces

In a May 2013 blog post I examined the then systemd D-Bus interface. At that time the systemd version string was 208. In this short blog I will discuss hostnamectl/hostnamed and timedatectl/timedatectl functionality as it relates to the systemd Dbus. You can use the following dbus-send command to find out what’s available on the D-Bus system bus: # dbus-send –system –print-reply –dest=”org.freedesktop.DBus” \ /org/freedesktop/DBus org.freedesktop.DBus.ListActivatableNames method return sender=org.freedesktop.DBus -> dest=:1.137 reply_serial=2 array [ string “org.freedesktop.DBus” string “org.freedesktop.login1” string “org.fedoraproject.Setroubleshootd” string “org.freedesktop.machine1” string “org.freedesktop.ColorManager” string “com.redhat.problems.configuration” string “org.freedesktop.systemd1” string “org.freedesktop.Avahi” string “org.freedesktop.PolicyKit1” string “org.freedesktop.ModemManager1” string “org.bluez” string “org.freedesktop.hostname1” string “org.freedesktop.NetworkManager” string

Fedora 18 Hostname Changes

In Fedora 18, the hostname is now stored in /etc/hostname rather then in the HOSTNAME= line /etc/sysconfig/network. There are now three distinguished hostnames in use with Fedora 18. A high-level pretty free-form hostname The static hostname, i.e. the kernel hostname Possibly a transient temporary hostname A pretty hostname can include all kinds of special characters, e.g. “Murphy’s Laptop”. There are few restrictions on the characters used. Note that the static and transient hostnames are limited to the usually accepted characters of Internet domain names. A transient hostname might be assigned temporarily via a network configuration. The hostname might revert back