Hacking Homebrew Tutorial
Updated
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.
If you need to run pegascape on a Ubuntu 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
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
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):
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:
on my system systemd-resolved was running so I had to stop it to be able to run integrated DNS
As we are using a specific version of NPN which is installed for the user not system wide, if you use the command
so you need to execute it with full path:
Now the PegaScape server is running self hosted
To close the PegaScape site, you type
Tested on a 4.1.0 console and works fine.
If you want to use caffeine is recommended to leave out the parameter
Remember there are another parameters to start.js:
If you need to run pegascape on a Ubuntu 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 https://raw.githubusercontent.com/creationix/nvm/master/install.sh | 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 https://www.github.com/noahc3/PegaScape
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" errorso 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
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).Attachments
Last edited by impeeza,