Tuesday 6 December 2016

Automatic connection on Bootup with Pi

One of the things that make Raspberry Pi so popular is the fact that it is almost a computer that can do almost anything a normal computer can do for a person but at a very low energy consumption. This means that one can have Pi running 24x7 and not be affected by how much it would cost. If a pi is running non stop it only makes sense that it is at some remote place and as such it must be connected to the Internet otherwise how else will it be able to communicate with any other computer. So one of the important things is to make your pi connect to the internet automatically when it boots up. This is useful when for some reasons your pi has to be rebooted and you want it to become active on the network without you being there. This is exactly what I wished to do with a pi today.
The internet connection was to be made through a 3g dongle and using the sakis3g software. In order to connected to the dongle, a single command is to be run. This makes the whole thing very easy. All that is needed is to make sure that this command is run every time pi boots up.
One of easiest ways to do this is to have that command written inside the /etc/rc.local script. So I did and it worked.

No comments:

Post a Comment