Raspberry Pi as server

Setup & config options

Apache 2.4+ LAMP server

»Windward« server

The game & not the islands
 Setup & config options

Some off-topics
Free weather app. Weather widget

Lat. 52.27, Long. 8.01

 

Meteorological service

Front desk clerk

🚫  No ads & tracking

Tag cloud
QRC bookmark

QR quick response code




Github social media VSCO social media Vimeo social media | Madeira | Madeirense Twitter | X Youtube social media

The prologue


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.


The Raspberry Pi mini-computer board as multi-purpose server deployed
A competent allrounder for domestic purposes and micro-enterprises


Raspberry Pi : Apache as multiple web server. Print server, scan server, backup and NAS server. Raspberry Pi : Apache as multiple web server. Print server, scan server, backup and NAS Server.

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 RaspPi e.g. the models 2B and 2B+ can definitely serve to simple tasks quite well.


Caution ! Proprietary and untested third-party software sources (Linuxes) can threaten the system.


SSHpass is a tool for non-interactivly performing password authentication with SSH's so called »interactive keyboard password authentication«. Most user should use SSH's more secure public key authentiaction instead.



Workshop Vice  Automation login script via »sshpass« to the RasPi (server)


Remember my login password. The »sshpass« utility / tool is designed to run SSH using the keyboard-interactive password authentication mode, but in a non-interactive way.


user@raspberry:~ $ sudo su
login as: user
user@raspberry's password: ******
root@raspberry:/home/user# apt install sshpass
root@raspberry:/home/user#


The short bash script :


root@raspberry:/home/user# nano piserver


        #!/bin/bash
        clear
        sshpass -p PASSWORD ssh USER@192.168.0.23
	

Save Ctrl O the script and close Ctrl X the editor.


Now make your new bash script executable.


root@raspberry:/home/user# chmod -x piserver


And finally go for the login.


root@raspberry:/home/user# sh piserver


    Linux dosboot-4B 5.10.89-v7l+ #1506 SMP Fri Dec 31 14:40:15 GMT 2021 armv7l

              ╔═══════════════════════════════════════════╗
              ║       R A S P B E R R Y   P I  4 B        ║
              ╚═══════════════════════════════════════════╝

     Last login: Mon Jan  3 20:51:22 2022 from 192.168.0.23
     root@dosboot-4B:/home/pi# 
	

03-Jan 2022


dosboot.org 2024 | Design and layout handmade in Northwest Europe