|
|
| * '''''ssh into the server''''' - <code> ssh root@your.server.ip </code> If you are on Windows, you can just click '''Launch LISH Console''' from the server page on the Linode website. | | * '''''ssh into the server''''' - <code> ssh root@your.server.ip </code> If you are on Windows, you can just click '''Launch LISH Console''' from the server page on the Linode website. |
| * '''''Run the following commands''''' - Wait for each command to finish before moving to the next one. you may be prompted to press y if you forget the -y flag | | * '''''Run the following commands''''' - Wait for each command to finish before moving to the next one. you may be prompted to press y if you forget the -y flag |
| * '''''Update your system''''' - <code> apt update && apt full-upgrade -y </code> | | * '''''Update your system''''' - <code> apt update </code> |
| | * '''''Upgrade your system (optional)''''' - <code> apt full-upgrade -y </code> |
| * '''''Create necesse user''''' - <code> useradd -m necesse </code> | | * '''''Create necesse user''''' - <code> useradd -m necesse </code> |
| * '''''Create user password''''' <code> passwd necesse </code> enter password twice | | * '''''Create user password''''' <code> passwd necesse </code> enter password twice |
|
|
| * '''''Reboot the server''''' - <code> reboot </code> wait a few minutes after this before doing the next step | | * '''''Reboot the server''''' - <code> reboot </code> wait a few minutes after this before doing the next step |
| * '''''ssh into the server as new user''''' - <code> ssh necesse@your.server.ip </code> | | * '''''ssh into the server as new user''''' - <code> ssh necesse@your.server.ip </code> |
| * '''''Install some ''Necesse''ities''''' - <code> sudo apt install tmux ufw unzip openjdk-11-jdk -y </code> | | * '''''Install some ''Necesse''ities''''' - <code> sudo apt install tmux ufw unzip -y </code> |
| * '''''Start a tmux session''''' - <code> sudo tmux </code> | | * '''''Start a tmux session''''' - <code> tmux </code> |
| * '''''Download the Necesse Server files''''' - <code> sudo wget LINK-TO-ZIP-FILE </code> (url may change over time. please make sure to get the latest link from https://necessegame.com/server/ ) | | * '''''Download the Necesse Server files''''' - <code> wget LINK-TO-ZIP-FILE -O nec-server.zip </code> (url may change over time. please make sure to get the latest link from https://necessegame.com/server/ ) |
| * '''''Extract the contents''''' - <code> sudo unzip necesse-server-linux64-XXXX.zip </code> (<-- please use tab completion here as the file name may vary. Also make sure you are running this on the ZIP FILE and not the extracted directory) | | * '''''Extract the contents''''' - <code> unzip nec-server.zip </code> |
| * '''''Remove zip folder''''' - <code> sudo rm necesse-server-linux64-XXXX.zip </code> (<-- please use tab completion here as the file name may vary. Also make sure you are running this on the ZIP FILE and not the extracted directory) | | * '''''Remove zip folder''''' - <code> rm nec-server.zip </code> |
| * '''''Open port 14159''''' - <code> sudo netstat -na | grep :14159 </code>
| |
| * '''''Allow ssh through firewall''''' - <code> sudo ufw allow ssh </code> | | * '''''Allow ssh through firewall''''' - <code> sudo ufw allow ssh </code> |
| * '''''Allow port 14159 through firewall''''' - <code> sudo ufw allow 14159 </code> | | * '''''Allow port 14159 through firewall''''' - <code> sudo ufw allow 14159 </code> |
| * '''''Enable firewall''''' - <code> sudo ufw enable </code> | | * '''''Enable firewall''''' - <code> sudo ufw enable </code> |
| * '''''Navigate into the parent directory of the StartServer file''''' - <code> cd /necesse-server-linux64-XXXX </code> | | * '''''Navigate into the parent directory of the StartServer file''''' - <code> cd /necesse-server-XXXX </code> |
| * '''''Give yourself full permission to the java runtime environment''''' - <code> sudo chmod -R g+rwxs ./jre </code> | | * '''''Give yourself full permission to the java runtime environment''''' - <code> chmod +x ./jre/bin/java </code> |
| * '''''Run it!''''' - <code> sudo sh StartServer-nogui.sh </code> | | * '''''Run it!''''' - <code> sh StartServer-nogui.sh </code> |
| * '''''Follow the prompts!''''' Visit [[Multiplayer]] for those directions. | | * '''''Follow the prompts!''''' Visit [[Multiplayer]] for those directions. |
| * '''''Detach from tmux session''''' - press CTRL+b then press d ''Note: tmux is what keeps the server session running in the background after you disconnect from the server'' | | * '''''Detach from tmux session''''' - press CTRL+b then press d ''Note: tmux is what keeps the server session running in the background after you disconnect from the server'' |
|
|
| * CTRL+b d | | * CTRL+b d |
| * <code> exit </code> | | * <code> exit </code> |
| | |
| | == Useful Tips == |
| | * '''''List tmux session''''' - <code> tmux list-sessions </code> |
| | * '''''Restore (re-attach) tmux session''''' - <code> tmux attach -t 0 </code> |
| | * '''''Check server log''''' - <code> cat ~/.config/Necesse/latest-server-log.txt </code> |