目录

路线

Linux双系统的安装

ROS系统的初体验

ubuntu下的百度网盘加速和QQ VX

OpenCV以及CUDA TENSORFLOW


路线

想成为一个合格的云机器人工程师,需要对Linux和ROS系统有了解、适用,在这个工程基础上学习顺序为:SLAM十四讲-->深度强化学习-->迁移学习

  • Linux双系统的安装

教程

https://www.cnblogs.com/masbay/p/10745170.html

我的电脑是D  UEFI新式bios+双硬盘(SSD固态硬盘+机械硬盘)

制作U盘:下载镜像(阿里云的ubuntu镜像,amd64和i386的不同)如果cpu只支持32位就下载i386,否则都可以。amd64更兼容64位的。所以下

然后制作好了通过F2(华硕笔记本)进入bios.

因为我的电脑有特殊独立显卡,所以还需要根据此处https://www.cnblogs.com/masbay/p/10718514.html修改(修改之后分辨率会变大  千万注意不要修改grub!因为加了nomodeset之后会使用集显运行图形界面,导致分辨率变低,并且更新nvidia的显卡驱动之后会出现循环登入问题,使用recovery的grub进入之后直接下nvidia显卡驱动(sudo ubuntu-drivers autoinstall)

踩坑感谢:

  • https://blog.csdn.net/wayne17/article/details/89379796
  • https://bbs.csdn.net/topics/392465191

进入系统

1.更源(不然会很慢)

2.输入法:https://www.jianshu.com/p/ffbdf94c7306(需要重启才会出现chinese(pinyin))

上github太慢

安装wechat

锐捷认证

  • ROS系统的初体验

https://blog.csdn.net/softimite_zifeng/article/details/78632211

下载失败地时候记得换hkp://keyserver.ubuntu.com:80的服务器

sudo rosdep init的时候可能会报错

asber@asber-X550VX:~$ sudo rosdep init
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
asber@asber-X550VX:~$ sudo -E rosdep init
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.

https://blog.csdn.net/luvalluo/article/details/78745677 还是报错

我把源通过software&update改成在外国地源之后,好了

asber@asber-X550VX:~$ sudo c_rehash /etc/ssl/certs
Doing /etc/ssl/certs
WARNING: Skipping duplicate certificate ACCVRAIZ1.pem
WARNING: Skipping duplicate certificate ACCVRAIZ1.pem
asber@asber-X550VX:~$ sudo -E rosdep init
Wrote /etc/ros/rosdep/sources.list.d/20-default.list
Recommended: please runrosdep update

然后update

asber@asber-X550VX:~$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.dERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:<urlopen error timed out> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:<urlopen error timed out> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Add distro "crystal"
Add distro "dashing"
Add distro "eloquent"
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Add distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
updated cache in /home/asber/.ros/rosdep/sources.cache
ERROR: Not all sources were able to be updated.
[[[
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:<urlopen error timed out> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:<urlopen error timed out> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)
]]]

估计是国外源的原因有一些报错,用阿里的源update了一下更是全部都是错,又回到美国地源弄了一下

好了,也没有之前地报错了

asber@asber-X550VX:~$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Add distro "crystal"
Add distro "dashing"
Add distro "eloquent"
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Add distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
updated cache in /home/asber/.ros/rosdep/sources.cache

骚的是后面还要安装building package的依赖,又要切到国内的源才可以下。

到最后真的可以出现小乌龟了,但是我的乌龟是死龟。不会动,不知道为什么。

  • ubuntu下的百度网盘加速和QQ VX

https://www.cnblogs.com/jiu0821/p/8489154.html

https://blog.csdn.net/weixin_37537818/article/details/88765529

https://blog.csdn.net/u011469138/article/details/82320761

发现貌似因为这个软件是通过网页登入的微信,webx被和谐了,所以现在linux没有方法上vx

  • OpenCV以及CUDA TENSORFLOW

安装之前有很多依赖,比如这里的:https://www.cnblogs.com/tsfh/p/8729578.html

cmake的时候发生这的问题,可以根据此处安装:https://www.jb51.net/article/149193.htm

-- Checking for module 'gstreamer-base-1.0'
--   No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
--   No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'

然后cmake就可以通过,按照这里按部就班:https://blog.csdn.net/qq_38660394/article/details/80581383

按照此处因为出现make时

[ 24%] Linking CXX static library ../../lib/libopencv_highgui_pch_dephelp.a
[ 24%] Built target opencv_highgui_pch_dephelp
[ 24%] Generating precomp.hpp.gch/opencv_highgui_Release.gch
[ 24%] Built target pch_Generate_opencv_highgui
[ 24%] Linking CXX shared library ../../lib/libopencv_highgui.so
[ 24%] Built target opencv_highgui
[ 25%] Built target opencv_ts
[ 25%] Generating test_precomp.hpp.gch/opencv_test_core_Release.gch
[ 25%] Built target pch_Generate_opencv_test_core
[ 26%] Linking CXX executable ../../bin/opencv_test_core
../../lib/libopencv_core.so.3.2.0:对‘cblas_zgemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, void const*, void const*, int, void const*, int, void const*, void*, int)’未定义的引用
../../lib/libopencv_core.so.3.2.0:对‘cblas_dgemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, double, double const*, int, double const*, int, double, double*, int)’未定义的引用
../../lib/libopencv_core.so.3.2.0:对‘cblas_sgemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, float, float const*, int, float const*, int, float, float*, int)’未定义的引用
../../lib/libopencv_core.so.3.2.0:对‘cblas_cgemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, void const*, void const*, int, void const*, int, void const*, void*, int)’未定义的引用
collect2: error: ld returned 1 exit status
modules/core/CMakeFiles/opencv_test_core.dir/build.make:858: recipe for target 'bin/opencv_test_core' failed
make[2]: *** [bin/opencv_test_core] Error 1
CMakeFiles/Makefile2:1225: recipe for target 'modules/core/CMakeFiles/opencv_test_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_test_core.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

的失败,决定从新换个教程

其中,anaconda下载很慢,看这里https://blog.csdn.net/qq_37960007/article/details/90050456

anaconda的安装:https://blog.csdn.net/weixin_40593924/article/details/93530562

提示信息:

Welcome to Anaconda3 2019.03In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
===================================
Anaconda End User License Agreement
===================================Copyright 2015, Anaconda, Inc.All rights reserved under the 3-clause BSD License:Redistribution and use in source and binary forms, with or without modification,are permitted provided that the following conditions are met:* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.* Redistributions in binary form must reproduce the above copyright notice, th
is list of conditions and the following disclaimer in the documentation and/or o
ther materials provided with the distribution.* Neither the name of Anaconda, Inc. ("Anaconda, Inc.") nor the names of its c
ontributors may be used to endorse or promote products derived from this softwar
e without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WA
RRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.IN NO EVENT SHALL ANACONDA, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTALDo you accept the license terms? [yes|no]
[no] >>> yesAnaconda3 will now be installed into this location:
/home/asber/anaconda3- Press ENTER to confirm the location- Press CTRL-C to abort the installation- Or specify a different location below[/home/asber/anaconda3] >>>
PREFIX=/home/asber/anaconda3installing: python-3.7.3-h0371630_0 ...
Python 3.7.3
installing: conda-env-2.6.0-1 ...
installing: blas-1.0-mkl ...
installing: ca-certificates-2019.1.23-0 ...
installing: intel-openmp-2019.3-199 ...
installing: libgcc-ng-8.2.0-hdf63c60_1 ...
installing: libgfortran-ng-7.3.0-hdf63c60_0 ...
……
installing: astropy-3.1.2-py37h7b6447c_0 ...
installing: statsmodels-0.9.0-py37h035aef0_0 ...
installing: seaborn-0.9.0-py37_0 ...
installing: anaconda-2019.03-py37_0 ...
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>>
You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:eval "$(/home/asber/anaconda3/bin/conda shell.YOUR_SHELL_NAME hook)" To install conda's shell functions for easier access, first activate, then:conda initIf you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false: conda config --set auto_activate_base falseThank you for installing Anaconda3!===========================================================================Anaconda and JetBrains are working together to bring you Anaconda-powered
environments tightly integrated in the PyCharm IDE.PyCharm for Anaconda is available at:
https://www.anaconda.com/pycharm

anaconda安装好了之后添加一下环境变量export PATH="/home/用户名/anaconda3/bin:$PATH"然后source ~/.bashrc 就可以了

然后下载cuda,发现官方.run版本和.deb版本下好之后都会提示 段错误(核心已转储),然后.run的sudo sh之后就没有任何提示,.deb按照

官方的提示以及https://blog.csdn.net/u014754541/article/details/97108282此处的添加环境变量

最后测试不要按照上面说的测试,直接输入nvcc -V

asber@asber-X550VX:/bin$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

有类似这样的输出就OK了

按照这个教程虽然转好了cuda和gcc-5 g++-5以及anaconda。。。

但是发现编译opencv还是一样的报错,所以为感觉还是CMAKELIST。TXT那边没设置好

各种报错

然后发现自己下载了cuda1.1.243 可能需要改一些东西来避免编译opencv报错……

后来我发现,换opencv2.0就可以了,不出任何错误

【只是在之后CMakeList.txt中需要注意

需要set(OpenCV_DIR /usr/local/opencv4/lib/cmake/opencv4)来让库找得到

cmake_minimum_required(VERSION 2.6)
project(useopencv)
# 添加 c++ 11 标准支持
set( CMAKE_CXX_FLAGS "-std=c++11" )
set(OpenCV_DIR /usr/local/opencv4/lib/cmake/opencv4)
# 寻找 OpenCV 库
find_package( OpenCV REQUIRED )
# 添加头文件
include_directories( ${OpenCV_INCLUDE_DIRS} )

add_executable(useopencv main.cpp)
# 链接 OpenCV 库
target_link_libraries( useopencv ${OpenCV_LIBS} )
install(TARGETS useopencv RUNTIME DESTINATION bin)

但是上面折腾过程中,我发现显卡驱动不见了,

asber@asber-X550VX:~$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch

asber@asber-X550VX:~$ nvcc -V

Command 'nvcc' not found, but can be installed with:

sudo apt install nvidia-cuda-toolkit

asber@asber-X550VX:~$ cat  /usr/local/cuda/version.txt
cat: /usr/local/cuda/version.txt: 没有那个文件或目录
asber@asber-X550VX:~$ cd /usr/local/
asber@asber-X550VX:/usr/local$ ls
etc  games  include  lib  man  opencv4  sbin  share  src
asber@asber-X550VX:/usr/local$

cuda貌似也被删除了

现在 ros 和 cuda全丢了,重新安装

ROS-ubuntu-系统安装相关推荐

  1. 四.开发记录之ubuntu系统安装ROS和开发环境

    专栏系列文章如下: 一.开发记录之AHRS.惯导传感器SBG-Ellipse-N传感器配置和使用_goldqiu的博客-CSDN博客_sbg传感器数据格式 二.开发记录之派勤工控机远程使用和ubunt ...

  2. 五.开发记录之ubuntu系统安装各个软件

    专栏系列文章如下: 一.开发记录之AHRS.惯导传感器SBG-Ellipse-N传感器配置和使用_goldqiu的博客-CSDN博客_sbg传感器数据格式 二.开发记录之派勤工控机远程使用和ubunt ...

  3. ubuntu系统安装微信过程与问题解决记录

    ubuntu系统安装微信 electronic wechat deepin-wine Wine-HQ安装 docker-wechat 常用docker命令 存储库 Main Universe Mult ...

  4. Ubuntu系统安装、配置与美化(Ubuntu20.04)

    阅读指南 目的 本文的写作目的在于帮助完全零基础的小白不理解原理而可以无脑安装Linux系统,同时也是为自己进行的一个整理,相较于网上大多数的教程,本教程将一些内容进行了整合与整理,加之本人在安装Ub ...

  5. 【ROS】Ubuntu18.04 + ROS操作系统安装

    [ROS]Ubuntu18.04 + ROS操作系统安装,亲测可用! 最近需要用到ROS系统,所以来安装一下. 一.更换镜像源 更换阿里云.清华源都可以. 二.添加ROS软件源 1. 添加ROS软件源 ...

  6. Ubuntu 系统安装OpenJDK 7,openjdk8

    Ubuntu 系统安装openjdk7 ,openjdk8 1 更新软件包:sudo apt-get update (这一步不执行也行) 2 安装 : sudo apt-get install ope ...

  7. ubuntu系统安装mysql(deb-bundle包)

    ubuntu系统安装mysql(deb-bundle包) 由于某些原因,又要在ubuntu系统中安装mysql了,之前曾经安装过好多次.都没记下来 以前一直动用源码包来安装,基于两个原因:1.一直用P ...

  8. 【以太坊】搭建测试网络之ubuntu系统安装geth客户端以及同步区块数据

    一.前言 在前两天就开始研究这个geth客户端,奈何中间一直遇到各种各样的问题,最后总算是成功在服务器上安装geth并开始同步区块了.这里记录一下过程. 1.虚拟机配置问题 博主最开始用的是虚拟机,但 ...

  9. Ubuntu系统安装Hadoop3.1.3并进行单机/伪分布式配置

    Ubuntu系统安装Hadoop3.1.3并进行单机/伪分布式配置 文章目录 Ubuntu系统安装Hadoop3.1.3并进行单机/伪分布式配置 前言 详细流程 创建Hadoop用户 安装Java 配 ...

  10. Ubuntu系统安装

    Ubuntu系统安装 从官网下载ubuntu系统安装: http://www.ubuntu.org.cn/download/ubuntu-kylin 可与windows安装双系统 若开机时无法提供双系 ...

最新文章

  1. ubuntu16.04 ROS安转及RVIZ启动
  2. python如何将列表,字典,元组,集合首字母变成大写 以及其他的大小写转换!
  3. mysql 远程用户授权_mysql创建远程用户并授权
  4. Codeforces 987A. Infinity Gauntlet(手速题,map存一下输出即可)
  5. three.js 把geometry转换成BufferGeometry
  6. webrtp官方demo运行
  7. lamuda表达式 list移除空元素_java8 Lambda表达式遍历并移除元素,报错:ConcurrentModificationException的解决办法...
  8. 均薪连续三年过万,北上深人才需求大 !| 5G 人才报告
  9. ubuntu14.04 的网络配置
  10. 先有本地代码,后有远程仓库
  11. DP动态规划之01背包问题
  12. 庖丁解牛之spring源码系列一
  13. 中国智能汽车行业市场需求趋势与发展战略规划建议报告2022-2028年版
  14. 电脑版微信如何实现消息批量发送
  15. 如何将你的微信头像透明化
  16. Android 使用Notification进行消息提示
  17. amd为什么还用针脚_为什么AMD的CPU不采用LGA封装技术?还在继续用针脚?
  18. VC++ 6.0之MSComm控件安装、使用
  19. 滤波电容的原理到底是什么???
  20. Http请求之GET,POST,PUT,DELETE方法详解

热门文章

  1. 微信在服务器上发不了图片大小,为什么微信发不了图片?这四招教你解决难题...
  2. vue按钮字体大小设置_vue添加文字怎么设置时长
  3. TCP和Socket关系
  4. 马上金三银四了,注意下面这几点,面试通过率高达85%
  5. 对微软在隐私策略上的让步,EFF表示欢迎
  6. Mac 电脑 插显示器 提示:显示器不支持当前的输入时序,解决办法
  7. win10 NET Framework 3.5(包括.NET 2.0和3.0)错误代码0x800f081f 的解决方法
  8. 自动驾驶的“第三眼美女“什么时候才能出现?
  9. HTML项目立项,作为承建方,其项目立项的第一步工作是()。A.编制立项申请书B.项目论证C.项目 - 信管网...
  10. web前端开发之CSS