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

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
personas:jero98772:antena-direcional-pringler:p-node-comandos [2021/09/11 17:39] jero98772personas:jero98772:antena-direcional-pringler:p-node-comandos [2021/09/12 01:41] (actual) jero98772
Línea 1: Línea 1:
-====== small docuemntation of  p-node proyect====== https://p-node.org/documentation/pibox/piboxv2_image  and https://www.p-node.org/documentation+====== small docuemntation of  p-node proyect======  
 +https://p-node.org/documentation/pibox/piboxv2_image  and https://www.p-node.org/documentation
  
  
Línea 24: Línea 25:
 **connet via ssh**  **connet via ssh** 
  
-<code>ssh pi@<IP_of_the_pibox><code>+<code>ssh pi@<IP_of_the_pibox></code>
 **update** **update**
 <code> <code>
Línea 32: Línea 33:
  
 if ssh dont work plese use and habiliate in raspberry pi config with , you can configurate wifi onthere: if ssh dont work plese use and habiliate in raspberry pi config with , you can configurate wifi onthere:
-<code>sudo raspi-config<code>+<code>sudo raspi-config</code>
  
 **change wifi (manual way)** **change wifi (manual way)**
Línea 45: Línea 46:
  sudo pip3 install bs4  sudo pip3 install bs4
 </code> </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 other things +install dependencies 
- sudo apt-get install hostapd dnsmasq+ 
 +<code>sudo apt-get install hostapd dnsmasq</code> 
 + 
 +**stop services to configurate them** 
 +<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 67: 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 94: 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 126: 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====
  
-wifi  +**ssid** pibox
- ssid pibox+
  
-  +**password** pnodeaccesspass
- password pnodeaccesspass+
  
-en la ip 192.168.100.1+**ip** 192.168.100.1
  
 +(copy and paste <code>192.168.100.1</code> in your browuser )
 +====== more documentation in ======
  
 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.1631381996.txt.gz · Última modificación: 2021/09/11 17:39 por jero98772