https://github.com/maditnerd/raspi-config
It is just the beginning so, for now, i just added a function in raspi-config to assign an static ip
I'm planning to add new script (I think about calling it raspi-install) to make installation of basic services
For now, I will be mainly working on everything i need to work on GPIO projects I have made (but not yet documented)
(In which i mean LAMP/Samba/WiringPi/Arduino...)
Feel free to suggest ideas, modifications!
If you want to test this , you'll need to install git
Code: Select all
apt-get install git
Code: Select all
cd /tmp
git clone https://github.com/maditnerd/raspi-config.git
cd raspi-config
Code: Select all
Changelog
Added an function to assign easily an static IP address based on the DHCP information provided.
The function doesn't reload network configuration to avoid SSH disconnection
The function do_ipaddress() ,using the ipconfig and route programs, find all
the information needed to configure your network.
You can change your IP Address but if you want to just switch from
dynamic IP to static IP, you just have to type ENTER.
This methods overwrote all the changes in /etc/network/interfaces
so you shouldn't use it if you have other interfaces (Wlan) configured
(It also make an backup copy of interfaces named interfaces.backup)
This also doesn't worked on an unconfigured network (if DHCP failed
for example)
Next improvement to make:
-------------------------
Advanced Configuration mode (If no network is actually found)
IP Verification (If you type your IP wrong there is no error message)
Revert to DHCP (By simply put back the default configuration)