Sunday, 31 December 2017


Farcebook is once again pissing me off in great style, I reinstalled the messenger app to enable me to stay in touch with a few people, within minutes the phone was going berserk with waves, other stupid messages and loads of other crap. Then the pass this message on and keep the candle burning stuff started, 10 minutes later it was off the phone and Facebook was once again resigned to the desktop only.

I really would like to dump it as these days it is generally an annoyance with all the fake news and so on.

I'm going to try and see what I can do, I much prefer the Google + world, it's not perfect. I prefer Twitter and Instagram isn't too bad even though it's run by Facebook. I tried Snapchat for about 10 minutes, can't see what use it is other than putting stupid dog ears on your head.

Wishing you all a Happy Year of the Justifiably Defensive Lobster and that's me pretty much done on Interwebs stuff till next year.

Saturday, 23 December 2017

Spotweb on Bionic Beaver

Wanted to get Spotweb running on a local machine to do some newsgroup indexing, lots of instructions out there for Raspberry Pis and older versions of Ubuntu with php 5. I've decided to go and install it on a virtual server running Bionic Beaver, it was a lot easier than I expected.

Start off with installing the OS and then updating it.

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
sudo shutdown -r now

Then install the required apps:

sudo apt-get install mysql-server php-mysql php-curl php-gd php-cli nginx openssl php-fpm git zip mc php-mbstring php-xml -y

Change a couple of files:

sudo nano /etc/php/7.1/fpm/php.ini

Change these lines

date.timezone = Europe/Copenhagen
memory_limit = 512M

And do the same here:

sudo nano /etc/php5/cli/php.ini

Make the webserver config file:

sudo nano /etc/nginx/sites-available/spotweb

Copy and paste this into the file:

server {
listen 80;
root /var/www;
index index.html index.htm index.php;

location /spotweb {

        satisfy any;

        if ($uri !~ "api/"){

                rewrite /api/?$ /spotweb/index.php?page=newznabapi last;
location ~ \.php$ {
                try_files $uri =404;
                include fastcgi_params;
                fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
                fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;

Save it and then close nano

Activate the configuration

sudo -i

unlink /etc/nginx/sites-enabled/default

ln -s /etc/nginx/sites-available/spotweb /etc/nginx/sites-enabled/spotweb

Install Spotweb:

git clone /var/www/spotweb

Sort out the permissions:

chown -R www-data:www-data /var/www/spotweb

Create the database, replace the word password with your password but leave the ' ' in place:
mysql -u root -p

CREATE USER spotwebuser@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON spotwebdb.* TO spotwebuser@localhost IDENTIFIED BY 'password';

Go for a reboot

sudo shutdown -r now

And now finish the configuration off with your browser.

Go to http://ip.address/spotweb/install.php

Do an initial download and then setup a cron job to run:

php retrieve.php from the /var/www/spotweb directory.

Friday, 22 December 2017

Nextcloud install, the easy way.

I'm already running an ownCloud server, I decided it was time to try and setup another one running Nextcloud. My ownCloud server is running on a shared hosting platform, I've decided to run up NextCloud on a virtual machine under Virtualbox, I'm not going to go into the setup of this bit here, just the configuration of the cloud server.

In the past, I've messed round with installing, SQL, Apache and so on, I thought I'd give the Ubuntu snap package a go.

I've run up Ubuntu 16.04 server, installed SSH onto it so I can manage it from command line and next it was time to install NextCloud.

sudo snap install nextcloud

That's it, it's done and installed, just a few more things to get it working and install lets encrypt, to finalise the whole install, ports 80 and 443 need to be accessible from the Interwebs, I temporarily put the server into the dmz.

Adjust the memory limits with:

sudo snap set nextcloud php.memory-limit=-1

Tell it which ports to listen to with:

sudo snap set nextcloud ports.http=80 ports.https=443

Restart Apache with:

systemctl restart snap.nextcloud.apache

Configure https and install lets encrypt with:

sudo nextcloud.enable-https lets-encrypt

Follow the instructions and you can then remove the port 80 access and connect to your server with: or https://ipaddress

The final configuration is done via web browser.

It really was that easy