Raspberry Pi settings

From TARPN Wiki

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

  1. Connect to your node's linux console (either locally, using VNC, or via ssh)
  2. Edit your network configuration by running: sudo nano /etc/dhcpcd.conf
  3. Hit ctrl-v to scroll to the next page of contents
  4. Look for the section "Example static IP configuration", and move your text cursor there.
  5. 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


  6. 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).