The return of python

Thursday, September 19th, 2019

I decided to take up python again. Wasn’t a heavy user as I was a bit of a Perl snob. The current job really doesn’t offer serious time for good scripting so I was a little lax on that front.

I have a refresher book “Visual Quickstart Guide for Python” and for simple minded fun “Mission Python: Code a space adventure Game”

The mission book wants pygame. I quickly found I needed to install pip as well. Commands not recognized.

I should mention; I am using Windows 10 on a laptop and have installed Visual Studio community edition with the Python add on. I still upgraded Python to the latest release.

If you are using Windows; you can make your python experience a little easier with two PATH additions for python and the scripts folder in python. In my case

  • “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\”
  • “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\ Scripts\”

After that; you can get a nice little script which will run the pip install. Start an admin level CMD window and enter: python <location of script>\

Once it’s installed; you can install pygame simply by entering: pip install pygame

It’s a quick install. Just verify there are no error messages.


An editor for iPad Pro.

Wednesday, September 4th, 2019

I recently upgraded to an iPad Pro and decided to make it a tool for most things. One area needed was an “ok” editor.

I tried out “pages” and found it to be rather annoying. It would not recognize other file formats and it would recognize formatting.

I am using Textilus Pro right now and it’s been an improvement.

PlayStation 2? Replace or retire?

Sunday, August 18th, 2019

I am in a purge mood due to recent events. Layoffs are never fun.

I have an old PlayStation 2 which no longer works. Seems the CDrom no longer reads. A replacement runs on average about 70 dollars. I have a few games but are they really worth keeping to replace old unsupported gear?

Is hoarding a comfort thing? Am I trying to justify keeping it as a gamer?

It’s been acting up for awhile and I didn’t do anything about it.

Maybe it’s time to let it go.

Last check will be my kid. 😀

She is a gamer. Probably will say get rid of it and the games.

Change is a good thing.

Update: Ended up selling it. Gave a guy a good deal for it, the accessories and all the PS2 games. He said he had a PS2 and didn’t have any games. He really liked what he saw and even mentioned the Lord of the Rings games are what got him into gaming. Glad to see reuse rather then land fill.

Enable Remote Desktop for Server 2019.

Wednesday, July 31st, 2019

Server 2019 is making it’s appearance and of course we needed to enable Remote Desktop. Things change in time and of course so must Windows. The config option is not in it’s normal place.

I am not making a post at this time and I did find a very good writeup on this….

Publishing failed. Error message: Sorry, you are not allowed to assign the provided terms.

Wednesday, July 31st, 2019

I received that error message when I tried to publish an article. Never seen it before.

I figured it was simply a case of a close session. I simply started a new session on a tab and it published afterwards…..

Time and date for server 2019

Tuesday, July 16th, 2019

New server and it needed 2019. Time came for setting the time. I enabled the automattic time sync and zone sync. I was surprised to see the zone change. However, the time did not change.

As before I simply went to date and time settings and found I could not set the the clock time? Add to the confusion? The Date and Time commands would only bring up the same window which lacked the ability to change the clock.

There is a link for this with the server manager. Click the Time Zone and you will see the old Date and Time window.

Quick way to get license

Monday, April 15th, 2019

Every once in awhile I get the question of what license was installed on this windows vm?

A simple powershell way is to use:

powershell “(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey”

Win32_OperatingSystem class missing

Saturday, February 2nd, 2019

We were fortunate to not have an issue for the wannacry ransomware. It was time to make sure this this never happened. We have a script designed to tell us when a system lacked the patching it needed.

While running it on one system; I received a rather peculiar error:

Win32_OperatingSystem class missing

I tried all the usual repairs and and tried to rebuild the WMI repository. Still the error persisted.

The following commands solved this issue:

cd %windir%\system32\wbem
for /f %%s in ('dir /s /b *.mof *.mfl') do mofcomp %%s

Information came from the following Technet entry.

sshd service stopped, exist status 255

Friday, April 20th, 2018

I had one server with an sshd service which would terminate right after starting.

The event log would have the following error:

The description for Event ID 0 from source sshd cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

sshd: PID 9960: `sshd' service stopped, exit status: 255

Not too helpful of a message.

I decided to re-run the setup with an elevated Cygwin terminal.


*** Info: Generating missing SSH host keys
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file

*** Info: StrictModes is set to 'yes' by default.
*** Info: This is the recommended setting, but it requires that the POSIX
*** Info: permissions of the user's home directory, the user's .ssh
*** Info: directory, and the user's ssh key files are tight so that
*** Info: only the user has write permissions.
*** Info: On the other hand, StrictModes don't work well with default
*** Info: Windows permissions of a home directory mounted with the
*** Info: 'noacl' option, and they don't work at all if the home
*** Info: directory is on a FAT or FAT32 partition.
*** Query: Should StrictModes be used? (yes/no) yes

*** Info: Privilege separation is set to 'sandbox' by default since
*** Info: OpenSSH 6.1. This is unsupported by Cygwin and has to be set
*** Info: to 'yes' or 'no'.
*** Info: However, using privilege separation requires a non-privileged account
*** Info: called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no) yes
*** Info: Note that creating a new user requires that the current account have
*** Info: Administrator privileges. Should this script attempt to create a
*** Query: new local account 'sshd'? (yes/no) no
*** ERROR: Couldn't create user 'sshd'!
*** ERROR: Privilege separation set to 'no' again!
*** ERROR: Check your /etc/sshd_config file!
*** Info: Updating /etc/sshd_config file

*** Info: Sshd service is already installed.

*** Warning: Host configuration exited with 1 errors or warnings!
*** Warning: Make sure that all problems reported are fixed,
*** Warning: then re-run ssh-host-config.

After that.  The service stayed up.

Make sure you verify the access.  This particular server had sshd configured for one login and of course I didn’t have the password.