personas:jero98772:antena-direcional-pringler:p-node-comandos
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| personas:jero98772:antena-direcional-pringler:p-node-comandos [2021/09/11 17:39] – jero98772 | personas: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:// | + | ====== small docuemntation of p-node proyect====== |
| + | https:// | ||
| Línea 24: | Línea 25: | ||
| **connet via ssh** | **connet via ssh** | ||
| - | < | + | < |
| **update** | **update** | ||
| < | < | ||
| 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: | ||
| - | < | + | < |
| **change wifi (manual way)** | **change wifi (manual way)** | ||
| Línea 45: | Línea 46: | ||
| sudo pip3 install bs4 | sudo pip3 install bs4 | ||
| </ | </ | ||
| - | install radio | + | |
| + | **install radio on rybn repo** | ||
| + | |||
| + | < | ||
| cd | cd | ||
| git clone http:// | git clone http:// | ||
| + | </ | ||
| - | install | + | install |
| - | sudo apt-get install hostapd dnsmasq | + | |
| + | < | ||
| + | |||
| + | **stop services to configurate them** | ||
| + | < | ||
| - | stop services | ||
| sudo systemctl stop dnsmasq | sudo systemctl stop dnsmasq | ||
| sudo systemctl stop hostapd | sudo systemctl stop hostapd | ||
| + | </ | ||
| - | create this and put it | + | **crete file to configurate hospot** |
| - | sudo nano / | + | |
| + | < | ||
| + | |||
| + | **configurate network** | ||
| + | |||
| + | < | ||
| | | ||
| 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 | + | |
| + | </ | ||
| + | |||
| + | save and close | ||
| + | |||
| + | **configurate next file** | ||
| + | |||
| + | < | ||
| sudo nano / | sudo nano / | ||
| + | </ | ||
| + | |||
| + | **edit file** | ||
| + | |||
| + | < | ||
| edit this # | edit this # | ||
| DAEMON_CONF="/ | DAEMON_CONF="/ | ||
| - | |||
| - | copy an file and edit | ||
| sudo cp / | sudo cp / | ||
| echo "" | echo "" | ||
| - | put this | + | </ |
| + | |||
| + | save and close | ||
| + | |||
| + | |||
| + | **create file for configurate hospot network** | ||
| + | |||
| + | < | ||
| sudo nano / | sudo nano / | ||
| + | </ | ||
| + | |||
| + | copy and paste in file | ||
| + | |||
| + | < | ||
| | | ||
| - | # Use the require wireless interface - usually wlan0 | ||
| dhcp-range=192.168.100.2, | dhcp-range=192.168.100.2, | ||
| - | put this | + | </ |
| - | sudo nano / | + | save and close |
| + | |||
| + | **edit dhcpcd.conf** | ||
| + | < | ||
| + | **copy and paste this configuration** | ||
| + | |||
| + | < | ||
| interface wlan0 | interface wlan0 | ||
| static ip_address=192.168.100.1/ | static ip_address=192.168.100.1/ | ||
| nohook wpa_supplicant | nohook wpa_supplicant | ||
| - | start services | + | </ |
| + | now can start services | ||
| + | < | ||
| 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 | ||
| + | </ | ||
| + | ** set hospot name ** | ||
| - | set name | + | < |
| - | sudo hostnamectl set-hostname " | + | |
| - | put this after exit 0 | + | **reboot** |
| + | |||
| + | when you reboot , edit rc.local | ||
| + | < | ||
| sudo nano / | sudo nano / | ||
| - | | + | </ |
| + | copy and paste this in rc.local | ||
| + | < | ||
| # | # | ||
| # | # | ||
| Línea 126: | Línea 175: | ||
| / | / | ||
| create rules | create rules | ||
| + | </ | ||
| - | put this | + | **edit network rules** |
| + | < | ||
| sudo nano / | sudo nano / | ||
| + | </ | ||
| + | |||
| + | add this | ||
| + | < | ||
| ACTION==" | ACTION==" | ||
| - | shutdown | + | </ |
| - | sudo halt | + | **shutdown** |
| + | < | ||
| + | </ | ||
| + | ====== 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 < | ||
| + | ====== more documentation in ====== | ||
| https:// | https:// | ||
| https:// | https:// | ||
personas/jero98772/antena-direcional-pringler/p-node-comandos.1631381996.txt.gz · Última modificación: por jero98772
