A little something about everything

internet marketing and website development made simple..

How to install Virtualmin on CentOS7, Simple step by step

To get started after installing CentOS7 you will need to follow these steps:

First Update CentOS

yum update

Install wget

yum install wget

Download Virtualmin

wget http://software.virtualmin.com/gpl/scripts/install.sh

Install Webmin

/bin/sh install.sh

You should now be able to access Virtualmin Control panel via https > your domain > port 10000

 

How to disable popup tips in Visual Studio Code

Visual Studio Code is a great stand alone code editor that is free from Microsoft. However, it does have a few annoying functions out of the box. The worst of them is the constant tool tips which can get in the way of code and in some cases open browser windows as you accidently click on these tool tips.

Here is how you can remove these tool tips

In all methods you will need to open the User Settings editor. To do this:

  • Click File > Preferences > Settings
  • Now expand "Text Editor"
  • Click on "Suggestions"
  • Click "Edit in Settings.json"

Now you will have the "{} User Settings" tab open. The pane on the left is the defaults and the pane on the right is where you can edit these settings. You will need to place the updates inside of the "{ code here, }" then click save. 

Method 1, update the suggestion delay so you can still have tips but they don't appear unless you hover over the element for some time.

  "editor.quickSuggestionsDelay": 1000,

Method 2, disable the hover function. You will still be able to use CtrlR + K and CtrlR + I as needed.

"editor.hover.enabled": false,

Method 3, disable completely. You don't want or need these tips and you want them to go away forever.

"editor.parameterHints": false,

 

That's it, your done!

maxview Storage Manager - Error message: Login Failed: Internal Error Occurred

This can be caused if you've changed your administrative account user to improve security on a server.

In order to resolve this issue you will need to stop the max view services in this order:

Then edit cimserver_planned.conf in your maxview storage manager, default path is:

C:\Program Files\Adaptec\maxView Storage Manager\pegasus\cimserver_planned.conf

open with text editor and alter the line from

enableAuthentication=true

to

enableAuthentication=false

It may look something like this: 

save and exit the conf file.

Now start the maxview Storage Manager services in this order:

Now you can login with your admin account correctly.

 

Intermittent Error: "an internal error has occurred" using remote desktop to a windows server virtual machine from windows 10

This can occur with with to many rdp connection attempts, someone may be trying to break into your computer/server. 

Check your resource monitor network usage, if you see many connections (10, 20+) with svchost.exe (termsvcs) then someone is attempting to break into the system.

Its best practice to limit RDP connections to specific IP addresses or via a VPN to prevent this. However, in some cases this may not be possible, so you may change the port number which may help mitigate the attack.

WARNING, Incorrectly editing your registry can cause your system to become non functional. Proceed at your own risk.

open regedit, and go to "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp" then select the PortNumber REG_DWORD entry and change the value data in Decimal to the new port number. Restart the service or system to make the change active.,

Solution #2

It can also be cause when a windows servers is running on vmware or hyper-v and in some cases with a stand alone server where hardware has changed. In most cases this error starts after virtual machine resource changes, or some windows updates.

The solution:

On the computer you are connecting to...

Open GPEdit

Then go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security

Then choose Require use of specific security layer for remote (RDP) connections

Enable > then choose Security Layer: RDP

Reboot the system.

Done.

note: I am not actually sure of the actual cause of this error, if someone has some details please share them below.

How to boot from Nvme m.2 Windows Raid1 software array on UEFI based system

Install Windows 10 or Server, have both drives installed into the system.

Disable hibernation function

powercfg.exe /h off

Start Windows and open disk management

Note the Disk #, in this case its  Disk 1. You'll need this later.

now right click on your current boot drive and select properties

verify you have an UEFI based system here, it should be GUID/GPT

open cmd.exe as admin,

Type the following: (use correct desk # from step 1 above)

diskpart
select disk 1
select partition 1
detail partition

Write down the Type ID of the recovery partition and its size

Now convert the disk you would like to mirror to GPT and create a recovery partition. (use the correct disk # and size)

Select disk 2
convert gpt
select partition 1
delete partition override
create partition primary size=300
format fs=ntfs quick label=Recovery
select partition 1
set id={use your drives ID}

 

 Now assign drive letters to both disks (using your correct disk #'s)

select disk 1
select partition 1
assign letter=x
select disk 2
select partition 1
assign letter=y
exit

Copy the data,

robocopy x:\ y:\ * /e /copyall /dcopy:t /xd "System Volume Information"

Now to mirror system volume,

diskpart
select disk 1
list part

Write down size of system and reserved partitions from your current boot drive.

now create system and reserved partitions on the drive you would like to be the mirror,

select disk 2
create partition efi size=99
format fs=fat32 quick
assign letter=w
create partition msr size=128

now assign a drive letter on your current boot drive

select disk 1
select part 2
assign letter=z
exit

Almost done now... Don't you wish your system had an nvme m.2 raid controller?

Now copy EFI from boot to the mirror,

robocopy z:\ w:\ * /e /copyall /dcopy:t /xf BCD.* /xd "System Volume Information"

now close cmd and open the disk manager, diskmgmt.msc or from computer management.

right click on your boot disk and choose convert to dynamic disk

the correct disk should already be selected, click OK, Convert, and then finally Yes.

Now do the same with the disk that will be the mirror,

again the correct disk will be selected already, click OK, Convert, then Yes.

At last, we can setup the mirror,

right click on your boot drive partition and choose Add Mirror, select the correct drive and click Add Mirror.

Now open diskpart and remove the extra drive letters,

diskpart
select disk 1
select part 1
remove letter=x
select part 2
remove letter=z
select disk 2
select part 1
remove letter=y
select part 2
remove letter=w

You're done!