nm_cli

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


nm_cli [2012/05/28 10:34] (current) – created brot
Line 1: Line 1:
 +====== WIFI Verbindungen mit dem NetworkManager - ohne GUI ======
 +Nicht nur bei der Installation von Gentoo steht man ab und an vor dem Problem eine Verbindung ins WLan herstellen zu wollen während man nur eine Konsole zur Verfügung hat. Der NetworkManager ist mittlerweile Standard bei vielen Distributionen, hat aber nur ein "kleines" CLI-Tool mit dem man nur bestehende Verbindungen Aktivieren kann. Praktischwerweise sind die "Verbindungen" nur ein Textfile im richtigen Ordner :)
 +
 +===== WIFI-Beispielkonfiguration =====
 +
 +Die Beispielkonfiguration sieht folgendermasen aus:
 +
 +<code text /etc/NetworkManager/system-connections/wifi-example>
 +# The following is a simple NetworkManager system connection file
 +# Edit it and drop it over to /etc/NetworkManager/system-connections
 +
 +# Be sure to set the UUID for each new connections file.
 +#
 +# The NetworkManager daemon watched that directory (with inotify), so no
 +# need to poke it after dropping the file there.
 +#
 +# This file only includes some common options. For a full reference, see
 +# /usr/share/doc/network-manager/settings-spec.html .
 +
 +[connection]
 +type=802-11-wireless
 +id=an_arbitrary_name
 +## You MUST create a new uuid. use the output of e.g. genuuid or 
 +## 'cat /proc/sys/kernel/random/uuid'. Be sure to recreate it after
 +## copying one file to another
 +#uuid=d126879a-fef8-4665-9aa8-4c55499221a5
 +
 +[802-11-wireless]
 +ssid=the_bssid_of_the_access_point
 +mode=infrastructure
 +
 +## Only enable this if the connection is encrypted:
 +#security=802-11-wireless-security
 +
 +# Also be sure to set the proper values in the following section:
 +
 +[802-11-wireless-security]
 +
 +## WPA2:
 +#key-mgmt=wpa-psk
 +#psk=The Secret
 +
 +## WEP:
 +#key-mgmt=none
 +#wep-key0=0011223344
 +</code>
 +
 +===== Aktivieren der Verbindung =====
 +
 +  nmcli con up id wifi-example
  
  • nm_cli.txt
  • Last modified: 2012/05/28 10:34
  • by brot