4 Star 8 Fork 4

爱折腾智能机器人/commands

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install_rmf_web_humble.sh 2.37 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
################################################
# Function : Install ROS2 humble RMF-web 22.04 source version
# Desc : 用于源码方式安装RMF-WEB 22.04/humble版的脚本
# Website : https://www.ncnynl.com/archives/202212/5775.html
# Platform : ubuntu
# Version : 1.0
# Date : 2022-07-06 18:22:04
# Author : ncnynl
# Contact : 1043931@qq.com
# URL: https://ncnynl.com
# Licnese: MIT
# QQ Qun: 创客智造B群:926779095
# QQ Qun: 创客智造C群:937347681
# QQ Qun: 创客智造D群:562093920
################################################
export TEXTDOMAINDIR=/usr/share/locale
export TEXTDOMAIN=commands
echo "$(gettext "Install ROS2 humble RMF-web 22.04 source version")"
# echo "Not Yet Supported!"
# exit 0
#基于ubuntu22.04 humble版本安装需要指的版本
#安装nvm和nodejs
#install nodejs and npm
if [ ! -d /usr/share/nodejs ];then
sh -c "~/commands/common/shell/install_nvm.sh"
sh -c "~/commands/common/shell/install_nodejs.sh"
fi
# #设置国内源
# npm config set registry https://registry.npm.taobao.org
# #安装pnpm
if [ ! -f $HOME/.local/share/pnpm/pnpm ]; then
sh -c "~/commands/common/shell/install_pnpm.sh"
fi
# #Install dependencies
sudo apt install -y python3-venv
sudo apt install -y libpango1.0-dev
python3 -m pip install tortoise
# #Install PostgreSQL
sudo apt install postgresql postgresql-contrib -y
# Set a default password
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo systemctl restart postgresql
# interactive prompt
# sudo -i -u postgres
#To manually reset the database:
# sudo -u postgres bash -c "dropdb postgres; createdb postgres"
#downlaod
#commit dbdfb532b653642bb91ea3ed553c399d60220c0c
cd ~/ros2_rmf_ws/
git clone -b main https://github.com/open-rmf/rmf-web
#安装,需要花一定时间安装
cd ~/ros2_rmf_ws/rmf-web
# pnpm
export PNPM_HOME="~/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH"
# pnpm end
pnpm env use --global 18
pnpm install
# launch
# cd packages/dashboard
# export NODE_OPTIONS='--openssl-legacy-provider'
# pnpm start
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
其他
1
https://gitee.com/ncnynl/commands.git
git@gitee.com:ncnynl/commands.git
ncnynl
commands
commands
master

搜索帮助