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 20:25] – reddy | linux [2026/10/25 21:18] (current) – Added sysctl commands reddy | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| * [[bash]] | * [[bash]] | ||
| * [[bind]] | * [[bind]] | ||
| + | * [[chrony]] | ||
| * [[Docker]] | * [[Docker]] | ||
| * [[diff]] | * [[diff]] | ||
| + | * [[dnsmasq]] | ||
| + | * [[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 104: | Line 112: | ||
| </ | </ | ||
| + | ==== 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 (" | ||
| + | |||
| + | ==== Setting the Default Runlevel ==== | ||
| + | |||
| + | < | ||
| + | # Get the current default run-level | ||
| + | systemctl get-default | ||
| + | |||
| + | # Start in text mode | ||
| + | sudo systemctl set-default multi-user.target | ||
| + | |||
| + | # Start with a GUI desktop | ||
| + | sudo systemctl set-default graphical.target | ||
| + | </ | ||
| + | |||
| + | ==== Disable SystemD Resolv from port 53 ==== | ||
| + | |||
| + | Edit / | ||
| + | < | ||
| + | # | ||
| + | DNSStubListener=no | ||
| + | </ | ||
| + | |||
| + | Then, restart the systemd-resolved service. | ||
| + | |||
| + | ==== Send SystemD Resolv requests to another DNS server ==== | ||
| + | |||
| + | In / | ||
| + | < | ||
| + | [Resolve] | ||
| + | DNS=1.2.3.4 | ||
| + | Domains=~mytest | ||
| + | </ | ||
| + | |||
| + | ==== Scan for bad sectors ==== | ||
| + | |||
| + | < | ||
| + | badblocks -v /dev/sda1 > bs.txt | ||
| + | fsck -l bs.txt / | ||
| + | |||
| + | smartctl -H / | ||
| + | smartctl -A / | ||
| + | </ | ||
| + | |||
| + | ==== Grub Boot ==== | ||
| + | |||
| + | < | ||
| + | sudo grub-install --recheck /dev/sda | ||
| + | sudo update-grub | ||
| + | </ | ||
| + | |||
| + | ==== Sysctl ==== | ||
| + | |||
| + | < | ||
| + | sysctl -a # List all parameters | ||
| + | sysctl < | ||
| + | sysctl -w < | ||
| + | sysctl -p < | ||
| + | </ | ||
linux.1772393128.txt.gz · Last modified: by reddy
