linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux [2026/03/01 19:37] – reddy | linux [2026/05/02 18:11] (current) – reddy | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Popular Topics ===== | ===== Popular Topics ===== | ||
| + | * [[bash]] | ||
| + | * [[bind]] | ||
| + | * [[chrony]] | ||
| * [[Docker]] | * [[Docker]] | ||
| + | * [[diff]] | ||
| + | * [[FirewallD]] | ||
| * [[Git]] | * [[Git]] | ||
| + | * [[keepalive]] | ||
| + | * [[lxc]] | ||
| + | * [[mail]] | ||
| * [[rsync]] | * [[rsync]] | ||
| * [[Samba]] | * [[Samba]] | ||
| + | * [[SELinux]] | ||
| * [[SystemD Unit Files]] | * [[SystemD Unit Files]] | ||
| * [[tuned]] | * [[tuned]] | ||
| + | * [[ufw]] | ||
| * [[Vim]] | * [[Vim]] | ||
| * [[VNC]] | * [[VNC]] | ||
| Line 82: | Line 92: | ||
| </ | </ | ||
| - | ==== ssh-copy-id: Auth with another key ==== | + | ==== ssh-copy-id ==== |
| < | < | ||
| ssh-keygen -f key_file_name | ssh-keygen -f key_file_name | ||
| + | |||
| + | # To make it non-interactive (we cannot pass the StrictHostKeychecking so we direct the " | ||
| + | sshpass -p mypassword ssh-copy-id -i key_file_name.pub myuser@myserver <<< | ||
| # ssh-copy-id doesn' | # ssh-copy-id doesn' | ||
| # ...but it passes along options to ssh | # ...but it passes along options to ssh | ||
| ssh-copy-id -i ~/ | ssh-copy-id -i ~/ | ||
| - | |||
| - | # To make it non-interactive (we cannot pass the StrictHostKeychecking so we direct the " | ||
| - | sshpass -p mypassword ssh-copy-id -i key_file_name.pub myuser@myserver <<< | ||
| # This can also be done with ssh-agent | # This can also be done with ssh-agent | ||
| Line 101: | Line 111: | ||
| </ | </ | ||
| + | ==== Setting DNS server ==== | ||
| + | |||
| + | Use the Network Manager CLI as follows. | ||
| + | |||
| + | List connections with: | ||
| + | < | ||
| + | nmcli c | ||
| + | </ | ||
| + | |||
| + | Using the connection name, look at the configured DNS servers: | ||
| + | < | ||
| + | nmcli c show ' | ||
| + | </ | ||
| + | |||
| + | Set the new DNS servers | ||
| + | < | ||
| + | nmcli c modify ' | ||
| + | nmcli c modify ' | ||
| + | # The above commands are an alternative to modifying the config file at | ||
| + | # / | ||
| + | </ | ||
| + | |||
| + | For the change to take effect: | ||
| + | < | ||
| + | nmcli c down ' | ||
| + | </ | ||
| + | These settings also exist at the device level (" | ||
linux.1772390260.txt.gz · Last modified: by reddy
