Skip to content

(My first code repo) Python script that sets a static/reserved IP for Raspberry PI

License

Notifications You must be signed in to change notification settings

slashtechno/PiStaticIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiStaticIP

Python script that sets a static/reserved IP for Raspberry Pi
This was my first code repository on Github

To install:

wget -qO- https://raw.githubusercontent.com/slashtechno/PiStaticIP/main/install | bash

To run

staticIP

One time run

wget -qO- https://raw.githubusercontent.com/slashtechno/PiStaticIP/main/staticIP | python3

To Update (I recommend doing this frequently)

wget -qO- https://raw.githubusercontent.com/slashtechno/PiStaticIP/main/update | bash

To Uninstall

wget -qO- https://raw.githubusercontent.com/slashtechno/PiStaticIP/main/uninstall | bash

How this works

  1. Asks user if they are using WiFi or Ethernet

  2. Executes a command that shows current IP info.

  3. Asks user for what the command output was

  4. Adds static IP info to /etc/dhcpcd.conf

About

(My first code repo) Python script that sets a static/reserved IP for Raspberry PI

Topics

Resources

License

Stars

Watchers

Forks

Languages