diff --git a/Server-Install.md b/Server-Install.md index 967822a..5276979 100644 --- a/Server-Install.md +++ b/Server-Install.md @@ -1,7 +1,7 @@ These instructions are for Debian Linux. If you want to run on another OS, you'll have to figure it out. -Install dependencies: +### Install dependencies: ``` sudo apt-get install openjdk-11-jdk @@ -13,7 +13,7 @@ sudo git lfs pull ``` -Setting up the user database: +### Setting up the user database: ``` sudo apt install mariadb-server cd Server/db_exports @@ -21,4 +21,22 @@ sudo mysql source global.sql alter user 'root'@'localhost' identified via mysql_native_password using ''; exit -``` \ No newline at end of file +``` +global.sql sets up the database tables. For some reason, the default root creds cause permission issues. Th "alter user" command resets the password to null. + +Edit Server/db_exports/global.sql, and comment out the first line that creates the database (If I tried removing the database before starting, it would not recognize the automatically created database). +``` +sudo mysql -u root -p global < Server/db_exports/global.sql +sudo reboot +``` + + +### IntelliJ download (requires desktop environment). +Not required to run the server, only required for dev. I haven't actually needed to use this yet, but here are the instructions regardless. +``` +sudo apt install xfce4 +wget https://download.jetbrains.com/idea/ideaIC-2023.3.3.tar.gz +tar -xzf ideaIC-2023.3.3.tar.gz +sudo chmod 777 /runescape -R +``` +Log in to graphical interface and open idea-IC-233.14015.106//bin/idea.sh