adbrasi commited on
Commit
7c64679
·
verified ·
1 Parent(s): d54e94f

Upload install_musubi_updated.sh

Browse files
Files changed (1) hide show
  1. install_musubi_updated.sh +6 -1
install_musubi_updated.sh CHANGED
@@ -10,7 +10,12 @@ echo "INFO: Instalando Jupyter Notebook..."
10
  pip install jupyter notebook
11
 
12
  echo "INFO: Instalando code-server (VS Code)..."
13
- wget -qO- https://code-server.dev/install.sh | sh
 
 
 
 
 
14
 
15
  echo "INFO: Iniciando Jupyter Notebook na porta 8888..."
16
  nohup jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root --no-browser > jupyter.log 2>&1 &
 
10
  pip install jupyter notebook
11
 
12
  echo "INFO: Instalando code-server (VS Code)..."
13
+ # Método alternativo mais robusto
14
+ VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
15
+ wget -O code-server.tar.gz "https://github.com/coder/code-server/releases/download/${VERSION}/code-server-${VERSION#v}-linux-amd64.tar.gz"
16
+ tar -xzf code-server.tar.gz
17
+ sudo mv code-server-${VERSION#v}-linux-amd64/bin/code-server /usr/local/bin/
18
+ rm -rf code-server* || true
19
 
20
  echo "INFO: Iniciando Jupyter Notebook na porta 8888..."
21
  nohup jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root --no-browser > jupyter.log 2>&1 &