Setup & config options
Apache 2.4+ LAMP server
The game & not the islands
Setup & config options
North Atlantic : Macaronésia
Nine Azorean islands🚫 No ads & tracking
Most of the articles, descriptions and instructions written here are applicable to the most common Debian-based Linux derivatives. Depending on the respective operating system, there may be minor or major discrepancies.
This website is for educational purposes only. Please do not deploy anything in manufacturing plants.
No warranty or compensation is given for loss of data or hardware.
It should be also mentioned that this modest web server is hosted on a Raspberry Pi type 4B at home.
Raspberry Pi is a series of small single-board computers (SBCs) developed in the United Kingdom by the Raspberry Pi Foundation in association with Broadcom. The mini-computer with its armv7l processor has quickly become the favourite of hobbyists. Projects can be started with suitable Linux distributions. Even an aged RasPi e.g. the models 2B and 2B+ can definitely serve to simple tasks quite well.
root@raspberry:~# cat /proc/cpuinfo
processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva ... CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 ... ... Hardware : BCM2835 Revision : a01041 Serial : 00000000c6575ace
root@raspberry:~# vcgencmd measure_clock arm
frequency(45)=700000000 (700Mhz)
Explore the current CPU frequency along with the minimum and maximum frequencies.
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
root@raspberry:~# vcgencmd measure_volts core
volt=1.2000V
root@raspberry:~# ifconfig
eth0 Link encap:Ethernet Hardware Address b8:27:eb:57:5a:ce inet Address:192.168.178.27 Bcast:192.168.178.255 Mask:255.255.2 inet6-Address: fe80::7f20:5c1c:da0f:51fc/64 ... lo Link encap:Local Loop inet Address:127.0.0.1 Mask:255.0.0.0 inet6-Address: ::1/128 ...
root@raspberry:~# cat /proc/partitions
1 0 4096 ram0 1 1 4096 ram1 1 2 4096 ram2 ... ... 179 0 15637504 mmcblk0 179 1 64512 mmcblk0p1 179 2 15568896 mmcblk0p2
root@raspberry:~# fdisk -l
... ... Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 8192 137215 129024 63M c W95 FAT32 (LBA) /dev/mmcblk0p2 137216 31275007 31137792 14.9G 83 Linux
root@raspberry:~# cat /proc/meminfo
MemTotal: 1000312 kB MemFree: 397200 kB MemAvailable: 836788 kB Buffers: 39124 kB Cached: 444048 kB SwapCached: 0 kB Active: 231652 kB Inactive: 334700 kB ... ...
root@raspberry:~# cat /proc/lsusb
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/95 ... Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@raspberry:~# cat /proc/version
Linux version 4.9.46-v7+ (dc4@dc4-XPS13-9333) (gcc version 6.4.0 (crosst ... NG crosstool-ng-1.23.0-174-g9ee0e06f) ) #1032 SMP Wed Aug 30 12:09:1
root@raspberry:~# uname -a
Linux Pi2B 4.9.46-v7+ #1032 SMP Wed Aug 30 12:09:14 BST 2017 armv7l GNU/
root@raspberry:~# apt-cache policy
100 /var/lib/dpkg/status release a=now 500 http://archive.raspberrypi.org/debian/ jessie/ui armhf Packages release o=Raspberry Pi Foundation,a=stable,n=jessie,l=Raspberry Pi Foundation,c=ui origin archive.raspberrypi.org 500 http://archive.raspberrypi.org/debian/ jessie/main armhf Packages release o=Raspberry Pi Foundation,a=stable,n=jessie,l=Raspberry Pi Foundation,c=main origin archive.raspberrypi.org ... ...
Have a list of all software packages & versions that are installed on your Raspberry Pi.
In terminal the output is pagewise. Press Enter for the scrolling.
root@raspberry:~# dpkg --list | pg
23-Oct 2017
Find what hardware has the OS detected and how well.
Outputs are from a headless Raspberry Pi.
root@raspberry:~# apt install inxi
... 0 upgraded, 41 newly installed, 0 to remove and 0 not upgraded. Need to get 3,139 kB of Archive. After this operation, 8,773 kB of additional disk space will be used. Do you want to continue? [Y/n]
root@raspberry:~# inxi -F
System: Host: Dosboot Kernel: 4.14.48-v7+ armv7l (32 bit) Console: t Machine: No /sys/class/dmi, using dmidecode: no machine data availabl CPU: Quad core ARMv7 rev 5 (v7l) (-MCP-) (ARM) Clock Speeds: 1: 900 MHz 2: 900 MHz 3: 900 MHz 4: 900 MHz Graphics: Card: Failed to Detect Video Card! Display Server: N/A driver: N/A tty size: 174x49 Advanced Data: N/A for Audio: Card bcm2835 ALSA driver: bcm2835_alsa Sound: ALSA v: k4.14. Network: Card: Standard Microsystems SMSC9512/9514 Fast Ethernet Adap IF: N/A state: N/A speed: N/A duplex: N/A mac: N/A Partition: ID-1: / size: 15G used: 4.8G (35%) fs: ext4 dev: /dev/root ID-2: /boot size: 63M used: 23M (36%) fs: vfat dev: /dev/mmcblk0p1 Sensors: None detected - is lm-sensors installed and configured? Info: Processes: 106 Uptime: 7:55 Memory: 134.4/976.8MB Init: syst
root@raspberry:~# inxi -h
inxi supports the following options. You can combine them, or list them one by one.
17-Jun 2018
»ScreenFetch« is a small command line program to quickly create an overview of the currently used system in the terminal. The goal of the program is a visually appealing summary of system information (with a logo of the respective system).
The particular strength of this program is that it produces results that are as comparable as possible on different systems. Especially systems on which »Bash« is available are supported. This includes many Linux distributions as well as FreeBSD, OpenBSD, NetBSD, Haiku, Mac OS X and Windows.
root@raspberry:~# apt install screenfetch
root@raspberry:~# screenfetch
.',;:cc;,'. .,;::c:,,. root@user ,ooolcloooo: 'oooooccloo: OS: Raspbian 10 buster .looooc;;:ol :oc;;:ooooo' Kernel: armv7l Linux 5.10.11-v7+ ;oooooo: ,ooooooc. Uptime: 4h 20m .,:;'. .;:;'. Packages: 962 .... ..'''''. .... Shell: 589 .''. ..'''''. ..''. CPU: ARMv7 rev 5 (v7l) @ 4x 900MHz [35.2°C] .. ..... ..... .. RAM: 143MiB / 924MiB . .''''''' .''''''. . .'' .'''''''' .'''''''. ''. ''' ''''''' .'''''' ''' .' ........... ... .'. .... ''''''''. .''. '''''. ''''''''. .''''' '''''. .'''''. .'''''. ..''. . .''.. .''''''' ......
root@raspberry:~# screenfetch -v
For the omprehensive output use the switch »screenfetch -v«
:: Finding distro...found as 'Raspbian 10' :: Finding hostname and user...found as 'root@user' :: Finding kernel version...found as 'armv7l Linux 5.10.11-v7+' :: Finding current uptime...found as '4h 20m' :: Finding current package count...found as '962' :: Finding current shell...found as '589' :: Finding current resolution(s)...found as '' :: Finding desktop environment...found as 'Not Present' :: Finding window manager...found as 'Not Found' :: Finding window manager theme...found as 'Not Found' :: Finding GTK2 theme...found as 'Not Found' :: Finding GTK3 theme...found as 'Not Found' :: Finding icon theme...found as 'Not Found' :: Finding user font...found as 'Not Found' :: Finding current CPU...found as 'ARMv7 rev 5 (v7l) @ 4x 900MHz [35.2°C]' :: Finding current GPU...found as 'Not Found' :: Finding current RAM usage...found as '143MiB / 924MiB'
09-Apr 2020
Updated 07-Feb 2021