Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Foolproof Internet in Manjaro Linux
- First, we get rid of Network Manager and reininstall some of its dependencies.
- sudo -i
- systemctl stop NetworkManager
- systemctl disable NetworkManager
- sudo pacman -Rs networkmanager
- sudo pacman -S wpa_supplicant dhcpcd
- Next, we have to write some files.
- /etc/systemd/network/25-wireless.network
- - - -
- [Match]
- Name=wlp58s0
- [Network]
- DHCP=ipv4
- /etc/wpa_supplicant/wpa_supplicant-wlp58s0.conf
- - - -
- ctrl_interface=/var/run/wpa_supplicant
- eapol_version=1
- ap_scan=1
- fast_reauth=1
- network={
- ssid="YOUR SSID HERE"
- psk="YOUR PASSPHRASE HERE"
- priority=1
- }
- You can use `wpa_passphrase` if you don't want to store your passphrase in clear text.
- Now, we need to start the relevant services.
- sudo -i
- systemctl enable systemd-networkd
- systemctl enable systemd-resolved
- systemctl enable systemd-timesyncd
- systemctl enable wpa_supplicant@wlp58s0
- systemctl enable dhcpcd
- systemctl start systemd-networkd
- systemctl start systemd-resolved
- systemctl start systemd-timesyncd
- systemctl start wpa_supplicant@wlp58s0
- systemctl start dhcpcd
- Next, edit the `systemd-resolved` config file
- /etc/systemd/resolved.conf
- - - -
- [Resolve]
- DNS=8.8.8.8 8.8.4.4
- and symlink it.
- sudo -i
- rm /etc/resolv.conf
- ln -s /etc/systemd/resolved.conf /etc/resolv.conf
- Finally, reboot and things should work.
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement