NextCloudPi is a great project which provides ready-to-run images to run NextCloud on a Raspberry Pi. My favorite models are the 3B (without the plus) and the Zero W, because of their efficiency. I’ll use a Raspberry Pi 3B for this project. It can be powered by an ordinary power bank.

My goal is to have a cloud service which is:

  • easy to connect to
  • energy-efficient
  • and portable

General setup

  1. Extract image to SD card (I’ve used Ether, although I hate electron)
  2. Connect your Pi to your network via cable
  3. Browse the URL of the Pi
  4. Run the activation steps and note the passwords

Changing the passwords

Now I’ve changed the passwords:

  • Nextcloud’s default admin account, named ncp
  • NextCloudPi’s admin console user, also named ncp
  • And I’ve enabled SSH and changed the password (note: you need to change it again after the first login)

Setup Wi-Fi hotspot

There’s a good documentation here about how to setup Wi-Fi with a Raspberry Pi.

Here’s what I did differently:

  • sudo apt install hostapd (dnsmasq was already installed)
  • I’ve skipped the iptables part
  • Extend dhcp-range to .200, to allow more than 20 concurrent clients
  • sudo systemctl enable dnsmasq after sudo systemctl start dnsmasq: That was missing, and is needed to make dhcp work after reboot
  • Add nextcloudpi to /etc/hosts: You will be able to type in nextcloudpi in the browser instead of the IP
  • sudo reboot at the end and you should be presented a new Wi-Fi network to connect to :)

All commands:

sudo apt install hostapd dnsmasq
sudo systemctl unmask hostapd
sudo systemctl enable hostapd
sudo systemctl start dnsmasq
sudo systemctl enable dnsmasq
sudo apt install netfilter-persistent iptables-persistent
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo netfilter-persistent save
sudo rfkill unblock wlan

Add this at the end of /etc/dhcpcd.conf:

interface wlan0
    static ip_address=
    nohook wpa_supplicant

Enable routing. Create a file /etc/sysctl.d/routed-ap.conf:

# Enable IPv4 routing

Add this at the end of /etc/dnsmasq.conf:

interface=wlan0 # Listening interface
                # Pool of IP addresses served via DHCP
domain=wlan     # Local wireless DNS domain
                # Alias for this router

Create a file /etc/hostapd/hostapd.conf:


My favorite apps for Nextcloud

  • Calendar
  • Contacts
  • GpxPod
  • Notes
  • PhoneTrack
  • Polls
  • Talk
  • Tasks
  • Music
  • Markdown Editor
  • Text
  • Mind Map
  • JavaScript XMPP Chat
  • Group folders

Apps for Android