How to convert DMG to PKG in MacOS

If you are trying to push some application in the network where you have macOS, you might need .pkg file rather than .dmg.

In this blog, I have taken the reference for Skype. You can follow the same command line for other application.

First, start by mounting the application’s .dmg file. Don’t drag the file to the application folder.

Application

Note the name of the mounted volume and the app itself.

sudo pkgbuild --install-location /Applications --component /Volumes/Skype/Skype.app ./Desktop/Skype/Skype.pkg

It is done and you will get your pkg file in Desktop. Quite straight and easy, isn’t it?

Final_Command

Cheers,

Udhy

Advertisements

How to increase local datastore from the command line (using SSH) for ESXi 6.7.0

While I was working on ESXi 6.7.0, I ended up with an issue which I couldn’t resolve easily with the web interface of ESXi 6.7.0 or from vSphere Client. I had an extra HDD space which I would like to merge in my ESXi system to host more VMs.

VMFS Datastores in vSphere ESXi can be increased in size by adding a new extent on a different storage device (spanning), or by increasing the size of the existing storage device and then growing the existing datastore extent to fill that available adjacent capacity. It is very easy to do from VMware ESXi web interface but I started getting an error even though I had enough size to increase.

failed to expand vmfs datastore – cannot change the host configuration.

I searched on lots of blogs and few of them were very helpful. Therefore, I thought to share it here by combining all of them and the proper steps that I have used so it will be helpful for other IT Engineer in the future.

Before continuing these steps, I would like to warn not to overlap any Primary and Logical partitions. This could result in data loss.

Continue reading “How to increase local datastore from the command line (using SSH) for ESXi 6.7.0”

How to upgrade PHP version 5.XX to 7.XX version in XAMPP for Windows Server

There is always an open issue on the older version of the tool, so it is best to upgrade your tool if it is going to be compatible. Similarly in PHP also, the older version that I had was 5.5.15 and figure out that it might breach our security with SQL Injection. Thus, I was forced to upgrade our XAMPP server with the latest PHP version 7.1.

The following resolution also solves the issue of “The program can’t start because php5ts.dll is missing from your computer“.

While working on it, I took the reference from many blogs while looking around the solution and indeed those sites helped me. So I thought to blog with all the problem I faced in one place and which might help you in the future.

Continue reading “How to upgrade PHP version 5.XX to 7.XX version in XAMPP for Windows Server”

Enable Terminal Server/Multiple RDP Sessions on Windows 10

I got up a requirement to setup Windows 10 in a cloud from where we want to have concurrent users on it at the same time. It is an easy step for System Administrator on Windows Server, however, as being the normal operating system,  it wasn’t easy to fulfill this requirement on Windows 10.

I googled and tried to come up with a solution. I have seen few tools on the internet too but they are not working properly with the latest Windows update too.

In the end, I manage to get it done and thought to share my step on my blog. Hereby, I modify the termsrv.dll file from the System32 folder to get it done. Continue reading “Enable Terminal Server/Multiple RDP Sessions on Windows 10”

[Solved] .Net Framework Data Provider. It may not be installed. (MySQL Database)

While I was upgrading .Net Framework in our IIS server which was connected to MySQL Database, I started getting an issue:

“Unable to find the requested .Net Framework Data Provider. It may not be installed.”

.NetError

Solution:

Continue reading “[Solved] .Net Framework Data Provider. It may not be installed. (MySQL Database)”

[Solved] Couldn’t verify Office 365 Subscription.

I have faced a quite weird issue where Office package (O365) gives an error as “Couldn’t verify subscription Excel/Word couldn’t verify your Office 365 subscription. Please make sure that you’re connected to the Internet.”, even though I have an appropriate license for Office 365.

Capture

I got some solution on it and fixed my issue. So I thought to share this info in my blog.

Solution: Continue reading “[Solved] Couldn’t verify Office 365 Subscription.”