LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs > catkin
User Name
Password

Notices



Uncategorized Entries with no category
Old

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

Posted 12-02-2014 at 09: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 67 Comments 0 catkin is offline
Old

nagios plugin check_md_raid: adapt to treat routine checks normally

Posted 08-14-2014 at 06:29 AM by catkin
Updated 08-14-2014 at 06: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 253 Comments 0 catkin is offline
Old

Spideroak install pre-reqs on Slackware

Posted 03-27-2013 at 11:45 AM by catkin
Updated 03-27-2013 at 11: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 675 Comments 0 catkin is offline
Old

Thunderbird "hyperlinks don't open" fix

Posted 12-31-2012 at 06:45 AM by catkin
Updated 01-04-2013 at 02:27 AM by catkin

A new installation of Thunderbird did not open hyperlinks in incoming mails. After ~3 days of looking for a fix, I found it in AndrzejL's Re: Fixing Skype / Thunderbird / Google Earth connection with Firefox on PCLinuxOS-Forums. This is to publicise AndrzejL's technique because I had found it early in the search for a solution and dismissed it as similar to others and/or not closely related to the problem.

AIUI AndrzejL's technique applies when there are no entries for HTTP and...
LQ 5k Club
Posted in Uncategorized
Views 465 Comments 0 catkin is offline
Old

OOo/LibreOffice Calc BASIC: cell display orientation/rotation

Posted 05-18-2012 at 02:45 AM by catkin

There are incorrect examples on the internet of using OOo/LibreOffice BASIC to set Calc cell contents to display vertically, the same as can be done interactively via Format Cell -> Alignment -> Text Orientation and setting the angle to 90 degrees.

The problem is that they show 90 but the units are 1/100ths of a degree so vertical requires 9000.

This works
Code:
oCell.setPropertyValue( "RotateAngle", 9000 )
This does not work (it is here to...
LQ 5k Club
Posted in Uncategorized
Views 1531 Comments 0 catkin is offline

  



All times are GMT -5. The time now is 11:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration