From e15e5ccf0a1e283aa7fac6aa7248131462124cc8 Mon Sep 17 00:00:00 2001 From: bguo919 <56141027+bguo919@users.noreply.github.com> Date: Tue, 25 Feb 2020 19:40:13 -0500 Subject: [PATCH 1/4] Update network_setup.md --- unsorted/network_setup.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/unsorted/network_setup.md b/unsorted/network_setup.md index e4ebae3..ea68d97 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 in `/etc/network/interfaces`, it may already exist ````` 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 ````` @@ -30,29 +35,24 @@ wifi.scan-rand-mac-address=no - 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 -- check if wifi and eth0 are automatically connected after reboot - - if not, try change `/etc/network/interfaces` into +- 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 +- change `/etc/NetworkManager/NetworkManager.conf` into ````` [main] plugins=ifupdown,keyfile [ifupdown] -managed=true +managed=false [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:) +- check if wifi and eth0 are automatically connected after reboot +- if not, then google:) From 28430929126447f1907595cf30b932fd30515d52 Mon Sep 17 00:00:00 2001 From: bguo919 <56141027+bguo919@users.noreply.github.com> Date: Tue, 25 Feb 2020 19:41:33 -0500 Subject: [PATCH 2/4] Update network_setup.md --- unsorted/network_setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsorted/network_setup.md b/unsorted/network_setup.md index ea68d97..9dbc06e 100644 --- a/unsorted/network_setup.md +++ b/unsorted/network_setup.md @@ -29,7 +29,7 @@ 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` From b64c86b0d5aae710abad07eda475b984daae750c Mon Sep 17 00:00:00 2001 From: bguo919 <56141027+bguo919@users.noreply.github.com> Date: Tue, 25 Feb 2020 19:42:43 -0500 Subject: [PATCH 3/4] Update network_setup.md --- unsorted/network_setup.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unsorted/network_setup.md b/unsorted/network_setup.md index 9dbc06e..de29b61 100644 --- a/unsorted/network_setup.md +++ b/unsorted/network_setup.md @@ -53,6 +53,7 @@ managed=false [device] wifi.scan-rand-mac-address=no ````` -and run `sudo service network-manager restart` and `sudo reboot` +- run `sudo service network-manager restart` +- run `sudo reboot` - check if wifi and eth0 are automatically connected after reboot -- if not, then google:) + - if not, then google:) From d3b579a9cc61c72bffc8964e66ea2199b021ff8e Mon Sep 17 00:00:00 2001 From: bguo919 <56141027+bguo919@users.noreply.github.com> Date: Tue, 25 Feb 2020 19:49:21 -0500 Subject: [PATCH 4/4] Update network_setup.md --- unsorted/network_setup.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/unsorted/network_setup.md b/unsorted/network_setup.md index de29b61..087ea03 100644 --- a/unsorted/network_setup.md +++ b/unsorted/network_setup.md @@ -3,7 +3,7 @@ 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`, it may already exist +- create ethernet connection interface file in `/etc/network` called `interfaces` so that `/etc/network/interfaces` exists with ````` source-directory /etc/network/interfaces.d # @@ -37,22 +37,23 @@ wifi.scan-rand-mac-address=no - check ifconfig - see if `eth0` is running with correct ip address `192.168.1.1` - set default network connection to `DukeVisitor` wifi -- change `/etc/network/interfaces` into -````` -source-directory /etc/network/interfaces.d -# -auto lo -iface lo inet loopback -````` -- change `/etc/NetworkManager/NetworkManager.conf` into -````` -[main] -plugins=ifupdown,keyfile -[ifupdown] -managed=false -[device] -wifi.scan-rand-mac-address=no -````` +- 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