Visit Jeremy's Blog.
Go Back > Blogs > catkin
User Name


Uncategorized Entries with no category

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 1708 Comments 0 catkin is offline

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 1457 Comments 0 catkin is offline

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:



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

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
re_clean = re.compile('^clean(, no-errors)? $')
re_clean = re.compile('^clean(, (checking|no-errors))? $')
LQ 5k Club
Posted in Uncategorized
Views 1639 Comments 0 catkin is offline

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
  2. keyutils. Available in 32 bit only from
The previous version I used, 9909, did not have these run time requirements.

keyutils home page:
LQ 5k Club
Posted in Uncategorized
Views 1977 Comments 0 catkin is offline


All times are GMT -5. The time now is 03:56 AM.

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