How to install psensor on ubuntu 17.04

To install psensor on ubuntu 17.04

psensor is a graphical hardware temperature monitor for Linux which is capable of monitoring the temperatures of motherboard and CPU sensors, NVidia GPUs, ATI/AMD GPUs and Hard Disk Drives, but by using different short-cuts for monitoring each of them. It is so simple to install psensor on Ubuntu, and this article sheds light on it.

Installing psensor

Before starting the installation process, make sure you add its repo to your system as follows.

root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
 This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.

+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
  They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
  packaged in this and related PPAs. End users and administrator are responsible for
  runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
  Ubuntu repositories and external PPAs. Below is the list of
.
.
.
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox ' /tmp/tmp58gcy2yp/pubring.gpg'  created
gpg: /tmp/tmp58gcy2yp/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+"  imported
gpg: Total number processed: 1
gpg:               imported: 1
OK


Once it is done, update the newly added repo by triggering the following command.

root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]                                                       
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease                                                                           
Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease                                          
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease                                         
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [1,100 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [1,108 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [1,288 B]
Fetched 18.9 kB in 1s (12.3 kB/s)
Reading package lists... Done

Now is the time to install the psensor package, which can be done by invoking the following command.

root@linuxhelp1:~# apt-get install psensor -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libxnvctrl0 psensor-common
The following NEW packages will be installed:
  libxnvctrl0 psensor psensor-common
0 upgraded, 3 newly installed, 0 to remove and 99 not upgraded.
Need to get 110 kB of archives.
After this operation, 647 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 libxnvctrl0 amd64 367.35-0ubuntu1 [11.2 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 psensor-common all 1.1.5-1ubuntu1 [40.7 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 psensor amd64 1.1.5-1ubuntu1 [58.0 kB]
Fetched 110 kB in 1s (81.2 kB/s)   
Selecting previously unselected package libxnvctrl0.
(Reading database ... 168833 files and directories currently installed.)
Preparing to unpack .../libxnvctrl0_367.35-0ubuntu1_amd64.deb ...
Unpacking libxnvctrl0 (367.35-0ubuntu1) ...
Selecting previously unselected package psensor-common.
Preparing to unpack .../psensor-common_1.1.5-1ubuntu1_all.deb ...
Unpacking psensor-common (1.1.5-1ubuntu1) ...
Selecting previously unselected package psensor.
Preparing to unpack .../psensor_1.1.5-1ubuntu1_amd64.deb ...
Unpacking psensor (1.1.5-1ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for libglib2.0-0:amd64 (2.52.0-1) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Setting up psensor-common (1.1.5-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up libxnvctrl0 (367.35-0ubuntu1) ...
Setting up psensor (1.1.5-1ubuntu1) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...

psensor has been installed, you can use the following command for accessing it.

root@linuxhelp1:~# psensor

That was all folks. The installation of simple tool Psensor has been completed.

Tag : Ubuntu
FAQ
Q
How to make the repo on Ubuntu?
A
Run the following command:
# add-apt-repository ppa:eugenesan/ppa
Q
How can I launch psensor automatically on session startup?
A
Since the version 1.0.1, Psensor is no more started automatically by default.

Open the Preferences window, select the Startup tab and switch on the option Launch on session startup.

This feature is requiring that the Desktop Environment supports the XDG specification.
Q
How to install psensor on Ubuntu/Fedora?
A
Run the following command:
# apt-get install psensor
Q
HOW TO LOG SENSORS TEMPERATURES?
A
The best way is probably to use sensord or a custom script based on the output of the different commands like sensors.

Anyway, as I received several requests about such feature, since the 0.7.0.4 release it is implemented in both psensor ( menu preferences > sensors > enable log of measures) and psensor-server (--sensor-log-file option). For psensor, the log file is $HOME/.psensor/sensors.log.
Q
Is there any other similar software for psensor
A
Here is a list of a few well-known sensors monitoring software:
for X11: http://freecode.com/projects/xsensors
for GNOME2: http://sensors-applet.sourceforge.net/
for Ubuntu Unity: https://launchpad.net/indicator-sensors
more general, but can be configured to display sensors information: http://conky.sourceforge.net/