Kernel update42
Aus HS Syswiki
(Unterschied zwischen Versionen)
Tch (Diskussion | Beiträge) |
Tch (Diskussion | Beiträge) |
||
Zeile 21: | Zeile 21: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | <syntaxhighlight lang="bash" style="font-size:9pt;"> | ||
+ | sed -i "s|'/USR/SBIN/CRON',|'/USR/SBIN/CRON',\n'perf',\n'fm10k',\n'ipv6_addrconf',\n'scsi_tmf_[0-5]',\n'raid5wq',\n'acpi_thermal_pm',|g" /usr/local/nagios/libexec/check_bad_procs | ||
+ | </syntaxhighlight> | ||
Check iptables rules and fail2ban | Check iptables rules and fail2ban |
Version vom 8. September 2015, 17:25 Uhr
ssh tuxYY "mkdir -p /usr/local/src/rpm/kernel" scp ~/HJA/Projects/Kernel/kernel-4.2.0_hoststar-1.x86_64.rpm tuxYY:/usr/local/src/rpm/kernel/. cp -arv /boot/grub/menu.lst /boot/grub/menu.lst_`date -I`-$$ cp -arv /etc/grub.conf /etc/grub.conf_`date -I`-$$ sed -i s'|(hd1,2)|(hd0,2)|'g /etc/grub.conf rpm -ivh /usr/local/src/rpm/kernel/kernel-4.2.0_hoststar-1.x86_64.rpm sed -i s'|default 1|default 0|'g /boot/grub/menu.lst 'perf', 'fm10k', 'ipv6_addrconf', 'scsi_tmf_[0-5]', 'raid5wq', 'acpi_thermal_pm',
sed -i "s|'/USR/SBIN/CRON',|'/USR/SBIN/CRON',\n'perf',\n'fm10k',\n'ipv6_addrconf',\n'scsi_tmf_[0-5]',\n'raid5wq',\n'acpi_thermal_pm',|g" /usr/local/nagios/libexec/check_bad_procs
Check iptables rules and fail2ban
iptables -L -n | less
In case of missing rules, restart iptables and fail2ban Installed on:
- -tux25
- -tux307
- -tux163
- -tux247
- -tux219
- -tux3.at
to Remove
- -rpm -e kernel-4.2.0_hoststar-1