| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:linux:2004scape_localhost [2025/12/31 09:23] – [Server Update] Sean Rhone | games:linux:2004scape_localhost [2026/01/24 13:13] (current) – old revision restored (2026/01/04 11:33) Sean Rhone |
|---|
| tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2004Scape-localhost-Saves.tar.gz' -C ~/'Projects/LostCity-225-EngineTS/src/data/players' 'localhost' | tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2004Scape-localhost-Saves.tar.gz' -C ~/'Projects/LostCity-225-EngineTS/src/data/players' 'localhost' |
| |
| zenity --title '2004Scape Save Backup' --text 'Save Data Backed-up to Downloads' --icon ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' --timeout '1' --info | notify-send -t '2000' -i ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' '2004Scape Save Data Backed-up Successfully to Downloads' |
| |
| # End</code> | # End</code> |
| ===== Icon ===== | ===== Icon ===== |
| |
| * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico | * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico ([[https://drive.google.com/file/d/1T_v-_KVylhmrb7JKWElaYqhPiKbia8Jr/view?usp=sharing|mirror]]) |
| | * TODO: This can be placed somewhere else too to add it for browsers |
| |
| rm -f '/tmp/2004Scape-favicon.ico' && mkdir -p ~/'Projects/LostCity-225-EngineTS/ext' && wget -O '/tmp/2004Scape-favicon.ico' 'https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico' && sha384sum '/tmp/2004Scape-favicon.ico' | grep 'c70ef71357951b3c1895cf205746eb93959cf8031d1f83b6f43d8a9efbb272d79ed6b4a64fb1c39f6898ed56601bfc63' > '/dev/null' && mv -f '/tmp/2004Scape-favicon.ico' ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' && ls ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' | rm -f '/tmp/2004Scape-favicon.ico' && mkdir -p ~/'Projects/LostCity-225-EngineTS/ext' && wget -O '/tmp/2004Scape-favicon.ico' 'https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico' && sha384sum '/tmp/2004Scape-favicon.ico' | grep 'c70ef71357951b3c1895cf205746eb93959cf8031d1f83b6f43d8a9efbb272d79ed6b4a64fb1c39f6898ed56601bfc63' > '/dev/null' && mv -f '/tmp/2004Scape-favicon.ico' ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' && ls ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' |
| ===== Map ===== | ===== Map ===== |
| |
| * https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg | * https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg ([[https://drive.google.com/file/d/1V_nMvkDwE__dtokzG0xaytUwrqOtGKMO/view?usp=sharing|mirror]]) |
| |
| rm -f '/tmp/June_2004_Map.jpg' && mkdir -p ~/'Projects/LostCity-225-EngineTS/ext' && wget -O '/tmp/June_2004_Map.jpg' 'https://runescape.wiki/images/June_2004_Map.jpg?35d17' --user-agent='script' && sha384sum '/tmp/June_2004_Map.jpg' | grep 'abfdfe4597975addbb9d79d2cce2e56f0054f2742f351bd9dc700f55e91157e6c2142749f113927b027ed42efb8ad833' > '/dev/null' && mv -f '/tmp/June_2004_Map.jpg' ~/'Projects/LostCity-225-EngineTS/ext/June_2004_Map.jpg' && ls ~/'Projects/LostCity-225-EngineTS/ext/June_2004_Map.jpg' | rm -f '/tmp/June_2004_Map.jpg' && mkdir -p ~/'Projects/LostCity-225-EngineTS/ext' && wget -O '/tmp/June_2004_Map.jpg' 'https://runescape.wiki/images/June_2004_Map.jpg?35d17' --user-agent='script' && sha384sum '/tmp/June_2004_Map.jpg' | grep 'abfdfe4597975addbb9d79d2cce2e56f0054f2742f351bd9dc700f55e91157e6c2142749f113927b027ed42efb8ad833' > '/dev/null' && mv -f '/tmp/June_2004_Map.jpg' ~/'Projects/LostCity-225-EngineTS/ext/June_2004_Map.jpg' && ls ~/'Projects/LostCity-225-EngineTS/ext/June_2004_Map.jpg' |
| ==== Update Script ==== | ==== Update Script ==== |
| |
| * Above ''zenity'' line | * Above ''notify-send'' line |
| |
| nano ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-update.sh' | nano ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-update.sh' |
| <code> | <code> |
| # SC55_zzdenis_v0.5.sf2 | # SC55_zzdenis_v0.5.sf2 |
| |
| ln -s -f ~/'Projects/LostCity-225-EngineTS/ext/SC55_zzdenis_v0.5.sf2' ~/'Projects/LostCity-225-EngineTS/src/public/client/SCC1_Florestan.sf2' | ln -s -f ~/'Projects/LostCity-225-EngineTS/ext/SC55_zzdenis_v0.5.sf2' ~/'Projects/LostCity-225-EngineTS/src/public/client/SCC1_Florestan.sf2' |
| |
| # SF End</code> | # SF End</code> |
| |
| ==== Update Script ==== | ==== Update Script ==== |
| |
| * Above ''zenity'' line | * Above ''notify-send'' line |
| |
| nano ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-update.sh' | nano ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-update.sh' |
| <code> | <code> |
| # Login Autofill | # Login Autofill |
| |
| sed -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-225-EngineTS/src/public/client/client.js' | sed -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-225-EngineTS/src/public/client/client.js' |
| |
| # Autofill End</code> | # Autofill End</code> |
| |
| Name=2004Scape | Name=2004Scape |
| Categories=Game; | Categories=Game; |
| Exec='/bin/bash' -c "WEBKIT_DISABLE_COMPOSITING_MODE='1' '/usr/lib/x86_64-linux-gnu/webkit2gtk-4.1/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi'" | Exec='/bin/bash' -c "WEBKIT_DISABLE_COMPOSITING_MODE='1' '/usr/libexec/libwebkit2gtk-4_1-0/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi'" |
| Type=Application | Type=Application |
| StartupNotify=false | StartupNotify=false |
| |
| [Desktop Action Server] | [Desktop Action Server] |
| Exec='/bin/bash' -c "ptyxis --standalone --title='2004Scape [Server]' -- ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-start.sh'" | Exec='/bin/bash' -c "xfce4-terminal --minimize -T '2004Scape [Server]' -I ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' -e ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-start.sh'" |
| Name=Launch Local Server | Name=Launch Local Server |
| |
| |
| [Desktop Action Update] | [Desktop Action Update] |
| Exec='/bin/bash' -c "ptyxis --standalone --title='2004Scape [Updater]' -- ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-update.sh'" | Exec='/bin/bash' -c "xfce4-terminal -T '2004Scape [Updater]' -I ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' -e ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-update.sh'" |
| Name=Server Update | Name=Server Update |
| |
| |
| # End</code> | # End</code> |
| | |
| | xfce4-panel -r |
| |
| ====== Quick Commands ====== | ====== Quick Commands ====== |
| ===== MiniBrowser ===== | ===== MiniBrowser ===== |
| |
| apt search 'webkit2gtk' | * ''WEBKIT_DISABLE_COMPOSITING_MODE=1'' disables GPU acceleration and improves stability ((used to randomly crash on laptop battery)) |
| | |
| | zypper search 'minibrowser' |
| | |
| | sudo zypper install 'webkit2gtk3-minibrowser' |
| |
| sudo apt install 'libwebkit2gtk-4.1-0' | rpm -ql 'webkit2gtk3-minibrowser' |
| |
| dpkg-query -L 'libwebkit2gtk-4.1-0' | grep 'MiniBrowser' | ls '/usr/libexec/libwebkit'*'/MiniBrowser' |
| |
| WEBKIT_DISABLE_COMPOSITING_MODE='1' '/usr/lib/x86_64-linux-gnu/webkit2gtk-4.1/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi' | WEBKIT_DISABLE_COMPOSITING_MODE='1' '/usr/libexec/libwebkit2gtk-4_1-0/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi' |
| |