Both sides previous revisionPrevious revisionNext revision | Previous revision |
games:linux:2004scape_localhost [2025/01/15 17:03] – Sean Rhone | games:linux:2004scape_localhost [2025/01/22 00:09] (current) – [Server Update] Sean Rhone |
---|
| |
* [[https://www.youtube.com/watch?v=E21y7rLZaNc|Launcher Presentation Video]] | * [[https://www.youtube.com/watch?v=E21y7rLZaNc|Launcher Presentation Video]] |
* [[https://media.realmofespionage.xyz/index/category/1|Progress Pics]] | * [[https://media.realmofespionage.xyz/index/category/2|Progress Pics]] |
| |
===== Prerequisites ===== | ===== Prerequisites ===== |
cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/2004Scape-Server/src' && git clone --branch 'main' --depth '1' --recurse-submodules 'https://github.com/2004Scape/Server.git' ~/'Projects/2004Scape-Server/src' && sync | cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/2004Scape-Server/src' && git clone --branch 'main' --depth '1' --recurse-submodules 'https://github.com/2004Scape/Server.git' ~/'Projects/2004Scape-Server/src' && sync |
| |
===== World Map ===== | ===== Extras ===== |
| |
| ==== Icon ==== |
| |
| **** |
| |
| rm -f '/tmp/2004Scape-favicon.ico' && mkdir -p ~/'Projects/2004Scape-Server/ext' && wget -O '/tmp/2004Scape-favicon.ico' 'https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico' && mv -f '/tmp/2004Scape-favicon.ico' ~/'Projects/2004Scape-Server/ext/favicon.ico' |
| |
| ==== World Map ==== |
| |
* https://www.2004scape.org/img/rs2/worldmap/worldmap2.jpg | * https://2004.lostcity.rs/img/rs2/worldmap/worldmap2.jpg |
| |
rm -f '/tmp/2004Scape-worldmap2.jpg' && mkdir -p ~/'Projects/2004Scape-Server/ext' && wget -O '/tmp/2004Scape-worldmap2.jpg' 'https://2004scape.org/img/rs2/worldmap/worldmap2.jpg' && mv -f '/tmp/2004Scape-worldmap2.jpg' ~/'Projects/2004Scape-Server/ext/worldmap2.jpg' | rm -f '/tmp/2004Scape-worldmap2.jpg' && mkdir -p ~/'Projects/2004Scape-Server/ext' && wget -O '/tmp/2004Scape-worldmap2.jpg' 'https://2004.lostcity.rs/img/rs2/worldmap/worldmap2.jpg' && mv -f '/tmp/2004Scape-worldmap2.jpg' ~/'Projects/2004Scape-Server/ext/worldmap2.jpg' |
| |
====== Initial Build ====== | ====== Initial Build ====== |
====== Settings ====== | ====== Settings ====== |
| |
* https://github.com/2004Scape/Server/blob/main/.env.example | * [[https://github.com/2004Scape/Server/blob/main/.env.example|Upstream Settings]] |
* ''NODE_PORT=44594'' seems like an easy fix to simultaneously-host [[servers:linux:games:2009scape_localhost|2009Scape]] | * ''NODE_PORT=44594'' is an easy fix to simultaneously-host [[servers:linux:games:2009scape_localhost|2009Scape]] |
| |
nano ~/'Projects/2004Scape-Server/src/.env' | nano ~/'Projects/2004Scape-Server/src/.env' |
cd ~/'Projects/2004Scape-Server/src' | cd ~/'Projects/2004Scape-Server/src' |
npm run 'clean' | npm run 'clean' |
| npm 'ci' |
| |
notify-send -i ~/'Projects/2004Scape-Server/src/public/favicon.ico' '2004Scape localhost server update complete' | notify-send -i ~/'Projects/2004Scape-Server/ext/favicon.ico' '2004Scape localhost server update complete' |
| |
# End</code> | # End</code> |
#!/bin/bash | #!/bin/bash |
| |
tar -cvzf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2004Scape-Server-localhost-Saves.tar.gz' -C ~/'Projects/2004Scape-Server/src/data' 'players' | tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2004Scape-Server-localhost-Saves.tar.gz' -C ~/'Projects/2004Scape-Server/src/data' 'players' |
sync | sync |
notify-send -i ~/'Projects/2004Scape-Server/src/public/favicon.ico' '2004Scape Save Data Backed-up Successfully to Downloads' | notify-send -i ~/'Projects/2004Scape-Server/ext/favicon.ico' '2004Scape Save Data Backed-up Successfully to Downloads' |
| |
# End</code> | # End</code> |
Type=Application | Type=Application |
StartupNotify=false | StartupNotify=false |
Icon=/home/CHANGEME/Projects/2004Scape-Server/src/public/favicon.ico | Icon=/home/CHANGEME/Projects/2004Scape-Server/ext/favicon.ico |
Actions=Map;Server;Saves;Update;Notes; | Actions=Map;Server;Saves;Update;Notes; |
| |
StartupNotify=false | StartupNotify=false |
Exec='/bin/bash' -c "gio open ~/'Projects/2004Scape-Server/ext/worldmap2.jpg'" | Exec='/bin/bash' -c "gio open ~/'Projects/2004Scape-Server/ext/worldmap2.jpg'" |
Name=World map | Name=World Map |
| |
[Desktop Action Server] | [Desktop Action Server] |
* :!: Running ''npm run clean'' requires starting the server once afterwards with an internet connection to download packages to start the server for playing offline | * :!: Running ''npm run clean'' requires starting the server once afterwards with an internet connection to download packages to start the server for playing offline |
| |
git -C ~/'Projects/2004Scape-Server/src' reset --hard && git -C ~/'Projects/2004Scape-Server/src' pull origin 'main' --rebase && cd ~/'Projects/2004Scape-Server/src' && npm run 'clean' | git -C ~/'Projects/2004Scape-Server/src' reset --hard && git -C ~/'Projects/2004Scape-Server/src' pull origin 'main' --rebase && cd ~/'Projects/2004Scape-Server/src' && npm run 'clean' --verbose && npm 'ci' --verbose |
| |
~/'Projects/2004Scape-Server/scripts/localhost-server-update.sh' | ~/'Projects/2004Scape-Server/scripts/localhost-server-update.sh' |
===== World Map ===== | ===== World Map ===== |
| |
* https://2004scape.org/img/rs2/worldmap/worldmap2.jpg | * https://2004.lostcity.rs/img/rs2/worldmap/worldmap2.jpg |
| |
gio open ~/'Projects/2004Scape-Server/ext/worldmap2.jpg' | gio open ~/'Projects/2004Scape-Server/ext/worldmap2.jpg' |
| |
==== npm ==== | ===== npm ===== |
| |
cd ~/'Projects/2004Scape-Server/src' && npm run --verbose | cd ~/'Projects/2004Scape-Server/src' && npm run --verbose |
| |
cd ~/'Projects/2004Scape-Server/src' && npm run 'clean' --verbose | cd ~/'Projects/2004Scape-Server/src' && npm run 'clean' --verbose |
| |
| cd ~/'Projects/2004Scape-Server/src' && npm 'ci' --verbose |
| |
| ===== Git ===== |
| |
| git -C ~/'Projects/2004Scape-Server/src' fsck --full --strict |
| |
| git -C ~/'Projects/2004Scape-Server/src' gc --aggressive --prune='all' |
| |
===== File Manager ===== | ===== File Manager ===== |