Prevent Changing resolv.conf
- Protect the /etc/resolv.conf file
chattr +i /etc/resolv.conf
Just think about micro things
chattr +i /etc/resolv.conf
Problem: A user complained that his account was lockouted frequencely. He changed password several days ago.
By default, the Windows server 2016 enables MapsBroker, OneSyncSvc and WbioSrvc services. Those services may be stopped for some reason and they causes error messages on dashboard. It’s kind of noisy. Use the following command to disable them in Command Prompt (Admin).
Allow port 6000 incoming traffic on Windows firewall. If there are multiple displays, the server listens on port 6001, 6002, etc.
// Should not match
''
' '
' '
' '
// Should match
'one-word'
'one-word '
' one-word'
' one-word '
'one phrase with whitespace'
'one phrase with whitespace '
' one phrase with whitespace'
' one phrase with whitespace '
Usually all servers need to be reboot mannually instead of do it automatically because we need to make sure all services are online after reboot. I cannot find Download only
option on GUI Windows Update Settings on Windows Server 2016. But we can run command sconfig
with admintrators privilege to change it.
yield
statement instead of return
statement. It can have mutilple yield
statements.__iter__()
and __next__()
are implemented automatically.yield
statement pauses the function saving all its states and later continues from there on successive calls.Two useful links about coding principles:
Hold Search key and press keys