LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Supermicro X11SSV-Q and fan speed control

Posted 10-01-2016 at 04:23 AM by catkin

Keywords: Supermicro X11SSV-Q lmsensors pwmconfig fancontrol

Only FAN1 and FAN2 are controllable and they are both controlled by /sys/devices/platform/nct6775.2608/hwmon/hwmon1/pwm2.

This found when running Debian 8 Jessie and experimenting by writing directly to the /sys/devices/platform/nct6775.2608/hwmon/hwmon1/pwm[1-3] files

There are four fan headers, FAN[1-4], but kernel module nct6775 creates only /sys/devices/platform/nct6775.2608/hwmon/hwmon1/pwm[1-3]...
LQ 5k Club
Posted in Uncategorized
Views 1736 Comments 0 catkin is offline
Old

ssh authorized_keys command= script example

Posted 06-24-2015 at 11:48 PM by catkin

I found little prior art on the 'net regards ssh authorized_keys command= scripts so it may be useful to share the solution we use with our backup scripts.

The remote computer backslash-escapes command words using bash's printf %q. The received command is available to the command= script in envar SSH_ORIGINAL_COMMAND.

The command= script has three jobs:
  1. Validate the command against a series of custom regexes
  2. Convert the SSH_ORIGINAL_COMMAND string to individual
...
LQ 5k Club
Posted in Uncategorized
Views 1515 Comments 0 catkin is offline
Old

Bash scrippet to extract all eth* addresses from /etc/network/interfaces

Posted 12-02-2014 at 08:03 AM by catkin

I looked for such a script on the 'net and did not find so here's a solution, tessted with the edge case of an address line at the end of the file:
Code:
#!/bin/bash

eth_regex=^eth

true=true
false=

address=
have_iface_flag=$false
while read -r word1 word2 word3 word4 _
do
    case $word1 in  
         iface )
             [[ $word2 =~ $eth_regex && $word4 != dhcp ]] \
...
LQ 5k Club
Posted in Uncategorized
Views 1230 Comments 0 catkin is offline
Old

nagios plugin check_md_raid: adapt to treat routine checks normally

Posted 08-14-2014 at 05:29 AM by catkin
Updated 08-14-2014 at 05:30 AM by catkin (Vertical spacing adjustment)

The problem

At least on Debian, md arrays are routinely checked monthly by /etc/cron.d/mdadm. During the check, the nagios plugin check_md_raid generates critical alerts.

The solution

In /usr/lib/nagios/plugins/check_md_raid, change
Code:
re_clean = re.compile('^clean(, no-errors)? $')
to
Code:
re_clean = re.compile('^clean(, (checking|no-errors))? $')
LQ 5k Club
Posted in Uncategorized
Views 1661 Comments 0 catkin is offline
Old

Spideroak install pre-reqs on Slackware

Posted 03-27-2013 at 10:45 AM by catkin
Updated 03-27-2013 at 10:47 AM by catkin

Spideroak 4.8.4 has two run time requirements on Slackware 13.37:
  1. krb. Available as a SlackBuild and 64 bit only from slacky.eu
  2. keyutils. Available in 32 bit only from slacky.eu
The previous version I used, 9909, did not have these run time requirements.

keyutils home page: http://people.redhat.com/~dhowells/keyutils/
LQ 5k Club
Posted in Uncategorized
Views 1995 Comments 0 catkin is offline

  



All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration