Monthly Archives: May 2015

How to reset the PRAM (or NVRAM) on your Mac

On a recent chat with Apple support, the representative suggested I reset my PRAM. From what I understand this will clear BIOS like values that may cause a Mac to malfunction. It only takes a second to do – here’s how:

Press CMD+OPTION+P+R, then start the system. You’ll need three hands or a portable keyboard to do it.

Hold those four keys down until you hear a second startup chime (or if you’ve previously disabled in, until you hear one chime).

That’s it!

Note that there are technical differences between the PRAM, NVRAM and the SMC, but I really don’t know what they are. You can reset them all to make your Mac behave if it’s doing weird things though.

How to start Mac OS X Yosemite in Safe Mode

Hold down SHIFT during normal boot, until the loading bar appears. It will take longer than usual to start the system. Some services are not available.

Safe Mode will clear several caches and verify the startup disks.

From the command line, or on remote systems, boot into Safe Mode using this:

When you want to boot into “normal” mode again, change the startup parameters to nothing:

Very handy article from the Apple Knowledge Base:

  • https://support.apple.com/en-us/ht201262

How to update Plesk via the Command Line

Plesk-LogoYou can update Plesk via the Web Interface (under Tools and Settings – Updates and Upgrades). However sometimes the interface times out, or browsers get confused – therefore it’s good to know that you can apply updates via the command line interface as well. In this article I’ll show you how (in Linux – I don’t know much about running Plesk on Windows I’m afraid).

We need to download the standard installer script for this. It’s a powerful little tool which can also be used to add or remove components from the current Plesk installation, or to install Plesk on a barebones server.

As of 2017 the link can be found here:

  • https://page.plesk.com/plesk-onyx-free-download

Screen Shot 2015-05-03 at 09.39.40

If you click the option “Download Plesk installer for Linux”, you’ll see the actual script open in a new browser tab. Not what we want, although you could copy and paste this into a new file on your Linux system. Instead, right-click on the link and choose “Copy Link” instead.

Screen Shot 2015-05-03 at 09.41.27

With that link in your clipboard, connect to your server via SSH and download the file with something like wget:

This will result in a file called “plesk-installer” with some nasty parameters at the end, several hundred characters in total. Let’s rename it to something easier and tweak the execution permissions:

Now we can run the script like so:

Follow the instructions to upgrade Plesk. You can also call the script with several options, for a full list of those call it with “–help”. To see all available versions of Plesk during the installation, use “–all-versions”, which will eventually lead you to a screen similar to this:

If you call the script without any parameters, only micro updates and additional components are applied. Micro updates are usually applied automatically if this feature is enabled (it is by default).