Categories
Uncategorized

How to enable Hyper-V and run Windows 7 on Amazon’s cheap laptop.

The laptop mentioned previous article successfully became 24H2. The touchpad was risen because the battery was swollen, so I couldn’t use it. This time, I replaced the battery and adjusted the position of the touchpad. So I can use it now. However, suddenly the mouse cursor stops working, and I have a BSoD. The stop code is DPC_WATCHDOG_VIOLATION. The same symptoms occur with a wired USB mouse, so I think it might be related to the driver. Though I tried dism and sfc, there were no problems.

When I look in “Settings>>Windows Update>>Advanced Options>>Optional Updates”, I find the four updates in the image below. One of them is HID-related, and even after reading the program descriptions, I’m not sure if they are related. But I install all four anyway.

Since then I haven’t experienced any BSoDs. It means the result is certainly ok?

Now, enable Hyper-V and run the virtual machine.

This laptop has Windows 11 PRO, so I can use Hyper-V if enabled. Go to “Control Panel >> Programs and Features >> Turn Windows features on or off”, check Hyper-V and click OK. Then follow the instructions on the screen and restart the laptop.

After rebooting, launch Hyper-V Manager and create a virtual machine. Go to “Right Pane >> Quick Create >> Virtual Machine” and made some decisions. I was planning to install the 32-bit version of Windows 7, so I chose the first generation.

Also I left the network configuration as not connected.

In the installation options, I specified the ISO file. I had to search all over for this ISO download. Windows 7 is no longer supported, so I can’t download the ISO from the Microsoft site, and I couldn’t get it from the archive.org link either.

By the way, the relevant page on archive.org is garbled. Try to access the next URL, you can see it. https://web.archive.org/web/20190512035955/https://www.microsoft.com/ja-jp/software-download/windows7

Where can I change the encoding in recent browsers? Well, I managed to fix the garbled text at the URL below. https://web.archive.org/web/20190512035955id_/https://www.microsoft.com/ja-jp/software-download/windows7

We will go back to the question of where to get the ISO…… I searched and searched. In the end, I found one that a volunteer had uploaded to archive.org. Thank goodness. https://archive.org/download/win-7-home-prem-sp1-japanese

I got a Windows 7 Home Premium 32-bit machine.

I started it up and was surprised. The mouse cursor moves reversed up and down, though left and right are normal. On the internet I found, “if there are any disabled services in the list of integrated services, you can fix it by enabling them all”. But that didn’t work. I tried the method of using vmguest.iso from “Mouse vertical movement is reversed in Hyper-V for older OS’s” and it worked. Very impressed.

When I installed vmguest.iso, the article said to install it from the “Virtual Machine Connection” Action menu, but in the media menu there was a “DVD Drive” option, from which I could select the ISO file on the external USB hard disk connected to the host OS. At the time, this hard disk was not visible from Windows 7, but that didn’t matter.

Opening the ISO file, an autoplay window will appear as shown below, so install from here.

After the installation completes, reboot the guest OS, Windows 7.

Some trouble activating Windows 7.

Now a Windows 7 virtual machine on Hyper-V. But if I use this machine forever, I have to activate Windows 7 on it. Otherwise I’ll often have problems with it not working……That’s in trouble.
I originally chose not to connect in the network configuration on the guest OS, so I was going to use Microsoft phone authentication, but I ran into a problem before that.

I had error code 0xC004F061. I was trying to do it with the Windows 7 key I used on the server a long time ago.

Thinking about the key, I think the Windows 7 I used on the server was an update from Windows XP. Now I don’t have Windows XP anymore. Obviously the Windows 7 installed from the downloaded ISO is clean install. Mm, I’m in trouble.

But, we’re in a good age. I searched for the error code and found a helpful article. “FIX Activation Error 0xC004F061 on Windows 10, 8, 7 & Vista (Solved)“. It said that changing the MediaBootInstall value in the registry would work.

Open the Windows 7 Registry Editor and change the value of MediaBootInstall in the right pane of HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Setup/OOBE to 0. Close the Registry Editor.

If this value is 0, it will be judged as an upgrade installation.

Run Windows 7 cmd.exe as administrator. Type slmgr /rearm and press the Enter key. Reboot Windows 7.

After rebooting, proceed to activation from “Computer” property. I call 0120-801-734 from my smartphone and hear an announcement. I follow the instructions and receive a link via SMS. Connect to the link and enter the displayed confirmation ID into Windows 7, and activation completed successfully. Phew.

Categories
Uncategorized Windows

Upgrade Amazon’s cheap laptop to Windows 11 PRO 24H2.

I had a cheap laptop from Amazon and had used it to watch streaming programs on the AQUOS TV in my living room. I suddenly decided to upgrade it from Windows 10 PRO 22H2 to Windows 11 PRO 24H2.

Honestly, I had been thinking of throwing it away, and I had it waiting to go to the trash. But I had to delete the data and the battery was swollen, so I kept putting it off. Several days ago, I replaced the battery in my Dell Inspiron 5570. So, I was interested in the Amazon laptop and opened it. As expected I got the battery swollen. I looked for a compatible battery among net stores, and found one. So I decided to upgrade it. If it would work, I thougt to order the battery.

I thought I’d try it out and practice Hyper-V. Actually, I have some old apps that I want to run on Windows 7, so I want to try them out.

This cheap laptop is fine with the TPM 2.0, but the processor (Intel® Celeron® Processor J3160) does not match the requirements, so I can’t upgrade it in normal way. I upgraded using the article “少し変わった!Windows 11 Version 24H2を非互換PCにインストールする方法” as a reference. I downloaded CPU-Z and checked, and fortunately, I found that the laptop CPU supported SSE4.2 instructions.

The upgrade itself, which I performed under the instruction to use setupprep.exe /product server instead of the requirement bypass setup.exe /product server, went well without any problems. However, the battery I ordered didn’t arrive even after the scheduled date. That drove me crazy. The battery arrived, I replaced it, and finally I could move on to the next task.

By the way, my town office took the swollen lithium-ion battery. When I checked quite a while ago, the town office didn’t get it, but this time it was fine. Things changes everyday.

The removed battery. It’s pretty swollen. Because of this, I couldn’t use the touchpad properly.

同一記事の日本語版

Categories
Uncategorized

Memorandum #15.

同一記事の日本語版

   As PHP7.0.3 was released, I updated to it the day before yesterday. Here is ChangeLog. My server OS is Windows7 HE SP1 x86, so I downloaded php-7.0.3-Win32-VC14-x86.zip.
   The new php.ini-production doesn’t have difference from 7.0.2’s except some comments. If you need more information about php.ini configuration, see ‘Migrating from PHP 5.5.16 to PHP 5.6.0 on Windows’.

Categories
Uncategorized

phpMyAdmin 4.5.0 is released.

同一記事の日本語版

   They released phpMyAdmin 4.5.0.0 on September 23, 4.5.0.1 on September 24 and 4.5.0.2 on September 25. What new releases in sequence! Ha-ha!! Here is the ChangeLogs. The 4.5.0.0 has a tons of improvements by RFE(Request for enhancement) or so. The 4.5.0.1 and 4.5.0.2 are bugfix versions.

Categories
Uncategorized

Removing a broken display from a laptop PC.

同一記事の日本語版
Update information      Edit(Sep.25)

   One of my friends gave me a dynabook(N510/04BW) whose display was broken. When she went near dropping and grabbed it, its liquid crystal screen was cracked(Fig 1) and its OS gave an error when it was installed an external display and turned on.

Categories
Uncategorized

Memorandum #11.

同一記事の日本語版
Update information      Edit(2016.Jun.1)

   I’ve updated some server software on my Web server (The server OS is Win7 HP SP1 x86).

  • MariaDB 10.0.17 —->> MariaDB 10.0.19 (Changelog)
  • PHP 5.6.8 —->> PHP 5.6.9 (Changelog)
  • phpMyAdmin 4.4.6 —->> phpMyAdmin 4.4.7 (Changelog)
  • sc_serv2_win32_09_09_2014.exe —->> sc_serv2_win32-latest.exe (Ver. 2.4.7)
    shoutcast-dsp-2-3-4-windows.exe —->> shoutcast-dsp-2-3-5-windows.exe
    Note) To download the files you need a valid email address. Even if you want free version of SHOUTcast DNAS software, to download the files from the official site you need a personal data registration now, like this. (2016.Jun.1)
Categories
Uncategorized

Memorandum #10.

同一記事の日本語版

   I’ve updated some server software on my Web server (The server OS is Win7 HP SP1 x86).

  • MariaDB 10.0.16 —->> MariaDB 10.0.17 (Changelog)
  • PHP 5.6.7 —->> PHP 5.6.8 (Changelog)
    Note) They created new directory lib under <php_root>. This is related to the bug #65406.
  • phpMyAdmin 4.3.10 —->> phpMyAdmin 4.4.3 (Changelog)
    Note) They deleted the following lines from the new config.sample.inc.php.

    • * default display direction (horizontal|vertical|horizontalflipped)
      */
      //$cfg[‘DefaultDisplay’] = ‘vertical’;
      /**
  • ActivePerl 5.20.1.2000 —->> ActivePerl 5.20.2.2001
  • WordPress 4.1.1 —->> WordPress 4.1.2
    Note) This was updated automatically.
Categories
Uncategorized

Updating to Apache 2.4.12.

同一記事の日本語版

   Apache HTTP Server 2.4.12 was released. It includes four security patches for CVE-2014-3583, CVE-2014-3581, CVE-2014-8109 and CVE-2013-5704. In the httpd-ssl.conf the following lines were added. There was no release of 2.4.11.

  • # OCSP Stapling (requires OpenSSL 0.9.8h or later)
    #
    # This feature is disabled by default and requires at least
    # the two directives SSLUseStapling and SSLStaplingCache.
    # Refer to the documentation on OCSP Stapling in the SSL/TLS
    # How-To for more information.
    #
    # Enable stapling for all SSL-enabled servers:
    #SSLUseStapling On

    # Define a relatively small cache for OCSP Stapling using
    # the same mechanism that is used for the SSL session cache
    # above. If stapling is used with more than a few certificates,
    # the size may need to be increased. (AH01929 will be logged.)
    #SSLStaplingCache “shmcb:c:/Apache24/logs/ssl_stapling(32768)”

    # Seconds before valid OCSP responses are expired from the cache
    #SSLStaplingStandardCacheTimeout 3600

    # Seconds before invalid OCSP responses are expired from the cache
    #SSLStaplingErrorCacheTimeout 600

   The version was built with openssl-1.0.1l, so the issues told by OpenSSL Security Advisory [08 Jan 2015] were fixed.

   I downloaded httpd-2.4.12-win32-VC11.zip from the ApacheLounge for my Windows7 server. If you need the information about Apache 2.4.x configuration on Windows, see my post ‘To create a Wamp-like Web Server in Windows7-#1.’.

Categories
Uncategorized

Memorandum #9.

同一記事の日本語版

A flock of sparrows
A flock of sparrows
   Yesterday, I saw a pretty flock of sparrows. Nowadays this is very rare in my town though I often saw flocks of sparrows in the rice fields when I was a child. I think the opportunities to see sparrows are decreased despite they were very popular birds and we have a lot of folktales of them. I took a picture of them.
Shrohara???
Shrohara???
 
   Today I saw the bird on the left image. I think this is Shirohara. Am I correct?
 
   By the way, I updated some server software on my Web server yesterday (The server OS is Win7 HP SP1 x86).
 

Categories
Uncategorized

phpMyAdmin 4.3.0 is released.

同一記事の日本語版

   They released phpMyAdmin 4.3.0 on December 5 and 4.3.1 on December 8. So I updated to 4.3.1 from 4.2.13.1 yesterday. Here is the ChangeLogs. The 4.3.0 has a tons of improvements by RFE(Request for enhancement). The 4.3.1 is a bugfix version.

   I downloaded a phpMyAdmin-4.3.1-english.zip, extracted it, copied my old config.inc.php to the phpmyadmin folder made from extracting, and uploaded all of them to the server (See “To create a Wamp-like Web Server in Windows7-#3.“).

   By the way, when I compared the new config.sample.inc.php with my old one(=Ver.4.2.x), I found a line was lost and a line was added.

At /* Storage database and tables */ area
   The lost line.
     // $cfg[‘Servers’][$i][‘designer_coords’] = ‘pma__designer_coords’;

   The added line.
     // $cfg[‘Servers’][$i][‘central_columns’] = ‘pma__central_columns’;

4.3.1 alerts
4.3.1 alerts
   So, when I logged on the new phphmyadmin as root at the first time, I got “The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why. Or alternately go to ‘Operations’ tab of any database to set up it there”.

   By clicking ‘Find out why’, I got the alerts like the right image.

   I had instructions, too.

     Quick steps to setup advanced features:

     Create the needed tables with the ./examples/create_tables.sql.
     Create a pma user and give access to these tables.
     Enable advanced features in configuration file (config.inc.php), for example by starting
     from config.sample.inc.php.
     Re-login to phpMyAdmin to load the updated configuration file.

   I did the followings.

  1. Log on the new version with the old config.inc.php as root.
  2. Add the ALTER privilege to the controluser(Default : pma) on the database phpmyadmin.
  3. Import the new create_tables.sql. If you change the database name(Default : phpmyadmin) and the controluser name(Default : pma), you need to customize the sql file before import. See “Configuration storage“.
  4. Log out.
  5. Edit the old config.inc.php.
    • Delete the line.
           $cfg[‘Servers’][$i][‘designer_coords’] = ‘pma__designer_coords’;
    • Add the line.
           $cfg[‘Servers’][$i][‘central_columns’] = ‘pma__central_columns’;
  6. Log on as root, again.
  7. Drop the table pma__designer_coords.

   That’s it.

   About pma__central_columns, see central_columns.