Froggo rAthena Installer [WSL Edition]
This script automates the installation and configuration of rAthena on Windows Subsystem for Linux 2 (Debian). It simplifies the process by handling WSL installation, rAthena WSL image download and extraction, and shortcut creation.
Features:
Automated WSL Installation: The script checks for and installs WSL2 if needed.
rAthena Image Download and Extraction: Downloads and imports a WSL Debian based image
Shortcut Creation: Convenient desktop and Start Menu shortcuts for accessing your rAthena instance.
Pre-configured Credentials: Default credentials are provided for easy initial access (remember to change these for security!).
Prerequisites:
Windows 10 or 11
VirtualMachinePlatform (Windows Optional Feature)
Windows Subsystem Linux (Windows Optional Feature)
Administrator privileges.
Installation:
Open PowerShell as administrator.
Run the following command:
Invoke-Expression "& { $(Invoke-WebRequest -UseBasicParsing 'https://gitlab.com/SapitoSucio/froggo-rathena-installer/-/raw/main/WSL/rathena_wsl_image_installer.ps1?ref_type=heads&inline=false') }"
(You can and should review the script's code before executing: View Code )
Default Credentials:
Debian User: froggo
Debian Password: froggo
Databases: rathenadb and rathenalog
MariaDB (MySQL):
mysql_server_id: ragnarok
mysql_server_pw: ragnarok
Interserver Communication:
userid: froggos1
passwd: froggop1
In-Game Admin Account:
username: test
password: test
Recommended Development Setup:
Use VS Code with the Remote - WSL extension for a seamless development experience. Suggested extensions:
C++ Extension Pack
Remote WSL
Git Extension
Essential Commands:
Compiling:
./configure
make clean
make server -j$(nproc)
Start/Restart rAthena: (from the rathena directory)
./athena-start restart
Connect to MariaDB (MySQL):
sudo mysql -u root
# OR
sudo mysql -u ragnarok -p
Bonus: Tmux Integration
Tmux is pre-installed for enhanced session management. Key commands:
Starting and Managing Sessions:
tmux: Start a new session
tmux new -s <session-name>: Start a named session
tmux ls: List sessions
tmux a -t <session-name>: Attach to a session
tmux kill-session -t <session-name>: Kill a session
tmux kill-server: Kill all sessions
In-Session Controls:
Ctrl-b d: Detach from session
Ctrl-b s: Switch sessions
Ctrl-b $: Rename session
Youtube Video: