Skip to content

Commit fe5af30

Browse files
committed
Create separate page for setup packages instructions
1 parent ffae005 commit fe5af30

File tree

3 files changed

+100
-100
lines changed

3 files changed

+100
-100
lines changed

docs/book/v1/setup/installation.md

Lines changed: 0 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -50,103 +50,3 @@ passwd: all authentication tokens updated successfully.
5050
Installation successful!
5151
[dotkernel@hostname:~]$
5252
```
53-
54-
## Setup the packages in AlmaLinux 9
55-
56-
Install requirements:
57-
58-
```shell
59-
sudo dnf install epel-release dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm -y
60-
```
61-
62-
Update/Upgrade system packages:
63-
64-
```shell
65-
sudo dnf upgrade -y
66-
```
67-
68-
Now, install the latest version of **Ansible**:
69-
70-
```shell
71-
sudo dnf install ansible -y
72-
```
73-
74-
Clone `dotkernel/development` into your home directory:
75-
76-
```shell
77-
git clone https://github.com/dotkernel/development.git
78-
```
79-
80-
Move inside the directory `development/wsl`:
81-
82-
```shell
83-
cd ~/development/wsl/
84-
```
85-
86-
Using your preferred text editor, open `config.yml` where you must fill in the empty fields.
87-
88-
Save and close the file.
89-
90-
Install requirements and initialize systemd by running the below Ansible command:
91-
92-
```shell
93-
ansible-playbook -i hosts install.yml --ask-become-pass
94-
```
95-
96-
The installation process will ask for your password (set during the installation process) and will iterate over each
97-
task in the playbook and will output a short summary with the results.
98-
99-
At this step, **AlmaLinux 9** needs to be restarted - quit it by pressing `Control` + `d`.
100-
101-
Open `Windows Terminal`.
102-
103-
Stop **AlmaLinux 9**:
104-
105-
```shell
106-
wsl -t AlmaLinux9
107-
```
108-
109-
Start **AlmaLinux 9**:
110-
111-
```shell
112-
wsl -d AlmaLinux9
113-
```
114-
115-
Move inside the directory `development/wsl`:
116-
117-
```shell
118-
cd ~/development/wsl/
119-
```
120-
121-
Continue installation by running the below Ansible command:
122-
123-
```shell
124-
ansible-playbook -i hosts install.yml --ask-become-pass
125-
```
126-
127-
The installation process will ask for your password (set during the installation process) and will iterate over each
128-
task in the playbook and will output a short summary with the results.
129-
130-
Now check if everything works by opening in your browser:
131-
132-
- [http://localhost/](http://localhost/) - Apache's default home page
133-
- [http://localhost/info.php](http://localhost/info.php) - PHP info page
134-
- [http://localhost/phpmyadmin/](http://localhost/phpmyadmin/) - PhpMyAdmin (login with `root` + the root password you
135-
configured in `config.yml` under `mariadb` -> `root_password`)
136-
137-
The installation is complete, your **AlmaLinux 9** development environment is ready to use.
138-
139-
## Running AlmaLinux 9
140-
141-
Open `Windows Terminal`.
142-
143-
Start **AlmaLinux 9**:
144-
145-
```shell
146-
wsl -d AlmaLinux9
147-
```
148-
149-
### Note
150-
151-
> In order to run your applications using WSL2, you always need to be connected to your AlmaLinux9 distribution.
152-
> For this, all you need to do is to keep open an instance of Windows Terminal that is connected to it.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Setup the packages in AlmaLinux 9
2+
3+
Install requirements:
4+
5+
```shell
6+
sudo dnf install epel-release dnf-utils https://rpms.remirepo.net/enterprise/remi-release-9.rpm -y
7+
```
8+
9+
Update/Upgrade system packages:
10+
11+
```shell
12+
sudo dnf upgrade -y
13+
```
14+
15+
Now, install the latest version of **Ansible**:
16+
17+
```shell
18+
sudo dnf install ansible -y
19+
```
20+
21+
Clone `dotkernel/development` into your home directory:
22+
23+
```shell
24+
git clone https://github.com/dotkernel/development.git
25+
```
26+
27+
Move inside the directory `development/wsl`:
28+
29+
```shell
30+
cd ~/development/wsl/
31+
```
32+
33+
Using your preferred text editor, open `config.yml` where you must fill in the empty fields.
34+
35+
Save and close the file.
36+
37+
Install requirements and initialize systemd by running the below Ansible command:
38+
39+
```shell
40+
ansible-playbook -i hosts install.yml --ask-become-pass
41+
```
42+
43+
The installation process will ask for your password (set during the installation process) and will iterate over each
44+
task in the playbook and will output a short summary with the results.
45+
46+
At this step, **AlmaLinux 9** needs to be restarted - quit it by pressing `Control` + `d`.
47+
48+
Open `Windows Terminal`.
49+
50+
Stop **AlmaLinux 9**:
51+
52+
```shell
53+
wsl -t AlmaLinux9
54+
```
55+
56+
Start **AlmaLinux 9**:
57+
58+
```shell
59+
wsl -d AlmaLinux9
60+
```
61+
62+
Move inside the directory `development/wsl`:
63+
64+
```shell
65+
cd ~/development/wsl/
66+
```
67+
68+
Continue installation by running the below Ansible command:
69+
70+
```shell
71+
ansible-playbook -i hosts install.yml --ask-become-pass
72+
```
73+
74+
The installation process will ask for your password (set during the installation process) and will iterate over each
75+
task in the playbook and will output a short summary with the results.
76+
77+
Now check if everything works by opening in your browser:
78+
79+
- [http://localhost/](http://localhost/) - Apache's default home page
80+
- [http://localhost/info.php](http://localhost/info.php) - PHP info page
81+
- [http://localhost/phpmyadmin/](http://localhost/phpmyadmin/) - PhpMyAdmin (login with `root` + the root password you
82+
configured in `config.yml` under `mariadb` -> `root_password`)
83+
84+
The installation is complete, your **AlmaLinux 9** development environment is ready to use.
85+
86+
## Running AlmaLinux 9
87+
88+
Open `Windows Terminal`.
89+
90+
Start **AlmaLinux 9**:
91+
92+
```shell
93+
wsl -d AlmaLinux9
94+
```
95+
96+
### Note
97+
98+
> In order to run your applications using WSL2, you always need to be connected to your AlmaLinux9 distribution.
99+
> For this, all you need to do is to keep open an instance of Windows Terminal that is connected to it.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ nav:
1212
- Setup:
1313
- System Requirements: v1/setup/system-requirements.md
1414
- Installation: v1/setup/installation.md
15+
- Setup Packages: v1/setup/setup-packages.md
1516
- Virtualhosts:
1617
- Overview: v1/virtualhosts/overview.md
1718
- Create virtualhost: v1/virtualhosts/create-virtualhost.md

0 commit comments

Comments
 (0)