TGRank — Telegram channel marketplace
TGRank
Your independent guide to Telegram stats
Каналы
Русскоязычные923Україна133Oʻzbekiston50English221فارسی113World1 416
Язык сайта
27 Users
24 per day
0 Online
Log in with TelegramLog in
Technology & IT

How to Set Up a Raspberry Pi Home Server in 2026: A Step-by-Step Guide

TGRank editorial team November 23, 2026 11 min read
How to Set Up a Raspberry Pi Home Server in 2026: A Step-by-Step Guide

Get a complete, step-by-step guide to building a home server on Raspberry Pi: from choosing an OS to setting up a file cloud and calculating costs.

Contents
  1. Hardware Preparation and Choosing an Operating System
  2. Initial Raspberry Pi Setup and SSH Connection
  3. Installation and configuration of core server services
  4. Practical security and optimization checklist
  5. Calculating home server costs and scaling options
  6. Common beginner mistakes and how to avoid them
  7. Summary: Your turnkey Raspberry Pi home server

Setting up a Raspberry Pi home server in 2026 is easier than it seems: all you need is to choose the right hardware, write the system image, and run a few basic commands. Once set up, you will have a reliable file server, media platform, or cloud managed from anywhere on the network.

According to TGRank, there are 105 Telegram channels in the "Technology and IT" category with a total audience of over 15 million subscribers, which confirms the high interest in DIY solutions. Below is a step-by-step guide to help you quickly assemble and launch your server.

Hardware Preparation and Choosing an Operating System

What You'll Need

  • Raspberry Pi 5 (2.4 GHz quad-core processor, 8 GB RAM) – the core "brain" of the project.
  • 5V 3A power supply with USB-C certification, at least 3A, to avoid voltage drops.
  • MicroSD card, at least 32 GB, preferably 64 GB, Class 10 – ensures fast boot times and sufficient space for services.
  • Case with ventilation holes and a cooling kit (heatsink + active fan) – keeps temperatures below 70 °C under load.
  • Ethernet cable (or Wi-Fi module, if you plan on using a wireless connection) and a monitor with an HDMI cable for the initial setup.

Choosing a Linux Distribution

DistributionImage SizePi 5 SupportInstallation Type
Raspberry Pi OS (Lite)≈ 2.5 GBOfficialMinimal package set, ideal for servers.
Ubuntu Server 22.04 LTS≈ 3.0 GBSupported via ARM64 imageBroad ecosystem, convenient snap manager.
DietPi≈ 500 MBOptimized for Pi 5Very lightweight, automatic installation of popular services.

For most tasks, Raspberry Pi OS Lite is sufficient – it is lightweight, boots quickly, and has built-in apt support. If you need a more "universal" server with ready-made packages, choose Ubuntu Server. DietPi is suitable when minimizing memory usage is a priority.

Writing the Image to the Memory Card

  1. Download the desired image from the official distribution website.
  2. Install Raspberry Pi Imager (available for Windows, macOS, and Linux).
  3. In Imager, select "CHOOSE OS", specify the downloaded file, then "CHOOSE STORAGE" – select your microSD card.
  4. Enable the "SETTINGS" option → "Enable SSH" (this creates an ssh file) and, if necessary, specify your Wi-Fi SSID and password.
  5. Click "WRITE" – the process will take 2-3 minutes on a 64 GB card.

After writing, the card is ready for the first boot. Insert it into the Raspberry Pi, then connect the power supply and monitor.

Initial Raspberry Pi Setup and SSH Connection

First Boot and Basic Settings

  1. Power on the Pi – the system will boot into a text terminal.
  2. Enter the login pi and password raspberry.
  3. Change the password immediately using the passwd command – this is your first line of defense.
  4. Run sudo raspi-config, go to "Localisation Options," and set your region, language, and keyboard layout.
  5. Save the changes and reboot using sudo reboot.

Enabling SSH and Configuring Wi-Fi/Ethernet

If an ssh file was already created in the image, the service is enabled automatically. For Ethernet, simply connect the cable to your router. To add Wi-Fi after the first boot:

  1. Open sudo nano /etc/wpa_supplicant/wpa_supplicant.conf.
  2. Add this block:
network={
ssid="YOUR_SSID"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}
  1. Save with Ctrl+O, exit with Ctrl+X
  2. Restart the service with sudo systemctl restart dhcpcd.

Now you can connect from any PC on the network:

ssh pi@192.168.1.XX

System Update

Before installing services, update your packages:

  1. Update repository lists: sudo apt update.
  2. Install the latest versions: sudo apt full-upgrade -y.
  3. Clear the cache: sudo apt autoremove -y && sudo apt clean.

After a reboot with sudo reboot, your system will be ready to install server applications.

If you want to compare advertising post prices in "Technology and IT" Telegram channels, check out the catalog of "Technology and IT" Telegram channels – for up-to-date statistics from TGRank.

Installation and configuration of core server services

File server (Samba)

Serves for file sharing between Windows, macOS, and Linux clients. On Raspberry Pi, it runs quickly even on the 4 GB model.

  1. Install the package: sudo apt install samba -y.
  2. Create a shared folder: sudo mkdir -p /srv/samba/share and set permissions: sudo chown -R pi:pi /srv/samba/share.
  3. Edit /etc/samba/smb.conf (add to the end): [Share] path = /srv/samba/share browseable = yes read only = no guest ok = yes
  4. Restart the service: sudo systemctl restart smbd.
  5. From another PC, open \\192.168.1.XX\Share in File Explorer (Windows) or smb://192.168.1.XX/Share in Finder (macOS).

Cloud storage (Nextcloud)

Nextcloud provides a web interface, synchronization, and mobile clients. It runs on ARM processors without any issues.

  1. Install the necessary dependencies: sudo apt install nginx php-fpm php-mysql php-xml php-gd php-curl php-zip php-bcmath -y.
  2. Download the latest Nextcloud archive: wget https://download.nextcloud.com/server/releases/nextcloud-27.0.0.zip -O /tmp/nextcloud.zip and unpack it to /var/www/: sudo unzip /tmp/nextcloud.zip -d /var/www/ && sudo mv /var/www/nextcloud /var/www/html/nextcloud.
  3. Create a database: sudo mysql -e "CREATE DATABASE nextcloud; CREATE USER 'nc_user'@'localhost' IDENTIFIED BY 'StrongPass!'; GRANT ALL PRIVILEGES ON nextcloud.* TO 'nc_user'@'localhost'; FLUSH PRIVILEGES;".
  4. Configure nginx (file /etc/nginx/sites-available/nextcloud): server { listen 80; server_name pi-home.local; root /var/www/html/nextcloud; index index.php index.html; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.2-fpm.sock; } }
  5. Activate the config: sudo ln -s /etc/nginx/sites-available/nextcloud /etc/nginx/sites-enabled/ && sudo nginx -t && sudo systemctl restart nginx. After this, open http://192.168.1.XX/nextcloud and complete the installation via your browser.

Web server (Apache/Nginx)

For simple websites, Nginx is often enough, but Apache remains popular for PHP applications.

  • Nginx – installation: sudo apt install nginx -y. Replace the configuration file /etc/nginx/sites-available/default with: server { listen 80; server_name pi.local; root /var/www/html; index index.html index.htm; } Restart: sudo systemctl restart nginx. Access: http://192.168.1.XX.
  • Apache – installation: sudo apt install apache2 -y. The directory /var/www/html is already ready. Check via http://192.168.1.XX.

Database (MariaDB)

MariaDB is suitable for most web applications and scales easily.

  1. Install the server: sudo apt install mariadb-server -y.
  2. Run the secure configuration: sudo mysql_secure_installation. Set the root password, disable anonymous access, and remove the test database.
  3. Create a user for applications: sudo mysql -e "CREATE USER 'app_user'@'localhost' IDENTIFIED BY 'StrongPass!'; GRANT ALL PRIVILEGES ON *.* TO 'app_user'@'localhost'; FLUSH PRIVILEGES;"
  4. Check that it works: mysql -u app_user -p -e "SHOW DATABASES;". Access from PHP scripts will be via the same credentials.

Practical security and optimization checklist

Firewall and port restrictions

ActionCommandRecommendation
Install ufwsudo apt install ufw -yBasic filter, easy to manage.
Allow SSH only from local networksudo ufw allow from 192.168.1.0/24 to any port 22Avoid access from the internet.
Open service portssudo ufw allow 80/tcp && sudo ufw allow 443/tcp && sudo ufw allow 139/tcp && sudo ufw allow 445/tcpOnly those that are actually needed.
Enable firewallsudo ufw enableAfter checking the rules.

Updates and automatic service restarts

  • Enable automatic security updates: sudo apt install unattended-upgrades -y && sudo dpkg-reconfigure unattended-upgrades.
  • Configure a systemd timer to restart critical services if they crash: sudo systemctl enable --now nginx sudo systemctl enable --now mariadb
  • Change the SSH password and disable root login: passwd pi, then in /etc/ssh/sshd_config set PermitRootLogin no and PasswordAuthentication no (use keys).
  • Install fail2ban for brute-force protection: sudo apt install fail2ban -y. It protects SSH by default.

Load monitoring (htop, netdata)

Monitoring the load helps identify "bottlenecks" in time.

  1. Install htop: sudo apt install htop -y. Running htop shows CPU, memory, and processes in real time.
  2. For a more detailed graph, install netdata: bash

Calculating home server costs and scaling options

Base build budget

To get started, you'll need a Raspberry Pi 5 (≈ 7 500 ₽), a 5 V 3 A power supply (≈ 1 200 ₽), a 32 GB Class 10 microSD card (≈ 800 ₽), and a case with ventilation (≈ 1 000 ₽). The total cost for the base configuration will be ≈ 10 500 ₽.

Additional accessories (SSD, HAT module)

For file storage, it's better to connect an external 1 TB SSD (for example, Samsung 870 EVO, ≈ 9 000 ₽) via a USB-3.0-adapter (≈ 600 ₽). If you plan to use the Pi as a media server, it makes sense to add a "Pi-Cool" HAT module with an active cooler and temperature sensor (≈ 1 500 ₽). The total cost of the expanded build is ≈ 21 600 ₽.

Comparison with commercial NAS

DevicePrice, ₽Performance (read/write)Flexibility
Raspberry Pi 5 + 1 TB SSD≈ 21 600≈ 350 MB/s (USB-3.0)Full access to Linux environment
Synology DS220+≈ 33 000≈ 225 MB/s (2 × LAN)GUI management, packages
QNAP TS-231K≈ 29 000≈ 200 MB/s (Gigabit)Built-in RAID, applications

In terms of price, the Pi wins by nearly double, and in terms of flexibility, it has no OS restrictions. As the load increases, you can add a second SSD via a USB-3.0-hub or upgrade to a more powerful SBC (for example, Raspberry Pi Compute Module 4). For a comparison of prices and audiences of Telegram channels in the "Technology and IT" category, see the

Common beginner mistakes and how to avoid them

Incorrect power supply

  • Reason: Using a cheap adapter without a stable 5V 3A output.
  • Consequences: Random reboots, file system corruption.
  • Recommendation: Buy an original Raspberry Pi power supply or a certified alternative, and check the voltage with a multimeter.

Ignoring updates

  • Reason: Rarely running apt update && apt upgrade.
  • Consequences: Vulnerabilities, incompatibility with new packages.
  • Recommendation: Set up an automatic cron script, for example, 0 3 * * 0 apt update && apt upgrade -y, and check logs regularly.

Overheating due to lack of cooling

  • Reason: No fan or passive heatsink.
  • Consequences: CPU throttling, performance drops during prolonged operation.
  • Recommendation: Install an active cooler (Pi-Cool) and place the server in a well-ventilated area; add a temperature sensor and an automatic script to reduce load if the temperature exceeds 80 °C.
Regularly check the temperature with the vcgencmd measure_temp command and adjust cooling before problems arise.

Summary: Your turnkey Raspberry Pi home server

After following all the steps, you have a fully functional file and media server, a web management interface, and basic backup services up and running. The easiest way to verify that services are working is via the systemctl status command and your browser by opening http://IP-address:/port.

Quick check

  • SSH access: ssh pi@IP responds without delay.
  • Web interface (e.g., Nextcloud) opens and shows storage status.
  • SMB shares are visible from Windows/Mac, allowing you to copy files.
  • Auto-updates and temperature monitoring are running on schedule.

Backups and recovery

Set up a daily backup of the /var/www directory and user data to an external USB drive or the cloud (rclone + Backblaze). A script in /etc/cron.daily should run rsync -a --delete /home/pi/backup /mnt/usb. Regularly check the /var/log/rsync.log logs and test your recovery process.

Savings and scaling

Currently, your server consumes ~3 W, which costs about 3 USD per month at a rate of 0.10 USD/kWh. If you need to add disk space, connect another SSD via USB 3.0 and expand your docker-compose files.

Maintenance recommendations

  1. Check for updates once a week, or at least once a month.
  2. Monitor the temperature: if it goes above 80 °C, increase the fan speed.
  3. Check the file integrity of critical storage once a month using md5sum.
  4. Update passwords and SSH keys at least every six months.
"A home server is not a 'set-and-forget' project, but a living service that requires periodic checks and tuning."

According to TGRank, in the "Technology and IT" category in the Telegram channel directory, there are 105 channels with a total audience of 15,142,048 subscribers and a median engagement rate of 6.4%. If you plan to share your experience or advertise your solutions, take a look at the "Technology and IT" Telegram channel directory.

In short, your Raspberry Pi is ready to serve your family: storing photos, streaming media, syncing documents, and even running small web applications. The key is to keep it up to date and perform regular backups.

Telegram channels on the topic

Picked by the TGRank team: channels with a real audience — to read and to advertise in

Первый Миллион ✓
Первый Миллион
25,8K subscribers 15,7K post reach ERR 61%

Хотите понять, как превратить небольшие доходы в первый миллион? Канал «Первый Миллион» предлагает пошаговые стратегии накопления и инвестиций, проверенные примерами реа…

Ads from6 000 ₽
Теория Бизнеса ✓
Теория Бизнеса
35,5K subscribers 21,4K post reach ERR 60%

Теория бизнеса раскрывается здесь через призму научных исследований и проверенных моделей управления. Автор публикует разборы классических и современных концепций, сопро…

Ads from5 500 ₽
Бизнес Империя ✓
Бизнес Империя
19,8K subscribers 12K post reach ERR 61%

«Бизнес Империя» — платформа для амбициозных владельцев компаний и стартаперов. Канал регулярно делится аналитикой рынков, советами по масштабированию и примерами из реа…

Ads from5 000 ₽
Точки над ИИ
Точки над ИИ
19,8K subscribers 4K post reach ERR 20%

Технологический мир будущего раскрывается в «Точки над ИИ». Канал посвящён искусственному интеллекту, машинному обучению и их влиянию на индустрии. Вы получите обзоры но…

Своё Дело | Бизнес | Финансы ✓
Своё Дело | Бизнес | Финансы
23,1K subscribers 15,8K post reach ERR 68%

«Своё Дело | Бизнес | Финансы» предлагает практические советы для предпринимателей и инвесторов. В публикациях разбираются стратегии роста, налогообложение, управление д…

Ads from4 600 ₽
Dealer.AI
Dealer.AI
17,2K subscribers 3,8K post reach ERR 22%

Хотите внедрить передовые ИИ-решения в свой бизнес или личную продуктивность? Dealer.AI станет вашим персональным проводником в мире автоматизации и нейроинструментов. З…

% Ads in several channels at once — cheaperBundles on TGRank: up to 40% off when you book a package View → All channels in the category «Technology & IT» →

FAQ

How do I install the OS for a Raspberry Pi home server?
Download the image of your chosen distribution (e.g., Raspberry Pi OS Lite), write it to a microSD card using Raspberry Pi Imager, insert the card into your Pi, and perform the initial boot with basic settings.
What services are best to run on a home server?
For typical home use, we recommend a Samba file server, Nextcloud for cloud storage, Apache or Nginx as a web server, and MariaDB for applications.
How much does it cost to build a Raspberry Pi home server?
A basic build (Raspberry Pi 5, power supply, 32 GB microSD, case) will cost approximately 12 000 ₽; adding a 1 TB SSD and cooling brings the total to around 20 000 ₽, which is cheaper than most pre-built NAS solutions.
How do I connect a Raspberry Pi to a home network without an Ethernet cable?
In the Raspberry Pi OS settings, open the wpa_supplicant.conf file, enter your Wi-Fi SSID and password, or use the raspi-config interface for quick setup.
Can I use a Raspberry Pi as a media server?
Yes, by installing Plex or Jellyfin, you can turn your Pi into a streaming media server that allows you to stream movies and music to any device on your network.
How can I ensure data backups for my Raspberry Pi?
Set up rsync for regular backups of your folders to an external drive or cloud storage, or use the built-in backup module in Nextcloud.
TGRank editorial team