• Hey, guest user. Hope you're enjoying GameParadise! Have you considered registering for an account? Come join us and add your take to the daily discourse.

Building Pagascape from source to running Self Hosted mode.

 
 
Has been reports of the public PegaScape site suffering crashes and been offline, so I decided to create a Step by step tutorial about building the Pegascape Source and running it on Self Hosted mode.

Tried on Windows Using MSYS but no avail because NPM INSTALL for PegaScape Repo is not supported on Win32:
1710275505480.png


works on ANY OS but win32 !!


Then I created a Ubuntu Virtual Machine, open a Terminal window and run the commands:

you need Python 2 on the system, so installed python2 and created an alias to python

Bash:
sudo apt update
sudo apt install python2
alias python=/usr/bin/python2

Using the recommendation of @xradeon , installed the node and npm, 9.11.2 & 5.6.0 versions respectively (https://gbatemp.net/threads/pegascape-alternative.650182/post-10372685)

You need some base packages installed, curl to download the specific NPM version script, git to clone the repo, make and g++ to build the source
Bash:
sudo apt install curl git make g++
In order to use a specific NPM version, I followed the instructions on https://stackoverflow.com/questions...l-a-specific-version-of-node-on-ubuntu-debian (Answer 56):
Bash:
cd ~
curl [URL]https://raw.githubusercontent.com/creationix/nvm/master/install.sh[/URL] | bash
source ~/.nvm/nvm.sh
nvm install 9.11.2
node --version
npm --version

As instructed by the README.MD on the original repo: https://github.com/noahc3/PegaScape#self-hosting
after install NodeJS & NPM, executed the next commands to clone the repo and build using NPM:
Bash:
cd ~
git clone [URL]https://www.github.com/noahc3/PegaScape[/URL]
cd ~/PegaScape/
npm install
on my system systemd-resolved was running so I had to stop it to be able to run integrated DNS
Bash:
sudo systemctl stop systemd-resolved
As we are using a specific version of NPN which is installed for the user not system wide, if you use the command
sudo node
you get the "command not found" error
1710276002266.png


so you need to execute it with full path:
Bash:
sudo /home/impeeza/.nvm/versions/node/v9.11.2/bin/node start.js --webapplet
Now the PegaScape server is running self hosted
1710276011922.png



To close the PegaScape site, you type
.exit
and press [ENTER]


Tested on a 4.1.0 console and works fine.

If you want to use caffeine is recommended to leave out the parameter
--webapplet
since that one is for fake news and might cause the problem using caffeine.


Remember there are another parameters to start.js:

--webapplet:
To enable fake internet, allowing the Switch to pass the connection test and load things like Fake News.


--ip <html_server_ip_override>
if the detected IP address for the HTML server is not preffered.


--host <dns_server_ip_override>
if the detected IP address for the DNS server is not preffered.


--disable-dns
if you want to disable the internal DNS server and use something else (dnsmasq, bind, etc).
About author
admin
Avid gamer.

Comments

There are no comments to display.
 

Nintendo Switch information

Author
Chad Waliser
Article read time
2 min read
Views
302
Last update

More in Nintendo Switch

More from Chad Waliser

Share this nintendo switch

Back
Top