Go to advanced search

by lmarmisa
Mon Jul 02, 2018 8:41 am
Forum: Python
Topic: Is it possible to make a connection to a certain Wi Fi network as a condition?
Replies: 6
Views: 505

Re: Is it possible to make a connection to a certain Wi Fi network as a condition?

Try:

Code: Select all

#!/usr/bin/env python

import subprocess

try:
  ssid =  subprocess.check_output(["iwgetid", "-r"]).rstrip()
except subprocess.CalledProcessError:
  ssid = ""

if ssid == "mySSID" :
  ActionHere
  
by lmarmisa
Mon Jul 02, 2018 7:15 am
Forum: Troubleshooting
Topic: Problems replaying audio
Replies: 1
Views: 116

Re: Problems replaying audio

I recommend using mplayer.

This command will install the package:

Code: Select all

sudo apt-get install mplayer
The sound is perfect here:

Code: Select all

mplayer /usr/share/sounds/alsa/*wav
by lmarmisa
Sun Jul 01, 2018 6:56 am
Forum: Español
Topic: No me puedo conectar por SSH
Replies: 1
Views: 696

Re: No me puedo conectar por SSH

Abre un terminal en la RPi y teclea este comando: ifconfig La respuesta te mostrará la dirección IP de la RPi que probablemente será del tipo 192.168.x.y. Intenta conectarte entonces por ssh a tu propia RPi usando esa dirección IP: ssh pi@192.168.x.y Si funciona correctamente esa conexión ssh local,...
by lmarmisa
Sun Jul 01, 2018 6:22 am
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 18
Views: 1390

Re: Git clone and apt not working.

The ICMP protocol (ping) works but https does not. What about http?:

Code: Select all

ping -c25 google.com
wget http://downloads.raspberrypi.org/raspbian_lite_latest -O /dev/null
wget https://downloads.raspberrypi.org/raspbian_lite_latest -O /dev/null
by lmarmisa
Sat Jun 30, 2018 5:08 pm
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 18
Views: 1390

Re: Git clone and apt not working.

Your network seems to work fine at this time. But according to your comments, two completely independent commands are not completed due to network problems: sudo apt-get update git clone xxxx Is your RPi connected to the network via wifi?. Check if this command is completed correctly: wget https://d...
by lmarmisa
Sat Jun 30, 2018 10:16 am
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 18
Views: 1390

Re: Git clone and apt not working.

Try these commands and post the outputs:

Code: Select all

ip route
cat /etc/resolv.conf
ping -c4 8.8.8.8
ping -c4 google.com
by lmarmisa
Sat Jun 30, 2018 10:11 am
Forum: Troubleshooting
Topic: I have 3 raspberries but on 1 of them wlan0 doesnt connect to wifi
Replies: 2
Views: 170

Re: I have 3 raspberries but on 1 of them wlan0 doesnt connect to wifi

Have you modified the network configuration in any way?.

This command will show if the RPi is connected to wifi:

Code: Select all

iwconfig wlan0
by lmarmisa
Sat Jun 30, 2018 6:43 am
Forum: Networking and servers
Topic: Mounting shared network folder with mount R/W access
Replies: 5
Views: 1694

Re: Mounting shared network folder with mount R/W access

Maybe the problem is related to the mount command. You could need to define additional options like uid, gid, fmask or dmask. Could you post here your command?. According to your comments your shared network is composed only of linux computers. Therefore you do not need to use samba. You could use d...
by lmarmisa
Thu Jun 28, 2018 3:26 pm
Forum: Español
Topic: wlan0 y eth0 simultaneas, 2 redes
Replies: 7
Views: 3665

Re: wlan0 y eth0 simultaneas, 2 redes

Creo que tu RPi la usas como un dispositivo headless (sin monitor, teclado ni ratón). La interfaz gráfica te muestra si estás o no conectado a la wifi. Como no has indicado nada de esa información gráfica, supongo que te conectas por ssh. Y no es nada malo usar subredes "raras" (85, 86). Eso puede r...
by lmarmisa
Thu Jun 28, 2018 11:00 am
Forum: Español
Topic: wlan0 y eth0 simultaneas, 2 redes
Replies: 7
Views: 3665

Re: wlan0 y eth0 simultaneas, 2 redes

¿Realmente necesitas definir IP estáticas?. ¿Por qué no dejas la configuración estándar y esas asignaciones que defines manualmente las realizan automáticamente los routers?. Además muchos routers actuales permiten asignar una IP concreta de acuerdo a la dirección mac del puerto ethernet o del clien...
by lmarmisa
Wed Jun 27, 2018 11:41 am
Forum: Beginners
Topic: Raspberry connect to pc socket
Replies: 5
Views: 1109

Re: Raspberry connect to pc socket

Sorry. I have read again your post and I realize now that your script is a server socket. Therefore, you do not need to define any host in your python script. So, this line is correct: host = '' In relation with the command telnet, use the pc ip address: telnet 192.168.0.15 5555 The command telnet s...
by lmarmisa
Wed Jun 27, 2018 11:12 am
Forum: Español
Topic: Instalacion ISO Raspbian
Replies: 1
Views: 1378

Re: Instalacion ISO Raspbian

Puede ser que tu conexión a Internet no sea muy buena. ¿Has probado a bajar la imagen de raspbian mediante un cliente torrent?. En tu caso podría ser más fiable que la descarga directa. https://www.raspberrypi.org/downloads/raspbian/ En la página de descargas aparecen unos códigos de verificación sh...
by lmarmisa
Wed Jun 27, 2018 10:43 am
Forum: General discussion
Topic: SSH logout problem
Replies: 1
Views: 181

Re: SSH logout problem

I do not like games. So I do not know retropie or emulationstation. But I will give you a couple of advices: 1) If you want to finish your ssh session, type Ctrl-d or the command exit . 2) The games use the graphical user interface (GUI). But Linux provides 6 tty text consoles too. If you have a key...
by lmarmisa
Tue Jun 26, 2018 1:56 pm
Forum: Beginners
Topic: Raspberry connect to pc socket
Replies: 5
Views: 1109

Re: Raspberry connect to pc socket

You have to provide valid IP addresses (normally 192.168.x.y).

1) In the case of the python script you have not defined any host.

2) In the case of telnet you have provided a zeroconf address.

viewtopic.php?f=63&t=216742
by lmarmisa
Tue Jun 26, 2018 9:02 am
Forum: Beginners
Topic: Command line says there's no more disk space but there really is
Replies: 1
Views: 159

Re: Command line says there's no more disk space but there really is

This command will inform you about the free space on the mounted partitions:

Code: Select all

df -h
The file maneger shows the free space of root. But the destination of cp is not root but /dev/mmcblk0p1 (maybe a NOOBS partition?).
by lmarmisa
Tue Jun 26, 2018 8:17 am
Forum: General discussion
Topic: Raspberry Pi zero w Chromium problem
Replies: 9
Views: 2235

Re: Raspberry Pi zero w Chromium problem

Open a terminal and type:

Code: Select all

chromium-browser
If the browser does not start, you will see some type of error message.
by lmarmisa
Tue Jun 26, 2018 6:41 am
Forum: Español
Topic: Raspberry 3 B no detecta cable de red
Replies: 3
Views: 1642

Re: Raspberry 3 B no detecta cable de red

¿Has modificado de algún modo la configuración de la red por ejemplo para definir una IP estática?. Si no has cambiado la configuración, parece que hay algún componente defectuoso en tu RPi. Es curioso. Hace pocos días vi en los foros un problema muy raro que podría ser similar al tuyo (había algún ...
by lmarmisa
Mon Jun 25, 2018 1:03 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 Ethernet Issue
Replies: 30
Views: 4533

Re: Raspberry Pi 3 Ethernet Issue

Could you try these commands?

Code: Select all

sudo /etc/init.d/networking restart
sudo dhclient -r eth0
sudo dhclient eth0
sudo dhclient -r eth1
sudo dhclient eth1
ifconfig
by lmarmisa
Mon Jun 25, 2018 11:26 am
Forum: Troubleshooting
Topic: Raspberry Pi 3 Ethernet Issue
Replies: 30
Views: 4533

Re: Raspberry Pi 3 Ethernet Issue

Remove temporarily the RTL-SDR dongle.

If you followed the crontab procedure, new commands ifup are started every 5 minutes. Do you see any change after 5, 10 or 15 minutes?. Is eth1 still hidden after 15 minutes?.

BTW, did you make any changes to the standard network configuration?.
by lmarmisa
Mon Jun 25, 2018 10:49 am
Forum: Español
Topic: pantalla lcd 7" funciona con imagenes al reves
Replies: 1
Views: 536

Re: pantalla lcd 7" funciona con imagenes al reves

Supongo que las imágenes boca abajo aparecen cuando arrancas el sistema operativo Raspbian . Para arreglarlo debes abrir un terminal y editar un fichero de nombre /boot/config.txt : sudo nano /boot/config.txt Deberás añadir al final una línea como ésta: lcd_rotate=2 Finalmente tienes que salvar el f...
by lmarmisa
Mon Jun 25, 2018 10:27 am
Forum: Español
Topic: Raspberry 3 B no detecta cable de red
Replies: 3
Views: 1642

Re: Raspberry 3 B no detecta cable de red

Bienvenido al foro. Antes de entrar en la consulta que solicitas, te indico un par de recomendaciones: 1) Para comprobar si el puerto Ethernet funciona o no, usa un sistema operativo fiable. Mi recomendación es utilizar Raspbian: https://www.raspberrypi.org/downloads/raspbian/ 2) Recomiendo no utili...
by lmarmisa
Mon Jun 25, 2018 8:41 am
Forum: Troubleshooting
Topic: Raspberry Pi 3 Ethernet Issue
Replies: 30
Views: 4533

Re: Raspberry Pi 3 Ethernet Issue

This does not make sense,. Yes the on board LAN could have failed , but if you have added a second LAN port using a USB device why would that also fail after one reboot. And if the LAN ports have failed in some strange way why can you still see them using ifconfig ? I would still be inclined to pow...
by lmarmisa
Sun Jun 24, 2018 7:45 am
Forum: Español
Topic: Bloqueo de pantalla
Replies: 2
Views: 527

Re: Bloqueo de pantalla

Prueba a instalar el paquete xscreensaver. Para instalar los salvapantallas que vienen por defecto teclea este comando: sudo apt-get install xscreensaver Si deseas que instale más salvapantallas, usa este otro comando: sudo apt-get install xscreensaver* El menú de configuración esta en Preferencias ...

Go to advanced search