In the previous installment of the series “Learning with raspberry pi“, We saw how to burn the operating system Raspbian based in Debian in our SD minimum 4 GB with USB-Imagewritter.
Once burned the image, We will update the firmware and software of our Raspberry PI; We can copy this script to a named text file firmware.sh to automate the task.
#!/bin/sh #Actualizamos el firmware de nuestra Raspberry sudo apt-get install -y ca-certificates git-core binutils sudo wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update sudo cp rpi-update /usr/local/bin/rpi-update sudo chmod +x /usr/local/bin/rpi-update sudo rpi-update #Reiniciamos: sudo reboot
And run it with the following command
sudo sh firmware.sh
After restarting will update the software of Raspbian:
sudo apt-get update && sudo apt-get upgrade
In addition to the software, each time you leave a new version of Raspbian, It is highly recommended to upgrade to take advantage of the performance improvements implemented; to do this we first update software as in the previous step, and Finally we will update the distribution.
sudo apt-get dist-upgrade
Since December of 2014, We must also install the following package, to implement improvements in the user interface after upgrading the distribution; We have the model that we have of Raspberry, is highly recommended to do so.
sudo apt-get install raspberrypi-ui-mods
At this point, We will install the software you need, with apt or with dpkg; in este case vMasters to install a server free rdp to view the desktop of our Raspberry remotely, so you can see its appearance later.
sudo apt-get install xrdp
If connect by RDP to the Raspberry We can control it remotely, and for this I have installed xfreerdpX11 on my laptop with Ubuntu.
sudo apt-get install freerdp
And now type the command to connect us to our Raspberry (192.168.1.2 is the ip of the Raspberry PI).
sudo xfreerdp 192.168.1.2
We must log in with a user on the server system, in this case we use the root user default IP.
In the next installment we will see how to create a backup file that you can burn with USB Imagewritter If something goes wrong and we want to restore the file system.
In addition the reverse operation is a good option to burn an image with extension .img in any format from any distribution GNU/Linux not available from USB Imagewritter.
If you like you can follow me on Twitter, Facebook, Google +, LinkedIn, or share it with the buttons under this publication, If you have any questions or suggestions please do not hesitate to comment.