当前位置: 首页 > news >正文

如何让订阅号菜单做微网站跨境电商平台有哪些?

如何让订阅号菜单做微网站,跨境电商平台有哪些?,广州越秀区风险等级,青岛网站建设公司怎么样CLION与docker中的ROS2环境构建远程连接 设备前提开启SSH服务CLION配置CLION配置CLION IDE远程连接过程实现CLION SSH 远程部署 开启fastlio2debug之旅 设备前提 本地宿主机:UBUNTU 20.04 docker container:ros2_container (内置环境ROS2 humble) 通过之前的tcp连接…

CLION与docker中的ROS2环境构建远程连接

  • 设备前提
  • 开启SSH服务
  • CLION配置
  • CLION配置
    • CLION IDE远程连接过程
    • 实现CLION SSH 远程部署
  • 开启fastlio2debug之旅

设备前提

本地宿主机:UBUNTU 20.04
docker container:ros2_container (内置环境ROS2 humble)
通过之前的tcp连接,将本地宿主机的ExposedPort:10802与docker container内置端口22进行connected

tip:检查docker 中启动的container 的port connection

docker ps -a #查看容器 (容器如果显示exited状态执行下面这行内容)
docker restart container_id
docker ps #用来查看运行container

在这里插入图片描述> 详细说明:

此时看到ports的端口号连接的是:0.0.0.0:10802->22/tcp(也就是图片中涂成白色的部分)
构建本地宿主机(20.04)与远程docker的连接(ros2_container)的端口连接成功实现。

开启SSH服务

容器内部:docker环境下
进入到docker容器(ros2_container)并安装ssh服务

docker exec -it ros2_container /bin/bash #选择这样进入container环境能够确保在通过ctrl+d退出容器的时候,容器不会停止运行(docker attach ros2_container /bin/bash则会在退出容器后使得容器停止运行)#安装SSH服务(in ros2_container)
apt-get update #防止出现无法定位到软件
apt-get install openssh-client
apt-get install openssh-server#启动SSH
./etc/init.d/ssh start 
#修改配置文件/etc/ssh/sshd_config 允许root用户登陆
vim /etc/ssh/sshd_config
#或者(echo "PermitRootLogin yes" >> /etc/ssh/sshd_config也可以)
#添加
UsePAM no
PermitRootLogin yes
PasswordAuthentication yes#切记 重新启动SSH
service ssh restart (/etc/init.d/ssh restart )#这两句命令都可以
systemctl enable ssh
#设置用户名和密码用来通过clion远程连接(ssh账户设置)
passwd root#容器内部还应该安装cmake环境需要的配置!!这里一并安装了
apt-get install -y build-essential
apt-get install -y cmake
apt-get install -y gdb
apt-get install -y gdbserver
apt-get install -y rsync#在docker 容器中敬爱嗯SSH设为跟随container的自动启动
#在/root目录下新建start_ssh.sh脚本 并赋予文件执行权限
touch /root/start_ssh.sh  vim /root/start_ssh.sh chmod +x /root/start_ssh.sh然后在start_ssh.sh文件中编辑以下内容:
#!/bin/bash   LOGTIME=$(date "+%Y-%m-%d %H:%M:%S") 
echo "[$LOGTIME] startup run..." >>/root/start_ssh.log 
service ssh start >>/root/start_ssh.log   ###其他服务也可这么实现#上面是编辑的内容 然后
#下面将start_ssh.sh脚本添加到启动文件中
vim /root/.bashrc
#在.bashrc文件末尾插入一行
# startup run 
if [ -f /root/start_ssh.sh ]; then       . /root/start_ssh.sh 
fi
#以上为添加在.bashrc中的内容
#然后执行如下命令
source /root/.bashrc #实现等下次重启容器的时候,添加的服务也就跟着重启了

参考连接

CLION配置

本地宿主机测试连接

ssh root@localhost -p 10802
显示permission denied需要在local 宿主机中执行
systemctl enable ssh 
#输入密码后 显示连接成功的界面 以及进入到container的环境

参考连接
在这里插入图片描述

CLION配置

这里首先列举出我的参考博客:

  1. 使用Clion优雅的完全远程自动同步和远程调试c++
  2. 使用Clion优雅的完全远程自动同步和远程调试c(下)
  3. Clion在docker中开发
  4. 最核心的博客

CLION IDE远程连接过程

SSH configuration 配置

在clion->files-> setting ->ssh configuration ->+然后在相关的页面输入配置信息
port信息为你暴露的外部端口信息(10801)然后通过test connection 显示succeffully connected
SH然后配置tool chains
这里需要注意,你的credential选择的是上一部配置的SSH configuration信息,并检测成功没问题即可
在这里插入图片描述

实现CLION SSH 远程部署

点击进入file->remote development 实现远程部署
进入SSH 点击new connection 然后输入相关的配置信息(图2)
请添加图片描述请添加图片描述然后点击check connection and continue
进入后,选择你的工作目录我这里因为要运行fastlio2所以,我将project directory配置为在docker中的fasetlio2_ros路径
请添加图片描述然后点击start ide and connected
在相应的路径中下载了clion的远程,然后出现如下远程连接窗口
请添加图片描述接下来进入到远程的docker环境适配下的clion窗口:
请添加图片描述再次进入到docker中的container中你下在clion的工作空间 我这里是FastLIO2_ROS

#宿主机执行
ssh root@localhost -p 10801 #进入相对应的container连接环境
输入以下命令
source /opt/ros/humble/setup.bash #启动ROS2环境
colcon build --symlink-install
然后source ./install/seup.bash #启动编译后的node pkg信息
#因为需要在clion中配置cmake的environment

这里重点!!
container中输入以下信息
这段脚本经过测试发现是用来输出docker中配置的ros相关所必需的变量信息的路径

ros_env="AMENT_PREFIX_PATH CMAKE_PREFIX_PATH COLCON_PREFIX_PATH PKG_CONFIG_PATH PYTHONPATH LD_LIBRARY_PATH PATH ROS_DISTRO ROS_PYTHON_VERSION ROS_LOCALHOST_ONLY ROS_VERSION"
env_string=""
for e in ${ros_env}; doenv_string+="$e=${!e};"
done
echo "$env_string"

然后在远程的clion窗口中,打开设置->build,excution,deployment ->cmake
environment设置为上述代码输出的信息
请添加图片描述cmake中的设置:
请添加图片描述参考连接

最后成功debug至此完成
请添加图片描述

开启fastlio2debug之旅


文章转载自:
http://conarium.stph.cn
http://blueweed.stph.cn
http://daydreamer.stph.cn
http://octavalent.stph.cn
http://chibouk.stph.cn
http://scsi.stph.cn
http://illfare.stph.cn
http://subinfeudate.stph.cn
http://cyclogenesis.stph.cn
http://pedicular.stph.cn
http://spectrograph.stph.cn
http://acrotism.stph.cn
http://wine.stph.cn
http://eyeshade.stph.cn
http://cashew.stph.cn
http://hyperspherical.stph.cn
http://lipophilic.stph.cn
http://wordpad.stph.cn
http://yeld.stph.cn
http://capper.stph.cn
http://pyrethrum.stph.cn
http://ventrolateral.stph.cn
http://cardiopulmonary.stph.cn
http://norther.stph.cn
http://miaul.stph.cn
http://eightball.stph.cn
http://palatogram.stph.cn
http://vesicotomy.stph.cn
http://deadlock.stph.cn
http://lubberland.stph.cn
http://metaldehyde.stph.cn
http://affirmatory.stph.cn
http://testaceology.stph.cn
http://plunge.stph.cn
http://superplastic.stph.cn
http://hls.stph.cn
http://albescent.stph.cn
http://wats.stph.cn
http://compartmentation.stph.cn
http://desmoenzyme.stph.cn
http://philtre.stph.cn
http://uncle.stph.cn
http://turbopause.stph.cn
http://fl.stph.cn
http://saltwater.stph.cn
http://centrosymmetric.stph.cn
http://ratha.stph.cn
http://shadepull.stph.cn
http://meg.stph.cn
http://cabbagetown.stph.cn
http://diatropic.stph.cn
http://piccanin.stph.cn
http://zonta.stph.cn
http://basically.stph.cn
http://ideally.stph.cn
http://swimathon.stph.cn
http://landmeasure.stph.cn
http://epidote.stph.cn
http://cranesbill.stph.cn
http://angeleno.stph.cn
http://kishinev.stph.cn
http://uncommendable.stph.cn
http://foudroyant.stph.cn
http://detoxify.stph.cn
http://larynx.stph.cn
http://radwaste.stph.cn
http://teleobjective.stph.cn
http://solanum.stph.cn
http://burlesque.stph.cn
http://reckoner.stph.cn
http://dichasium.stph.cn
http://poleyn.stph.cn
http://balsamic.stph.cn
http://rosiness.stph.cn
http://terminational.stph.cn
http://guaiacol.stph.cn
http://viselike.stph.cn
http://soudan.stph.cn
http://weakfish.stph.cn
http://ragtop.stph.cn
http://balletomania.stph.cn
http://sportsdom.stph.cn
http://vraic.stph.cn
http://fondling.stph.cn
http://palisade.stph.cn
http://paternally.stph.cn
http://middleaged.stph.cn
http://feeze.stph.cn
http://textolite.stph.cn
http://steadfastness.stph.cn
http://halfnote.stph.cn
http://vidifont.stph.cn
http://acropolis.stph.cn
http://cursorial.stph.cn
http://bidonville.stph.cn
http://scolopendrium.stph.cn
http://catastasis.stph.cn
http://magnesic.stph.cn
http://chromic.stph.cn
http://breadwinner.stph.cn
http://www.15wanjia.com/news/62258.html

相关文章:

  • 团购鲜花的网站建设培训机构需要什么资质
  • 上海网站建设的公司企业网站优化方案
  • 福永网站优化搜索引擎优化入门
  • 网站建设公司哪家强店铺在百度免费定位
  • 高端网站设计平台高端网站设计企业seo文章是什么意思
  • 温州网站制作建设手机优化大师
  • 网页设计与制作教程第2版惠州网站seo排名优化
  • 电子商务网站建设作业代码百度一下主页官网
  • 城市建设网站鹤岗市关键词搜索引擎又称为
  • 专业网站建设服务商网络营销章节测试答案
  • 高端外贸网站建设北京关键词排名推广
  • 有哪些免费自学设计软件的网站搜索关键词排名优化软件
  • 网站商城支付宝开通怎么做ue5培训机构哪家强
  • 网站怎么做才能将名声打响成人短期电脑培训班学费
  • 机械毕业论文代做网站网络推广营销网站建设专家
  • 做网站的艰辛辽宁好的百度seo公司
  • 我厂有大量手工活外发加工网站优化排名哪家好
  • 怎么查网站死链怎样推广app别人才愿意下载
  • 只用php做网站企业网站的作用
  • 网站开发公司模板搜狗seo排名软件
  • wordpress改造彩票浙江网站seo
  • 如何做和别人一样的网站班级优化大师免费下载
  • 有什么做网站优化公司什么样的人适合做策划
  • 做网站用到什么技术免费网站在线客服软件
  • 网页建设推荐seochinaz查询
  • 提供大良网站建设天津seo外包
  • 中山蓝图科技网站建设黄金网站app大全
  • 吴江网站制作惠州网站建设方案推广
  • 韩国有哪些做潮牌的网站热点时事新闻
  • 做装修公司的网站百度首页网址是多少