Raspberry Pi settings: Difference between revisions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
# Then do '''ctrl-x''' to save. | # Then do '''ctrl-x''' to save. | ||
Whenever you restart your node, it will always use the static IP you specified (in the example, "192.168.1.140"). It won't take effect until you next restart. | Whenever you restart your node, it will always use the static IP you specified (in the example, "192.168.1.140"). It won't take effect until you next restart. | ||
NOTE: The majority of home networks use 192.168.1.1 for the router, which is what the above example assumes. If your router uses something else, specify that in the example instead. Also, most routers will offer DNS access via that IP as well. If not, you can use 8.8.8.8 for "domain_name_servers" in the example (this is DNS provided by Google). |
Latest revision as of 01:46, 5 May 2023
(This page is a work in progress and much more detail will be added.)
Static IP
To make it easier to access TARPN chat on your node, you'll most likely want to configure a static IP so you can bookmark the address without having it change every time your node reboots.
This is very easy to do on Raspberry Pi OS:
- Connect to your node's linux console (either locally, using VNC, or via ssh)
- Edit your network configuration by running: sudo nano /etc/dhcpcd.conf
- Hit ctrl-v to scroll to the next page of contents
- Look for the section "Example static IP configuration", and move your text cursor there.
- Paste in this code, and change "140" to whatever you want your static IP to end in:
interface wlan0
static ip_address=192.168.1.140/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 - Then do ctrl-x to save.
Whenever you restart your node, it will always use the static IP you specified (in the example, "192.168.1.140"). It won't take effect until you next restart.
NOTE: The majority of home networks use 192.168.1.1 for the router, which is what the above example assumes. If your router uses something else, specify that in the example instead. Also, most routers will offer DNS access via that IP as well. If not, you can use 8.8.8.8 for "domain_name_servers" in the example (this is DNS provided by Google).