The post Fix time drift on UTM Windows VM appeared first on ISbyR.
]]>The first thing I checked was if the time is set automatically, and yes it is
Then I tried to turn it off/on – and it helped! It fixed the time drift on the UTM Windows VM.
But that only lasted until the next time MAC went to sleep…
While toggling the switch using Windows UI I noticed that a pop-up message was displayed
That gave me an idea: instead of manually toggling the time switch, why don’t I run the above command?! Hmm, but what kind of parameters should I use?
Luckily there was the “Show more details” link.
So, I put the below command inside a batch file and every time I access the UTM Windows VM I just run it manually.
it.C:\Windows\System32\SystemSettingsAdminFlows.exe SetInternetTime 1
While not a fully an automatic approach it saves me from going into Time settings and toggling the switch.
Now if you want a fully hands-off approach just create a scheduled job to run this batch for you.
You could either do it on a scheduled basis, like let’s say every 5 minutes, or better on a certain “wake-up” Windows event. Once I figure out what is the best event to use as the trigger I’ll update this section.
Fix time drift on UTM Windows VM
Centos – repair corrupt boot drive
UTM VM fails to start “qcow2: Image is corrupt; cannot be opened read/write”
The post Fix time drift on UTM Windows VM appeared first on ISbyR.
]]>The post Qwiklabs – GCP Essentials – Compute Engine Qwik Start – Windows Tips appeared first on ISbyR.
]]>
When you need to choose the OS the lab says: “Choose Windows Server 2012 R2,..”, however you will not find such to be available.
What I had were:
So I’ve chosen the former.
When you start the VM you are advised that it might take some time before the machine will be RDP-able and you need to run gcloud compute instances get-serial-port-output instance-1 using Cloud Console and wait for the below output (which will indicate that now you can RDP to it)
2018/02/27 05:27:05 GCEInstanceSetup: ------------------------------------------------------------ 2018/02/27 05:27:05 GCEInstanceSetup: Instance setup finished. instance-1 is ready to use. Activation will continue in the backgr ound. 2018/02/27 05:27:05 GCEInstanceSetup: ------------------------------------------------------------
I’ve scanned the few last lines and couldn’t see it, I run the above command again a few more times (with additional parameter, that specifies to show only the delta from the previous output). but nothing changed. Then I decided to scroll all the way up and this message actually appeared almost in the few first lines of the output
The post Qwiklabs – GCP Essentials – Compute Engine Qwik Start – Windows Tips appeared first on ISbyR.
]]>The post Samsung Galaxy TabPro S screen dimming settings appeared first on ISbyR.
]]>After searching for a while on the internet I’ve found how to change the Galaxy TabPro S screen dimming timeout.
You need to go to Settings – Extras – Galaxy Settings – AMOLED. The maximum timeout you can set there is 10 minutes. You can’t go any more then 10 minutes. This is done to protect your Samsung’s beautiful AMOLED screen from burnouts.
I did find a workaround for that which I use only when I have non-static images (like games/presentations/videos) displayed.
Warning – use it at your own risk, and there is one (or two):
Samsung Galaxy TabPro S – screen dimming timeout setting can be changed in registry by setting the Interval property under HKEY_CURRENT_USER\Samsung\SamsungSettings\DimmingOption
Changing back to one of the values provided my Samsung (1, 5 or 10 minutes) can be done via Settings as described previously, no need to touch Windows Registry.
The post Samsung Galaxy TabPro S screen dimming settings appeared first on ISbyR.
]]>The post How to copy PuTTY SSH Hosts Keys between different users/machines on Windows appeared first on ISbyR.
]]>Sometimes you would want to copy PuTTY hosts SSH keys between different users or machines. Having the keys stored will prevent the pop-up message in PuTTY (or Plink/PSCP) when you try to connect to the remote host for the first time.
Some of the cases you would want to do that is:
This article is about copying PuTTY SSH hosts keys focused on doing so on Windows machines.
The Putty SSH hosts keys are saved in registry in
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys]
for the current user.
So if you are copying keys for the current user you are logged in with (but between different machines) its easy. Just export the relevant registry path and import it on the destination machine.
The problem raises when you want to copy keys to profile of a user other then the user you are currently logged in with.
C:\REG QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\hivelist | findstr ilya_adm \Registry\User\S-1-5-21-1229272821-1123561945-839522115-123456 REG_SZ \Device\HarddiskVolume1\Users\ilya_adm\NTUSER.DAT \Registry\User\S-1-5-21-1229272821-1123561945-839522115-123456_Classes REG_SZ \Device\HarddiskVolume1\Users\ilya_adm\AppData\Local\Microsoft\Windows\UsrClass.dat
You can manually duplicate a single host key entry by creating a new STRING value in the destination registry location ( [HKU\S-1-5-21-….-123456\Software\SimonTatham\PuTTY\SshHostKeys]) and copy the Name and Value from the source location (HKCU\Software\SimonTatham\PuTTY\SshHostKeys)
Perform with caution and preferably back up the destination registry location
From command line run
REG EXPORT HKCU\Software\SimonTatham\PuTTY\SshHostKeys c:\temp\source.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys] "rsa2@22:123.xx.1237"="0x10001,0xaeda610d2dea35d252c8410cb6c7 "rsa2@22:123.xx.12319"="0x10001,0xd9f47896e1aaebb85d801ac5d75 "rsa2@22:123.xx.1238"="0x10001,0xf3ce0d57f72f09b4f48d23c763fe "rsa2@22:123.xx.123213"="0x10001,0xd9f47896e1aaebb85d801ac5d7
update
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys]
to be
[HKEY_USERS\S-1-5-21-1229272821-1123561945-839522115-123456\Software\SimonTatham\PuTTY\SshHostKeys]
Windows Registry Editor Version 5.00 [HKEY_USERS\S-1-5-21-1229272821-1123561945-839522115-123456\Software\SimonTatham\PuTTY\SshHostKeys] "rsa2@22:123.xx.1237"="0x10001,0xaeda610d2dea35d252c8410cb6c7 "rsa2@22:123.xx.12319"="0x10001,0xd9f47896e1aaebb85d801ac5d75 "rsa2@22:123.xx.1238"="0x10001,0xf3ce0d57f72f09b4f48d23c763fe "rsa2@22:123.xx.123213"="0x10001,0xd9f47896e1aaebb85d801ac5d7
From command line run
REG IMPORT c:\temp\source.reg
That’s it. Now you have the all the PuTTY SSH hosts keys from the source (user/machine) registry in the destination (user/machine) registry.
Image by Brenda Clarke
The post How to copy PuTTY SSH Hosts Keys between different users/machines on Windows appeared first on ISbyR.
]]>