How to solve “Cannot load Counter Name data because an invalid index ” was read from the registry.” error

Getting an error “Cannot load Counter Name data because an invalid index ” was read from the registry.” when the System.Diagnostics.PerformanceCounterCategory API is used, means that something went wrong with the Performance counter registry settings.

In order to fix the wrong behavior you need to restore the Performance counter registry settings, using the following command:

lodctr /R

Additional information about the lodctr command line tool can be found here.

How to avoid pressing single / double quotes twice in order to type them on Chrome OS

  1. Click on the language icon in the status area in the lower right corner
  2. Click on the language option tile (see screenshot)
  3. Select the Customize languages and input … option
  4. Select the English (United States) language
  5. Uncheck the US international keyboard and check the US keyboard one on the right side
Language Option in ChromeOS
Language Option in ChromeOS

Now you will be able to type single and/or double quotes by pressing them only once.

How to access an Amazon EC2 linux virtual machine on Chromebook

What is a Crosh Window?

Crosh is a shell environment which can be installed on Chrome OS. Pressing Alt + Ctrl + T will start the shell.

What is Amazon EC2?

¨Amazon EC2¨ in Wikipedia: Amazon Elastic Compute Cloud (EC2) is a central part of’s cloud computing platform, Amazon Web Services (AWS). EC2 allows users to rent virtual computers on which to run their own computer applications.

Once the setup of the linux instance in Amazon EC2 is done, it can be accessed using the Crosh client. During the setup process of the linux instance, a private key(pem file) is provided to the user. Let’s say it is named amazon.pem and it is downloaded on the Chromebook.

The Setup

Start the Crosh shell and type ssh.

crosh> ssh

Now you need to specify your user, host and key:

ssh> user ec2-user
ssh> host
ssh> key amazon.pem

When you are ready entering them you need to execute the connect command:

ssh> connect

Happy coding on the Amazon virtual instances and managing them using your Chromebook machine.