Posted on Leave a comment

Marks Home Media Server

Hey Guys, Wanted to make this easy for ya, here is how you can Download Movies and TV Shows to Plex.

Media Center

If you want to skip downloading something new and watch something already added to the library Go here. You should have login details to access Plex


You can download movies by accessing Radarr.

To add a Movie click: Add a Movie:

Enter the name of the movie that you want to download and then click Search and Add:

You will see a confirmation that the Movie has been added:
Then go to Activity to Verify if it will be Downloaded, depending on the queue, it may take some time to become available in Plex:


TV Shows

You can download TV Shows by accessing Sonarr.

To add a TV Show click: Add Series:

Enter the name of the TV Show that you want to download and then click Search and Add:


You will see a confirmation that the TV Show has been added, Then go to Activity to Verify if it will be Downloaded, depending on the queue, it may take some time to become available in Plex:

Download Queue

To Check how long it will take for the TV Show or Movie to become available to Plex, you will need to access SABNZBD, You may need login credentials if you are accessing this outside of the home network.

Posted on Leave a comment

Migrate SAN Array on OmniOS to a new Host

Migrate SAN Array vDev/luns to another SAN

San Array

Here we show the commands to assist in migrating a SAN Array from one OMNI-OS cluster to another. This will also show how to initialize the new San Array Host.

Target SAN Array Host Old Target SAN Array Host
1121 – OmniOS 1154 – OmniOS
1063  – migrated to 1121

1064  – check if migrated

1065  – migrated to 1121

1066  – migrated to 1121




SAN – A storage area network (SAN) is a network which provides access to consolidated, block level data storage. SAN Array Hosts are primarily used to enhance storage devices, such as disk arrays, tape libraries, and optical jukeboxes, accessible to servers so that the devices appear to the operating system as locally attached devices.

svcadm – SCSI Block Disk command line interface

stmfadm – SCSI target mode framework command line interface

– manipulate service instances

Source SAN host:
pfexec sbdadm list-lu
zpool status
zfs list -rt snapshot
zpool list
zfs list
pfexec zfs snapshot Array-0/hosts/host-xxxx@
pfexec zfs send Array-0/hosts/host-xxxx@
ls -lh host-xxxx
pfexec scp /home/m4kr/host-xxxx m4kr@<hostIP>:/home/
pfexec stmfadm list-hg -v host-xxxx
pfexec sbdadm list-lu
pfexec sbdadm delete-lu GUIDxxxxxxxxxxxxxxxxxxxxxxx
ls -la
pfexec sbdadm list-lu

Target SAN host:
Fresh SAN host:
pfexec stmfadm create-tg FC-0
pfexec stmfadm add-tg-member -g FC-0 wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx
pfexec stmfadm list-tg
pfexec stmfadm list-tg -v
pfexec svcadm enable stmf

For Each Target SAN host VM:
zfs list
pfexec zfs recv -d Array-0 < host-xxxx
pfexec sbdadm create-lu /Array\-0/hosts/host\-xxxx/
pfexec stmfadm create-hg host-xxxx
pfexec stmfadm add-view -h host-xxxx -t FC-0 -n 0 GUIDxxxxxxxxxxxxxxxxxxxxxxx
pfexec stmfadm add-hg-member -g host-xxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx

This goes in Conjunction with: Set up a Home ESXi mini Lab

Posted on

How to password protect a directory in cPanel

At times, you may find it best practice to password protect a folder on your account. This can add an extra layer of protection to files you don’t want the general public to have access to. Password protecting a directory can be easily accomplished using the option within cPanel. We will also provide you the instructions on how to remove the password protection after it has been added.

Understanding how password protecting a directory works

It�s important to understand how password protection on a folder works. When you choose to password protect a directory in cPanel, cPanel creates a rule in your .htaccess file. This rule specifies that the folder is protected and the visitor will need to provide the proper username and password to log in and view the files.

Please keep in mind, when you grant access through password protection, you are not only granting access for that folder, but any subfolders located within it. Also, by password protecting a directory and gain access to any subfolders in that directory you must provide the login credentials to do so.

Steps to Password Protect a Directory

    1. Log into cPanel
    2. Go to the Files section and click on the Directory Privacy icon


    1. Select the directory you want to password protect and then you will see the Set Permissions screen appear. Here you can provide a name for the folder you’re trying to protect.

    1. Next, click on the checkbox labeled Password protect the directory. Makes sure you have a name for the folder you are going to protect.


    1. Click on Save in order to save the name you have entered for the directory and option to password protect the directory.


    1. Create a user to access the protected directory
    2. Click Save in order to save the user that you have edited.


Removing the password protection from a directory

The steps to remove password protection on a directory is a fairly quick and simple process. One reason you might want to password protect a directory and then remove the protection is for testing purposes. Or, if you are finally ready to make the folder open to the public, then you can remove the password protection so that everyone can access the files. The instructions for removing the protection are as follows:

  1. Log into your cPanel
  2. Scroll down to the Security section in the cPanel and then click the Password Protect Directories icon. Choose Web Root if you see a pop-up window, and then click Go
  3. Scroll down the folder list until you see the folder you previously password protected. If the folder is a sub-folder to another one, make sure that you click on the folder icon next to the folder name. If you click on the folder name, the interface will think you’re setting protection on that folder. If you do this by accident, simply re-open the password protection interface to get back to the folder list.
  4. When you find the folder that has been password protected, click on the folder name to select it.
  5. Uncheck the box that says “Password protect this directory“.
  6. Click on SAVE in order to save your entries.
Posted on

How to set up a Node Project as a Service in Centos

You will need to create a Service file in, for example: /etc/systemd/system/Monty.service

in this file include the following:

Description=Mikes Monty Example
#Requires=After=mysql.service # Requires the mysql service to run first

ExecStart=/bin/node /home/m4kr/public_html/Monty/node_modules/react-app-rewired/scripts/start.js
Environment=NODE_ENV=development PORT=3000



Posted on

Change root@hostname to different email address

By default, any email sent by system is sent to root@hostname. So critical server errors, log errors, corn jobs alerts e.t.c all are sent to this default email address. To change it to different appropriate email id, we can do this by two ways.


By updating email aliases file:

For this example, lets set email to

Step 1 : edit /etc/aliases file 


$ vi /etc/aliases


Add email ids at the bottom of the file.



To add multiple email ids, we can simply separate them by comma.

root:, is second email id 


Step 2: Run the aliases command, to compile aliases file. 

$� newaliases

Step 3: Restart postfix server.

service postfix restart


Second way:

We can simply create .forward file to the folder root and add email address there.

$ vi /root/.forward

Restart postfix server
$ service postfix restart.


That’s it. Enjoy!

Posted on

What type of Web Hosting should I go for?

Choosing the Right Type of Web Hosting

Web hosting usually requires:

  1. Web hosting: file storage, Database and bandwidth on a server maintained by the hosting service
  2. A domain name: the address where visitors find your site, ie,,
  3. Content for your site: the fun/profitable stuff like your shop, blog, and portfolio

We’re going to look at hosting in more detail, so you can compare the types of web hosting available and choose the best fit for your goals, budget, and technical skill level.

You can choose from 3 main types of web hosting

  • Shared hosting
  • Virtual Private Servers (VPS)
  • Dedicated servers

Shared Hosting

Shared hosting places multiple clients on the same server environment, sharing server resources amongst each user, generally there are limits to prevent one user from hogging the entire server. Generally Web Hosts provide Web hosting for Linux as their primary form of hosting.

Types of Shared Hosting

Windows Web Hosting

Generally Windows  based Web Hosting will support:

DNS Management

Linux Web Hosting

Linux Shared hosting based Web Hosting will support:

DNS Management

Pros of Shared Hosting

Generally the cheapest option, and the most effective for small sites that don’t require much other than simple Web hosting and Email. The Web Host will generally take care of the server and ensure the sites are up and the server is secure.

Cons of Shared Hosting

Because shared hosting means your site shares a server with many other sites, those sites’ traffic volume and security practices can affect you. Generally most hosts load balance their Shared Web Hosting servers to prevent overloading of the server. Generally Shared hosting does not include the ability to make server wide changes, the reasons for this is generally because any server wide changes made, will affect other users, some users may have code that doesn’t play well with the new changes, as such if you need to customize the server environment further for your code to work properly, you may want to look into a VPS or Dedicated server.

Best for…

Simple Websites, with standard HTML, ASP, or PHP based code, generally supports databases and email.

VPS Hosting

VPS stands for Virtual Private Server, just like running an Operating system in Virtualbox on your Home computer. A VPS gives you access to the entire Virtualized Server, thus making it Private and dedicated to you.

Types of VPS Hosting

Windows VPS Hosting

Windows VPS hosting comes stock (meaning no software other than the Operating System has been installed), so as to ensure maximum compatibility with any software the client would want to run on the server.

You generally can choose from the following Windows Operating Systems:

  • Windows Server 2008 2012, 2016
  • Windows Desktop 7, 8 , 10

Some providers may provide Desktop versions of the Windows Operating System as well.

Generally you can install MS SQL and IIS to get a basic Windows based Web Hosting server running, there are Web Hosting control panels for Windows Servers like Plesk.

Linux VPS Hosting

Linux VPS hosting will generally come stock (meaning no software other than the Operating System has been installed), so as to ensure maximum compatibility with any software the client would want to run on the server.

You generally can choose from the following Linux Operating Systems:

  • Debian
  • CentOS
  • Fedora
  • Ubuntu
  • Mint
  • ScientificOS
  • Many others

A Linux VPS will not come with a Desktop, however you can configure them to support running a Desktop interface. Generally with VNC and installing a GUI like Gnome or KDE

You can install MySQL and Apache and PHP to get a basic Linux based Web Hosting server running, there are Web Hosting control panels for Linux Servers like cPanel (Most popular choice), Plesk, Ajenti, Virtualmin.

Pros of VPS Hosting

With a VPS, you don’t have any other users sharing the VPS, this means you can make any changes you want to Apache, IIS, etc so that you can enable custom modules and extensions for your code to work. You can run other applications and code that can’t be run on a Shared Web Hosting service, your provider will not make any changes to your VPS unless you ask them to, or if your VPS causes issues.

Cons of VPS Hosting

Since the server is Virtualized, most providers place many of these on the same Node Server, these node servers are very very powerful servers that were designed for doing just this, however the downside to this is, that in some VPS backend configurations, if another client is attacked, or is acting up in some way, like overusing CPU or networking, it can affect you. Generally most Hosts monitor for any changes and work with any clients that cause issues to fix the issue to prevent this from affecting others.

Best for…

Site owners who want the custom control over their server environment or want to run applications in that don’t run on a Shared Web Hosting service.


Dedicated Server Hosting


A Dedicated Server is like having your Home PC(Maybe even more powerful than that), but in a datacenter.

Pros of Dedicated Hosting

Since the server is Hardware, and not in a Virtualized instance you have complete control over the server. You do not share anything with any other clients, in most cases not even networking. You can install CPU intensive applications, or if your site needs so much power behind it and customization, a dedicated server allows you to use multiple cores of a server therefore allowing you the max limits of the processor.

Cons of Dedicated Hosting

Dedicated servers just like VPSs are just as difficult to maintain if they are unmanaged. Generally hardware and software updates are automatic on most, but VPSs and Dedicated servers do require more configuration to get set up the way that you want.

Best for…

Established businesses that want to host many sites, implement their own security protocols, handle high traffic volumes, or store huge amounts of data.

Posted on

How to configure timeout settings in FileZilla

Before starting this discussion of how to configure timeout settings in FileZilla, you have to know why this error occurs? Here I have discussed this in detail. So just read on.

Suppose you are uploading a relatively large file or any type of file via your ftp client ex. FileZilla (here I have used FileZilla for explaining this) and every time there showing an error that connection timeout and uploading process starts again for that specific file.

Have you faced this problem? If you haven’t then also it will be helpful information for you. Now you must be thinking what is the actual reason for this problem? Right?

The problem is related to the internal timeout settings of FileZilla. Actually there is a predefined timeout settings by default in FileZilla.

So if your file is relatively large in size or your internet connection speed is not up to the mark, then the uploading process fails within that predefined timeout settings and this type of Connection Timeout error occurs and upload starts again.

Now you will ask, has there any solution to resolve this issue? Obviously there has. You have to just configure Timeout Settings in FileZilla.

Here I have shown you the way of how you can change this settings according to your needs.

Step 1: Open FileZilla client application on your desktop. A new window will open for FileZilla.

Step 2: Then click Edit on menu bar and select Settings option.

Step 3: Then click Settings and a new small Settings window will open. In the left side of the Settings window there is a subsection  called Select page, select the top option calledConnection (by default it is selected when you open Settings window if it is not then select it manually).

When you click on the connection link you will get an option to set timeout on the right side. In that Timeout section you will get an option to set timeout value from 0-599 seconds.

Set this according to your need or you can disable this Timeout settings by settings its value to 0.

Step 4: Now click OK.

You are done. Now start re uploading your files.

Posted on

Clamdscan in CentOS 7 for new Virtualmin Installs

I think I have resolved this with:

# touch /var/run/clamd.scan/clamd.sock
# chown clamscan: /var/run/clamd.scan/clamd.sock

then uncommented these lines in /etc/clamd.d/scan.conf:



sed -i -- 's/#PidFile \/var\/run\/clamd.scan\/ \/var\/run\/clamd.scan\/' /etc/clamd.d/scan.conf


sed -i -- 's/#LocalSocket \/var\/run\/clamd.scan\/clamd.sock/LocalSocket \/var\/run\/clamd.scan\/clamd.sock/g' /etc/clamd.d/scan.conf


systemctl restart [email protected]

I could test this with:

clamdscan -c /etc/clamd.d/scan.conf /etc/hosts


Give it a few moments try again, if not restart the service, ultimatley a restart may need to be

prior the fix:

ERROR: Could not lookup (null): Servname not supported for ai_socktype

after the fix:

/etc/hosts: OK

I hope it helps.

Posted on

Install CutyCapt – CentOS 7.2

To install, first install the dependencies

We installed Xvfb because we don’t want  to run a full fledged desktop everytime for a screenshot. Onto installing CutyCapt itself. Issue the following:

Below is an example command of how to get a screenshot of a webpage:

If you get warnings like the following,

You need to install the following driver:

This should fix it, you’re good to go.