Herramientas de usuario

Herramientas del sitio


personas:jero98772:antena-direcional-pringler:p-node-comandos

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
personas:jero98772:antena-direcional-pringler:p-node-comandos [2020/02/08 01:20] – creado jero98772personas:jero98772:antena-direcional-pringler:p-node-comandos [2021/09/12 01:41] (actual) jero98772
Línea 1: Línea 1:
-link of proyect https://p-node.org/documentation/pibox/piboxv2_image  and https://www.p-node.org/documentation +====== small docuemntation of  p-node proyect======  
-upload imen with etcher +https://p-node.org/documentation/pibox/piboxv2_image  and https://www.p-node.org/documentation 
 + 
 + 
 +upload image   
 + 
 +===== upload image to rapsberry pi ====== 
 +  
 +image file in: 
 http://www.p-node.org/pibox_img/pibox_V2.img http://www.p-node.org/pibox_img/pibox_V2.img
-or+ 
 +next use etcher 
 +==== upload image on terminal ====
 see de devices coneted see de devices coneted
- df -h+ 
 +<code> df -h</code> 
 upload iso(img) upload iso(img)
- sudo dd if=2018-04-18-raspbian-stretch.img of=/dev/sdb status=progress bs=1M + 
-when finish  +<code> sudo dd if=2018-04-18-raspbian-stretch.img of=/dev/sdb status=progress bs=1M</code> 
- sudo sync + 
-ssh pi@<IP_of_the_pibox>+===== manual configuration ===== 
 +  
 +**connet via ssh**  
 + 
 +<code>ssh pi@<IP_of_the_pibox></code> 
 +**update** 
 +<code>
 cd pibox_V2 cd pibox_V2
 git pull git pull
 +</code>
  
-opcional +if ssh dont work plese use and habiliate in raspberry pi config with , you can configurate wifi onthere: 
-expand file system +<code>sudo raspi-config</code>
-sudo raspi-config+
  
-change wifi +**change wifi (manual way)** 
 +<code>
  sudo nano /etc/hostapd/hostapd.conf  sudo nano /etc/hostapd/hostapd.conf
-upadate and ugrade all and install things+</code> 
 +clear and preparete operating sistem 
 +<code>
  sudo apt-get update  sudo apt-get update
  sudo apt-get upgrade  sudo apt-get upgrade
- 
  sudo apt-get install git sox libav-tools oggfwd python3-pip  sudo apt-get install git sox libav-tools oggfwd python3-pip
  sudo pip3 install bs4  sudo pip3 install bs4
 +</code>
  
-install radio+**install radio on rybn repo** 
 + 
 +<code>
  cd  cd
  git clone http://git.rybn.org/rybn/pibox_V2.git  git clone http://git.rybn.org/rybn/pibox_V2.git
 +</code>
 +
 +install dependencies
 +
 +<code>sudo apt-get install hostapd dnsmasq</code>
  
-install other things +**stop services to configurate them** 
- sudo apt-get install hostapd dnsmasq+<code>
  
-stop services 
  sudo systemctl stop dnsmasq  sudo systemctl stop dnsmasq
  sudo systemctl stop hostapd  sudo systemctl stop hostapd
 +</code>
  
-create this and put it +**crete file to configurate hospot** 
- sudo nano /etc/hostapd/hostapd.conf+ 
 +<code> sudo nano /etc/hostapd/hostapd.conf</code> 
 + 
 +**configurate network**   
 + 
 +<code>
   interface=wlan0   interface=wlan0
  driver=nl80211  driver=nl80211
Línea 48: Línea 81:
  auth_algs=1  auth_algs=1
  ignore_broadcast_ssid=0  ignore_broadcast_ssid=0
-open and other file+ 
 +</code> 
 + 
 +save and close 
 + 
 +**configurate next file** 
 + 
 +<code>
  sudo nano /etc/default/hostapd  sudo nano /etc/default/hostapd
 +</code>
 +
 +**edit file**
 +
 +<code>
  edit this #DAEMON_CONF="" for   edit this #DAEMON_CONF="" for 
  DAEMON_CONF="/etc/hostapd/hostapd.conf"  DAEMON_CONF="/etc/hostapd/hostapd.conf"
- 
-copy an file and edit 
  sudo cp /etc/dnsmasq.conf /etc/dnsmasq.conf_back  sudo cp /etc/dnsmasq.conf /etc/dnsmasq.conf_back
  echo "" | sudo tee /etc/dnsmasq.conf  echo "" | sudo tee /etc/dnsmasq.conf
  
-put this  +</code> 
 + 
 +save and close 
 + 
 + 
 +**create file for configurate hospot network** 
 + 
 +<code>
  sudo nano /etc/dnsmasq.conf  sudo nano /etc/dnsmasq.conf
 +</code>
 +
 +copy and paste in file
 +
 +<code>
   interface=wlan0         interface=wlan0      
- # Use the require wireless interface - usually wlan0 
  dhcp-range=192.168.100.2,192.168.100.10,255.255.255.0,24h  dhcp-range=192.168.100.2,192.168.100.10,255.255.255.0,24h
  
-put this +</code> 
- sudo nano /etc/dhcpcd.conf+save and close 
 + 
 +**edit dhcpcd.conf**  
 +<code> sudo nano /etc/dhcpcd.conf</code> 
 +**copy and paste this configuration** 
 + 
 +<code>
  interface wlan0  interface wlan0
  static ip_address=192.168.100.1/24  static ip_address=192.168.100.1/24
  nohook wpa_supplicant  nohook wpa_supplicant
  
-start services +</code> 
 +now can start services  
 +<code>
  sudo systemctl restart dhcpcd  sudo systemctl restart dhcpcd
  sudo systemctl unmask hostapd  sudo systemctl unmask hostapd
Línea 75: Línea 137:
  sudo systemctl enable hostapd  sudo systemctl enable hostapd
  sudo systemctl start dnsmasq  sudo systemctl start dnsmasq
 +</code>
 +** set hospot name **
  
-set name  +<code>  sudo hostnamectl set-hostname "pibox"</code>
-  sudo hostnamectl set-hostname "pibox"+
  
-put this after exit 0+**reboot** 
 + 
 +when you reboot , edit rc.local 
 +<code> 
  sudo nano /etc/rc.local  sudo nano /etc/rc.local
- like this+</code> 
 + copy and paste this in rc.local 
 +<code>
  #!/bin/sh -e  #!/bin/sh -e
  #  #
Línea 107: Línea 175:
 /usr/bin/python3 /home/pi/pibox_V2/go.py 2> /home/pi/pibox_V2/error_log.txt >/dev/null & /usr/bin/python3 /home/pi/pibox_V2/go.py 2> /home/pi/pibox_V2/error_log.txt >/dev/null &
 create rules create rules
 +</code>
  
-put this +**edit network rules** 
 +<code>
  sudo nano /etc/udev/rules.d/70-persistent-net.rules  sudo nano /etc/udev/rules.d/70-persistent-net.rules
 +</code>
 +
 +add this 
 +<code>
  ACTION=="add", SUBSYSTEM=="net", DRIVERS=="r8188eu", NAME="wlan1"  ACTION=="add", SUBSYSTEM=="net", DRIVERS=="r8188eu", NAME="wlan1"
  
-shutdown +</code> 
- sudo halt+**shutdown** 
 + 
 +<code> sudo halt 
 +</code> 
 +====== now you can test it ====== 
 + 
 +====wifi==== 
 + 
 +**ssid** pibox 
 + 
 +**password** pnodeaccesspass
  
 +**ip** 192.168.100.1
  
 +(copy and paste <code>192.168.100.1</code> in your browuser )
 +====== more documentation in ======
  
-wifi  
- ssid pibox  
- password pnodeaccesspass 
 https://p-node.org/documentation/pibox/piboxv2 https://p-node.org/documentation/pibox/piboxv2
 https://p-node.org/documentation/pibox/pibox_antenna https://p-node.org/documentation/pibox/pibox_antenna
personas/jero98772/antena-direcional-pringler/p-node-comandos.1581124856.txt.gz · Última modificación: 2020/02/08 01:20 por jero98772