Go to advanced search

by lmarmisa
Fri Jul 06, 2018 12:18 pm
Forum: Beginners
Topic: spinning up usb hard disk on boot
Replies: 3
Views: 965

Re: spinning up usb hard disk on boot

I will suppose your disk is formatted with a ntfs file-system. Try this procedure: 1) Install the package ntfs-3g sudo apt-get install ntfs-3g 2) Create a mountpoint: sudo -p /media/wd4tb 2) Edit the file /etc/rc.local sudo nano /etc/rc.local 3) Add these commands to the file: #!/bin/sh -e # # rc.lo...
by lmarmisa
Wed Jul 04, 2018 9:27 pm
Forum: Français
Topic: Débutant perdu
Replies: 3
Views: 526

Re: Débutant perdu

Connaissez-vous le modèle de Somfy? Ce modèle peut-il être contrôlé par télécommande?.

Si oui, utilisez un émetteur radio 433 MHz comme celui-ci:

https://www.aliexpress.com/item/1set-RF ... 03475.html
by lmarmisa
Wed Jul 04, 2018 7:24 pm
Forum: Español
Topic: INSTALACION ISO RASPBIAN
Replies: 1
Views: 582

Re: INSTALACION ISO RASPBIAN

Por si acaso, una aclaración: el sha-256 que se muestra en la página de descargas corresponde al fichero que se descarga desde el servidor de raspberrypi.org, es decir, el que tiene como extensión ".zip". Si se descomprime el fichero zip, se obtiene un fichero "img" mucho más grande que es el que se...
by lmarmisa
Wed Jul 04, 2018 10:03 am
Forum: Español
Topic: WEBCAM
Replies: 3
Views: 450

Re: WEBCAM

Lo mejor en estos casos es leer la documentación técnica de la webcam para entender los detalles de cómo funciona.

Desde el punto de vista de la RPi puedes ver qué dispositivos USB se detectan en un momento dado tecleando este comando:

Code: Select all

lsusb
by lmarmisa
Wed Jul 04, 2018 9:48 am
Forum: General discussion
Topic: Vehicle detection for my nephew
Replies: 24
Views: 2425

Re: Vehicle detection for my nephew

Welcome to the forum. The title of your post refers to vehicle detection and the body to a four way traffic light prototype. So, I am not sure if I understand your project. If you wish to develop a four way traffic light prototype, you will need to control 12 independent outputs. Therefore you have ...
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: 665

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: 150

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: 1051

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 [email protected].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: 15
Views: 1984

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: 15
Views: 1984

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: 15
Views: 1984

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: 242

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: 2693

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: 4698

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: 4698

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: 2249

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: 3054

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: 241

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: 2249

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: 188

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: 3047

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: 2510

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: 6112

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

Go to advanced search