mirror of
https://github.com/tiyn/wiki.git
synced 2025-11-06 21:21:16 +01:00
45 lines
1.4 KiB
Markdown
45 lines
1.4 KiB
Markdown
# NetworkManager
|
|
|
|
NetworkManager - short NM - is a program to automatically detect and connect to
|
|
networks by providing options for various configuration.
|
|
It is used to set up [Wi-Fi](/wiki/linux/wi-fi.md).
|
|
|
|
## Setup
|
|
|
|
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](/wiki/linux/system_console.md) 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 <openvpn-file>`.
|
|
Afterwards they can be modified accordingly.
|
|
|
|
## Troubleshooting
|
|
|
|
This section focusses on the troubleshooting of situations where the system does not connect
|
|
correctly.
|
|
|
|
### Restarting and Reenabling Wi-Fi
|
|
|
|
A useful chain of commands is the following.
|
|
It will restart the [SystemD](/wiki/linux/systemd.md) service and enable the Wi-Fi device.
|
|
|
|
```sh
|
|
systemctl restart NetworkManager
|
|
nmcli radio wifi on
|
|
```
|