Skip to content

tranducanhbk/WB_Net_config

Repository files navigation

WB_Net_Config

WB_Net_Config is a tool for configuration network of ubuntu 18

Install Dependency

pip install flask

pip install pyyaml

pip install netifaces

How to use

Step 1: Modify the config in config.py file to match with your device:

config = { "if_name": "eno1", "sudo_pass": 'cutetrang', "netplan_file_config_path":"/etc/netplan/01-network-manager-all.yaml" } with if_name is ethernet interface name

sudo_pass is pass word of root account

netplan_file_config_path is path to netplan config

Step 2: change mode of netplan config file to mode w/r by command

sudo chmod 777 /etc/netplan/01-network-manager-all.yaml

Step 3: copy content of 01-network-manager-all.yaml in this repo and replace content in /etc/netplan/01-network-manager-all.yamlfile

Step 4: config run netplan apply with nonpassword by:

sudo visudo then add ALL = NOPASSWD: /usr/sbin netplan apply (with username is user) at the bottom of file

Step 5: Run python app.py than config the IP on the WB

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published