Greek Beefly and Goldy Blow

When I’m excusing myself from Netflix (or Amazon) and chill, I’ll usually make a spoonerism and say “I’m going to greek beefly”.  Implies that a bit of Linux stuff is going on.  The other I say is beak griefly.

There you go, an insight.

So, all that I’ve done of late is kept my server, WordPress and plug-ins up to date, just maintenance stuff.  I usually go on once a week or so.

I notice that when I’m applying a WordPress update, the security setting that I used in the first place to install WordPress were too strict for WordPress to update easily.  In other words, I ask WP to update, and it says it can’t; it hasn’t the permission.  It lists all the files it couldn’t write to and rolls back the changes.

But, it only does that for new versions of old files.  I’ve noticed that when trying to add new files to directories without the right permissions, WP reports the error, fails to roll back and often breaks.

Thankfully, I use Amazon to take a snapshot of the volume that holds the websites.  By clicking about 20 clicks over 2 minutes, I perform the following steps on my virtual server

  • I shut it down at the command line sudo shutdown now, then switch to the Amazon console
  • I virtually disconnect the virtual SATA lead from the virtual SSD
  • Virtually clone the snapshot to a new virtual SSD
  • Virtually plug the virtual SATA cable in to the new virtual SSD
  • Virtually press the virtual power button on the virtual front of my virtual server
  • Virtually toss the old virtual SSD in the virtual incinerator

Then I log back in to the server, change the suggested directory permissions and try the WordPress upgrade again.  Given that I’ve installed three independent copies of WordPress on my server, I can create a command to fix the permissions on one, then repeat it in the other two WordPress sites.

cd /var/www/site_1
sudo chmod g+w /wp-includes/long_list_of_many_files
cd ../site_2
[keys up up enter]
cd ../site_3
[up up enter]

I think the last time I did all this, I reversed the permission changes after the upgrade was successful.  This time, I didn’t; I figure that they should have been writeable in the first place.

One other thing I’ve had a play with is Docker – I launched a new instance on Amazon just to try it out.  I don’t think I get it.  If you get the WordPress docker and install it, does it take care of MySQL, Apache, PHP, configured all neatly and ready to go?  And what if I want Nextcloud to run on the same instance?  How does that mesh with the WordPress MySQL?  Is Docker more secure?  Does it impact performance?  Do you get less customisability or control with Docker apps?  I need to read up some more.

Lastly, there was no second Linux meet the month after the first one; I forgot to follow up the meet with a recurring entry on the meetup.com site.  And there were Rail strikes that meant transport was limited.  The second will go ahead 13th December.  It’ll  mostly be a presentation, I guess, a crash course in how I made this site.

And I’ve gone off on a tangent and decided to use a wget script to download sequentially named htm files of Star Trek The Original Series episode transcripts, and scan them with grep for the phrase “I can’t do it Cap’n, I don’t have the power”.  The nearest I got was a question not from Kirk but from McCoy to Scotty.  Episode 77 The Savage Curtain

MCCOY: Can we beam the captain and Spock back up?
SCOTT: We don’t have the power. They’ll come aboard a mass of dying flesh.

There you have it.  A search online for the full phrase invariably brings up an Ace Ventura Pet Detective moment of zaniness from Jim Carey.  I downloaded the animated Star Trek transcripts and the movies and still came up with nothing closer than the above.


I’ve re-read some of my ‘blog today, and realised that I did the “virtual chucking out of the hard drive” shtick before, in one of my earliest posts.  Ho-hum. (Sept 2018)

LLL and Updates!

(Didn’t keep this up, I’m afraid.  Old news.  Nothing to see here.)  Blogging about geeking is going to be less frequent, as I devote my extra-curricular geeking to Linux Learners NorthWest or Linux Learners Lancs, which ever name I settle on.  The first meet will be two weeks on Wednesday, 11th October 2017.  I’m working on the website and first meet content this weekend.

I like how Linux Learners Lancs rolls along the lips à la alliteration of ells.  And it abbreviates to LLL too.  Northwest is a little more inclusive for Cheshire, Merseyside and Greater Manchester but people should only feel restricted by how fay they will travel.  I always thought of Yorkshire as being an eastern collection of counties, but did you know that the most western part of North Yorkshire is as far west as the most western part of Blackburn with Darwen?  And only ten miles from Morecambe Bay?

If I go for Linux Learners NorthWest, I’d need to register another domain, for the cost of a take-away pizza.

So anyway, open to all 😃.  Come from Windermere, Sheffield or Wrexham if you can be bothered!

Last night I upgraded WordPress.  It tried to upgrade automatically from 4.5.1 to 4.5.2 (I think they) but failed because my permission settings were too tight.  I like how it tells you which files it couldn’t change during the failed upgrade, so you can correct them.  One thing that flummoxed me briefly was WordPress asking for ftp settings on one of them and not on others (I run three presently, but only this one with any real content as yet).  The reason for this was, my WordPress config file didn’t have a particular command set so it assumed my WordPress files and my Operating System were in different locations.  Hence, WordPress was configured to be updated by ftp, or some such nonsense.  I have ftp disabled on my server anyway by having never opened the ports.  So far, it has only ever needed to fetch files by http, and if necessary, I can SSH files up to it, or even go via NextCloud.

Back-ups were made by means of Amazon’s virtual server system.  A single snapshot was taken of the OS partition (I have three partitions, OS with home folder and websites, NextCloud data and swap).

Security

Yesterday, I hardened my security. File ownership and permissions tweaked in all my WordPress installs.  Prior to this, my site might have been hackable.  Not that it was hacked, because I’ve also installed some security plug-ins for WordPress that confirm that all WordPress files are identical to the original download.

This plug-in also firewalls known hacker attempts somehow.  I don’t quite get how it does since a hacker need only change their IP through a VPN.  I wonder if the hacks are coming from bots so the bot builder doesn’t bother hiding the IP behind a VPN. But it has been a fascinating insight in to what goes on as soon as a domain is registered and a website is active on it.  The hackers descend.

New Meetup.com group soon

I think I’m going to host a Linux aficionados group. At the same place as the WordPress meetup group met last, not the local uni like last time, but a prototype production lab and meeting hub in Blackburn, Lancashire that’s open to the public weekly, Wednesday evenings for clubs and Friday and Saturday for technically minded folk.

So I’ve registered the domain linuxlearnerslancs.co.uk and plonked WP on it. And maybe in just under 3 weeks time, I’ll have a club. I’d be its leader?? Quote the obvious Groucho Marx witticism.

I love Linux, I do.

I like IT. A lot. I like computer games. I like PCs and websites and networking and wireless, processors, GPUs. But I love Linux.

It ain’t perfect (what is?) but it has its strengths. Here’s not the place to extol its virtues, though. The point I am making is that it exists. I’m glad you can choose to run your hardware with an operating system comprised of the efforts of multinational corporations and hobbyists. I’m glad that it is ubiquitous, even though users don’t see it on their android phones, viewing websites hosted on Linux servers, watching Netflix on Smart TVs.

I feel a little bit chuffed every time someone comes over. Where I work, supporting home users, I occasionally make the suggestion if they’re wondering what to do with older equipment, but my most eager convert is a blind user in her fifties.

It’s not my first choice for operating system and the only reason for that is Gaming.

Rip it up and start again

So, whilst trying to get my server configured for email using the two similar recipes laid out here and here, I decided to do over, again. This time…

  • I discovered a bug in Amazon Web Services, or an easy to misconfigure option. I firewall blocked ports 80 and 443, the two ports necessary to host a website.
  • I found a way to introduce files in to nextcloud without having to upload again (put them in place, set the owner and permissions, run a command).
  • I opened my mail ports to the world early in my set up of the mail server and, half way through, when I was encouraged to go through log files, I saw page upon page of failed log in attempts from hackers. I closed the ports and I believe they continued, which is why I reloaded again.

    Bring on the paranoia! 

    Oh well.

    Second site is up

    It has no content yet.

    I’ve found a band I’d like to audition to drum for, on joinmyband.com and so I’m putting together my second WordPress site (taken down now – Sep’18) for a couple of drumming videos. I’ve rearranged my drum kit to make it easier to capture on camera, recorded me playing my electronic kit and then it all went piriform.

    First of all, my electronic kit can record performances, but doesn’t store more than five at a time and doesn’t store them after powering off. And it powers off if it has no input for 30 minutes. I didn’t know this. So I lost my audio recordings that I was going to dub over the video recordings before posting online.

    And Windows 10 isn’t detecting line-in, so when I do make a recording, I’ll be doing it in Linux! Or fixing the Windows problem, because…

    At least installing a second WordPress site on a subdomain was a breeze. There is apparently a way to run multiple WordPress sites per installation of WordPress but this method has restrictions, I believe.  I have it configured so it’s an independent WordPress install, on its own subdomain, on the same server, and as such, takes up an extra 24MB of my server HD space.

    Meh.

    Minimal geeking

    Just updated NextCloud 12.0.1

    Fiddly, but that was because I followed one site’s recommendation of making nextcloud user root and group www-data when the rest of the recommendations I’ve read say u and g should be www-data

    So, there you go.

    Review – bluetooth keyboard

    Jelly Comb (a.k.a. Joy Comb) tri-fold bluetooth keyboardI’ve been looking for a portable, occasional use keyboard to work with my fiancé’s Nexus 10 tablet. This dinky little thing fits the bill perfectly and with the touchpad mouse, is quite an unusual but effective addition to android. In terminal it produces all desired special characters such as # ~ \ | / `¬¦ which can be difficult as these essential geek keys are often missed, or fiddly to produce on a keyboard that (unlike this one) is missing the nuances and subtleties of the British lay-out.

     

    It is of solid build, and I find the keys to be unusual but pleasant to use, even if I have to change my tempo and technique, which I think I have to do for all keyboards I use regularly. At the moment, I’m not pressing or I’m double-pressing keys occasionally while typing.

    This guy has written a good review.

    The manufacturer’s product page is here with links to international Amazon stores.

    Buy it on Amazon UK for whatever they feel like charging today. Seriously, it says on Amazon, price £39.99, sale price £19.99 and three days ago, I got it for £17.99, so what gives?*

    It doesn’t bother me that it is flexible and without a locking-open mechanism because it can’t flop open any more than 180 degrees – I can rest the middle of the keyboard against my lap and type no problem (not quickly, but not uncomfortably either).

    It isn’t quite awesome for two reasons, in my opinion. It isn’t clear if it connects to more than one device, and after getting it on the tablet, it wouldn’t connect to a Microsoft PC. Other reason is you can’t disable the touchpad. But other than that, I really like it!

    See ya!

    * Six days later, it had gone up another quid.