# 利用 Podman 安裝 Geine-Server # Git 安裝 ``` sudo apt-get update sudo apt-get install git-all git version ``` # Podman 安裝教學 此安裝方式僅限於 Ubuntu 20.04 :+1: ``` . /etc/os-release echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add - ``` ``` sudo apt update sudo apt -y install podman ``` ``` podman --version ``` ## Node.js 版本管理和安裝 如果 Ubuntu 是新建立的請輸入以下指令安裝 curl,如果已經裝過可以跳過 ``` sudo apt install curl ``` 要安裝或更新nvm的安裝腳本 ``` curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash ``` 源代碼行添加到正確的配置文件 ``` 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 ``` 安裝 node 18.12.1 ``` nvm install v18.12.1 ``` 檢查版本是否正確 ``` node -v ``` npm 安裝(./install_components.sh 需要) ``` sudo apt-get install npm ``` 更新 npm ``` npm install latest ``` ``` npm audit fix ``` ``` npm install -g npm@9.6.4 npm audit fix npm audit fix --force ``` 其他安裝方式請參考 : https://computingforgeeks.com/how-to-install-podman-on-ubuntu/ # Genie Server ``` git clone https://github.com/stanford-oval/genie-server.git ``` 官網給的指令要把":"刪除 ``` podman run --name genie -p 3000:3000 \ -v /dev/shm:/dev/shm \ -v $XDG_RUNTIME_DIR/pulse:/run/pulse \ -e PULSE_SERVER=unix:/run/pulse/native \ -v $XDG_CONFIG_HOME/genie-server/var/lib/genie-server \ --security-opt label=disable \ docker.io/stanfordoval/almond-server ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up