User Tools

Site Tools


raspberry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberry [2022/01/06 15:26] joseraspberry [2022/01/29 15:54] (current) – [IP fija] jose
Line 15: Line 15:
 ===== Habilitar wifi ===== ===== Habilitar wifi =====
 En la pertición boot creamos el fichero wpa_supplicant.conf con los datos de nuestro wifi En la pertición boot creamos el fichero wpa_supplicant.conf con los datos de nuestro wifi
-  Partición boot+  boot/wpa_supplicant.conf
  
-  wpa_supplicant.conf 
 <code> <code>
 country=ES country=ES
Line 51: Line 50:
 static domain_name_servers=192.168.1.1 static domain_name_servers=192.168.1.1
 </code> </code>
 +
 +Si queremos añadir una ruta:
 +  /lib/dhcpcd/dhcpcd-hooks/40-route
 +
 +  ip route add 10.0.0.0/8 via 10.38.28.6
  
 ===== Habilitar SSH ===== ===== Habilitar SSH =====
Line 68: Line 72:
 Model : Raspberry Pi 3 Model B Plus Rev 1.3 Model : Raspberry Pi 3 Model B Plus Rev 1.3
 </code> </code>
 +
 +====== Cambiar idioma teclado ======
 +Si nos conectamos por ssh tendremos el idioma bien, pero en local no. Se hace con raspi-config:
 +  sudo raspi-config
 +  5 Localisation Options
 +  L3 Keyboard
 +  
 +Y se selecciona el idioma
  
 ====== Monitorización ====== ====== Monitorización ======
Line 87: Line 99:
 | 0x50005 | actualmente under voltage | | 0x50005 | actualmente under voltage |
  
 +===== Script =====
 +
 +<code>
 +#!/bin/bash
 +
 +fecha=`date +\%Y\%m\%d_\%H\%M\%S`
 +voltios=`vcgencmd measure_volts`
 +test="`vcgencmd get_throttled`"
 +case $test in 
 + throttled=0x50005) estado="Under Voltage";; 
 + throttled=0x50000) estado="Ha habido under voltage";; 
 + throttled=0x0) estado="OK";; 
 + *) estado=$test;;
 +esac
 +
 +echo $fecha" "$voltios" "$estado >> /home/pi/uptime
 +</code>
  
 ====== Pantallas TFT ====== ====== Pantallas TFT ======
Line 92: Line 121:
  
 Modificar el fichero /boot/config.txt y añadir: Modificar el fichero /boot/config.txt y añadir:
 +  hdmi_group=2 
 +  hdmi_mode=87 
 +  hdmi_cvt 1024 600 60 6 0 0 0
 +Puede que con Raspberry 4 falle. También funciona con esto:
   disable_overscan=1   disable_overscan=1
   hdmi_cvt=1024 600 3 0 0 0   hdmi_cvt=1024 600 3 0 0 0
  
raspberry.1641482785.txt.gz · Last modified: 2022/01/06 15:26 by jose