Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slashtechno/pistaticip
(My first code repo) Python script that sets a static/reserved IP for Raspberry PI
https://github.com/slashtechno/pistaticip
automated ip python-script raspberry-pi script static-ip static-ip-address
Last synced: 13 days ago
JSON representation
(My first code repo) Python script that sets a static/reserved IP for Raspberry PI
- Host: GitHub
- URL: https://github.com/slashtechno/pistaticip
- Owner: slashtechno
- License: gpl-3.0
- Created: 2021-03-07T23:56:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-29T19:37:06.000Z (over 2 years ago)
- Last Synced: 2024-10-11T02:32:12.971Z (about 1 month ago)
- Topics: automated, ip, python-script, raspberry-pi, script, static-ip, static-ip-address
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`