Systemd: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| Line 31: | Line 31: | ||
== Paludis configuration == | == Paludis configuration == | ||
=== Unmask currently masked packages === | === Unmask currently masked packages === | ||
{{ | {{File|/etc/paludis/package_unmask.conf| | ||
<pre> | <pre> | ||
dev-lang/vala | dev-lang/vala | ||
| Line 39: | Line 39: | ||
=== System and package options === | === System and package options === | ||
{{ | {{File|/etc/paludis/options.conf| | ||
<pre> | <pre> | ||
*/* build_options: -recommended_tests | */* build_options: -recommended_tests | ||
| Line 49: | Line 49: | ||
First we need to add repositories for the dependencies not in ::arbor (you need to setup [[Paludis]] for automatic repository installation first). | First we need to add repositories for the dependencies not in ::arbor (you need to setup [[Paludis]] for automatic repository installation first). | ||
{{ | {{Root|cave resolve repository/desktop repository/x11 -x}} | ||
Install the systemd package: | Install the systemd package: | ||
{{ | {{Root|cave resolve systemd -x}} | ||
Now we need to reinstall packages with the systemd option set. | Now we need to reinstall packages with the systemd option set. | ||
{{ | {{Root|cave resolve world -c -x}} | ||
Swich over to systemd using eclectic. | Swich over to systemd using eclectic. | ||
{{ | {{Root|eclectic init set systemd}} | ||
{{ | {{File|/etc/hostname| | ||
<pre> | <pre> | ||
desired-hostname | desired-hostname | ||
| Line 69: | Line 69: | ||
}} | }} | ||
{{ | {{File|/etc/vconsole.conf| | ||
<pre> | <pre> | ||
FONT="lat9w-16" | FONT="lat9w-16" | ||
| Line 76: | Line 76: | ||
}} | }} | ||
{{ | {{File|/etc/conf.d/network.conf| | ||
<pre> | <pre> | ||
IFACE=eth0 | IFACE=eth0 | ||
| Line 86: | Line 86: | ||
}} | }} | ||
{{ | {{File|/etc/env.d/02locale| | ||
<pre> | <pre> | ||
LANG=de_DE.utf8 | LANG=de_DE.utf8 | ||
| Line 99: | Line 99: | ||
either for simple net: | either for simple net: | ||
{{ | {{Root|systemctl enable network.service}} | ||
or when using NetworkManager: | or when using NetworkManager: | ||
{{ | {{Root|systemctl enable NetworkManager.service}} | ||
Enable sshd connectivity: | Enable sshd connectivity: | ||
{{ | {{Root|systemctl enable sshd.socket}} | ||
Reboot and login via SSH. | Reboot and login via SSH. | ||
| Line 115: | Line 115: | ||
You'll find an overview of all installed services and sockets in /lib/systemd/system. | You'll find an overview of all installed services and sockets in /lib/systemd/system. | ||
{{ | {{Root|systemctl start <service>.service}} | ||
{{ | {{Root|systemctl stop <service>.service}} | ||
{{ | {{Root|systemctl}} prints a status report of your systemd setup. | ||
== Optional services == | == Optional services == | ||
vixie-cron: | vixie-cron: | ||
{{ | {{Root|systemctl enable vixie-cron.service}} | ||
ntp: | ntp: | ||
{{ | {{Root|systemctl enable ntpd.service}} | ||
MySQL: | MySQL: | ||
{{ | {{Root|systemctl enable mysql.service}} | ||
Revision as of 17:22, 13 January 2011
Description
systemd is a system and session manager for Linux.
Kernel settings
First of all you need a recent kernel version >=2.6.36-rc1 and some kernel options set.
| Linux Kernel Configuration: Kernel .config |
General setup ---> [*] Control Group support ---> [*] Namespace cgroup subsystem [*] Freezer cgroup subsystem [*] Device controller for cgroups [*] Simple CPU accounting cgroup subsystem [*] Group CPU scheduler ---> [*] Group scheduling for SCHED_OTHER <*> Block IO controller Device Drivers ---> Generic Driver Options ---> [*] Maintain a devtmpfs filesystem to mount at /dev File systems ---> [*] Filesystem wide access notification [*] fanotify permissions checking < > Kernel automounter support <*> Kernel automounter version 4 support (also supports v3) Security options ---> [*] Enable different security models |
Paludis configuration
Unmask currently masked packages
File: /etc/paludis/package_unmask.conf
dev-lang/vala dev-libs/glib
System and package options
File: /etc/paludis/options.conf
*/* build_options: -recommended_tests */* systemd sys-apps/systemd simple-net
First we need to add repositories for the dependencies not in ::arbor (you need to setup Paludis for automatic repository installation first).
# cave resolve repository/desktop repository/x11 -x
Install the systemd package:
# cave resolve systemd -x
Now we need to reinstall packages with the systemd option set.
# cave resolve world -c -x
Swich over to systemd using eclectic.
# eclectic init set systemd
File: /etc/hostname
desired-hostname
File: /etc/vconsole.conf
FONT="lat9w-16" KEYMAP="de"
File: /etc/conf.d/network.conf
IFACE=eth0 IPV4=192.168.0.2 MASK=255.255.255.0 BCAST=255.255.255.0 GATEWAY=192.168.0.1
File: /etc/env.d/02locale
LANG=de_DE.utf8
Reboot and login.
Enable network
either for simple net:
# systemctl enable network.service
or when using NetworkManager:
# systemctl enable NetworkManager.service
Enable sshd connectivity:
# systemctl enable sshd.socket
Reboot and login via SSH.
Manually starting and stopping services
You'll find an overview of all installed services and sockets in /lib/systemd/system.
# systemctl start <service>.service
# systemctl stop <service>.service
# systemctl
prints a status report of your systemd setup.
Optional services
vixie-cron:
# systemctl enable vixie-cron.service
ntp:
# systemctl enable ntpd.service
MySQL:
# systemctl enable mysql.service