diff --git a/unsorted/network_setup.md b/unsorted/network_setup.md index e4ebae3..087ea03 100644 --- a/unsorted/network_setup.md +++ b/unsorted/network_setup.md @@ -1,14 +1,19 @@ -Setup Network between router, DukeVisitor wifi and computer(Ubuntu) +Network Setup between Router, DukeVisitor Wifi, and Computer(Ubuntu) ----- - install ssh in Ubuntu - `sudo apt update` - `sudo apt install openssh-server` -- create ethernet connection interface in `/etc/network/interfaces` +- create ethernet connection interface file in `/etc/network` called `interfaces` so that `/etc/network/interfaces` exists with ````` source-directory /etc/network/interfaces.d # auto lo iface lo inet loopback +# +auto eth0 +iface eth0 inet static +address 192.168.1.1 +netmask 255.255.255.0 ````` - change `/etc/NetworkManager/NetworkManager.conf` into @@ -16,7 +21,7 @@ iface lo inet loopback [main] plugins=ifupdown,keyfile [ifupdown] -managed=false +managed=true [device] wifi.scan-rand-mac-address=no ````` @@ -24,35 +29,32 @@ wifi.scan-rand-mac-address=no - run `sudo reboot` - change network settings - click `edit connection` under network in tool bar - - make sure `eth0` exists under Ethernet + - make sure `eth0` exists under Ethernet and is connected to - click into `eth0` - under `IPv6 Settings` tab, set `Method` to `Ignore` - under `General` tab, check `Automatically connect to this network when it is available` and `All users may connect to this network` - under `IPv4 Settings` tab, set `Method` to `Shared to other computers` - check ifconfig - - see if `eth0` is running with correct ip address + - see if `eth0` is running with correct ip address `192.168.1.1` - set default network connection to `DukeVisitor` wifi +- to prevent a new connection popping up upon reboot, + - change `/etc/network/interfaces` into + ````` + source-directory /etc/network/interfaces.d + # + auto lo + iface lo inet loopback + ````` + - and change `/etc/NetworkManager/NetworkManager.conf` into + ````` + [main] + plugins=ifupdown,keyfile + [ifupdown] + managed=false + [device] + wifi.scan-rand-mac-address=no + ````` +- run `sudo service network-manager restart` +- run `sudo reboot` - check if wifi and eth0 are automatically connected after reboot - - if not, try change `/etc/network/interfaces` into -````` -source-directory /etc/network/interfaces.d -# -auto lo -iface lo inet loopback -# -auto eth0 -iface eth0 inet static -address 192.168.1.1 -netmask 255.255.255.0 -````` -and change `/etc/Network/Manager/NetworkManager.conf` into -````` -[main] -plugins=ifupdown,keyfile -[ifupdown] -managed=true -[device] -wifi.scan-rand-mac-address=no -````` -and run `sudo service network-manager restart` and `sudo reboot` - - if it still doesn't work, then google:) + - if not, then google:)