8989 </ a >
9090 </ li >
9191
92+ < li class ="dropdown-item bg-light ">
93+ < a href ="https://docs.dotkernel.org/development/ " class ="nav-link d-flex gap-4 align-items-center ">
94+ < img alt ="DotKernel Logo " class ="d-inline-block align-text-top " height ="50 " src ="https://docs.dotkernel.org/img/dk_logomark.svg " width ="45 " />
95+ < div >
96+ < span class ="fw-bold d-block "> Development</ span >
97+ < span > WSL2 Development Environment</ span >
98+ </ div >
99+ </ a >
100+ </ li >
101+
92102 </ ul >
93103 </ div >
94104 </ div >
@@ -207,6 +217,12 @@ <h5 class="subnavigation__title">Table of Contents</h5>
207217</ li >
208218
209219
220+
221+ < li class ="subnavigation__list-item ">
222+ < a href ="../setup-packages/ " class ="subnavigation__link "> Setup Packages</ a >
223+ </ li >
224+
225+
210226 </ ul >
211227</ li >
212228
@@ -289,14 +305,6 @@ <h6 class="toc__headline">On this page</h6>
289305 < a href ="#install-almalinux-9 " class ="toc__link nav-link "> Install AlmaLinux 9</ a >
290306 </ li >
291307
292- < li class ="toc__entry ">
293- < a href ="#setup-the-packages-in-almalinux-9 " class ="toc__link nav-link "> Setup the packages in AlmaLinux 9</ a >
294- </ li >
295-
296- < li class ="toc__entry ">
297- < a href ="#running-almalinux-9 " class ="toc__link nav-link "> Running AlmaLinux 9</ a >
298- </ li >
299-
300308 </ ul >
301309 </ div >
302310
@@ -342,52 +350,6 @@ <h2 id="install-almalinux-9">Install AlmaLinux 9</h2>
342350< pre class ="highlight "> < code class ="language-text "> passwd: all authentication tokens updated successfully.
343351Installation successful!
344352[dotkernel@hostname:~]$</ code > </ pre >
345- < h2 id ="setup-the-packages-in-almalinux-9 "> Setup the packages in AlmaLinux 9</ h2 >
346- < p > Install requirements:</ p >
347- < pre class ="highlight "> < code class ="language-shell "> sudo dnf install epel-release dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm -y</ code > </ pre >
348- < p > Update/Upgrade system packages:</ p >
349- < pre class ="highlight "> < code class ="language-shell "> sudo dnf upgrade -y</ code > </ pre >
350- < p > Now, install the latest version of < strong > Ansible</ strong > :</ p >
351- < pre class ="highlight "> < code class ="language-shell "> sudo dnf install ansible -y</ code > </ pre >
352- < p > Clone < code > dotkernel/development</ code > into your home directory:</ p >
353- < pre class ="highlight "> < code class ="language-shell "> git clone https://github.com/dotkernel/development.git</ code > </ pre >
354- < p > Move inside the directory < code > development/wsl</ code > :</ p >
355- < pre class ="highlight "> < code class ="language-shell "> cd ~/development/wsl/</ code > </ pre >
356- < p > Using your preferred text editor, open < code > config.yml</ code > where you must fill in the empty fields.</ p >
357- < p > Save and close the file.</ p >
358- < p > Install requirements and initialize systemd by running the below Ansible command:</ p >
359- < pre class ="highlight "> < code class ="language-shell "> ansible-playbook -i hosts install.yml --ask-become-pass</ code > </ pre >
360- < p > The installation process will ask for your password (set during the installation process) and will iterate over each
361- task in the playbook and will output a short summary with the results.</ p >
362- < p > At this step, < strong > AlmaLinux 9</ strong > needs to be restarted - quit it by pressing < code > Control</ code > + < code > d</ code > .</ p >
363- < p > Open < code > Windows Terminal</ code > .</ p >
364- < p > Stop < strong > AlmaLinux 9</ strong > :</ p >
365- < pre class ="highlight "> < code class ="language-shell "> wsl -t AlmaLinux9</ code > </ pre >
366- < p > Start < strong > AlmaLinux 9</ strong > :</ p >
367- < pre class ="highlight "> < code class ="language-shell "> wsl -d AlmaLinux9</ code > </ pre >
368- < p > Move inside the directory < code > development/wsl</ code > :</ p >
369- < pre class ="highlight "> < code class ="language-shell "> cd ~/development/wsl/</ code > </ pre >
370- < p > Continue installation by running the below Ansible command:</ p >
371- < pre class ="highlight "> < code class ="language-shell "> ansible-playbook -i hosts install.yml --ask-become-pass</ code > </ pre >
372- < p > The installation process will ask for your password (set during the installation process) and will iterate over each
373- task in the playbook and will output a short summary with the results.</ p >
374- < p > Now check if everything works by opening in your browser:</ p >
375- < ul >
376- < li > < a href ="http://localhost/ "> http://localhost/</ a > - Apache's default home page</ li >
377- < li > < a href ="http://localhost/info.php "> http://localhost/info.php</ a > - PHP info page</ li >
378- < li > < a href ="http://localhost/phpmyadmin/ "> http://localhost/phpmyadmin/</ a > - PhpMyAdmin (login with < code > root</ code > + the root password you
379- configured in < code > config.yml</ code > under < code > mariadb</ code > -> < code > root_password</ code > )</ li >
380- </ ul >
381- < p > The installation is complete, your < strong > AlmaLinux 9</ strong > development environment is ready to use.</ p >
382- < h2 id ="running-almalinux-9 "> Running AlmaLinux 9</ h2 >
383- < p > Open < code > Windows Terminal</ code > .</ p >
384- < p > Start < strong > AlmaLinux 9</ strong > :</ p >
385- < pre class ="highlight "> < code class ="language-shell "> wsl -d AlmaLinux9</ code > </ pre >
386- < h3 id ="note "> Note</ h3 >
387- < blockquote >
388- < p > In order to run your applications using WSL2, you always need to be connected to your AlmaLinux9 distribution.
389- For this, all you need to do is to keep open an instance of Windows Terminal that is connected to it.</ p >
390- </ blockquote >
391353
392354
393355
@@ -408,9 +370,9 @@ <h3 id="note">Note</h3>
408370
409371 < li class ="page-nav__item ">
410372
411- < a rel ="next " class ="page-nav__link page-nav__link--next " href ="../../virtualhosts/overview / ">
373+ < a rel ="next " class ="page-nav__link page-nav__link--next " href ="../setup-packages / ">
412374 < small class ="page-nav__label "> Next</ small >
413- Overview
375+ Setup Packages
414376 < i class ="bi bi-chevron-right "> </ i >
415377 </ a >
416378
0 commit comments