Linux and the Open Source community

Linux

The agility that Open Source produces is tremendous but only as effective as the skills of your top IT person. The learning curve is steep but tremendously rewarding.

I have collected here a repository of code and other material that I have struggled with at some stage or the other. I hope it is of use. Enjoy and do spread the word of Linux.

Missing write access to /usr/local/lib/node_modules is not write permission, npm official solution is to create a new folder with permissions, install npm package in this new folder. This method does not apply to Microsoft Windows system. Create a folder in the user’s root directory (the name does not have to be .

Continue reading

Due to my busy work schedule my personal web site was dated. So much so that it was a few releases behind schedule. I had built it using Ghost (headless Node.js CMS) and by quickly building some Docker containers I managed to upgrade the database relatively fast. I have built many data driven dynamic sites most based on PHP or Perl.

Continue reading

These are index folders, the presence of which can be quite annoying. To locate them if you’re feeling ok about automatically deleting them then: On a Synology NAS you can disable feature as follows warn: The runkey of service [pkgctl-SynoFinder] has been set to “No"

Continue reading

I use nfs quite a lot. It allows local access to remote files i.e. the remote folder is mounted locally so you can access the remote files locally. Often overlooked, make sure the proper NFS RPC-based services are enabled for portmap (not required for nfs4). Issue the following command as root:

Continue reading

PHP 5.6 with Nginx on AWS

Look whether the version you like is available. For a producion server you may not want to install the very latest. yum search php56 Here I have gone for php56 i.e. php-5.6 as I needed it for the latest mediawiki I was looking to install for my documentation. sudo service php-fpm stop sudo yum remove php-* sudo yum install php56 yum list installed | grep php You may want the following extenstions

Continue reading

If you run a cron job and you would like to only see the errors reported use cronic on Centos or chrronic on Ubuntu. The latter comes with the package moreutils apt-get install moreutils

Continue reading

At times you see that a particular image or so is not found when loading a web page and you are at a loss where the call came from. At least I had that today when I noticed that a menu image was called. The command to search for that is actually really straight forward:

Continue reading

Minify files

I use yui-compressor to minify my files. It’s so easy. In Ubuntu (15.04) it’s available via apt-get. To install it (on Ubuntu) type the following in your terminal window apt-get install yui-compressor The command structure to run it is yui-compressor SOURCE > TARGET e.g. yui-compressor public/css/custom.css > public/css/custom.min.css

Continue reading

I needed to generate a .htaccess redirect file where each line has a simple command redirect 301 old-file new-file The file called crawl-error.txt with all the required urls that needed a redirect was quite long so I did the following in no time. First ensure that the file is really a proper text file as otherwise whatever you want to append will be prepended instead.

Continue reading

I have a web server which needs to link to a MS SQL server (not my choice). In my case I use Plack which calls the database in four steps. The catch I often struggle with is that some other files with the same name may float around and which you may not be aware off.

Continue reading

I did a fresh install the other day of Ubuntu 14.04 on a little notebook for my daughter. All worked out of the box with the exception of the wireless which had worked before using version 12. The following terminal commands may give you a clue as to which network controller you have.

Continue reading

No doubt you have, like me, one or more documents that you would like extra protected. How can you remember all your passwords, access codes, urls etc which you know you should not have available in plain text. In Linux there are several tools that make file encrypting easy. I like to use a little tool called ccrypt for its simplicity.

Continue reading

After my server was attacked and brought down by the Chinese I wasn’t certain whether or not the machine was compromised. I decided though to move my mail to Google Apps instead, preferring a good sleep over worries of another more ferocious attack. As my mail wasn’t on a live machine I could not use Google’s suggestion of using their API.

Continue reading

Author's picture

Our Man in India

A man who is the representative of a country or organization in a particular place. The expert in the field.

Management Consultant

Goa, India