1.打开

sudo vim /etc/systemd/logind.conf

2.找到

#HandleLidSwitch=suspend

3.修改成

HandleLidSwitch=ignore

4.重启Login Manager服务

sudo service systemd-logind start

5.done

In bash, set +e is basically the default: If you get an error in a bash script, it normally barfs out an error to the system (this is called an exit code) but the script will continue running.

But if you want errors to cause the script immediately to exit then you can put set -e on a line to force your script to exit on errors from that point on.

*Using set -e should be carefully planned… you don’t want to stop on the first error and miss the second problem, which could something much worse:

(example)
set -e
dodge approaching car (*steering wheel error- abandon program, including the routine to slam on the breaks. You die.)

via quora:https://stackoverflow.com/questions/19622198/what-does-set-e-mean-in-a-bash-script

deb http://mirrors.aliyun.com/debian stretch main contrib non-free
deb http://mirrors.aliyun.com/debian stretch-proposed-updates main contrib non-free
deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free

deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch-proposed-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free

deb http://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib

替换掉/etc/apt/sources.list即可

1. data link layer design issues

  1. providing a well-defined service interface to the network layer.
  2. dealing with transmission errors.
  3. regulating the flow of data so that slow receivers are not swamped by fast senders.

Functions

  1. Framing
  2. Physical Addressing
  3. Flow Control
  4. Error Control
  5. Access Control