Tag Archive for 'ubuntu'

Temperature monitoring with Lm-sensors on Ubuntu

I tend to do a lot of video encoding which stresses my workstation a bit, also not long ago I changed motherboards. Well that meant I had to remove the CPU and add a new layer of thermal compound. I did measure the temperature with built-in BIOS utility but I still had question regarding the actual CPU temperature while under normal use.

Essentially all I had to do was install lm-sensors and the GNOME sensor applet. Keep in mind for this article I used a DG31GL Intel Motherboard and a Q6600 Intel processor, all sensors were detected without a problem. Results may vary depending on the hardware.

Installation

First we need to install the vital lm-sensors and the GNOME applets that will later present the information on the desktop.


sudo apt-get install lm-sensors sensors-applet hddtemp

Next we do a sensor detection (results will vary based on hardware support).


sudo sensors-detect

After the sensor detection was done you will have to answer a series of questions, accepting the default works just fine except the last question. Don’t forget to answer Yes on the last question.

I will now generate the commands needed to load the required modules.
Just press ENTER to continue:

To load everything that is needed, add this to /etc/modules:

#----cut here----
# Chip drivers
w83627ehf
coretemp
#----cut here----

Do you want to add these lines automatically? (yes/NO)yes

The detection was successful now we have to answer Yes in order to add the new sensors to /etc/modules, later on it will allow the GNOME applet to fetch the required data for display.

Add the GNOME applet

To add the applet responsible for displaying the data go to.

Right click on the top panel > click on Add to Panel.

Search for Hardware Sensors Monitor > click on Add.

The applet will display the temperature data on the system, processor, hard drive and AUX Temp. Not all of the data is necessary or useful, if you like to change what’s displayed.

Right click on the applet and select Preferences. Move on to the Sensors tab and check or unchecked what you don’t like.

Links of interest
http://sensors-applet.sourceforge.net
http://www.lm-sensors.org/

If you find any of the material on this site useful please take a moment to make a small donation.

View Printer Ink Levels On Ubuntu

If you use Ubuntu like me and have an HP printer then you may want to check your printer ink level from time to time. For HP printers the solution is available in the repositories in the form of HPLIP (Hewlett-Packard’s Linux Imaging and Printing), which is installed on Ubuntu systems by default. In the case of Ubuntu 8.04 we only need to install the graphical interface.

Make sure HPLIP is installed on your system with Synaptic and search for hplip.

You can either choose to install hplip-gui with Synaptic or use apt-get.

apt-get install hplip-gui

After the install you can find HPLIP Toolbox on System > Preferences > HPLIP Toolbox , and check you ink levels.

If you find any of the material on this site useful please take a moment to make a small donation.

Force Fsck On The Next Reboot

It’s normal for fsck to automatically check the Linux file system after a predetermined amount of reboots. However some times the Linux administrator may need to force fsck to check and repair the Linux file system prematurely.

To do so is very easy and only requires root privileges. I consider this to be the universal way.

touch /forcefsck

Then reboot the system and behold fsck working it’s magic.

shutdown -r now

If you find any of the material on this site useful please take a moment to make a small donation.