Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Reordered steps in network setup documentation #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 30 additions & 28 deletions unsorted/network_setup.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,60 @@
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
`````
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
managed=true
[device]
wifi.scan-rand-mac-address=no
`````
- run `sudo service network-manager restart`
- 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:)