The first time you turn on your new RsPi you will have to use a USB keyboard and a monitor connected to its HDMI output. Surely when you have completed this step 2 you will not use them again, since you can connect from your computer using an SSH client such as Putty (http://www.putty.org/)
Remember that to access the console you will be asked for a username and password, which by default are:
- User: pi
- Password: raspberry
The first time you start the RsPi, the raspi-config utility will auto-run. With this utility you can change options that come by default, some of which are interesting to modify such as:
- Change of password
- Language and keyboard options
- Activate the SSH server. This service is necessary to remotely access the RsPi p.e. using the Putty program.
There are other options that can be changed later if necessary, to do this, run the utility again using the command:
Once these changes are made, I recommend restarting the RsPi. The command would be:
By default the RsPi uses the DHCP service to obtain an IP within the local network; As it is necessary to know your IP to access the equipment, it is better to assign the IP through a static route, for this we edit the file /etc/dhcpcd.conf, as shown below:
sudo nano /etc/dhcpcd.conf
And we add the following commands at the end of the file:
Note: In this example we have assigned the IP 192.168.1.11 to the RsPi and where the router 192.168.1.1 is the IP of the outgoing router. Change these values by what you need in your case.
Since the user pi must have access to the serial port (ttyACMx) to be able to use it, we are going to make this user belong to the dialout group. So when later the remoteRotator program runs, it can open the port without errors due to lack of permission. To add the user pi within the dialout group and have permission to open serial ports, the command is:
sudo usermod -a -G dialout pi
Another interesting service to activate (but not completely necessary) is the FTP server. With this service we can access the RsPi to upload / download files (for example the remoteRotator binary or the default configuration file). To install the ftp server (vsftpd) we execute the command:
sudo apt-get install vsftpd
We can leave the ftp service with its default configuration (it can be modified by modifying the file /etc/vsftp.conf)
And finally, a utility that I like and that allows you to manage and move through the filesystem of the RsPi and also allows you to copy files between folders, view / edit files, etc. This utility is called Midnight Commander. Surely new users to Linux and / or veterans who were already running in MS-DOS (Commander Norton) will appreciate it. Its installation is through the command:
sudo apt-get mc
To run this utility we execute:
With this we would have everything ready, then it is a good time to restart again (sudo reboot) and check for example that the RsPi has the IP that we have previously defined, or that we can access through an ftp client from our computer, ie using FileZilla program.