Skip to content

Instantly share code, notes, and snippets.

@ggrandes
Created April 25, 2017 14:43
Show Gist options
  • Save ggrandes/35822e7cd0e0df968261858240195a92 to your computer and use it in GitHub Desktop.
Save ggrandes/35822e7cd0e0df968261858240195a92 to your computer and use it in GitHub Desktop.
Linux Settings (sysfs / proc / kernel-param) [boot cmdline grub lilo]

I/O Scheduler (sysfs / kernel-param)

/sys/block/*/queue/scheduler
noop deadline cfq

elevator=deadline

IPv6 disable (proc / kernel-param)

sysctl -w net.ipv6.conf.all.disable_ipv6=1

ipv6.disable=1

Clock Source (sysfs/ kernel-param)

/sys/devices/system/clocksource/clocksource0/{current_clocksource,available_clocksource}
xen tsc hpet acpi_pm

clocksource=acpi_pm

Ethernet Names: eth0 vs em1 vs enp0s25 vs enx012345678246 (kernel-param)

net.ifnames=0 biosdevname=0

Panic on Oops (proc / kernel-param)

sysctl -w kernel.panic_on_oops=1

oops=panic

Reboot on Panic (proc / kernel-param)

sysctl -w kernel.panic=5

panic=5

Console Screensaver disable (cmdline / kernel-param)

setterm -powersave off -blank 0 < /dev/console 1>/dev/null 2>&1

consoleblank=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment