SDN程式設計測試環境搭建
# 設定root賬戶密碼
sudo passwd root
# 修改源映象(提高下載更新速度)
sudo apt-get update
pip install open-vm-tools
pip install open-vm-tools-desktop
sudo gedit /etc/apt/sources.list
# 以下為Ubuntu16.04版本阿里源,具體根據系統版本修改
deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe
sudo apt install git
git clone git://github.com/mininet/mininet
mininet/util/install.sh -a
# 下載pycharm(linux社群版即可),解壓專案包用pycharm開啟
sudo ./pycharm.sh
# 在pycharm開啟專案的終端執行(注意前面有.venv表示自定義好的Python環境)
pip install mininet
# 在pycharm開啟專案的終端,執行執行專案命令(需要載入的應用寫好(主義新建資料夾選擇python資料夾、新建檔案選擇Python檔案),並把路徑新增至main.py)
./run.sh