40 lines
1.2 KiB
Bash
Executable File
40 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# upgrade opencode
|
|
sudo npm install -g opencode-ai
|
|
|
|
# # Add Docker's official GPG key:
|
|
# sudo apt update
|
|
# sudo apt install ca-certificates curl
|
|
# sudo install -m 0755 -d /etc/apt/keyrings
|
|
# sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
|
# sudo chmod a+r /etc/apt/keyrings/docker.asc
|
|
|
|
# # Add the repository to Apt sources:
|
|
# sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
|
|
# Types: deb
|
|
# URIs: https://download.docker.com/linux/debian
|
|
# Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
|
|
# Components: stable
|
|
# Architectures: $(dpkg --print-architecture)
|
|
# Signed-By: /etc/apt/keyrings/docker.asc
|
|
# EOF
|
|
|
|
# # install docker
|
|
# sudo apt-get update
|
|
# sudo apt-get install docker.io docker-compose-plugin -y
|
|
|
|
# install playwright with firefox
|
|
# sudo npx -y @playwright/mcp@latest install-browser firefox --with-deps
|
|
|
|
# install tea
|
|
sudo wget https://dl.gitea.com/tea/main/tea-main-linux-amd64 -O /usr/bin/tea
|
|
sudo chmod +x /usr/bin/tea
|
|
tea login add --url https://git.cleverthis.com --token $FORGEJO_PAT
|
|
tea login default git.cleverthis.com
|
|
|
|
# launch opencode
|
|
opencode
|
|
|
|
# in case opencode just crashed, launch zsh
|
|
zsh |