How to make a server ( using old PC )

From Dust to Digital: Turning an Old PC into a Family Cloud Server with DietPi



Have an old desktop gathering dust? Before you toss it out, consider this — that old machine can become your very own private cloud server. I took an aging Intel Duo Core PC and turned it into a family cloud system using DietPi, a lightweight Linux OS. What started as a weekend project turned into a lesson in troubleshooting, patience, and network mysteries.

This guide walks through every step and error I faced so you can build your own home server—without the headaches.

1. Getting Started (The Easy Part)

First, I downloaded the Native PC (x86_64) DietPi image from the official DietPi site. Using Rufus, I flashed the image onto a USB drive.

I connected the USB stick, monitor, keyboard, and an Ethernet cable directly to my router. Booted from USB, and the DietPi setup appeared perfectly.

So far, so good. Then came the first big roadblock — the system showed:

Test: [Failure] | Offline

That meant DietPi couldn’t access the internet. Time to troubleshoot.

2. The Great Network Hurdle: Fixing the “Offline” Error

Step 1: Checking the Network

From the terminal, I checked if the PC had an IP address:

ip a

Good news — it did. The line inet 192.168.0.100 showed under eth0. So the PC was talking to my router, but not reaching the internet.

Step 2: Testing Connectivity

I tested with a simple ping:

ping 8.8.8.8

Response: Destination Host Unreachable

Then I tried:

ping google.com

Response: Temporary failure in name resolution

Clearly, no internet. Time to investigate the network gateway.

Step 3: Setting a Static IP

I opened DietPi’s configuration tool:

dietpi-config

Then went to Network Options: Adapters → Ethernet, switched the mode from DHCP to STATIC, and entered the following:

  • Static IP: 192.168.0.222
  • Subnet mask: 255.255.255.0
  • Gateway: 192.168.0.1

I rebooted and pinged again — still offline.

Step 4: The Hardware Culprit

I realized the PC couldn’t even reach the router:

ping 192.168.0.1

Same “Host Unreachable” message. That’s when it clicked — it wasn’t the software. I swapped the Ethernet cable for a newer one, rebooted, and suddenly — it worked!

Lesson learned: Always check your cables first.

3. Completing the DietPi Setup

With internet access fixed, the full DietPi installation began. Here’s what to expect:

  • DietPi-Survey: Choose 0 : Opt OUT for privacy.
  • Password Change: DietPi forces you to set new root and dietpi user passwords — save these!
  • USB Errors: I saw red error lines like usb 4-2: device descriptor read/64, error -71. My old USB ports were dying, but plugging into known good ones solved it.
  • Serial Console: Disable it to save memory when prompted.

4. Installing Nextcloud (The Family Cloud)

Now for the fun part — setting up our private cloud using Nextcloud.

dietpi-launcher

DietPi-SoftwareBrowse Software

I selected these two options using the spacebar:

  • [*] 114 Nextcloud: File sync and sharing server
  • [*] 168 Nextcloud Talk: Video calls

Then clicked <Ok>Install.

During setup, I chose:

  • Webserver: Nginx (faster and lighter than Apache)
  • Domain: My local IP — 192.168.0.222
  • Port: 3478 (default)

The install took around 40 minutes. Patience pays off here.

5. Accessing the Server (The Final Step)

Once complete, I opened a browser on my main computer and visited:

http://192.168.0.222/nextcloud

The Nextcloud login page appeared beautifully! But… login attempts kept failing.

root / [password] → Failed  
admin / dietpi → Failed  

After trial and error, I found the correct credentials:

  • Username: admin
  • Password: (the same one you set for root earlier)

Logged in successfully, created new accounts for my family, and it was done. That old PC was reborn as a silent, efficient cloud server.

6. Final Thoughts

  • Don’t assume every “offline” issue is software — cables matter.
  • DietPi is lightweight, fast, and ideal for old PCs.
  • Nextcloud gives full control over your data — no monthly fees, no privacy trade-offs.

Today, that once-forgotten desktop quietly runs in the corner, backing up files, syncing family photos, and even handling video calls — all for free. Sometimes, old tech just needs a little new life.

Total cost: 0 BDT. Total satisfaction: 100%.

Comments