Categories
Umum

OpenVPN Install (Ubuntu 20.04)

openvpn-install

This script will let you set up your own VPN server in no more than a minute, even if you haven’t used OpenVPN before. It has been designed to be as unobtrusive and universal as possible.

GitHub: openvpn-install

I tested it on Ubuntu 20.04, and it works like a charm.

Categories
General

WP-CLI Error: PHP Deprecated: implode(): Passing glue string after array is deprecated.

I use WP-CLI to maintain my WordPress sites. It’s simple, it handy, and it works without any issues.

For example, I can updates all my plugins and themes (if updates are available) by executing wp theme update --all and wp plugin update --all. If WordPress core engine is available, I only need to run wp core update.

But there is a problem when I update WordPress plugins recently. Running wp plugin update --all to update all available plugin updates give me an error:

PHP Notice:  Trying to access array offset on value of type null in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 663
Notice: Trying to access array offset on value of type null in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 663

But, all updatable plugins were updated successfully. I tried to find the solutions, but I found nothing. I also try to use the nightly version via wp update --nightly, but still no luck.

Here are my wp --info

OS: Linux 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64
Shell: /bin/bash
PHP binary: /usr/bin/php7.4
PHP version: 7.4.3
php.ini used: /etc/php/7.4/cli/php.ini
MySQL binary: /usr/bin/mysql
MySQL version: mysql Ver 8.0.21-0ubuntu0.20.04.4 for Linux on x86_64 ((Ubuntu))
SQL modes:
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /home/path/to/my/directory/
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.5.0-alpha-068c252

Categories
General

Adding Block Storage to an Existing Cloud at Linode

This site is hosted at Linode’s smallest package. Besides this blog, I have some other domains and small WordPress-based sites here. Most of them are not busy site. So, $5/mo is just gret. But, there is a small problem: storage.

Yesterday, I almost utilised 95% of the 25GB of storage limit. I was thinking of upgrading the to the higher specs. $10/mo is still a good deal. But, I only need the storage at this moment. Paying $10/mo will give me additional 25GB of storage.

I already knew that Linode also provides block storage, and I never looked up for this addons. So, I gave it try and tried to prove that the how-to works as written. So, from the panel, I chose to add 20GB of storage and follow the instruction in the input fields.

It took only less than a minute I think to create the disk storage.

Once the disk created, I only need to run some commands as instructed in the configuration page. It was that simple.

After that, I moved some of my files to the new partition, and changed some configurations. Also, I moved MySQL storage to this partition, because it utilises the most. the process also pretty straightforward.

And, I only need to pay extra $2/mo for 20GB additional storage.

Nice!

Categories
General

OpenVPN Setup on Ubuntu 18.04 LTS

I could not remember exactly when I setup OpenVPN for the first time. As far as I remember, it was not an easy task. But, I need to have it installed, and I found it easier. Probably, because it’s easier to setup on Ubuntu 18.04 LTS?

I need to have it setup because I have some sites blocked by my internet provider. Using Google’s DNS (8.8.8.8) or even ClouFlare’s 1.1.1.1. did not help either. Changing the DNS made my internet connection do not work.

So, I need to set OpenVPN up somewhere. I was thinking of having it setup on my own cloud server at Linode. Lucky that there is a straight-forward tutorial on how to setup OpenVPN on Ubuntu 18.04 LTS. I will write it down also here for my personal documentation.

Installation

First, update the system by running apt-get update and then apt-get upgrade. For me this is optional.

Categories
General

Compile ssh2 bindings extension for PHP7

Compile ssh2 bindings extension for PHP7. After moving to PHP 7 on Ubuntu 16.04, this is a handy solution.

Categories
General

Switch to Letsencrypt

Since my Comodo PositiveSSL Certificate for this blog is about to expired, I decided to switch to Let’s Encrypt. The implementation was easy. I was refering to DigitalOcean‘s community tutorial: How To Secure Nginx with Let’s Encrypt on Ubuntu 16.04.

Categories
General

Raspberry Pi 2

Raspiberry 2
Raspberry Pi 2 is on sale for $35. It has ~6x performance using a 900MHz quad-core ARM Cortex-A7 CPU compared to the previous product. It’s also said to be supporting ARM GNU/Linux distributions, including Snappy Ubuntu Core, as well as Microsoft Windows 10. (Image source: Hackaday)

Categories
General

Internet Browser Memory Battle

I have some internet browsers installed in my PC and laptop like Opera, Firefox, Flock, Safari (for Windows) and also Internet Explorer. For my OpenSUSE and Ubuntu, I only have Firefox and Opera. Among those, I only use two browsers regularly. For the other, I only use it for web development purposes.
Even I — think — I have enough memory to run some application at the same time, I love when those browsers do not eat too much memory. So far, I like Opera and Firefox (I use the latest version). Not only that I feel comfortable using them, but also because they have good memory management. If you want to reader some detailed analysis, there are some articles on the internet. Here are some:

The good think is that… I use my favorite internet browsers, and they’re also good. Nice.