Advertisement
FocusedWolf

Arch: Internet setup

May 20th, 2024
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. --------------------------------------------------------------------------------
  2.  
  3. Connect to the internet:
  4.  
  5. For wireless and WWAN, make sure the card is not blocked with rfkill.
  6.  
  7. 1. Connect to the network:
  8.  
  9. Ethernet:
  10.  
  11. Plug in the cable.
  12.  
  13. --------------------------------------------------------------------------------
  14.  
  15. Wi-Fi:
  16.  
  17. Start the interactive prompt:
  18.  
  19. $ iwctl <-- NOTE: Use $ exit or Ctrl + D to quit the interactive prompt.
  20.  
  21. NOTE: You can use all commands as command line arguments without entering an interactive prompt, e.g. [$ iwctl device wlan0 show].
  22.  
  23. NOTE: To list all available commands use [# help].
  24.  
  25. Connect to a network:
  26.  
  27. 1. List all Wi-Fi devices:
  28.  
  29. # device list
  30.  
  31. 2. If the device or its corresponding adapter is turned off, turn it on:
  32.  
  33. # device <device> set-property Powered on
  34. # adapter <adapter> set-property Powered on
  35.  
  36. 3. Scan for networks:
  37.  
  38. # station <device> scan
  39. # station <device> get-networks
  40.  
  41. 4. Connect to a network:
  42.  
  43. # station <device> connect "Case-Sensitive SSID"
  44.  
  45. NOTE: The command line equivalent: [$ iwctl --passphrase <pw> station <device> connect SSID]
  46.  
  47. NOTE: iwd automatically stores network passphrases in /var/lib/iwd/ and uses them to auto-connect in the future.
  48. iwd only supports PSK pass-phrases from 8 to 63 ASCII-encoded characters. The following error message will be given if the requirements are not met: PMK generation failed. Ensure Crypto Engine is properly configured.
  49.  
  50. NOTE: For automatic IP and DNS configuration via DHCP, you have to manually enable the built-in DHCP client or configure a standalone DHCP client.
  51.  
  52. NOTE: The user interface supports autocomplete. Typing station or connect and Tab Tab, the available devices or networks are displayed,
  53. Type the first letters of the device or network and Tab to complete.
  54.  
  55. Connect to a network using WPS/WSC:
  56.  
  57. If your network is configured such that you can connect to it by pressing a button:
  58.  
  59. # wsc list
  60.  
  61. If your device appeared in the above list:
  62.  
  63. # wsc <device> push-button
  64.  
  65. And push the button on your router. The procedure works also if the button was pushed beforehand, less than 2 minutes earlier.
  66.  
  67. If your network requires to validate a PIN number to connect that way, check the # help command output to see how to provide the right options to the wsc command.
  68.  
  69. --------------------------------------------------------------------------------
  70.  
  71. 1. Disconnect from a network:
  72.  
  73. # station <device> disconnect
  74.  
  75. 2. Show device and connection information:
  76.  
  77. # device <device> show
  78.  
  79. 3. Display the connection state:
  80.  
  81. # station <device> show
  82.  
  83. 4. Manage known networks:
  84.  
  85. # known-networks list
  86.  
  87. 5. Forget a known network:
  88.  
  89. # known-networks "SSID" forget
  90.  
  91. --------------------------------------------------------------------------------
  92.  
  93. 2. Ensure your network interface is listed and enabled:
  94.  
  95. $ ip link
  96.  
  97. 3. The connection may be verified with ping:
  98.  
  99. $ ping -c 3 archlinux.org
  100.  
  101. Update the system clock:
  102.  
  103. In the live environment systemd-timesyncd is enabled by default and time will be synced automatically once a connection to the internet is established.
  104. Use timedatectl to ensure the system clock is accurate.
  105.  
  106. $ timedatectl status <-- Can use this command to check the status of the service.
  107. $ timedatectl set-ntp true <-- Enable and start the network synchronization service.
  108.  
  109. --------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement