diff --git a/wiki/linux/init.md b/wiki/linux/init.md new file mode 100644 index 0000000..1eeaf99 --- /dev/null +++ b/wiki/linux/init.md @@ -0,0 +1,11 @@ +# Init + +The init process is the first process started after boot. +All processes running in later stages are descendants of the init process. +The init process is given to a init system that manages various services. + +## Init Services + +The following is a list of available init services. + +- [SystemD](/wiki/linux/systemd.md) is most common among linux systems. diff --git a/wiki/linux/networkmanager.md b/wiki/linux/networkmanager.md new file mode 100644 index 0000000..8ea2922 --- /dev/null +++ b/wiki/linux/networkmanager.md @@ -0,0 +1,27 @@ +# NetworkManager + +NetworkManager - short NM - is a program to automatically detect and connect to +networks by providing options for various configuration. + +## Installation + +NetworkManager can be installed with the `networkmanager` package on most linux +distributions which provides daemon aswell as `nmcli` a command line interface +and `nmtui` a terminal user interface for configuration. +Additionally `nm-connection-editor` can be installed for a graphical user +interface. + +## Usage + +After installation `networkmanager.service` has to be enabled by the used +[init-system](/wiki/linux/init.md) (for example +[systemD](/wiki/linux/systemd.md#startstopenabledisable-a-service)). + +### OpenVPN + +NetworkManager needs a plugin to work with openvpn configurations. +This plugin can be installed with the `networkmanager-openvpn` package. + +OpenVPNs `.ovpn` files can then be imported by running +`nmcli connection import type openvpn file `. +Afterwards the can be modified accordingly. diff --git a/wiki/linux/systemd.md b/wiki/linux/systemd.md index 56c7180..10eebca 100644 --- a/wiki/linux/systemd.md +++ b/wiki/linux/systemd.md @@ -1,7 +1,7 @@ # SystemD -SystemD is a software suit for system components for Linux systems. -It is mainly used for service configuration. +SystemD is an [init system](./init.md) for Linux systems. +It is used for service configuration and startup. ## Run command on boot @@ -40,3 +40,12 @@ Alternatively it can be enabled to start at every boot by running: ```sh sudo systemctl enable unturned ``` + +## Start/Stop/Enable/Disable a service + +Services can be started by running `systemctl start `. +They respectively can be stopped by replacing the `start` +keyword for `stop`. +To start the service after boot it has to be enabled. +This works accordingly with the keyword `enable`. +The `disable` keyword stops the service from starting automatically.