Updates from Jay Versluis Toggle Comment Threads | Keyboard Shortcuts

  • Jay Versluis 9:56 am on May 16, 2018 Permalink | Reply  
    Categories: Plesk ( 76 )   

    How to hide the Promo Box in Plesk Customer View 

    There’s a small Promo Box on the right hand side in Plesk’s Customer View. This box can be a little confusion for users – especially when it shows products and extensions with highly cryptic names. Here’s an example:

    Lucky for us, there’s an easy way to remove it. All we need to do is create a vile called /usr/local/psa/admin/conf/panel.ini and add the following content to it:

    ; Disable other products promotions
    enabled = off


    This file is read by Plesk every time the panel loads, telling Plesk what to display in the admin interface. With the above command, the Promo Box is suppressed.

    There’s no need to restart anything, simply reload the page in your web browser and the box will be gone.

  • Jay Versluis 9:24 am on May 15, 2018 Permalink | Reply

    Categories: Linux ( 101 ), PHP ( 29 )   

    How to install PHP 7.x on a CentOS LAMP Stack 

    By default, CentOS 7 comes with support for PHP 5.4. Sadly that version has reached the end of its life in 2015and is no longer updated by the developers. If we want to stay up to date with the latest software, we may want to upgrade (if our applications are working with newer versions of PHP).

    For CentOS users this either means to compile cutting edge versions from source and tweaking lots of scary system configurations – or dipping into the power of Software Collections. These are official pre-compiled packages by the software vendor, designed to run newer versions of software alongside those that are provided by default.

    At the time of writing, PHP 7.2 is available but it’s not part of the software collections yet, so we’ll use  PHP 7.1 with FPM support under Apache (as it’s the recommended way to do so).

    Let’s begin! (More …)

  • Jay Versluis 9:53 am on May 14, 2018 Permalink | Reply
    Tags: ,   

    Categories: Linux ( 101 )   

    Finding your current MAC address in CentOS 

    I had an issue with one of my servers the other day: its power supply died unexpectedly during a scheduled restart. The poor thing never cam back up again.

    Lucky for me, the data centre could simply swap out my hard disks and put them into another server. Although my data was save, the server wouldn’t connect to the network anymore – because it had a new MAC address. CentOS stores this value in two of its files, and when it changes (which is hardly ever the case), those files need to be updated.

    Here’s how I fixed the problem. I did this on a CentOS 6 server, but it looks like the procedure is the same for CentOS 7. (More …)

  • Jay Versluis 9:54 am on May 13, 2018 Permalink | Reply
    Tags: ,   

    Categories: Plesk ( 76 )   

    How to hide the social links at the bottom of Plesk 

    By default, Plesk displays several links in its footer. Two of them are links to Plesk’s Facebook and Twitter pages.

    Sometimes less is more, and thankfully there’s an easy way to suppress those links if we don’t want to see them anymore.

    Simply create a file called /usr/local/psa/admin/conf/panel.ini and add the following content to it:

    ; Hide Like link
    showLikeLink = off
    ; Hide the Follow Us link
    showFollowLink = off

    Plesk reads this file every time the admin interface is displayed, and if it finds the above instructions, those links won’t be printed.

    There’s no need to restart anything, simply refresh your Plesk page in the browser and those links are gone.

    For more configuration options, take a look at the included /usr/local/psa/admin/conf/panel.ini.sample file.

  • Jay Versluis 9:14 am on May 12, 2018 Permalink | Reply  
    Categories: Plesk ( 76 )   

    Testing Incremental Backups in Plesk Onyx 

    From time to time I get crazy ideas, and last week that crazy ideas was to test how well incremental backups can be restored in the latest version of Plesk. Specifically I wanted to know how Plesk would react in times of a crisis, which usually happens at the worst of times.

    Up until recently I’ve always done full backups – but incremental backups are a lot more space saving on the target device, plus it reduces the load on the server and data traffic significantly. Let’s see what these incremental backups are all about.

    Wikipedia suggests that after a full backup, each increment needs to be available to make a restore.  This would indicate that deleting one backup in the middle (simulating a failed backup) would mean the restore would fail.

    But how does Plesk work, and how would it react if we’d take away an increment in the middle? Would it indeed need all incremental parts to rebuild a backup? Or would it always refer to the full backup and write its increments accordingly? Let’s find out!

    I’m using a test system on a CentOS 7.5 server, with Plesk Onyx 17.8 installed. I have a test domain with a default WordPress instance, but it’s not doing much at the moment and could probably do with a quick facelift if anything.  (More …)

  • Jay Versluis 8:45 am on May 11, 2018 Permalink | Reply

    Categories: How To ( 35 )   

    How to remove OSSEC Agent on macOS Sierra 

    I’ve been trying to find a way to remove OSSEC on one of my Macs. Most documentation is a bit outdated and references files from yesteryear, so here’s how to do it on macOS Sierra in 2018.

    These instructions were written with OSSEC 2.8 in mind. I’m not familiar with later versions.

    Removing the three system users

    The OSSEC Agent creates three system users that come up when your Mac is started. They’re called ossec, ossecm and ossecr. OSSEC uses these to run its various scrips and services.

    To remove them on macOS, head over to System/Library/CoreServices/Applications and start the Directory Utility app. Unlock the little icon at the bottom left with your password to make changes (that lock icon only comes up when you click on Services or Search Policy).

    Select the Directory Editor and search for “ossec”.  You should find the three system users. Select them and remove them using the little minus icon at the bottom left.

    Removing files

    We’ll have to remove all files from /var/ossec and the configuration file from /etc/ossec-init.conf.

    Since OSSEC was likely installed from source, there are no handy graphic utilities to help us. Instead execute the following commands from the command line:

    sudo rm /var/ossec
    sudo rm /etc/ossec-init.conf

    Removing System Daemons

    While we find daemons in /etc/init.d on Linux distributions, they’re stored in .plist files in both /Library/LaunchAgents and /Library/LaunchDaemons. In the latter we find one like this:


    The exact name will depend on your user name and machine name. Remove this file, then restart your system.

    Further Reading

  • Jay Versluis 10:31 am on May 10, 2018 Permalink | Reply
    Tags: ,   

    Categories: Commodore ( 41 )   

    How to enter C64 Mode on a Commodore 128 

    The Commodore 128 was marketed as being “three computers in one”. I guess technically they were correct when they made that statement. Although I’m very find of the native 128 mode, the system saw its uses mostly as a games machines in C64 mode. I don’t recall anybody ever looking at CP/M mode longer than half an hour (if that).

    There are three ways to put the C128 into C64 mode. Two of which I always knew about, ever since my friend Frank Jagow bought himself a whole C128 system from his paper route money in 1986. But the third option’ve only recently learnt about – after over 30 years of being a C128 fanboy. How exciting!

    Here are all three options. (More …)

  • Jay Versluis 9:40 am on May 9, 2018 Permalink | Reply  
    Categories: Commodore ( 41 ), Screencast ( 87 )   

    Discovered: Commodore 64C used in an auto repair shop (2018) 

    I’ve recently discovered a tweet that showed a Commodore 64C complete with green monitor and 1541-II drive, heavily dust covered, but still working and being used in a Polish Auto Shop. The picture itself was fascinating enough, but I’ve also discovered that it was a screen grab from a video – which I’m including here as well (had to replace the music with something royalty free).

    You can find the original article here: https://www.trojmiasto.pl/wiadomosci/Warszatat-samochodowy-zaslynal-dzieki-26-letniemu-komputerowi-Commodore-n106004.html

    The tweet I found is here: https://twitter.com/HistoryToLearn/status/928821265783250945


  • Jay Versluis 9:35 am on May 8, 2018 Permalink | Reply
    Tags: , ,   

    Categories: Commodore ( 41 ), Screencast ( 87 )   

    How to write a text input routine in Commodore BASIC 

    In this screencast I’ll show you how to write your own INPUT routine in Commodore BASIC. This comes in handy when you want to reject certain keys from being used when asking users for keyboard input. In my example I’m going to allow all alpha characters (A-Z), as well as SPACE, RETURN and the DELETE key.

    Here’s the code:

  • Jay Versluis 9:28 am on May 6, 2018 Permalink | Reply
    Tags: , GitHub   

    Categories: How To ( 35 ), Screencast ( 87 )   

    How to embed images in GitHub Readme Files 

    In this screencast I’ll show you how to add images to your GitHub Readme files. You can use the Markdown or HTML syntax for this, I’ll show you both versions. Make sure to upload images to your own repository and provide the relative path to them.

    Here’s the syntax:

    In Markdown

    In Markdown syntax, use the following example to embed an image:


    In HTML

    GitHub also supported the HTML syntax, which uses the standard IMG tag. Pasting HTML code in a website is always a little tricky, but let me try:

    Should you have spaces in your file names, you can replace them with %20, just like in standard HTML (like “file%20name”).

    Now go and make those Readme.md files look handsome!

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc