linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux [2026/04/18 22:59] – 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]] | * [[FirewallD]] | ||
| * [[Git]] | * [[Git]] | ||
| * [[keepalive]] | * [[keepalive]] | ||
| + | * [[lxc]] | ||
| * [[mail]] | * [[mail]] | ||
| * [[rsync]] | * [[rsync]] | ||
| Line 16: | Line 19: | ||
| * [[SystemD Unit Files]] | * [[SystemD Unit Files]] | ||
| * [[tuned]] | * [[tuned]] | ||
| + | * [[ufw]] | ||
| * [[Vim]] | * [[Vim]] | ||
| * [[VNC]] | * [[VNC]] | ||
| Line 136: | Line 140: | ||
| These settings also exist at the device level (" | 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.1776545976.txt.gz · Last modified: by reddy
