Tag Archives: dnsmasq

Setting up nextcloud on a Raspberry Pi 1 | how to setup nextcloud on a raspberry pi

A quick and easy way to setup the a Raspberry Pi 1 with Nextcloud.

Nextcloud is an awesome solution for your personal cloud requirements. If will provide you with the following solutions.

  • Data storage accessible via an App or Webgui
  • Share your data with the internet, based on your permissions
  • Store and play music
  • Store and share contacts and calendars
  • Backup and sync with your phone or tablet
  • and many more

Lets gets started, lets install the dependencies.

Download Nextcloud from their site.

Create the data directory and set permissions.

Restart apache

Boom, your done. Point your browser to nextcloud and start to customize.

Building a Jabber server on a Raspberry Pi 1 | how to setup a jabber server on a raspberry pi with dnsmasq

I want to setup a chat client on my Raspberry Pi 1, to do this you must first setup Hostapd and DNSMasq article here.

Let start.

Edit the configuration file.

Make sure the “Access Control Lists” section looks like this.

Now register the admin account and password, also create an account for yourself to log in.

Then restart the service.

Now for Jabber to work we must use fully qualified domain names, thats where DNSMasq comes into the picture.

Lets as the domain name into DNSMasq by create a configuration file in the following location.

Add the following.

And restart DNSMasq.

Now you can test your connection with your Jabber client with the username you created earlier. Now you can also connect to the web admin console to administer the server and create addition accounts. Point your browser to.


Your Done.

How to setup hostapd and dnsmasq on a Raspberry Pi 1 | setup wifi access point on a raspberry pi 1 with hostapd and dnsmasq

I decided to setup Hostapd and DNSMasq on my Raspberry Pi 1 as part of a bigger project. This makes an awesome project to setup a router. See below.

This will install the applications.

Lets block DHCPd by editing

Add this line to the bottom.

Lets setup Hostapd

Enable the hostapd.conf config.

Ensure the following live is present.

Paste the following into the configuration file, ensure you change the sections which relate to you. Pay attention to ssid and wpa password.

Lets setup DNSMasq.

Put the following into the config file.

Now we enable IP forwarding on a system level

Uncomment the following line

Setup the IPtables NAT rules

Lets save the IPTables rules permanently.

Lets ensure they run on reboot

and ensure the following is present before the “exit 0”.

Reboot and your done!