@@ -50,103 +50,3 @@ passwd: all authentication tokens updated successfully.
5050Installation 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.
0 commit comments