Skip to content

Commit b7d4b6a

Browse files
authored
Merge pull request #80 from dotkernel/issue-78-2
Issue 78: Tweaked docs
2 parents 4ae8cb9 + a2faf6d commit b7d4b6a

File tree

11 files changed

+59
-58
lines changed

11 files changed

+59
-58
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DXCore version: 10.0.26091.1-240325-1447.ge-release
2525
Windows version: 10.0.22631.3737
2626
```
2727

28-
If the output starts with `WSL version: 2.x.x.x`, you are ready to use **WSL2** and can proceed to [install AlmaLinux9](wsl/README.md).
28+
If the output starts with `WSL version: 2.x.x.x`, you are ready to use **WSL2** and can proceed to [install AlmaLinux 9](wsl/README.md).
2929

3030
## Install WSL2
3131

@@ -57,4 +57,4 @@ To test, run again the following command:
5757
wsl -v
5858
```
5959

60-
This time the output should display `WSL version: 2.x.x.x`, which means that your system is ready for using **WSL2** and you can proceed to [install AlmaLinux9](wsl/README.md).
60+
This time the output should display `WSL version: 2.x.x.x`, which means that your system is ready for using **WSL2** and you can proceed to [install AlmaLinux 9](wsl/README.md).

docs/book/v1/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Frequently asked questions
1+
# AlmaLinux 9 Frequently asked questions
22

33
## How do I switch to a different version of PHP?
44

docs/book/v1/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Introduction
1+
# AlmaLinux 9 Introduction
22

33
`dotkernel/development` is a tool that helps you prepare your development environment with the following components:
44

55
* **WSL2**: Windows Subsystem for Linux
6-
* **AlmaLinux9**: free and open source Linux distribution
6+
* **AlmaLinux 9**: free and open source Linux distribution
77
* **PHP**: general-purpose scripting language geared towards web development
88
* **Apache**: free and open-source cross-platform web server software
99
* **MariaDB**: community-developed, commercially supported fork of the MySQL relational database management system

docs/book/v1/setup/installation.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Install AlmaLinux9
1+
# AlmaLinux 9 Installation
22

33
Before proceeding with the installation, we need to make sure that no other WSL2 distribution (aka: _distro_) is running.
44
This is important because this installation will fail if required ports are already in use by another distro.
@@ -19,21 +19,21 @@ If there is no other distro installed, you will see the below output (an empty l
1919
NAME STATE VERSION
2020
```
2121

22-
In this case, you can jump to the [installation](#install-almalinux9-1) section.
22+
In this case, you can jump to the [installation](#install-almalinux-9) section.
2323

2424
If you have other distros installed, the output could look similar to the below:
2525

2626
```text
2727
NAME STATE VERSION
28-
* AlmaLinux-9 Stopped 2
28+
AlmaLinux-9 Stopped 2
2929
* AlmaLinux-10 Running 2
3030
```
3131

3232
Make sure that the **STATE** column reads **Stopped** for all distros.
33-
If any of them reads **Running**, you must stop if first by executing `wsl -t <distro-name>`, for example: `wsl -t AlmaLinux-10`.
34-
Once you have stopped all distros, you can continue to the [installation](#install-almalinux9-1) section.
33+
If any of them reads **Running**, you must stop if first by executing `wsl -t <distro-name>` after replacing `<distro-name>` with the name of the distro you want to stop.
34+
Once you have stopped all distros, you can continue to the [installation](#install-almalinux-9) section.
3535

36-
## Install AlmaLinux9
36+
## Install AlmaLinux 9
3737

3838
List the available Linux distros by executing:
3939

@@ -82,7 +82,7 @@ A distribution with the supplied name already exists. Use --name to choose a dif
8282
Error code: Wsl/InstallDistro/Service/RegisterDistro/ERROR_ALREADY_EXISTS
8383
```
8484

85-
Install the AlmaLinux9 distro by executing the below command:
85+
Install the **AlmaLinux 9** distro by executing the below command:
8686

8787
```shell
8888
wsl --install -d AlmaLinux-9
@@ -101,7 +101,7 @@ Enter new UNIX username:
101101
```
102102

103103
As per the last line, the installation process now prompts you to enter a username.
104-
This is the username you will use inside AlmaLinux9, and it can be any alphanumeric string (for example `dotkernel`):
104+
This is the username you will use inside **AlmaLinux 9**, and it can be any alphanumeric string (for example `dotkernel`):
105105

106106
Next, you are prompted to change the password associated with your chosen username (you will not see what you are typing, that's a security measure in Linux regarding passwords):
107107

@@ -123,5 +123,5 @@ Finally, you should see the following message:
123123

124124
```text
125125
passwd: all authentication tokens updated successfully.
126-
[<your-almalinux9-username>@<your-device-name> <your-windows-username>]$
126+
[<your-alma-linux-9-username>@<your-device-name> <your-windows-username>]$
127127
```

docs/book/v1/setup/setup-packages.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Setup AlmaLinux9
1+
# AlmaLinux 9 Setup
22

33
Install system packages:
44

@@ -9,7 +9,8 @@ sudo dnf install epel-release dnf-utils https://rpms.remirepo.net/enterprise/rem
99
You should see the below message, shown the first time you execute a command which requires elevated permissions (hence the `sudo` modifier at the beginning of the command).
1010

1111
```text
12-
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
12+
We trust you have received the usual lecture from the local System
13+
Administrator. It usually boils down to these three things:
1314
1415
#1) Respect the privacy of others.
1516
#2) Think before you type.
@@ -18,7 +19,7 @@ We trust you have received the usual lecture from the local System Administrator
1819
[sudo] password for dotkernel:
1920
```
2021

21-
Input your AlmaLinux9 password and hit `Enter`.
22+
Input your **AlmaLinux 9** password and hit `Enter`.
2223

2324
Update/Upgrade system packages:
2425

@@ -32,7 +33,7 @@ Now, install the latest version of **Ansible**:
3233
sudo dnf install ansible -y
3334
```
3435

35-
Move inside your home directory (it is `/home/` followed by your AlmaLinux9 username, for example: `/home/dotkernel`):
36+
Move inside your home directory (it is `/home/` followed by your **AlmaLinux 9** username, for example: `/home/dotkernel`):
3637

3738
```shell
3839
cd ~
@@ -65,34 +66,34 @@ Install components by running the below Ansible command:
6566
ansible-playbook -i hosts install.yml --ask-become-pass
6667
```
6768

68-
The installation process will ask for your AlmaLinux9 password, then iterate over each task in the playbook and output a short summary with the results.
69+
The installation process will ask for your **AlmaLinux 9** password, then iterate over each task in the playbook and output a short summary with the results.
6970

7071
Once finished, check if everything works by opening in your browser:
7172

7273
* [http://localhost/](http://localhost/): Apache's default home page
7374
* [http://localhost/info.php](http://localhost/info.php): PHP info page
7475
* [http://localhost/phpmyadmin/](http://localhost/phpmyadmin/): PhpMyAdmin (login with `root` + the root password you configured in `config.yml` under `mariadb` -> `root_password`)
7576

76-
The installation is complete, your AlmaLinux9 development environment is ready to use.
77+
The installation is complete, your **AlmaLinux 9** development environment is ready to use.
7778

78-
> Restart your `Windows Terminal` to find a new option in the tab selector, called **AlmaLinux-9** - clicking it will open a new tab connected to **AlmaLinux9**.
79+
> Restart your `Windows Terminal` to find a new option in the tab selector, called **AlmaLinux-9** - clicking it will open a new tab connected to **AlmaLinux 9**.
7980
80-
## Running AlmaLinux9
81+
## Running AlmaLinux 9
8182

8283
Open `Windows Terminal`.
8384

84-
Start AlmaLinux9 by executing:
85+
Start **AlmaLinux 9** by executing:
8586

8687
```shell
87-
wsl -d AlmaLinux9
88+
wsl -d AlmaLinux-9
8889
```
8990

9091
OR
9192

9293
Locate the app selector dropdown in `Windows Terminal`'s title bar and click `AlmaLinux-9`.
93-
This will open a new tab connected to AlmaLinux9.
94+
This will open a new tab connected to **AlmaLinux 9**.
9495

9596
### Note
9697

97-
> To run your applications using WSL2, you always need to be connected to your AlmaLinux9 distribution.
98+
> To run your applications using WSL2, you always need to be connected to your **AlmaLinux 9** distribution.
9899
> For this, all you need to do is to keep open an instance of Windows Terminal that is connected to it.

docs/book/v1/setup/system-requirements.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# System requirements
1+
# AlmaLinux 9 System requirements
22

33
If you're not already using it, we recommend you to install [Windows Terminal](https://apps.microsoft.com/detail/9n0dx20hk701?hl=en-US&gl=US).
44
It is a modern tool that incorporates the power of multiple already known command-line applications like `Windows PowerShell`, `Linux shell`, and more...
@@ -23,7 +23,7 @@ DXCore version: 10.0.26091.1-240325-1447.ge-release
2323
Windows version: 10.0.22631.3737
2424
```
2525

26-
If the output starts with `WSL version: 2.x.x.x`, you are ready to use **WSL2** and can proceed to [install AlmaLinux9](installation.md).
26+
If the output starts with `WSL version: 2.x.x.x`, you are ready to use **WSL2** and can proceed to [install AlmaLinux 9](installation.md).
2727

2828
## Install WSL2
2929

@@ -55,4 +55,4 @@ To test, run again the following command:
5555
wsl -v
5656
```
5757

58-
This time the output should display `WSL version: 2.x.x.x`, which means that your system is ready for using **WSL2** and you can proceed to [install AlmaLinux9](installation.md).
58+
This time the output should display `WSL version: 2.x.x.x`, which means that your system is ready for using **WSL2** and you can proceed to [install AlmaLinux 9](installation.md).

docs/book/v1/virtualhosts/create-virtualhost.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Create virtualhosts
1+
# AlmaLinux 9 Create virtualhosts
2+
3+
> By using the `*.localhost` pattern for any new virtualhost, you do not need to modify the `hosts` file in Windows, because these are routed by default.
24
35
Move inside the directory `development/wsl`:
46

@@ -9,9 +11,7 @@ cd ~/development/wsl/
911
If you don't already have a `config.yml` file, duplicate `config.yml.dist` as `config.yml`.
1012

1113
Using your preferred text editor, open `config.yml` and, under the `virtualhosts` key, enter the virtualhosts that you want to create, each on its own line.
12-
1314
Already existing virtualhosts will be skipped, their contents will not be lost, no need to comment or remove them.
14-
1515
Save and close the file.
1616

1717
Create the specified virtualhosts:
@@ -20,8 +20,7 @@ Create the specified virtualhosts:
2020
ansible-playbook -i hosts create-virtualhost.yml --ask-become-pass
2121
```
2222

23-
This process will ask for your password (set during the installation process) and then iterate over the list of configured `virtualhosts` and will output a short summary with the results.
24-
23+
This process will ask for your **AlmaLinux 9** password, iterate over the list of configured `virtualhosts` and output a short summary with the results.
2524
Your virtualhost should be accessible and ready to use.
2625

2726
You will install your project under the `html` directory of your project, for example `/var/www/example.localhost/html`.
@@ -32,7 +31,7 @@ You will install your project under the `html` directory of your project, for ex
3231
3332
## Good to know
3433

35-
* To run your installed projects, you need to start AlmaLinux9 first.
34+
* To run your installed projects, you need to start **AlmaLinux 9** first.
3635
* If you work with virtualhosts, your projects are created under `/var/www/`.
3736
* You can still run PHP scripts under the default Apache project directory, located at `/var/www/html/`.
3837
* If you encounter write permission issues, see [this guide](https://docs.dotkernel.org/development/v1/faq/#how-do-i-fix-common-permission-issues).

docs/book/v1/virtualhosts/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Overview
1+
# AlmaLinux 9 Overview
22

33
Virtualhosts allow developers to host multiple applications on their local system.
44

@@ -7,11 +7,11 @@ Using this tool, you configure a virtualhost for each of your applications, and
77
**Example**:
88

99
* `api.dotkernel.localhost`: this could be the endpoint where you host your website's API
10-
* `frontend.dotkernel.localhost`: this could be the subdomain you host your website's frontend that will consume the API
10+
* `frontend.dotkernel.localhost`: this could be the subdomain where you host your website's frontend that will consume the API
1111

1212
In the above example, the URLs are built like this:
1313

14-
* the subdomain is the identifier of your application (`api`/`frontend`)
14+
* the subdomain is the identifier of your application (`api` / `frontend`)
1515
* the domain is the identifier of your project (`dotkernel`)
1616
* the TLD sends the requests to localhost where Apache will route them to their real location
1717

wsl/README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Install AlmaLinux9
1+
# AlmaLinux 9 Installation
22

33
Before proceeding with the installation, we need to make sure that no other WSL2 distribution (aka: _distro_) is running.
44
This is important because this installation will fail if required ports are already in use by another distro.
@@ -19,21 +19,21 @@ If there is no other distro installed, you will see the below output (an empty l
1919
NAME STATE VERSION
2020
```
2121

22-
In this case, you can jump to the [installation](#install-almalinux9-1) section.
22+
In this case, you can jump to the [installation](#install-almalinux-9) section.
2323

2424
If you have other distros installed, the output could look similar to the below:
2525

2626
```text
2727
NAME STATE VERSION
28-
* AlmaLinux-9 Stopped 2
28+
AlmaLinux-9 Stopped 2
2929
* AlmaLinux-10 Running 2
3030
```
3131

3232
Make sure that the **STATE** column reads **Stopped** for all distros.
33-
If any of them reads **Running**, you must stop if first by executing `wsl -t <distro-name>`, for example: `wsl -t AlmaLinux-10`.
34-
Once you have stopped all distros, you can continue to the [installation](#install-almalinux9-1) section.
33+
If any of them reads **Running**, you must stop if first by executing `wsl -t <distro-name>` after replacing `<distro-name>` with the name of the distro you want to stop.
34+
Once you have stopped all distros, you can continue to the [installation](#install-almalinux-9) section.
3535

36-
## Install AlmaLinux9
36+
## Install AlmaLinux 9
3737

3838
List the available Linux distros by executing:
3939

@@ -82,7 +82,7 @@ A distribution with the supplied name already exists. Use --name to choose a dif
8282
Error code: Wsl/InstallDistro/Service/RegisterDistro/ERROR_ALREADY_EXISTS
8383
```
8484

85-
Install the AlmaLinux9 distro by executing the below command:
85+
Install the **AlmaLinux 9** distro by executing the below command:
8686

8787
```shell
8888
wsl --install -d AlmaLinux-9
@@ -101,7 +101,7 @@ Enter new UNIX username:
101101
```
102102

103103
As per the last line, the installation process now prompts you to enter a username.
104-
This is the username you will use inside AlmaLinux9, and it can be any alphanumeric string (for example `dotkernel`):
104+
This is the username you will use inside **AlmaLinux 9**, and it can be any alphanumeric string (for example `dotkernel`):
105105

106106
Next, you are prompted to change the password associated with your chosen username (you will not see what you are typing, that's a security measure in Linux regarding passwords):
107107

@@ -123,10 +123,10 @@ Finally, you should see the following message:
123123

124124
```text
125125
passwd: all authentication tokens updated successfully.
126-
[<your-almalinux9-username>@<your-device-name> <your-windows-username>]$
126+
[<your-alma-linux-9-username>@<your-device-name> <your-windows-username>]$
127127
```
128128

129-
## Setup AlmaLinux9
129+
## Setup AlmaLinux 9
130130

131131
Install system packages:
132132

@@ -137,7 +137,8 @@ sudo dnf install epel-release dnf-utils https://rpms.remirepo.net/enterprise/rem
137137
You should see the below message, shown the first time you execute a command which requires elevated permissions (hence the `sudo` modifier at the beginning of the command).
138138

139139
```text
140-
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
140+
We trust you have received the usual lecture from the local System
141+
Administrator. It usually boils down to these three things:
141142
142143
#1) Respect the privacy of others.
143144
#2) Think before you type.
@@ -146,7 +147,7 @@ We trust you have received the usual lecture from the local System Administrator
146147
[sudo] password for dotkernel:
147148
```
148149

149-
Input your AlmaLinux9 password and hit `Enter`.
150+
Input your **AlmaLinux 9** password and hit `Enter`.
150151

151152
Update/Upgrade system packages:
152153

@@ -160,7 +161,7 @@ Now, install the latest version of **Ansible**:
160161
sudo dnf install ansible -y
161162
```
162163

163-
Move inside your home directory (it is `/home/` followed by your AlmaLinux9 username, for example: `/home/dotkernel`):
164+
Move inside your home directory (it is `/home/` followed by your **AlmaLinux 9** username, for example: `/home/dotkernel`):
164165

165166
```shell
166167
cd ~
@@ -193,17 +194,17 @@ Install components by running the below Ansible command:
193194
ansible-playbook -i hosts install.yml --ask-become-pass
194195
```
195196

196-
The installation process will ask for your AlmaLinux9 password, then iterate over each task in the playbook and output a short summary with the results.
197+
The installation process will ask for your **AlmaLinux 9** password, then iterate over each task in the playbook and output a short summary with the results.
197198

198199
Once finished, check if everything works by opening in your browser:
199200

200201
* [http://localhost/](http://localhost/): Apache's default home page
201202
* [http://localhost/info.php](http://localhost/info.php): PHP info page
202203
* [http://localhost/phpmyadmin/](http://localhost/phpmyadmin/): PhpMyAdmin (login with `root` + the root password you configured in `config.yml` under `mariadb` -> `root_password`)
203204

204-
The installation is complete, your AlmaLinux9 development environment is ready to use.
205+
The installation is complete, your **AlmaLinux 9** development environment is ready to use.
205206

206-
> Restart your `Windows Terminal` to find a new option in the tab selector, called **AlmaLinux-9** - clicking it will open a new tab connected to **AlmaLinux9**.
207+
> Restart your `Windows Terminal` to find a new option in the tab selector, called **AlmaLinux-9** - clicking it will open a new tab connected to **AlmaLinux 9**.
207208
208209
## Create virtualhosts
209210

@@ -225,7 +226,7 @@ Create the specified virtualhosts:
225226
ansible-playbook -i hosts create-virtualhost.yml --ask-become-pass
226227
```
227228

228-
This will iterate over the list of configured `virtualhosts` and will output a short summary with the results.
229+
This process will ask for your **AlmaLinux 9** password, iterate over the list of configured `virtualhosts` and output a short summary with the results.
229230
Your virtualhost should be accessible and ready to use.
230231

231232
You will install your project under the `html` directory of your project, for example: `/var/www/example.localhost/html`.
@@ -236,7 +237,7 @@ You will install your project under the `html` directory of your project, for ex
236237
237238
### Good to know
238239

239-
* To run your installed projects, you need to start AlmaLinux9 first.
240+
* To run your installed projects, you need to start **AlmaLinux 9** first.
240241
* If you work with virtualhosts, your projects are created under `/var/www/`.
241242
* You can still run PHP scripts under the default Apache project directory, located at `/var/www/html/`.
242243
* If you encounter write permission issues, see [this guide](https://docs.dotkernel.org/development/v1/faq/#how-do-i-fix-common-permission-issues).

wsl/create-virtualhost.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: Create new virtualhost under AlmaLinux9
2+
- name: Create new virtualhost under AlmaLinux 9
33
hosts: localhost
44
connection: local
55
become: true

0 commit comments

Comments
 (0)