Blog Post Image
5 October, 2020

Inexpensive stage lamp server with Raspberry PI3 and Ubunto server

Icon

Luigi Laezza

Web Development

Have you ever been in the position of asking your self  “How much shall I spend for a development server?”, “Shall I get an inexpensive shared host?” , “Will it be enough for my needs?”, “Perhaps i should upgrade”… well ask no more.

If you don’t expect much traffic, and you are on a tight budget, or simply you want to make more practice in maintaining a web server, why not going for a homemade web server.

Raspberry Pi now I quit performing for a staging environment, and very very inexpensive. As a test we have got the Raspberry Pi 3 Official Starter Kit White con Alimentatore Ufficiale, Case Ufficiale, Cavo HDMI, Dissipatori e MicroSD Ufficiale 16GB con NOOBS it looks good and has all you need to store it nicely near your router/switch.

Having a Raspberry Pi without a proper SD would be useless, so we have bought also a Samsung EVO Scheda MicroSDHC da 64 GB, Class 10, Nero/Antracite to give us plenty of space for all our projects.

Assembled all together,  we just needed to install the right software, we decided to go for the Ubuntu Server Standard 16.04 built for our little fruity friend, you can download it here.

To build the image, we have been using Etcher, it is a cross-platform software, pretty easy to use.

Once the SD is ready, insert it in the Raspberry pi, attach a keyboard and a monitor, and you are ready for the setup.

The default user/password is normally ubuntu/ubuntu, we highly recommend to change username and password as soon as you have it connected on the net.

To install a LAMP server, you can follow the guide that Digital Ocean posted on their site.

Once you have your server up and running, you will have to configure your system to use a static IP address assignment, add the static method to the inet address family statement for the appropriate interface in the file /etc/network/interfaces. The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the address, netmask, and gateway values to meet the requirements of your network.

auto eth0
iface eth0 inet static
address 192.168.1.xx
netmask 255.255.255.0
gateway 192.168.1.1

We assume you have a static IP address assigned to your office connection, so the last step is to make sure your router/switch will forward all the HTTP traffic to the 192.168.1.xx IP and you are ready to go.

A homemade LAMP server for staging development.