Monitoring Temperature and Fans with lm_sensors

How to install and configure lm_sensors for temp and fan monitoring

Install the lm_sensors package

sudo yum install lm_sensors or sudo apt install lm-sensors

Configure lm_sensors

sensors-detect
Enter ‘YES’ for all prompts
Check what module: cat /etc/sysconfig/lm_sensors
Load the module: modprobe (module name)

Check temperature and fan data

(in Fahrenheit): sensors -f

lm_sensors - techpain.com

lm_sensors Manual Page

Usage: sensors [OPTION]... [CHIP]...
-c, --config-file     Specify a config file (default: /etc/sensors.conf)
-h, --help            Display this help text
-s, --set             Execute `set' statements (root only)
-f, --fahrenheit      Show temperatures in degrees fahrenheit
-A, --no-adapter      Do not show adapter for each chip
-U, --no-unknown      Do not show unknown chips
-u, --unknown         Treat chips as unknown ones (testing only)
-v, --version         Display the program version Use `-' after `-c' to read the config file from stdin.
If no chips are specified, all chip info will be printed.
Example chip names:
lm78-i2c-0-2d   *-i2c-0-2d
lm78-i2c-0-*    *-i2c-0-*
lm78-i2c-*-2d   *-i2c-*-2d
lm78-i2c-*-*    *-i2c-*-*
lm78-isa-0290   *-isa-0290
lm78-isa-*      *-isa-*
lm78-*

Configure monitoring

Write a script to cron or check via Nagios/nrpe. This can be as simple or complex as you like. I like to use something like this since it checks each temp individually, and has a separate threshold for each in a single script:

#!/bin/bash

# By techpain 2012-12-11
# Check temperatures

TEMP1=$(sensors -f | grep -A3 'k8temp-pci-00c3' | grep Core0 | awk '{print $3}' | sed 's/\+//' | sed 's/.\{4\}$//')
TEMP2=$(sensors -f | grep -A3 'k8temp-pci-00c3' | grep Core1 | awk '{print $3}' | sed 's/\+//' | sed 's/.\{4\}$//')
TEMP3=$(sensors -f | grep -A3 'k8temp-pci-00cb' | grep Core0 | awk '{print $3}' | sed 's/\+//' | sed 's/.\{4\}$//')
TEMP4=$(sensors -f | grep -A3 'k8temp-pci-00cb' | grep Core1 | awk '{print $3}' | sed 's/\+//' | sed 's/.\{4\}$//')

if [ $TEMP1 -le 85 ] && [ $TEMP2 -le 75 ] && [ $TEMP3 -le 100 ] && [ $TEMP4 -le 100 ]
then
echo "OK - $TEMP1,$TEMP2,$TEMP3,$TEMP4 - cool as the other side of the pillow"
exit 0
else
logger "WARN - $TEMP1,$TEMP2,$TEMP3,$TEMP4 - it's getting hot in here"
echo "WARN - $TEMP1,$TEMP2,$TEMP3,$TEMP4 - it's getting hot in here"
exit 1
fi

lm_sensors monitoring script output - techpain.com

Share

PGP Encryption – Enigmail in Thunderbird email

Enigmail is a security extension to Mozilla Thunderbird and Seamonkey. It enables you to write and receive email messages signed and/or encrypted with the OpenPGP standard.

PGP Encryption - Enigmail automatically decrypts and verifies your Email

 

 

 

 

To install and configure Enigmail:

1) Install GnuPG

2) Find the appropriate Enigmail package, download and install

3) Create your Keypair

4) Set up ‘Per-Recipient Rules’. This will allow you to automatically sign and/or encrypt mail to specific people (or based on other rules). Just go to ‘OpenPGP’>’Edit Per-Recipient Rules’

Thanks Chris!

Share

Tempest for Eliza – AM Radio Signals from your Monitor

Tempest for Eliza is a program that uses your computer monitor to send out AM radio signals, allowing you to hear computer generate music over your radio.

From the Tempest for Eliza site:

What is it ?
------------

Tempest for Eliza is a Program that uses your computer monitor
to send out AM radio signals. You can then hear computer
generated music in your radio.

this document first describes tempest for eliza, the old program that
plays music like your cellphone does when you get a phonecall. then it
describes tempest for mp3 which you can use to play mp3 files :-)

How does this work ?
--------------------

All electronic devices send out eletromagnetic waves.
so does your monitor. and your monitor does it all the time.
and at very high frequencies. high enough for your short wave
AM radio.
all you have to do is display the "correct" image on your screen
and your monitor will emit the "right" signals.
Tempest for Eliza displays pictures on your screen. one for
each note in the song.

[Note: Markus G. Kuhn's and Ross J. Anderson's paper; "Soft Tempest:
Hidden Data Transmission Using Electromagnetic Emanations" was used as a
reference when programming Tempest-AM. This paper is a must read before
going further testing Tempest-AM. The paper is availabe from
http://www.cl.cam.ac.uk/~mgk25/ih98-tempest.pdf
I strongly recommend to read the paper thoroughly.]

Why this program ?
------------------

You need no additional hardware to understand that it is
really possible to observe your computer without
physically touching it. (tempest).
I wrote this program because it was fun and because
it teaches in an amusing way that tempest really exists.
i want people to understand that their computers can
be observed.
And last but not least you can listen to music without a soundcard!

Share

Ext2Fsd – Access Linux Partitions from Windows

PenDriveLinux.com has a great article on accessing Ext2 and Ext3 partitions from Windows. There are various other ways to do this, but a really quick, simple way (no messing around with mount commands or fstab!) is to use Ext2Fsd. The PenDriveLinux article has
detailed instructions, including screenshots, but it’s really as simple as:

1) Download Ext2Fsd and install.

2) Run Ext2Fsd, assign a drive letter to your Linux drive and reboot.

This makes me much happier about my dual boot configuration (Vista and Ubuntu 9.04), which was previously a pain to manage files between operating systems.

Share

LogMeIn – Remote Desktop Control

From the LogMeIn.com site:
“LogMeIn Free gives you remote control of your PC or Mac from any other computer with an Internet connection. Simply install LogMeIn on the computer you want to access (it takes about 2 minutes), log into your account from another computer and click the computer you want to control. You’ll see its desktop and be able to use all the applications on your remote computer as if you were sitting in front of it – even if you’re across town, across the country, or across the world.”

There is added functionality (file transfer, remote sound, printing, etc.) available in the Pro Edition, and there is a comparison chart available here. The Free Edition is not too shabby, the only problem I have with it is that there isn’t Linux support.

Share

Windows 7 Downgrade Rights – Warning!

Taken from Microsoft.com:

Only certain OEM versions of Windows 7 include downgrade rights:

  • Windows 7 Professional and Windows 7 Ultimate include downgrade rights to Windows Vista Business and Windows Vista Ultimate.
  • Windows 7 Professional and Windows 7 Ultimate temporarily includes downgrade rights to Windows XP Professional, Windows XP Tablet PC Edition, or Windows XP x64 Edition.
  • Other OEM Windows 7 versions (for instance, Windows 7 Home Basic and Windows 7 Home Premium) do not include downgrade rights.
 

Note that Windows 7 end user downgrade rights will be available for approximately 18 months after the general availability of Windows 7 (April, 2011) or the release of a Windows 7 Service Pack, whichever is earlier.

Customers must:

  • Purchase a PC preinstalled with Windows 7.
  • Accept the Windows 7 Software License Terms.
  • Perform the downgrade or authorize an Original Equipment Manufacturer (OEM) to perform it.

See additional details and FAQ.

The Downgrade Process

Follow these steps to downgrade to a previous version of Windows:

  1. Obtain genuine Windows 7 Professional or Windows 7 Ultimate and a corresponding product key.
    • The media should come from a prior legally licensed version from the OEM or Retail channels.
    • Additionally an end user, who is licensed separately through Microsoft Volume Licensing (VL) programs, may provide their VL media and key to their system builder to use to facilitate the downgrade on only their systems.
  2. Insert Windows 7 Professional or Windows 7 Ultimate media in the CD drive and follow the installation instructions.
  3. Type the product key.
    • If the software was previously activated, you won’t be able to activate it online. In this case, the appropriate local Activation Support phone number will be displayed. Call the number and explain the circumstances. Once it is determined that the end user has a valid Windows Vista Business or Windows Vista Ultimate license, the customer service representative will provide a single-use activation code to activate the software.
    • In this case, the appropriate local Activation Support phone number will be displayed.
    • Call the number and explain the circumstances.
    • Once it is determined that the end user has a valid Windows 7 Professional or Windows 7 Ultimate license, the customer service representative will provide a single-use activation code to activate the software.
  4. Activate the software.
Share

TestDisk – Recover Partition Tables

Courtesy of Samo:

I thought this was so cool that it should be put somewhere…still don’t have my blog up so I thought I’d send it to you!

I recently had to reinstall 3 OS’ at home due to some upgrades and swapping around some hard drives. I backed up a set of crucial data to an external hard drive and accidentally deleted that partition table during windows installation. Sadly windows isn’t as nice as linux and commits changes instantly…so, no windows-accessible backup volume for me. After doing some research and finding plenty of tools that promised to automatically detect and recover the partition info (for ~$100) and finding some free tools that offered to let me write my own partition table, I wasn’t feeling too hopeful. Jacob recommended and I used ‘testdisk’ to recover the partition table. It was free and instant. It actually detected what my partition table should look like by doing a 10 second scan of the volume, and wrote it back on. Quick, simple and amazing.

Hope this is able to help you at some point! Better yet, I hope you never accidentally delete partition tables!

Sam

You can find more info on TestDisk at CGSecurity.org

Share

Share

Mobile Media Converter – Convert files for use on your mobile device

Mobile Media Converter is a really easy way to convert files for use with your mobile phone. Convert files to .3gp, AMR-NB, .mp4 (iPhone, iPod, or PSP) and many more. Simply select the file you want to convert (or click on the youtube button to add a URL!) and select the file type to convert to. Windows, Mac, and Linux compatible.

Share