The below instructions are working for virtual servers too.
Update/Upgrade system packages:
sudo dnf upgrade -yYou 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).
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
For security reasons, the password you type will not be visible.
[sudo] password for dotkernel:
Input your AlmaLinux 10 password and hit Enter.
Install system packages:
sudo dnf install epel-release dnf-utils https://rpms.remirepo.net/enterprise/remi-release-$(rpm -E %almalinux).rpm -yNow, install the latest version of Ansible Core and run ansible-galaxy to install collections:
sudo dnf install ansible-core -yansible-galaxy collection install community.general community.mysqlMove inside your home directory (it is /home/ followed by your AlmaLinux 10 username, for example: /home/dotkernel):
cd ~Clone the alma-linux-10 branch of the dotkernel/development repository:
git clone --branch alma-linux-10 --single-branch https://github.com/dotkernel/development.gitMove inside the directory development/wsl:
cd development/wsl/Duplicate config.yml.dist as config.yml:
cp config.yml.dist config.ymlUsing your preferred text editor, open config.yml and fill in the empty fields.
Save and close the file.
Install components by running the below Ansible command:
ansible-playbook -i hosts install.yml --ask-become-passThe installation process will ask for your AlmaLinux 10 password, then iterate over each task in the playbook and output a short summary with the results.
Once finished, check if everything works by opening in your browser:
If you are not using WSL 2, test the below using your server's IP address instead of
localhost.
- http://localhost/: Apache's default home page
- http://localhost/info.php: PHP info page
- http://localhost/phpmyadmin/: PhpMyAdmin (login with
root+ the root password you configured inconfig.ymlundermariadb->root_password)
The installation is complete, your AlmaLinux 10 development environment is ready to use.
If you are using WSL 2, restart your
Windows Terminalto find a new option in the tab selector, called AlmaLinux-10; clicking it will open a new tab connected to AlmaLinux 10.