sábado, 15 de abril de 2017

Solve '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

For this problem:
python3 -m venv djangular
Error: Command '['/home/hector/Desarrollo/Test/django/djangular/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1


Solution

https://hnakamur.github.io/blog/2017/02/26/workaround-for-epel-python3.4-venv-on-centos7/

sábado, 8 de abril de 2017

Get CPU/GPU Temp in linux

Create and ejecute this bash

#!/bin/bash
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "$(date) @ $(hostname)"
echo "-------------------------------------------"
echo "GPU => $(/opt/vc/bin/vcgencmd measure_temp)"
echo "CPU => $((cpu/1000))'C"