I decided to celebrate 25th B-day of Linux by putting the latest Ubuntu 16.04 on my Raspberry Pi 2 and setting up a webserver.
This is how I did it:
- First, get Ubuntu armf image and prepare memory card
- Configure new user & setup Drupal8 webserver
# get image wget http://cdimage.ubuntu.com/ubuntu/releases/16.04/release/ubuntu-16.04-preinstalled-server-armhf+raspi2.img.xz # make sure your SD card is on sdb ie by df -h xzcat ubuntu-16.04-preinstalled-server-armhf+raspi2.img.xz | sudo dd of=/dev/sdb
# create new user & change hostname sudo adduser USERNAME && sudo usermod -a -G sudo USERNAME # edit /etc/hostname and add `127.0.1.1 newHostname` to /etc/hosts sudo reboot # generate locales sudo locale-gen en_US.UTF-8 sudo dpkg-reconfigure locales # install software sudo apt install htop apache2 mysql-server libapache2-mod-php php-mysql php-sqlite3 php-curl php-xml php-gd git sqlite3 emacs-nox
My first impressions?
sudo apt
is veeery slow. At first, I thought it’s due to old SD card I’ve been using, but it’s also true for newer SD card.
Some packages are missing (ie. git-lfs), but you can get them using some workarounds.
But everything just works!
You can check the mirror of https://ngschool.eu/ running on RPi2 here.
Maybe it’s not speed devil, but it stable and uses almost no energy 🙂
Cheers!
Inspired by Ubuntu’s Insights.