Systemd: Difference between revisions
No edit summary |
No edit summary |
||
| Line 34: | Line 34: | ||
}} | }} | ||
=== DHCP | === systemd-networkd === | ||
{{File|/etc/systemd/network/eno1.network| | |||
<pre> | |||
[Match] | |||
Name=eno1 | |||
[Network] | |||
DHCP=0 | |||
Address=192.168.0.88/24 | |||
Gateway=192.168.0.1 | |||
DNS=192.168.0.1 | |||
</pre> | |||
}} | |||
=== NetworkManager === | |||
{{Root|cave resolve repository/desktop -x}} | {{Root|cave resolve repository/desktop -x}} | ||
| Line 42: | Line 57: | ||
{{Root|systemctl enable NetworkManager.service}} | {{Root|systemctl enable NetworkManager.service}} | ||
NetworkManager does DHCP by default. | |||
=== NetworkManager (static) === | |||
== Enable sshd connectivity == | == Enable sshd connectivity == | ||
Revision as of 22:19, 23 February 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 simple-net
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
[Match] Name=eno1 [Network] DHCP=0 Address=192.168.0.88/24 Gateway=192.168.0.1 DNS=192.168.0.1
NetworkManager
NetworkManager does DHCP by default.
NetworkManager (static)
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 you 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):
vixie-cron:
ntp:
MySQL:
Samba 4:
mdadm:
postfix:
nfs client:
nfs server: