process restart time must be after the configure file modified time
sudo -s sudo -i bash -c "sudo -i"
You can add the command like this:
su - user -c "bash command"
before the line `exit 0`
run this command in command line tty with root user:
service lightdm restart
MSYS2 is a software distro and building platform for Windows. At its core is an independent rewrite of MSYS, based on modern Cygwin (POSIX compatibility layer) and MinGW-w64 with the aim of better interoperability with native Windows software. It provides a bash shell, Autotools, revision control systems and the like for building native Windows applications using MinGW-w64 toolchains. It features a package management system to provide easy installation of packages, Pacman. It brings many powerful features such as dependency resolution and simple complete system upgrades, as well as straight-forward package building.
Reference from: MSYS2 installer
This is the download link in TUNA: Index of /msys2/distrib/x86_64/
Look at this:
The main point is:
Case 1, because of the UI bug in Ubuntu 16.04, you should edit the connection file "/etc/NetworkManager/system-connections/name-of-your-connection" enter your password value in [802-1x] block like this:
[802-1x] altsubject-matches= eap=peap; identity=account password=password phase2-altsubject-matches= phase2-auth=mschapv2
Case 2, because of the USB which is a bootstrap Ubuntu system was inserted in the usb interface, after me reboot the Ubuntu system, the connection always fail. After remove the USB driver, it will work.
1, If you met this error while restart network:
Nov 08 11:07:07 debian kernel: bnx2 0000:01:00.0: firmware: failed to load bnx2/bnx2-mips-09-6.2.1b.fw (-2) Nov 08 11:07:07 debian kernel: bnx2 0000:01:00.0: Direct firmware load for bnx2/bnx2-mips-09-6.2.1b.fw failed with error -2
You need to install the NIC driver: DELL_LAN.iso : mount the iso,
mount -t iso9660 DELL_LAN.iso /dstdir
and use command `dpkg -i *.deb` install the two deb packages in the iso.
3, Add such like this configure in the network conf file: "/etc/network/interface"
auto vlan170 iface vlan170 inet static vlan-raw-device eno1 address 10.17.3.249 netmask 255.255.252.0 gateway 10.17.0.1 auto vlan174 iface vlan174 inet static vlan-raw-device eno1 address 10.17.7.249 netmask 255.255.252.0 gateway 10.17.4.1
and then, restart the networking.
4, Run the cmd `ip r s` will get some route rule like this (these will be generate automatic):
root@debian:~# ip r s default via 10.17.0.1 dev vlan170 onlink 10.17.0.0/22 dev vlan170 proto kernel scope link src 10.17.3.249 10.17.4.0/22 dev vlan174 proto kernel scope link src 10.17.7.249
Finish or you can change the route rule by yourself.