The Pi’s

Installing a Pi2 to play DNS/DHCP server from scratch :

Fetching latest NOOBS, in this case v.1.4.1 is a doddle.

In windows 7 open the zip like any other folder, select all copy and just paste it onto an empty 8Gb MicroSD.

Insert the Noobed MicroSD into the first Pi2 you find on the desk, and  Robert is your mothers brother.

The first boot starts up offering all the usual options – I select raspian and get some beer.

Once it’s finished you go through all the usual stuff, hostname enable sshd etc.

Once thats done a reboot is required, and you’re away.

When it’s up you can log in via ssh, and install webmin :

First get the latest :

sudo wget http://prdownloads.sourceforge.net/webadmin/files/webmin-1.750.tar.gz

Then get unpacking :

sudo gunzip webmin-1.750.tar.gz
sudo tar xf webmin-1.750.tar

Now for some preparatory work :

sudo mkdir -p /var/www/webmin
sudo mkdir -p /var/log/webmin

Then the actual install :

cd webmin-1.750/
sudo sh setup.sh /var/www/webmin

During the install there will be many questions, most of them are just left to default ( notably the admin password is not one of them ).

After the install finishes it may behoove the system to do another quick reboot ( should make windows-acolytes feel right at home )

Then to make sure zone-transfers will work for the dns :

sudo apt-get install dnsutils

After the Pi has rebooted, it’s time for some webmin’ing :

http://yourhostname:10000

username : admin

password : youdidmakeanoteofthat?

Install the DHCP and the DNS – and you’re off.

the rest as they say is history, well it turns out to be just hard work and drudgery.

 

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.