### Getting Runelite Process ID (PID) - Bash Source: https://github.com/kompreya/runelite-sans-jagex-launcher/blob/main/README.md This command finds the process ID (PID) of the running Runelite instance. The PID is required to access the process's environment variables, which contain the necessary Jagex session credentials. ```Bash ps aux | grep runelite ``` -------------------------------- ### Extracting Jagex Environment Variables - Bash Source: https://github.com/kompreya/runelite-sans-jagex-launcher/blob/main/README.md Using the Runelite process ID (), this command reads the process's environment variables from /proc//environ, formats them by replacing null terminators with newlines, and filters for variables starting with 'JX_'. These variables hold the sensitive Jagex session credentials. ```Bash cat /proc//environ | tr '\0' '\n' | grep JX_ ``` -------------------------------- ### Launching Runelite with Jagex Credentials - Bash Source: https://github.com/kompreya/runelite-sans-jagex-launcher/blob/main/README.md This bash script sets the obtained Jagex environment variables, defines the Runelite repository path, builds the Java classpath from all JAR files in that directory, and executes the Java command to launch Runelite directly. Placeholders for credentials, paths, and JVM options need to be updated. ```Bash #!/bin/bash # Put the env variable values from step 3 here export JX_SESSION_ID= export JX_ACCESS_TOKEN= export JX_DISPLAY_NAME= export JX_CHARACTER_ID= export JX_REFRESH_TOKEN= # Put the path to .runelite/repository2 here RUNELITE_DIR="/path/to/.runelite/repository2" # This runs all the necessary jars RUNELITE_CLASSPATH=$(find "$RUNELITE_DIR" -name "*.jar" -printf "%p:") # Launches Runelite with the variables. Change the path after -XX:ErrorFile= to the path to your .runelite/logs/jvm_crash_pid_%p.log location /usr/lib/jvm/java-17-openjdk-amd64/bin/java -cp "$RUNELITE_CLASSPATH" -XX:+DisableAttachMechanism -Xmx768m -Xss2m -XX:CompileThreshold=1500 -Dsun.java2d.opengl=false -Drunelite.launcher.version=2.6.9 -XX:ErrorFile=/path/to/.runelite/logs/jvm_crash_pid_%p.log net.runelite.client.RuneLite ``` -------------------------------- ### Making Script Executable - Bash Source: https://github.com/kompreya/runelite-sans-jagex-launcher/blob/main/README.md This command uses `chmod` to add execute permissions (`+x`) to the created bash script located at `/path/to/your/script.sh`. This step is necessary to allow the script to be run directly from the terminal or a shortcut. ```Bash chmod +x /path/to/your/script.sh ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.