Difference between revisions of "PKC/Readme.md"
(→Goal) |
|||
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Context== | ==Context== | ||
{{: | To help manage personalized and project-based data asset, PKC is designed to run in scalable configurations, starting from personalized computing resources, up to multi-server cloud environments. The overall approach of PKC is try to minimize the entry-barrier of automated workflow and create an inclusive field of growth driven by [[Moore's Law]]. The system design work of PKC will try to follow principles presented in the book: '''Specifying Systems'''<ref>{{:Book/Specifying Systems}}</ref>. | ||
__TOC__ | __TOC__ | ||
==Goal== | ==Goal== | ||
Create a basic set of services, files, and page content to help individuals operate a MediaWiki website on any machine of their choosing. This will allow them to continuously work with their own data assets, independent of future changes. | |||
==Success Criteria== | ==Success Criteria== | ||
Line 13: | Line 13: | ||
#Provide instructions to learn about how to use [[PKC]] in the initial MediaWiki's database, so that people can start learning to use PKC through their own instance of MediaWiki. | #Provide instructions to learn about how to use [[PKC]] in the initial MediaWiki's database, so that people can start learning to use PKC through their own instance of MediaWiki. | ||
==Required Resources | ==Required Resources== | ||
#A computer that you have access to its "root" or "administrator" previledge. | #A computer<ref>{{:Video/Raspberry Pi versus AWS // How to host your website on the RPi4}}</ref> that you have access to its "root" or "administrator" previledge. | ||
#Operatng Systems that support [[wikipedia:Docker (software)|Docker]]: | #Operatng Systems that support [[wikipedia:Docker (software)|Docker]]: Windows 10, Mac OS X Big Sur 11.2.3 and Linux. | ||
#Under Windows 10 Environment, some VPN software might interfere with [Docker]'s Windows Subsystem for Linux, a.k.a. [[wikipedia:Windows Subsystem for Linux|Windows Subsystem for Linux (WSL)]], you will need to remove VPN software before installing | #Under Windows 10 Environment, some VPN software might interfere with [[Docker]]'s Windows Subsystem for Linux, a.k.a. [[wikipedia:Windows Subsystem for Linux|Windows Subsystem for Linux (WSL)]], you will need to remove VPN software before installing [Docker]. In case you don't want to remvoe your VPN software, or your Docker and Bash have compatibility issues, please try to [VirtualBox PKC] solution. | ||
#Access to the Internet during intallation time. Please try to perform the installation on a network with 10Mbps+ to the Internet. After installation, this system can operated without access to the Internet. | #Access to the Internet during intallation time. Please try to perform the installation on a network with 10Mbps+ to the Internet. After installation, this system can operated without access to the Internet. | ||
# | #Relevant software implementation examples and [[architectural patterns in the field of Knowledge Management]] | ||
==Installation Procedure/Implementation Process== | ==Installation Procedure/Implementation Process== | ||
Line 38: | Line 38: | ||
</pre> | </pre> | ||
#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>, and type: <code>./up.sh</code> to execute the script. | #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>, and type: <code>./up.sh</code> to execute the script.(If you are running Windows machine, just type:<code>.\up.bat</code> or just <code>up</code>.) | ||
<pre> | <pre> | ||
Line 47: | Line 47: | ||
#Depends on your network connection, this process will download around 5GB of data, so that it will take a while. | #Depends on your network connection, this process will download around 5GB of data, so that it will take a while. | ||
#Open a browser: type the following URL to the browser's URL field: http://localhost:9352. | #Open a browser: type the following URL to the browser's URL field: http://localhost:9352. | ||
# In case you need to have administrator access, use <code>Admin</code> as user name, and <code>metalanguage</code> as password. | |||
#If you plan to set up [[https]] for your [[PKC]], please refer to the page:[[Nginx as Reverse Proxy]]. | #If you plan to set up [[https]] for your [[PKC]], please refer to the page:[[Nginx as Reverse Proxy]]. | ||
==Expected Outcome | ==Expected Outcome== | ||
#Every 30 minutes, all the changes you made to your local instance of MediaWiki will be automatically backed up to the directory's "backup/" sub-directory. | #Every 30 minutes, all the changes you made to your local instance of MediaWiki will be automatically backed up to the directory's "backup/" sub-directory. | ||
#The textual content stored in MediaWiki's database can will be stored in an XML file: XLPLATEST.xml | #The textual content stored in MediaWiki's database can will be stored in an XML file: XLPLATEST.xml | ||
Line 56: | Line 57: | ||
==Boundary Conditions== | ==Boundary Conditions== | ||
#We can not warrant any reliability, completeness, and accuracy of this installation procedure. '''Any action you take upon this information and execute this script is at your own risk''', We will not be liable for any losses and damages in connection to the use of the actions and software prescribed here. | #We can not warrant any reliability, completeness, and accuracy of this installation procedure. '''Any action you take upon this information and execute this script is at your own risk''', We will not be liable for any losses and damages in connection to the use of the actions and software prescribed here. | ||
#We have only tested on a small number of machines and configurations, your mileage may vary. | #We have only tested on a small number of machines and configurations, your mileage may vary. | ||
Line 62: | Line 62: | ||
#Many pre-defined parameters can be replaced in the '''[[.env]]''' file stored in the '''PKC''' directory. It allows flexible configuration of your system. For more information, please read [[Configure your own PKC instance]]. | #Many pre-defined parameters can be replaced in the '''[[.env]]''' file stored in the '''PKC''' directory. It allows flexible configuration of your system. For more information, please read [[Configure your own PKC instance]]. | ||
#For the sake of reducing typos, the project has moved from https://github.com/xlp0/PersonalKnowledgeContainer to https://github.com/xlp0/PKC. For the current implementation of Github, these two git repository names point to the same source. When GitHub change this practice, it will change. We recommend you to use the shorter version. | #For the sake of reducing typos, the project has moved from https://github.com/xlp0/PersonalKnowledgeContainer to https://github.com/xlp0/PKC. For the current implementation of Github, these two git repository names point to the same source. When GitHub change this practice, it will change. We recommend you to use the shorter version. | ||
Latest revision as of 01:58, 18 June 2022
Context
To help manage personalized and project-based data asset, PKC is designed to run in scalable configurations, starting from personalized computing resources, up to multi-server cloud environments. The overall approach of PKC is try to minimize the entry-barrier of automated workflow and create an inclusive field of growth driven by Moore's Law. The system design work of PKC will try to follow principles presented in the book: Specifying Systems[1].
Goal
Create a basic set of services, files, and page content to help individuals operate a MediaWiki website on any machine of their choosing. This will allow them to continuously work with their own data assets, independent of future changes.
Success Criteria
- Allow Individuals to install an instance of MediaWiki service by reading this PKC/Readme.md file.
- Make all textual content, executable software images, installation scripts in the public domain, so that everyone can share and use them at will.
- Provide instructions to learn about how to use PKC in the initial MediaWiki's database, so that people can start learning to use PKC through their own instance of MediaWiki.
Required Resources
- A computer[2] that you have access to its "root" or "administrator" previledge.
- Operatng Systems that support Docker: Windows 10, Mac OS X Big Sur 11.2.3 and Linux.
- 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 VPN software before installing [Docker]. In case you don't want to remvoe your VPN software, or your Docker and Bash have compatibility issues, please try to [VirtualBox PKC] solution.
- Access to the Internet during intallation time. Please try to perform the installation on a network with 10Mbps+ to the Internet. After installation, this system can operated without access to the Internet.
- Relevant software implementation examples and architectural patterns in the field of Knowledge Management
Installation Procedure/Implementation Process
- Installation must be conducted by a person who possess the root password of the target machine. When it starts installing, root password needs to be provided in a command line interface (CLI).
- You will need Git, the software installed on your machine. You may follow the instructions on Git Software Installation and Download.
- Install Docker, the Installation instructions and downloadable files can be found here: https://docs.docker.com/get-started/
- After the success of Docker installation, launch a terminal application, or often called command line interface (CLI)interface, move your working directory using the command
cd
", meaning change your working directory, to a directory in your file system. For Mac OS X and Linux operating systems, Terminal applications are bundled during installation. For Windows 10 PKC Installation, please refer to this page.
Assume the directory you keep your working files is called: Workspace
, your terminal application/command line interface (CLI) should present a prompt, similar to the following format: (your environment might also display machine name and user name along with the working directory name)
~/userName/Workspace$
Download the entire package using git
. You may copy the instruction as follows:
~/userName/Workspace$ git clone https://github.com/xlp0/PKC.git
- After the
git clone
instruction copied relevant data to your working directory, using the commandcd
to the PKC directory that contains the scriptup.sh
, and type:./up.sh
to execute the script.(If you are running Windows machine, just type:.\up.bat
or justup
.)
~/userName/Workspace$ cd PKC ~/userName/Workspace/PKC$ ./up.sh
- After you submitted the
./up.sh
in your command line interface, you will be asked for a password, type in the root password for the machine you are trying to install. - Depends on your network connection, this process will download around 5GB of data, so that it will take a while.
- Open a browser: type the following URL to the browser's URL field: http://localhost:9352.
- In case you need to have administrator access, use
Admin
as user name, andmetalanguage
as password. - If you plan to set up https for your PKC, please refer to the page:Nginx as Reverse Proxy.
Expected Outcome
- Every 30 minutes, all the changes you made to your local instance of MediaWiki will be automatically backed up to the directory's "backup/" sub-directory.
- The textual content stored in MediaWiki's database can will be stored in an XML file: XLPLATEST.xml
- All the uploaded files, assuming the file names are accepted by the host operating system, will be dumped to the "backup/MediaFile/" sub-directory.
- New applications and data processing patterns can be defined by PageFlow
Boundary Conditions
- We can not warrant any reliability, completeness, and accuracy of this installation procedure. Any action you take upon this information and execute this script is at your own risk, We will not be liable for any losses and damages in connection to the use of the actions and software prescribed here.
- We have only tested on a small number of machines and configurations, your mileage may vary.
- Do not remove any of the files in the directory with
backup/
, such asdocker-compose.yml
and theLocalSettings.php
. These files are the configuration files for Docker and MediaWiki respectively. Missing them, this system will cease to work. - Many pre-defined parameters can be replaced in the .env file stored in the PKC directory. It allows flexible configuration of your system. For more information, please read Configure your own PKC instance.
- For the sake of reducing typos, the project has moved from https://github.com/xlp0/PersonalKnowledgeContainer to https://github.com/xlp0/PKC. For the current implementation of Github, these two git repository names point to the same source. When GitHub change this practice, it will change. We recommend you to use the shorter version.
- ↑ Lamport, Leslie (2020). Specifying Systems: The TLA+ Language and Tools for Hardware and Software Engineers. local page: Addison Wesley. ISBN 0-321-14306-X.
- ↑ Delaney, Jeff (Jan 15, 2021). Raspberry Pi versus AWS // How to host your website on the RPi4. local page: Fireship.