Raspberry Pi: full upgrade

Running the following commands on Raspbian updates all packages, the distribution and firmware. The system has to reboot twice.

Software

sudo apt-get update
sudo apt-get dist-upgrade
reboot

Firmware

sudo rpi-update
reboot

Installing HPLIP for CUPS on a Raspberry Pi

If you have a HP printer or scanner and you want to be able to use it on your Raspberryi Pi running the Raspbian operating system, you`ll have to install HP Linux Imaging and Printing and CUPS.

In the terminal run the following commands:

sudo su
apt-get update
apt-get install hplip cups
usermod -a -G lpadmin pi

In a browser, on the raspberry pi you can now access the CUPS configuration screen at http://127.0.0.1:631/

If you also would like to use your MFP/scanner also run the following commands in the terminal:

apt-get install sane
sane-find-scanner

The configuration and applications are up to you, the requirements are now installed.

How-to Install PHP 7 on a Raspberry Pi

This short guide describes how to install PHP 7 on a Raspberry Pi running Raspbian Linux as operating system.

Edit the apt sources list, /etc/apt/sources.list
sudo nano /etc/apt/sources.list

Add the following lines to the file:

deb http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free
#deb-src http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free

Run the following commands in the terminal. You need superuser (root) access.

su
gpg --keyserver pgpkeys.mit.edu --recv-key CCD91D6111A06851
gpg --armor --export CCD91D6111A06851 | sudo apt-key add -
apt-get update
apt-get install php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-xmlrpc

And if you want to install Apache 2 + mod_php:
apt-get install apache2 libapache2-mod-php7.0

How-to Install Webmin on a Raspberry Pi (updated)

This post will tell you how to install Webmin,a web-based interface for system administration for Unix (including  Raspbian).

This post is an update of How-to Install Webmin on a Raspberry Pi

Run the following commands in the terminal. You need superuser (root) access.

Dependancies
su
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

Installation
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.801_all.deb
dpkg --install webmin_1.801_all.deb
rm webmin_1.801_all.deb

Automatic updates
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc

Edit the /etc/apt/sources.list file on your system and add the following line:
deb http://download.webmin.com/download/repository sarge contrib