Systemd: Difference between revisions
No edit summary |
No edit summary |
||
| Line 64: | Line 64: | ||
=== systemd-resolved === | === systemd-resolved === | ||
{{File|/etc/systemd/resolved.conf| | |||
<pre> | |||
[Resolve] | |||
DNS=192.168.0.1 8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844 | |||
</pre> | |||
}} | |||
{{Root|rm /etc/resolv.conf}} | {{Root|rm /etc/resolv.conf}} | ||
{{Root|cd /etc}} | {{Root|cd /etc}} | ||
{{Root|ln -s /run/systemd/ | {{Root|ln -s /run/systemd/resolve/resolv.conf resolv.conf}} | ||
{{Root|systemctl enable systemd-resolved.service}} | {{Root|systemctl enable systemd-resolved.service}} | ||
Revision as of 03:00, 26 June 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 8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844
Network Time Synchronization (NTP)
systemd-timesyncd
[Time] Servers=192.168.0.1
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):
NFS (client):
cronie:
ntp:
MySQL:
Samba 4:
mdadm:
postfix:
nfs client:
nfs server: