Skip to content

Commit 5ff0bf0

Browse files
committed
Issue #48: Added instructions for installing AlmaLinux 9 via CLI
Signed-off-by: alexmerlin <[email protected]>
1 parent e5b4762 commit 5ff0bf0

File tree

3 files changed

+66
-52
lines changed

3 files changed

+66
-52
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"authors": [
77
{
8-
"name": "DotKernel Team",
8+
"name": "Dotkernel Team",
99
"email": "[email protected]"
1010
}
1111
],

wsl/os/almalinux9/README.md

Lines changed: 47 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,43 @@
11
# Install WSL development environment on AlmaLinux 9
22

3-
[< DotKernel: Install development environment](../../README.md)
3+
[< Dotkernel: Install development environment](../../README.md)
44

5-
## Download and install AlmaLinux 9
5+
## Download AlmaLinux 9 image
66

7-
Open Microsoft Store, in the search box type in: `AlmaLinux` and hit `Enter`.
7+
Download **AlmaLinux 9** image by following one of the below methods.
8+
9+
### Method 1: Download AlmaLinux 9 WSL image using Windows Terminal
10+
11+
Open `Windows Terminal` and execute the following command:
12+
13+
```shell
14+
wsl --install -d AlmaLinux-9
15+
```
16+
17+
You should see the download progress, and once finished, the output should look like this:
18+
19+
```text
20+
Downloading: AlmaLinux 9
21+
Installing: AlmaLinux 9
22+
AlmaLinux 9 has been installed.
23+
Launching AlmaLinux 9...
24+
```
25+
26+
Also, you should find a new tab in `Windows Terminal` that is already connected to **AlmaLinux 9**.
27+
28+
### Method 2: Download AlmaLinux 9 WSL image from Microsoft Store
29+
30+
Open Microsoft Store, type `AlmaLinux` in the search box and hit `Enter`.
831

932
From the results, select `AlmaLinux 9` - this will take you to AlmaLinux 9's app page.
1033

1134
On this page, locate and click the `Install` button - this will download AlmaLinux 9 WSL image on your machine.
1235

13-
Once the download has finished, the `Install` button is replaced by an `Open` button - clicking it will open
14-
`Windows Terminal`.
36+
Once the download has finished, the `Install` button is replaced by an `Open` button - clicking it will open `Windows Terminal`.
1537

16-
Here you will be asked to fill in your username (for example `dotkernel`):
38+
## Install AlmaLinux 9
39+
40+
You will be asked to fill in your username (for example `dotkernel`):
1741

1842
```text
1943
Installing, this may take a few minutes...
@@ -56,7 +80,7 @@ Installation successful!
5680
Install requirements:
5781

5882
```shell
59-
sudo dnf install epel-release dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm -y
83+
sudo dnf install epel-release dnf-utils https://rpms.remirepo.net/enterprise/remi-release-9.rpm -y
6084
```
6185

6286
Update/Upgrade system packages:
@@ -71,7 +95,7 @@ Now, install the latest version of Ansible:
7195
sudo dnf install ansible -y
7296
```
7397

74-
Clone dotkernel/development into your home directory:
98+
Clone `dotkernel/development` into your home directory:
7599

76100
```shell
77101
git clone https://github.com/dotkernel/development.git
@@ -113,9 +137,11 @@ wsl -d AlmaLinux9
113137

114138
Move inside the directory `development/wsl`:
115139

116-
```cd ~/development/wsl/```
140+
```shell
141+
cd ~/development/wsl/
142+
```
117143

118-
Continue installation by running the below Ansible command:
144+
Continue the installation by running the below Ansible command:
119145

120146
```shell
121147
ansible-playbook -i hosts install.yml --ask-become-pass
@@ -125,10 +151,9 @@ The installation process will iterate over each task in the playbook and will ou
125151

126152
Now check if everything works by opening in your browser:
127153

128-
- [http://localhost/](http://localhost/) - Apache's default home page
129-
- [http://localhost/info.php](http://localhost/info.php) - PHP info page
130-
- [http://localhost/phpmyadmin/](http://localhost/phpmyadmin/) - PhpMyAdmin (login with `root` + the root password you
131-
configured in `config.yml` under `mariadb` -> `root_password`)
154+
- [http://localhost/](http://localhost/): Apache's default home page
155+
- [http://localhost/info.php](http://localhost/info.php): PHP info page
156+
- [http://localhost/phpmyadmin/](http://localhost/phpmyadmin/): PhpMyAdmin (login with `root` + the root password you configured in `config.yml` under `mariadb` -> `root_password`)
132157

133158
The installation is complete, your development environment is ready to use.
134159

@@ -145,10 +170,7 @@ want to create, each on its own line.
145170

146171
Already existing ones will be skipped, no need to comment or remove them.
147172

148-
### NOTE
149-
150-
> By using the pattern `*.localhost` for any new virtualhost, you do not need to modify the `hosts` file in Windows,
151-
> because these are routed by default.
173+
> 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.
152174
153175
Save and close the file.
154176

@@ -162,23 +184,17 @@ This will iterate over the list of configured `virtualhosts` and will output a s
162184

163185
Your virtualhost should be accessible and ready to use.
164186

165-
You will install your project under the `html` directory of your project, for example:
166-
`/var/www/example.localhost/html`.
187+
You will install your project under the `html` directory of your project, for example: `/var/www/example.localhost/html`.
188+
189+
> The virtualhost's document root is set to the `public` directory of the above location, for example `/var/www/example.localhost/html/public`.
167190
168-
### NOTE
169-
> The virtualhost's document root is set to the `public` directory of the above location, for example
170-
> `/var/www/example.localhost/html/public`.
171-
>
172-
> If you want to have the DocumentRoot directly in `html` folder, you need to modify the file
173-
> `/etc/httpd/sites-available/example.localhost`
191+
> If you want to have the DocumentRoot directly in `html` folder, you need to modify the file `/etc/httpd/sites-available/example.localhost`.
174192
175193
### Good to know
176194

177-
- In order to run your installed projects, you need to start AlmaLinux 9 first.
195+
- To run your installed projects, you need to start AlmaLinux 9 first.
178196
- If you work with virtualhosts, your projects are created under `/var/www/`.
179197
- You can still run PHP scripts under the default Apache project directory, located at `/var/www/html/`.
180198
- If you encounter write permission issues, see [this guide](FAQ.md#how-do-i-fix-common-permission-issues).
181-
- We install PHP 8.3 by default. If you need a different version, see
182-
[this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-php).
183-
- We install NodeJS 22 by default. If you need a different version, see
184-
[this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-nodejs).
199+
- We install PHP 8.3 by default. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-php).
200+
- We install Node.js 22 by default. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-nodejs).

wsl/os/ubuntu20/README.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Install WSL development environment on Ubuntu 20
22

3-
[< DotKernel: Install development environment](../../README.md)
3+
[< Dotkernel: Install development environment](../../README.md)
44

55
## Download Ubuntu 20 WSL image
66

@@ -14,7 +14,7 @@ Open `Windows Terminal` and execute the following command:
1414
wsl --install -d Ubuntu-20.04
1515
```
1616

17-
You should see the download progress and once finished, the output should look like this:
17+
You should see the download progress, and once finished, the output should look like this:
1818

1919
```text
2020
Downloading: Ubuntu 20.04 LTS
@@ -27,14 +27,13 @@ Also, you should find a new tab in `Windows Terminal` that is already connected
2727

2828
### Method 2: Download Ubuntu 20 WSL image from Microsoft Store
2929

30-
Open Microsoft Store, in the search box type in: `Ubuntu` and hit `Enter`.
30+
Open Microsoft Store, type `Ubuntu` in the search box and hit `Enter`.
3131

3232
From the results, select `Ubuntu 20.04.4 LTS` - this will take you to Ubuntu 20's app page.
3333

3434
On this page, locate and click the `Install` button - this will download Ubuntu 20 WSL image on your machine.
3535

36-
Once the download has finished, the `Install` button is replaced by an `Open` button - clicking it will open
37-
`Windows Terminal`.
36+
Once the download has finished, the `Install` button is replaced by an `Open` button - clicking it will open `Windows Terminal`.
3837

3938
## Install Ubuntu 20
4039

@@ -114,18 +113,21 @@ Open `Windows Terminal`.
114113

115114
Stop Ubuntu 20:
116115

117-
wsl -t Ubuntu-20.04
116+
```shell
117+
wsl -t Ubuntu-20.04
118+
```
118119

119120
Start Ubuntu 20:
120121

121-
wsl -d Ubuntu-20.04
122+
```shell
123+
wsl -d Ubuntu-20.04
124+
```
122125

123126
Now check if everything works by opening in your browser:
124127

125-
- [http://localhost/](http://localhost/) - Apache's default home page
126-
- [http://localhost/info.php](http://localhost/info.php) - PHP info page
127-
- [http://localhost/phpmyadmin/](http://localhost/phpmyadmin/) - PhpMyAdmin (login with `root` + the root password you
128-
configured in `config.yml` under `mariadb` -> `root_password`)
128+
- [http://localhost/](http://localhost/): Apache's default home page
129+
- [http://localhost/info.php](http://localhost/info.php): PHP info page
130+
- [http://localhost/phpmyadmin/](http://localhost/phpmyadmin/): PhpMyAdmin (login with `root` + the root password you configured in `config.yml` under `mariadb` -> `root_password`)
129131

130132
The installation is complete, your development environment is ready to use.
131133

@@ -137,8 +139,7 @@ Move inside the directory `development/wsl`:
137139
cd ~/development/wsl/
138140
```
139141

140-
Using your preferred text editor, open `config.yml` and, under the `virtualhosts` key, enter the virtualhosts that you
141-
want to create, each on its own line.
142+
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.
142143

143144
Already existing ones will be skipped, no need to comment or remove them.
144145

@@ -155,16 +156,13 @@ This will iterate over the list of configured `virtualhosts` and will output a s
155156
Your virtualhost should be accessible and ready to use.
156157

157158
You will install your projects under the `/home/your-username/projects/` directory.
158-
The virtualhost's document root is set to the `public` directory of the above location, for example
159-
`/home/your-username/projects/example.local/public`.
159+
The virtualhost's document root is set to the `public` directory of the above location, for example `/home/your-username/projects/example.local/public`.
160160

161161
**Note**:
162162

163-
- In order to run your installed projects, you need to start Ubuntu 20 first.
163+
- To run your installed projects, you need to start Ubuntu 20 first.
164164
- If you work with virtualhosts, your projects are created under `/home/your-username/projects/`.
165165
- You can still run PHP scripts under the default Apache project directory, located at `/var/www/html/`.
166166
- If you encounter write permission issues, see [this guide](FAQ.md#how-do-i-fix-common-permission-issues).
167-
- Default version of PHP is set to 8.3. If you need a different version, see
168-
[this guide](FAQ.md#how-do-i-switch-between-php-versions).
169-
- We install NodeJS 22 by default. If you need a different version, see
170-
[this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-nodejs).
167+
- The default version of PHP is set to 8.3. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-between-php-versions).
168+
- We install Node.js 22 by default. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-nodejs).

0 commit comments

Comments
 (0)