Created
June 6, 2019 13:18
-
-
Save ndvo/751a2111b5b9d2d925d862d43aa826b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/scripts/android.sh | |
nvm use node | |
sudo update-alternatives --config java | |
export JAVA_HOME=$(update-alternatives --query javac | sed -n -e 's/Best: *\(.*\)\/bin\/javac/\1/p') | |
export J2REDIR='' | |
export J2SDKDIR='' | |
source ~/scripts/fixjava.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "To use puppeteer you'll need node 10+, a CHROME_DEVEL_SANDBOX environment variable and authorization for non priviledged users to clone processes (i guess...)"; | |
echo "... you are now using node version "$(node -v); | |
echo "... setting up the environment variable"; | |
export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome_sandbox | |
echo "CHROME_DEVEL_SANDBOX set to "$CHROME_DEVEL_SANDBOX; | |
echo "... allowing non-priviledged users to clone (sudo needed):"; | |
sudo echo 1 > /proc/sys/kernel/unprivileged_userns_clone; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment