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.

Advertisements

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.

ssh-host-config

*** 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.

 

 

Is Linux using DHCP?

Friday, March 9th, 2018

I have been working on other things which are not Linux related so obvious things have reached the area of “oh….the answer is……”

A question was raised about a Linux virtual machine using DHCP. I remembered it wasn’t but I blanked on where to look for the answer.

Simply look in the file: /etc/sysconfig/network-scripts/ifcfg-eth0

Look for:

BOOTPROTO=dhcp
ONBOOT=yes

That shows DHCP is in use.

 

Skip first line with import-csv

Friday, October 20th, 2017

I have a data file which generates with a header line. I have check script which uses the file and I wanted to skip it but I am using a foreach loop and did not want to add an if/then.

The problem line:

Import-Csv $file -header("fullname","email", "notification","version") foreach {

I remembered the select -first option and I wondered if there was a skip option?

I made a quick change and added a pipe with select -skip 1

Import-Csv $file -header("fullname","email", "notification","version") | select -skip 1 | foreach {

Tested the script and sure enough the first line was skipped.