Difference between revisions of "Personal Knowledge Container"
Bkoo>Admin |
Bkoo>Admin |
||
Line 59: | Line 59: | ||
#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. | ||
#Do not remove any of the files in the directory with <q>backup/</q>, such as <q>docker-compose.yml</q> and the <q>LocalSettings.php</q>. These files are the configuration files for Docker and MediaWiki respectively. Missing them, this system will cease to work. | #Do not remove any of the files in the directory with <q>backup/</q>, such as <q>docker-compose.yml</q> and the <q>LocalSettings.php</q>. 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 same directory as '''PKC'''. 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. | ||
=References= | =References= | ||
<References/> | <References/> |
Revision as of 09:09, 26 April 2021
Personal Knowledge Container
This project, PersonalKnowledgeContainer[1], abbreviated as PKC[2], provides an automated process coded in up.sh
that streamlines the installation of a MediaWiki microservice[3] in a network environment of your choice. After the installation, it can operate on your own machine with or without Internet connection.
Context
After microservice technologies become ubiquitous, it is possible to organize personal knowledge using a personally operated MediaWiki services that could work even the computer is not connect to the Internet. This off-line capability will enable anyone to enjoy the power of open source software without worrying your data might be leaked to the public. However, to make sure that your own data will always be accessible to you, users of this self-operated service must have a simple procedure to perform data backup and restoration, so that data may continue to work after one switch to a different computer. Moreover, individuals shoud also be able to read their own data even the software for displaying them hasevolved to a new version that doesn't work with data stored with previous versions. This project intend to resolve this challenge by giving everyone the choice to run their own chosen version of MediaWiki software, given that all the images that have proven to work has publicly available images, so that even if the software has been abandoned, one may use Application virtualization technologies to continue operate the software. For the detail explanation of design rationale, see Why PKC?
Goal
Create a basic set of services, files, and page content that help individuals to operate a MediaWiki website on any machines of their choosing, and allow them to continuously work with their own data set, independent of future changes.
Success Criteria
1. Allow Individuals to install an instance of MediaWiki service by reading this REAME.md file. 2. Make all textual content, executable software images, installation scripts in the public domain, so that everyone can share and use them at will. 3. 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.
Implementation Process
The following text shows the required resources and action items for PKC installation.
Required Resources
- A computer 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.
Installation Procedure
- 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).
- Install [Docker], the Installation instructions and downloadable files can be found here: https://docs.docker.com/get-started/
- Go to a [command line], or so called [terminal] application, 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, we recommend you to use Git Bash, when you install [git] for Windows, Git Bash is included the installation process.
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)
Workspace$
Download the entire package using git
. You may copy the instruction as follows:
Workspace$ git clone https://github.com/benkoo/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.
Workspace$ cd PKC
PersonalKnowledgeContainer$ ./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. - Open a browser: type the following URL to the browser's URL field: http://localhost:9352 or http://127.0.0.1:9352
- Read the instructions in the Main Page.
Outcomes Expected
- Every 30 minutes, all the changes you made to this 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.
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 same directory as PKC. 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.
References
- ↑ Personal Knowledge Container, Github Project, URL:https://github.com/xlp0/PersonalKnowledgeContainer
- ↑ PKC, Github Project, URL: https://github.com/xlp0/PKC
- ↑ https://www.bmc.com/blogs/microservices-architecture/