Systemd: Difference between revisions
No edit summary |
No edit summary |
||
| Line 59: | Line 59: | ||
</pre> | </pre> | ||
}} | }} | ||
== Network Name Resolution manager == | |||
=== systemd-resolved === | |||
{{Root|rm /etc/resolv.conf}} | |||
{{Root|cd /etc}} | |||
{{Root|ln -s /run/systemd/network/resolv.conf resolv.conf}} | |||
{{Root|systemctl enable systemd-resolved.service}} | |||
== Network Time Synchronization (NTP) == | == Network Time Synchronization (NTP) == | ||
| Line 67: | Line 79: | ||
<pre> | <pre> | ||
[Time] | [Time] | ||
Servers= | Servers=192.168.0.1 | ||
</pre> | </pre> | ||
}} | }} | ||
| Line 74: | Line 86: | ||
{{Root|systemctl start systemd-timesyncd.service}} | {{Root|systemctl start systemd-timesyncd.service}} | ||
== Enable sshd connectivity == | == Enable sshd connectivity == | ||
Revision as of 02:48, 30 May 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
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: