User Tools

Site Tools


games:linux:2004scape_localhost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
games:linux:2004scape_localhost [2025/01/17 16:01] – [Media] Sean Rhonegames:linux:2004scape_localhost [2025/01/22 00:09] (current) – [Server Update] Sean Rhone
Line 39: Line 39:
   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 ======
Line 53: Line 61:
 ====== 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'
Line 98: Line 106:
 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>
Line 112: Line 121:
 #!/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>
Line 131: Line 140:
 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;
  
Line 137: Line 146:
 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]
Line 180: Line 189:
   * :!: 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'
Line 194: Line 203:
 ===== 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 =====
C:/www/wiki/data/attic/games/linux/2004scape_localhost.1737147680.txt.gz · Last modified: by Sean Rhone