DanBot-Hosting / Pterodactyl-Eggs

Repository of all the Pterodactyl eggs and docker images we (DanBot Hosting) have created for use.
MIT License
48 stars 26 forks source link

Change language version #13

Closed ririko5834 closed 2 years ago

ririko5834 commented 2 years ago

There should be guide or script to change nodejs, python, etc. version.

ririko5834 commented 2 years ago

I tried to change nodejs version but it isnt possible, root is missing.

image

djohts commented 2 years ago

use nvm

ririko5834 commented 2 years ago

Tell exactly how

djohts commented 2 years ago

image

djohts commented 2 years ago

to install it just google how to do so, it should work. tested.

DEV-DIBSTER commented 2 years ago

For NodeJS you can change it with nvm.

For python you have python which is 2.7.16, python 3 which is 3.7.3, and python 3.10.0

Others you can't change versions iirc.

ririko5834 commented 2 years ago

image

Its for vps, not docker container with this egg, there isn't nvm bash: nvm: command not found

djohts commented 2 years ago

hidden

Its for vps, not docker container with this egg, there isn't nvm bash: nvm: command not found

because you need to install it?

DEV-DIBSTER commented 2 years ago

You curl it's source code, run a couple commands and have it installed on your docker server.

djohts commented 2 years ago

You curl it's source code, run a couple commands and have it installed on your docker server.

actually you can run just 2 commands. curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash

Darker-Ink commented 2 years ago

Note This only works on the AIO egg

1) Run curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash 2) Make a new file called .bashrc 3) Add export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm to the file 4) restart the server 5) use nvm install <version>

Boom you should now have nvm and a custom Nodejs Version installed.

Every time you restart the server you will have to do nvm use <version>