viernes, 30 de octubre de 2015

Medir temperaturas de CPU y Discos LINUX

A continuación les dejo estos tips para medir temperatura de CPU y Discos.
Yo lo hice en Kali Linux (basada en Debian). Pero me pueden preguntar sobre otras distros.


$ sudo apt-get update
$ sudo apt-get install lm-sensors
$ sudo apt-get install hddtemp

Como root:
# sensors-detect

 sensors-detect revision 6209 (2014-01-14 22:51:58 +0100)
 System: Dell Inc. Inspiron 1525 (laptop)
 Board: Dell Inc. 0U990C

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): yes
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): yes
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               Yes
Found unknown chip with ID 0xfc11

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): yes
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): yes
Using driver `i2c-i801' for device 0000:00:1f.3: Intel 82801H ICH8
Module i2c-dev loaded successfully.

Next adapter: i915 gmbus ssc (i2c-0)
Do you want to scan it? (yes/NO/selectively): no

Next adapter: i915 gmbus vga (i2c-1)
Do you want to scan it? (yes/NO/selectively): no

Next adapter: i915 gmbus panel (i2c-2)
Do you want to scan it? (yes/NO/selectively): no

Next adapter: i915 gmbus dpc (i2c-3)
Do you want to scan it? (yes/NO/selectively): no

Next adapter: i915 gmbus dpb (i2c-4)
Do you want to scan it? (yes/NO/selectively): no

Next adapter: i915 gmbus dpd (i2c-5)
Do you want to scan it? (yes/NO/selectively): no

Next adapter: SDVO DDC proxy (i2c-6)
Do you want to scan it? (yes/NO/selectively): no

Next adapter: SMBus I801 adapter at 10c0 (i2c-7)
Do you want to scan it? (YES/no/selectively): yes
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'...                                No
Client found at address 0x52
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)


Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

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

Unloading i2c-dev... OK
Unloading cpuid... OK

# service kmod start
# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +53.0°C  (crit = +98.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +51.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:       +52.0°C  (high = +100.0°C, crit = +100.0°C)

i8k-virtual-0
Adapter: Virtual device
Processor Fan: 3000 RPM
CPU:            +53.0°C
Other:          +36.0°C
Other:          +48.0°C
Other:          +42.0°C

# hddtemp /dev/sda
/dev/sda: Hitachi HTS542516K9SA00: 37°C

jueves, 29 de octubre de 2015

IPFire La distribucion Open Source para Firewalls

IPFire, una distribución de Linux independiente para los servidores de seguridad, ha lanzado una nueva actualización. 

La nueva versión, IPFire 2.17 Core Actualización 94, incluye una serie de actualizaciones de paquetes, incluyendo OpenSSH 7.1p1. Esta versión también limpia la interfaz web e incluye un agente de correo en el sistema base. 

OpenSSH se actualiza a la versión 7.1p1. Con eso nos añade soporte para las curvas elípticas (ECDSA y ED25519) y se retira el apoyo a DSA que se considera roto. Estos cambios pueden requerir para importar el llaves del sistema IPFire en el equipo de administración de nuevo. 
Se añadió un agente de correo interno que es utilizado por los servicios internos de enviar informes o alertas. 

Más detalles sobre la liberación de IPFire 2.17 Core Actualización 94 se pueden encontrar en el anuncio del lanzamiento del proyecto.


http://www.ipfire.org/

miércoles, 12 de agosto de 2015

Grive - Google Drive para Linux (Consola)

Bueno! parece que después de tanto tiempo he vuelto. EN FORMA DE POST!


Pero GRIVE, y eso? Grive es una (otra) alternativa para usar Google Drive en Linux.
Yo les voy a explicar como instalarlo y usarlo en mediante la Consola. Lo queres Web? seguí este link http://www.muylinux.com/2014/05/14/grive-tools-google-drive . Yo no lo utilice ni instale desde la consola, así que te lo dejo todo a vos.

Bueno, manos a la obra

Sistema Operativo 

# cat /etc/debian_version
7.8

# uname -a
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.68-1+deb7u2 i686 GNU/Linux

Pre-requisitos (Si falta alguno me avisan y actualizo)

Vamos a instalar todo los que nos haga falta

# apt-get install cmake gcc make build-essential libjson0-dev libcurl4-openssl-dev binutils binutils-dev libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-test-dev libqt4-core libqt4-dev libqt4-dev-bin libqt4-gui qt4-dev-tools libgcrypt11 libgcrypt11-dev libyajl-dev yajl-tools libjson0-dev git

Instalación (Como root)

# mkdir grive 
# cd grive/
# git clone https://github.com/vitalif/grive2.git
# cd grive2/
# mkdir build 
# cd build 
# cmake ..
# make -j4
# make install

Ahora la sincronización
# /usr/local/bin/grive -a

Luego para comenzar la sincronizacion ,ejecuten algo asi
# /usr/local/bin/grive -p /home//

Y siguen las indicaciones de la pantalla. Cualquier duda me consultan.
SALUTE!

[ENGLISH Version]

I'm Back! as Arnold or the T-800 says.

Today, I'm going to be talking about GRIVE, ok! but, What does it mean?
Grive is an alternative (or another tool) to Google Drive in Linux.

I'm going to explain to you How to install and use it , but using the linux console. WHAT?! do you want the Web Version? C'mon! if so, follow this link http://www.muylinux.com/2014/05/14/grive-tools-google-drive . But! if you are a real man, follow me and do the console installation!.

Ok, let's move on.
Linux Distribution
# cat /etc/debian_version
7.8

# uname -a
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.68-1+deb7u2 i686 GNU/Linux

Prerequisites(If I missed any, just let me know)

# apt-get install cmake gcc make build-essential libjson0-dev libcurl4-openssl-dev binutils binutils-dev libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-test-dev libqt4-core libqt4-dev libqt4-dev-bin libqt4-gui qt4-dev-tools libgcrypt11 libgcrypt11-dev libyajl-dev yajl-tools libjson0-dev git

Installation (as root)

# mkdir grive 
# cd grive/
# git clone https://github.com/vitalif/grive2.git
# cd grive2/
# mkdir build 
# cd build 
# cmake ..
# make -j4
# make install

Now, it's time to synchronize
# /usr/local/bin/grive -a

Finally, follow the steps in the screen, something like this:
-----------------------
Please go to this URL and get an authentication code:

https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fdocs.google.com%2Ffeeds%2F+https%3A%2F%2Fdocs.googleusercontent.com%2F+https%3A%2F%2Fspreadsheets.google.com%2Ffeeds%2F&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=22314510474.apps.googleusercontent.com

-----------------------
Please input the authentication code here:

Then start the synchronisation for example like this:
# /usr/local/bin/grive -p /home//drive

And another ones bits the dust! ; )