Systemd: Difference between revisions
No edit summary |
|||
| Line 69: | Line 69: | ||
<pre> | <pre> | ||
[Resolve] | [Resolve] | ||
DNS=192.168.0.1 8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844 | DNS=192.168.0.1 | ||
#FallbackDNS=8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844 | |||
#LLMNR=yes | |||
</pre> | </pre> | ||
}} | }} | ||
| Line 87: | Line 89: | ||
<pre> | <pre> | ||
[Time] | [Time] | ||
NTP=192.168.0.1 | |||
#FallbackNTP=time1.google.com time2.google.com time3.google.com time4.google.com | |||
</pre> | </pre> | ||
}} | }} | ||
Revision as of 14:51, 1 September 2014
Description
systemd is a system and session manager for Linux also including udev nowadays.
Kernel settings
First of all you need a recent kernel version >=3.8 and some kernel options set.
Installation
*/* build_options: jobs=5 -recommended_tests */* systemd sys-apps/systemd seccomp
Now we need to reinstall packages with the systemd option set.
Network
You can find out what the network device will be named by running:
| Code: network device name |
ID_NET_NAME_MAC=enx005056a84955 ID_NET_NAME_PATH=enp11s0 |
systemd-networkd
This configuration will default to DHCP as long as the 10-static.network doesn't match.
[Match] Name=eno1 [Network] Address=192.168.0.88/24 Gateway=192.168.0.1 DNS=192.168.0.1
[Match] Name=en* [Network] DHCP=yes
Network Name Resolution manager
systemd-resolved
[Resolve] DNS=192.168.0.1 #FallbackDNS=8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844 #LLMNR=yes
Network Time Synchronization (NTP)
systemd-timesyncd
[Time] NTP=192.168.0.1 #FallbackNTP=time1.google.com time2.google.com time3.google.com time4.google.com
Enable sshd connectivity
Configuration
Hostname
Edits /etc/hostname and /etc/machine-info.
Timezone
Sets the /etc/localtime symlink.
Keyboard Layout
Edits /etc/vconsole.conf.
Localization
Edits /etc/locale.conf.
The systemd localectl commands sets the system locale, if you want to set your user locale use /etc/env.d/02locale.
Misc
Manually starting and stopping services
You'll find an overview of all installed services and sockets in /lib/systemd/system.
prints a status report of your systemd setup.
Enable additional/optional services
systemd-journal-gatewayd (accessible via port 19531):
cronie:
ntp:
MySQL:
Samba 4:
SSSD:
mdadm:
postfix:
NFS (client):
NFS (server):