This is part 1 of a series, documenting the setup of an out-of-the-box Raspberry Pi to a self-hosted SSL WordPress site.
I’m running this WordPress blog on a Raspberry Pi 3B, so I thought I’d document my setup process, from first boot all the way to an internet published SSL WordPress site. Hopefully it’s of use to somebody looking to do the same.
BalenaEtcher is a free and open-source image burner with support for Windows, OS X and GNU/Linux. It makes USB and SD card image burning as simple and fast as possible. Sponsored Links: FEATURES Validated Burning – No more writing images on corrupted cards and wondering why your device isn’t booting. Hard Drive Friendly – Makes.
- Concentration solution unit conversion between gram/liter and percentage, percentage to gram/liter conversion in batch, g/L per conversion chart.
- M3↔cm3 1 m3 = 1000000 cm3 m3↔mm3 1 m3 = mm3 m3↔um3 1 m3 = 1.0E+18 um3 m3↔nm3 1 m3 = 1.0E+27 nm3 m3↔L 1 m3 = 1000 L m3↔kL 1 m3 = 1 kL m3↔dL 1 m3 = 10000 dL m3↔cL 1 m3 = 100000 cL m3↔mL 1 m3 = 1000000 mL m3↔uL 1 m3 = uL m3↔Cc 1 m3 = 1000000 Cc m3↔Drop 1 m3 = 20000000 Drop m3↔Cup 1 m3 = 4000 Cup.
I’ll mostly be linking to the guides that helped me for each individual step, with amendments where needed; as somebody who is predominantly Windows focused, when it comes to Linux configuration I find the key is sourcing a guide that is as relevant as possible to what you are doing and following it to the word.
This guide assumes you’re setting up from a Windows PC on a basic home network with DHCP.
The steps I’ll be covering in each part:
- Installing Raspbian
- Installing WordPress
- Public IP and NAT
- Domain Name and DNS
- SSL Cert
- Is it worth self-hosting?
Installing Raspbian
We’ll be using Raspbian Buster Lite on our Raspberry Pi.
You will of course first need an SD card (I’d recommend 8 GB minimum) and a way to mount the SD card onto your computer to write the Raspbian image . If your machine does not have an in-built SD card reader, I’d recommend a USB SD card reader, as they are convenient to have regardless.
Download the latest version of Raspbian Buster Lite:
Download the latest version of balenaEtcher, which you’ll use to write the Raspbian image to your SD card:
Balenaetcher 1 5 65 Equals Inches
Run balenaEtcher, target the Raspbian zip you downloaded (no need to unzip), and target your mounted SD card. Click Flash to begin the write process, which should only take a few minutes.
Balenaetcher 1 5 65 Equals How
Once the write is complete, there’s one more step before inserting it into your Raspberry Pi. By default, SSH is disabled in Raspbian Buster. If you want to connect to your Pi without the hassle of a physically connecting it to a keyboard and monitor, we need to enable SSH now. Do this by creating an empty file simply named “SSH” in the boot partition of the newly created SD image (the boot partition should appear mounted as its own drive, named “boot”). Note there is no extension to this file; the simplest way to create this file is is right-click in the boot drive, select New Text Document, name “SSH”, ensuring there is no .txt extension. You may have to untick “Hide extensions for known file types” in Folder Options to confirm this.
You’re now ready to insert the SD card into the Pi, which should be connected to your home network (I’m assuming a wired Ethernet connection, which you will want for web server reliability), and boot up. To SSH into the Pi, we’re going to have to find out what IP address it has picked up on your network. To do this, we generally have two options:
- Log into your router, go to the DHCP section, and find what address has been leased to the Pi. You should see it referenced by the default Raspberry Pi hostname, “raspberrypi”.
- If you don’t have access to your router; stop reading this and figure out how! You will need access later for essential NAT configuration. However, another way to discover your Pi’s DHCP address is to do a network scan of your local network, looking for hostname “raspberrypi”. There are plenty of tools out there, but I recommend Advanced IP Scanner ( https://www.advanced-ip-scanner.com/ ), as you can run it portable without installing. Just run the installer, click the big green Scan button, and you should see all devices with live connections to your local subnet, including our Pi:
Now that we have our Pi’s IP address, connect via your favourite SSH client, such as PuTTY, with the default credentials; user ‘pi’, password ‘raspberry’.
A few house-keeping tasks first off. Run:
which will launch the Raspberry Pi Software Configuration Tool.
We’ll want to amend the following:
- Change User Password – Self explanatory, change the default pi password.
- Network Options / Hostname – Optionally rename your Pi; this is the name that the device will appear as on your local network. Defaults to raspberrypi.
- Advanced Options / Expand Filesystem – By default, the Raspbian root file system is 2 GB. Run this to expand the file system to the capacity of your SD card.
- Advanced Options / Memory Split – Set to 16; your WordPress won’t benefit significantly from excessive GPU memory.
- Interfacing Options / SSH – Enable SSH if you wussed out and used a monitor to connect to your Pi.
Next, run:
to get Rasbian bang up to date.
At this stage it’s worth assigning your Pi a permanent IP, as this will be essential to reliably translate internet HTTP/HTTPS traffic from your home router to your Pi. You have two options; configure the Pi with a static IP, or assign a reserved IP on your router.
I’ve opted for a reserved IP on my home router, as I like having central control of the non-dynamic IPs on my network. As there are so many home router models, I won’t be able to guide you on how to set a reserved IP on your specific router model, but it’s generally quick a simple task. You’ll be looking for the DHCP page, and will have to supply the MAC address of the Pi (you can get this from our previous network scan, or by viewing current DHCP leases on the router).
If you want to set a static address on the Pi itself, below is a link detailing the process. You might find the DHCP reservation a more attractive option after-all…
With SSH connectivity to our networked Pi on a reserved/static IP address, we’re now ready to install WordPress itself, along with the web server stack it requires, which I’ll cover in the next part.
Nutrition Facts vegetable oil | ||
---|---|---|
Serving Size 15ml vegetable oil (14.2g) 6.7 Servings per 100ml (94.4g) 2 Servings per 1/8 cup (30ml – 28.3g) * | ||
Energy per 15ml serving : | ||
Calories / Kilocalories | 122 Cal / kcal | Kilojoules 510kJ |
Nutrients : | Per 1/8 cup (30ml) | Per 100ml |
Energy | 1,020kJ (244Cal) | 3400kJ (813Cal) |
Protein | 0g | 0g |
Fat Total | 27.6g | 92g |
– saturated | (LESS THAN) 5.5g | (LESS THAN) 18.4g |
– trans fat | (LESS THAN) 0.3g | (LESS THAN) 0.9g |
– polyunsaturated fat | 5.5g | 18.4g |
– Omega-3 | 1.5g | 5g |
– ALA | 1.5g | 5g |
– monounsaturated fat | 11g | 36.8g |
Cholesterol | 0mg | 0mg |
Total Carbohydrate | 0g | 0g |
Sugars | 0g | 0g |
Dietary Fiber | 0g | 0g |
Sodium | 1.5mg | 5mg |
Ingredients: vegetable oil (canola and soybean mix) Storage instructions: Do not refrigerate Average expiry time: 1 year from production date * 1/8 US Legal Nutrition Labeling Cup equals 30ml |
Apart what’s in the vegetable oil nutrition facts table, use the vegetable oil calorie counter to calculate dietary and nutritional information for any amount of vegetable oil. E.g. convert value from 1/8 of a cup amount, or 50ml, 1 fl-oz servings, even US legal nutrition labeling cup (240ml/cup). Convert from any portion or measure. The tool also makes conversions of fats into energy units, from any amount of fat contained in vegetable oil. Details about vegetable oil are handy as healthy eating tips, for maintaining healthy diet therefore a personal healthcare plus wellbeing.
Oil from plants; usually soya bean and canola seeds based. Vegetable oil is a part from cooking oils category. The oil is used for a wide range of cooking applications such as frying, roasting and in baking. It is produced from plant seeds. To manufacture 0.7 of one liter, 750 ml or 1.5 pt ( pint US liquid ) of vegetable oil, it can consume roughly ~ 400,000 seeds. The oil is cholesterol free and usually also contains pant-derived omega 3 fatty acids (please refer to per particular packaging nutritional value info for exact details on the omega-3 levels).
The vegetable oil online web tool makes smooth unit to unit conversions. From any new specific weight scales versus liquid measures. From weight in pounds ( lb ), ounces ( oz ), kilograms ( kg – kilo ), dekagrams ( dkg – dag – deca – deka ), pints ( pt ) into an equivalent amount size. Or convert volume measures of vegetable oil from a value in liters ( l ), deciliters ( dl – dcl ), milliliters ( ml ), fluid ounces ( fl-oz ), gallons ( gal ), quarts ( qt ), pint US ( pt ) liquid, table spoons ( tbsp – tblsp – tbs ), tea spoons ( tsp – teasp ), even a one single drop of vegetable oil through a medicine glass dropper and convert also from measuring cups into either American US or Metric kitchen units. Enjoy this useful vegetable oil converter for cooking, baking and the nutrition data as health tips for wellness.