1、系统启动项设置
cd /etc/default/
sudo gedit grub
or
sudo nano grub
sudo vi grub
其中GRUB_DEFAULT = 0为默认系统,GRUB_TIMEOUT=10为倒计时,最后需要 sudo update-grub才会生效。
2、锐捷认证
官网下载安装包解压,cd到rjsupplicant文件夹,
chmod +x rjsupplicant.sh 赋予 rjsupplicant.sh 文件执行权限,
sudo ./rjsupplicant.sh -d 1 -u 1506XXXXXX -p 000000 启动锐捷
特注:nohup sudo ./rjsupplicant.sh -d 1 -u 1506XXXXXX -p 000000 &
可以关掉终端后台运行。
重启网络
systemctl restart networking
重启网络管理
sudo service network-manager restart
Python3.6安装
之前装了Python3.6之后,想卸载Python3.5,结果删了一大堆系统依赖的Python包,只好重装Ubuntu,这是个坑,不要去尝试。
安装Python3.6
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
安装pip3:
curl https://bootstrap.pypa.io/get-pip.py | sudo python3.6
修改Python3 优先级:
sudo update-alternatives –install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives –install /usr/bin/python3 python3 /usr/bin/python3.6 2
Python3 指向Python3.6
切换Python3 指向 sudo update-alternatives –config python3
修改Python优先级:
sudo update-alternatives –install /usr/bin/python python /usr/bin/python2 3
sudo update-alternatives –install /usr/bin/python python /usr/bin/python3.6 4
Python指向Python3.6
切换Python指向 sudo update-alternatives –config python
sudo apt-get clean
sudo rm /var/lib/apt/lists/* -rvf
sudo gedit /etc/resolv.conf
sudo gedit /etc/apt/sources.list