Difference between revisions of "Windows 10 PKC Installation"
BenKoo>Benkoo |
|||
(31 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
For [[Windows 10]], you need to use [https://www.howtogeek.com/235101/10-ways-to-open-the-command-prompt-in-windows-10/ Command Prompt]. | For [[Windows 10]], you need to use [https://www.howtogeek.com/235101/10-ways-to-open-the-command-prompt-in-windows-10/ Command Prompt]. | ||
=Download | =Download PKC to your local machine= | ||
Once you had [[Git]] and [[wikipedia:Docker (software)|Docker]] installed on your Windows 10 machine, you may launch Command Prompt and see the following '''prompt''': | |||
<pre> | <pre> | ||
C:\Users\userName\Workspace> | C:\Users\userName\Workspace> | ||
</pre> | </pre> | ||
Download the entire package using <code>git</code>. You may copy the instruction as follows: | Download the entire package using the <code>git</code> command. You may copy the instruction (after the <code><nowiki>></nowiki></code> sign) as follows: | ||
<pre> | <pre> | ||
C:\Users\userName\Workspace> git clone https://github.com/ | C:\Users\userName\Workspace>git clone https://github.com/xlp0/PKC.git | ||
</pre> | </pre> | ||
==[[Windows Anamolies]]== | |||
{{:Windows Anamolies}} | |||
=Kick off the microservice launch process= | =Kick off the microservice launch process= | ||
#After the <code>git clone</code> instruction copied relevant data to your working directory, using the command <code>cd</code> to the '''PKC''' directory that contains the script <code>[[up.sh]]</code>, | #After the <code>git clone</code> instruction copied relevant data to your working directory, using the command <code>cd</code> to the '''PKC''' directory that contains the two script files:<code>[[up.sh]]</code> and <code>[[up.bat]]</code>. For Windows users, you need to type: <code>up.bat</code> to execute the '''batch''' script. Note that Windows 10 requires the script command to be <code>up.bat</code>, '''not''' <code>./up.sh</code>. | ||
<pre> | <pre> | ||
C:\Users\userName\Workspace | C:\Users\userName\Workspace>cd PKC | ||
C:\Users\userName\Workspace\PKC | C:\Users\userName\Workspace\PKC>.\up.bat | ||
</pre> | </pre> | ||
#After you submitted the <code>up. | #After you submitted the <code>.\up.bat</code> in your command prompt, you will need to launch one more command to make [[MW:Semantic MediaWiki|Semantic MediaWiki]] work properly. | ||
#Depends on your network connection, this process will download around 3GB of data, so that it will take a while. | |||
Copy and paste the following command to your command prompt. | Copy and paste the following command to your command prompt. | ||
<pre> | <pre> | ||
docker exec pkc_mediawiki_1 php /var/www/html/maintenance/update.php | |||
</pre> | </pre> | ||
#It will first wait for 5 seconds before updating content in the database, so that the whole process will take up to a minute to finish. | |||
#Open a browser: type the following URL to the browser's URL field: http://localhost:9352. | |||
=References= | |||
<references/> |
Latest revision as of 02:22, 3 September 2021
For Windows 10, you need to use Command Prompt.
Download PKC to your local machine
Once you had Git and Docker installed on your Windows 10 machine, you may launch Command Prompt and see the following prompt:
C:\Users\userName\Workspace>
Download the entire package using the git
command. You may copy the instruction (after the >
sign) as follows:
C:\Users\userName\Workspace>git clone https://github.com/xlp0/PKC.git
Windows Anamolies
Since PKC is designed around Linux-based containerization technology, which means that it will have many incompatibilities with Windows inherently. There are some tips that we captured here:
Consult the System Administrator of the Computer
Some system administrators will block users from installing WSL2.0. If this is the case, the Windows operating system needs to be reinstalled to avoid that blocking. See Windows WSL Troubleshooting and this webpage[1].
Windows Subsystem for Linux (WSL) Update
After installing Docker Desktop, Windows 10 will often ask for the installation of WSL update. Please follow the wizard, and install the update accordingly.
VPN Software Interfering with WSL
Under Windows 10 Environment, some VPN software might interfere with Docker's Windows Subsystem for Linux, a.k.a. Windows Subsystem for Linux (WSL), you will need to remove the interfering VPN software before installing Docker. Please note that not all VPN software interferes with WSL. In case you don't want to remove your VPN software, or your Docker and Bash have compatibility issues, please try the following solution:Installing VirtualBox for PKC.
Choosing adequate directories
Mitch Altman identified the following scenarios for PKC installation on Windows 10, which indicate that Windows users will face many unexpected problems during installation, the following lists are some important ones. Make sure that you don't pick a directory outside of your usual Users/Documents directory. If you choose some directories outside of your User/Documents directory, it is possible that certain batch script commands will stop to work, due to file right access authority issues.
GNU TAR might not work
Mitch also found that tar command may not work on certain machines. To ensure that PKC will install smoothly on Windows 10 machines, we put an .exe
(Windows executable) file unzip.exe
[2] in the PKC/resources
directory. We also made sure that a initial data package, namely mountPoint.zip is included in the resources
directory, so that the up.bat
script will be able to conduct the automatic installation and initial launch process completely.
Kick off the microservice launch process
- After the
git clone
instruction copied relevant data to your working directory, using the commandcd
to the PKC directory that contains the two script files:up.sh
andup.bat
. For Windows users, you need to type:up.bat
to execute the batch script. Note that Windows 10 requires the script command to beup.bat
, not./up.sh
.
C:\Users\userName\Workspace>cd PKC C:\Users\userName\Workspace\PKC>.\up.bat
- After you submitted the
.\up.bat
in your command prompt, you will need to launch one more command to make Semantic MediaWiki work properly. - Depends on your network connection, this process will download around 3GB of data, so that it will take a while.
Copy and paste the following command to your command prompt.
docker exec pkc_mediawiki_1 php /var/www/html/maintenance/update.php
- It will first wait for 5 seconds before updating content in the database, so that the whole process will take up to a minute to finish.
- Open a browser: type the following URL to the browser's URL field: http://localhost:9352.
References
- ↑ Enable/Disable Windows Sybsystem on Windows 10
- ↑ Works, Stahl (20 August 2021). ZIP Related Tools.