forked from 2009Scape/Server
Update 'Server Install'
parent
066beb309d
commit
99358eea85
1 changed files with 21 additions and 3 deletions
|
|
@ -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
|
||||
|
|
@ -22,3 +22,21 @@ sudo mysql
|
|||
alter user 'root'@'localhost' identified via mysql_native_password using '';
|
||||
exit
|
||||
```
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue