Connect WiFi 5 to eth0 via command line on Linux
Connect WiFi 5 to eth0 via command line on Linux
Asking a straightforward question. You're using a Raspberry Pi with Raspbian Lite and want to link your PC to the internet without a long Ethernet cable. Since it's not a desktop OS, you'll need alternative methods like Wi-Fi or mobile hotspot.
This version is a bit outdated but should remain functional. For a more current reference, visit the arch wiki at https://wiki.archlinux.org/index.php/Rou...on_sharing
sudo systemctl enable iptables sudo systemctl start iptables Then store your rules: iptables-save -f /etc/iptables/iptables.rules Finally, apply the saved rules: iptables-restore /etc/iptables/iptables.rules
It might be smarter to add a Desktop Environment to the Pi for easier setup with a GUI. Raspberry Pi Lite doesn’t include one by default, but you can install it quickly. Even a simple lightweight option or a tiling window manager works well.
There are plenty of options available, but you won’t need to reinstall anything.
It seems like a lightweight option would be best, given the Pi setup and your plans. I recommend xfce, lxde, or mate. Set up a display manager so you can use a graphical login screen and pick the DE instead of managing `startx`. Just install lightdm and turn it on with `sudo systemctl enable lightdm.service`. Once done, you can turn it off or remove it completely if needed.