Difference between revisions of "Netctl"

From ArchWiki
Jump to: navigation, search
(reordered)
m (For Users Migrating from netcfg)
Line 39: Line 39:
 
In order to migrate from netcfg, at least the following is needed:
 
In order to migrate from netcfg, at least the following is needed:
 
*Move network profile files to the new directory.
 
*Move network profile files to the new directory.
*Rename variables therein according to netctl.profile(5) (most have only become CamelCase).
+
*Rename variables therein according to netctl.profile(5) (most have only become CamelCase i.e CONNECTION= becomes Connection=).
 
*Unquote interface variables and other variables that don't strictly need quoting (this is mainly a style thing).
 
*Unquote interface variables and other variables that don't strictly need quoting (this is mainly a style thing).
 
*Run {{ic|netctl enable <profile>}} for every profile in the old NETWORKS array. 'last' doesn't work this way, see netcfg.special(7).
 
*Run {{ic|netctl enable <profile>}} for every profile in the old NETWORKS array. 'last' doesn't work this way, see netcfg.special(7).

Revision as of 06:16, 11 February 2013

Template:Article summary start Template:Article summary text Template:Article summary end

Intro

Netctl is a new Arch project slated to replace netcfg. Users should regard it as the future of CLI-based network management on Arch Linux.

Installation

Netctl is currently in [testing]. Users are encouraged to download it from their favorite mirror.

Recommended Reading

Considerable effort has gone into the construction of quality man pages. Users are encouraged to read the following man pages prior to using netctl:

  • netctl
  • netctl.profile
  • netctl.special

Configuration

Netctl uses simple text profiles. Example profiles are provided for users to use as a template under /etc/netctl/examples. Common configurations include:

  • ethernet-dhcp
  • ethernet-static
  • wireless-wpa-static

To use an example profile, simply copy it to {{/etc/netctl/<profile>}} and edit:

# cp /etc/netctl/examples/ethernet-static /etc/netctl/my-static-network

For Users Migrating from netcfg

Netctl uses /etc/netctl to store its profiles whereas netcfg used /etc/network.d for the same purpose.

In order to migrate from netcfg, at least the following is needed:

  • Move network profile files to the new directory.
  • Rename variables therein according to netctl.profile(5) (most have only become CamelCase i.e CONNECTION= becomes Connection=).
  • Unquote interface variables and other variables that don't strictly need quoting (this is mainly a style thing).
  • Run netctl enable <profile> for every profile in the old NETWORKS array. 'last' doesn't work this way, see netcfg.special(7).
  • Use netctl list / netctl start <profile> instead of netcfg-menu. wifi-menu remains available.

Support

Official announcement thread: https://bbs.archlinux.org/viewtopic.php?id=157670