How-To Raspberry Pi print server (with AirPrint)

This guide demonstrates how to turn your Raspberry Pi into a print server, with AirPrint support

First step is to install CUPS and related plugins

sudo apt-get install cups cups-pdf gutenprint pycups avahi python2 python-cups
sudo usermod -aG lpadmin pi
sudo /etc/init.d/cups start

Second step is to fully integrate AirPrint

sudo apt-get install avahi-daemon avahi-discover libnss-mdns
sudo mkdir /opt/airprint
cd /opt/airprint
sudo wget -O airprint-generate.py --no-check-certificate https://raw.github.com/tjfontaine/airprint-generate/master/airprint-generate.py
sudo chmod 755 airprint-generate.py.
sudo ./airprint-generate.py -d /etc/avahi/services
sudo /etc/init.d/avahi-daemon start
echo “image/urf urf (0,UNIRAST)” > /usr/share/cups/mime/apple.types
echo “image/urf application/vnd.cups-postscript 66 pdftops” > /usr/share/cups/mime/local.convs

Step is is to install  Samba (for compatibility with Windows PCs)

sudo apt-get install samba
sudo /etc/init.d/samba start

If you have a special printer, like I do you might want to install the following extras:

sudo apt-get install foo2hp
sudo apt-get install HPLIP

How-To Enable Automatic Updates on Ubuntu Linux

To enable automatic updates (Unattended upgrades) on Ubuntu Linux to keep your system safe, run the following line in the terminal:

sudo apt-get install unattended-upgrades

Fedora Linux desktop via RDP

To control an Fedora Linux pc via RDP you will need to install XRDP. This can be done by running the following command in the terminal:

sudo yum install xrdp
sudo systemctl enable xrdp.service
sudo systemctl start xrdp.service

How-To Fedora Linux LAMP installation

This short guide demonstrates how to setup Fedora 18 as a LAMP server containing Apache, PHP, Perl, Python, Ruby and MySQL.

You have to use the shell and be able to use the machine as  root.

Start the terminal and run:

sudo yum install -y httpd php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-magickwand php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy php-mysql php-odbc php-pear php-mhash curl perl-libwww-perl ImageMagick libxml2 php-pecl-apc mysql mysql-server phpmyadmin ruby mod_python perl mod_perl perl-HTML-Parser perl-DBI perl-Net-DNS perl-Digest-SHA1 perl-ExtUtils-AutoInstall perl-NetAddr-IP perl-Archive-Tar

Second step is to enable the Apache Webserver and MySQL Database server;

sudo systemctl enable httpd.service
sudo systemctl start httpd.service
sudo systemctl enable mysqld.service
sudo systemctl start mysqld.service
sudo mysql_secure_installation