Learning with Raspberry PI, Delivery II - Upgrade firmware, software, and distribution of Raspbian

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.


#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

sudo reboot

And run it with the following command

usuario@maquina:~$ sudo sh firmware.sh

After restarting will update the software of Raspbian:

usuario@maquina:~$ 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.

usuario@maquina:~$ 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.

usuario@maquina:~$ 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.

usuario@maquina:~$ 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.

usuario@maquina:~$ sudo apt-get install freerdp

And now type the command to connect us to our Raspberry ( is the ip of the Raspberry PI).

usuario@maquina:~$ sudo xfreerdp

We must log in with a user on the server system, in this case we use the root user default IP.

Finally here you can see the desktop of Raspbian, and this is a good way to save us the adapter from HDMI to VGA, by removing the need to monitor, keyboard and mouse to manage our small pi.

But remember that this connection is not safe, in future issues we will see how tunnelizar a graphical login X 11 under SSH to create a secure remote control channel. But that is another story…

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.

Help us to reach more readers Share on LinkedIn
Share on Facebook
Tweet about this on Twitter
Share on Google+
Google +
Email this to someone

2 thoughts on"Learning with Raspberry PI, Delivery II - Upgrade firmware, software, and distribution of Raspbian

  1. Re Hello,

    As I do this
    Once burned the image, We will update the firmware and software of our Raspberry PI; We can copy this script into a text file called firmware.sh to automate the task.


    • Hello Ignacio, Thanks for commenting.

      To do this you should only copy and paste the code from this tutorial into a text file named firmware.sh (for example) in your PI Raspberry and run with root permissions.

      You can do it via SSH terminal using a text editor like vi or nano; from the graphic Raspbian text editor; or directly from your computer to copy it finally on card micro SD.

      If you have any other questions please do not hesitate to translate it in another comment.

Leave a Reply

Your email address will not be published. Required fields are marked *