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.

Installing and configuring MediaWiki on Raspberry Pi 1 | Setup mediawiki on a raspberry pi 1

MediaWiki is the software used by Wikipedia run, its a fantastic way to document share.

I would recommend installing DNSMasq to allow as to use fully qualified domain names. See here.

Setting up Mediawiki is a pretty simply task, does not really require a high level of experience. Lets dig in, install software.

Once completed we start setting up the housing for MediaWiki, the following will also download the software from MediaWiki’s site and unzip it.

Then we’ll need to setup the database and user permissions.

Now we’ll begin the Mediawiki installation, easy part. Navigate to the following URL and start the point and click install.

Once connected you’ll see this.

Click on the “Set up the wiki” link, follow the instructions and enter all the information it requires. Take note, youll need the database,username and password we input earlier. Once it has finished it will let you download the LocalSettings.php file to your computer. You’ll need to upload it to the /var/www/html/wiki directory.

Lets create the DNS entries.

Insert the following line

Now restart DNSMasq

We also need to setup the virtual host in apache

Insert the following line

Restart apache.

Make sure your connected to the AP while your setting up, otherwise the setup will use the LAN IP to setup the config file.

Enjoy!

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!

 

 

 

Replacing the battery on Apple Macbook Pro 13″ MC374LL/A | replacing a macbook pro 13″ battery in 10 minutes MC374LL/A

My battery started dying, I would get around 1 hour of life out of my Macbook.

Changing the battery takes around 5-10mins and requires very little knowledge.

First place the laptop screen down and locate a small philips head screw driver.

Remove the 10 screws, see locations in the image.

Once removed you will see this.

Remove the two screws holding the battery down.

Disconnect the cable from the main board and remove battery.

Insert the new battery and reverse these instructions.

Your done!

 

Review of a 50000mha solar USB Powerbank | testing a solar panel usb powerbank

I have developed an unnatural obsession with powerbanks, I have a large number of them for different purposes.

I decided to start reviewing them to give people information before making a purchase, often these cheap devices are sold with a number of features which may or may not be useful of even work at all.

So ill start off by listing the locations where you can purchase them, and the costs.

So for this experiment ran two tests, one with the unit on its own and another with an external USB Solar panel attached to assist in the charging.

Here are the links and costs to the products.

  • Powerbank 50000mha dual usb with LED – $24.99
  • Solar Panel 6volt 3.5watt – $7.38

01. The first test was conducted in the following way. I put the powerbank in the sun during an overcast day for six hours facing North (10am-4pm). Then I connected it to my phone can checked to see how much charge was given.

Results: 12%

Conclusion. The charge isn’t that much, but its enough to get you out of a sticky situation.

02. The second test was conducted in the same way as test one, but also installing the Solar panel listed above.

Result: 40%

Conclusion: I’m impressed, 40% is decent charge levels for 6hours in the sun.

Overall Conclusion:

Im pleased with this product. I have tested it in the rain, I can confirm its was resistant. Its a tough product, it needs to be if its going to survive in my world.

Ubuntu installing and preparing Apache2 and PHP7 | how to install and setup apache2 and php on ubuntu

I spent a bit of time this morning setting up apache2 and php, things have changed in the newer versions of Linux.

The following will install apache and php.

This will test if PHP is install and running on the command line.

This will check if the PHP modules are loaded in apache.

Save the following file in the following location.

restart apache

in your web browser navigate to

You should see something like this.

 

 

Powerbank endurance test for Raspberry Pi 3. | testing how long a raspberry pi can be powered via a powerpank

Iv like to test and know how much uptime can be achieved by different powerbank.

I purchased this powerbank case on ebay and then purchased the 18650 3.7v batteries separately.

I have built two powerbank with identical cases but different batteries. 

  • Powerbank – $5.35
  • Batteries 18650 9600mha – $24.80
  • Batteries 18650 6000mha – $22.49

The results?

  • Batteries 18650 9600mha – 23 Hours
  • Batteries 18650 6000mha – 18 Hours

It should also be noted that the Raspberry Pi is online via wifi during the whole test while getting pinged every minute.

How the CMTPO2 solar charge controller works. | how to use a cmtpo2 solar panel controller

I bough a solar panel which came with a CMTPO2 charge controller.

Unfortunately the instructions were difficult to understand, and faultfinding was impossible, so I have written this post to give you a quick understanding. 

Relate the letter in the below picture to the functions.

a.

  1. Solid green light: This means its collecting energy from the sun and charging
  2. Flashing green light: This means it collecting energy from the sun but no required as batteries are full and not required by load device.

b.

  1. Three solid red lights: Batteries are full
  2. Two solid red lights: Batteries are half full
  3. One solid red light: Batteries are approaching empty
  4. Flashing red light: Batteries are dead not providing any power

c.

  1. Solid green light: There is a device connected and drawing power.

d.

  1. Connecting the device which requires power.

e.

1. Connection to the battery

f.

  1. Connection to the solar panel.

Building a Apple Macbook Powerbank | apple macbook powerbank charger

Iv been looking for a powerbank for my Macbook Pro for years. I managed to find one years ago at the price of $300, too much.

I recently purchased a powerbank from ebay and noticed it has a 15 volt option, considering the Macbook chargers are 16.5 volts it should have enough grunt to charge it.

The only component I ordered was the custom Apple cable. Here is the shopping list.

Ok, lets get started with the project. This project can be completed by a beginner, its not complex at all. You just need to ensure its completed correctly as it may cause damage to your Macbook is connected incorrectly.

So i found a Coaxial power cable in my garage, this is the cable connected to the powerbank. We need to fuse this cable with the custom Apple charge cable.

Once we connect the two, we must ensure we seal them correctly using some shrink seal.

I finished and connected it to my Macbook Air 11″, worked straight away. You must ensure that positive and negative is connected correctly. This is achieved by using a multimetre.

When you have completed the project before connecting to your laptop, using a multimeter compare the created cable with the power adapter. You should achieve readings like this.

If your happy with the results then you can connect it to your laptop, you should see the green light which will then turn to orange indicating that its charging.

Results?

Im really happy with it. I did a test of it charging capabilities. I charged the powerbank 100% and then connected it to my Macbook Air which had 15% charge. It charged it to 48%. Its probably around an extra hour of operation on the Air. Enjoy!