![](https://img-blog.csdnimg.cn/20210217090227145.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Ubuntu和git(WSL)
Ubuntu相关维护经验
流浪德意志
千里之行始于足下!
展开
-
ubuntu22.04安装cuda11.5+cudnn8.8.0
因为pytorch1.11.0与cuda版本的关系 需要用到cuda11.5否则报错cuda11.5.0及以前的版本不会出现这个问题。原创 2024-02-23 23:55:29 · 771 阅读 · 0 评论 -
docker导致root空间满进入不了系统解决方案
由于docker建立镜像会产生很多缓存文件,最终导致root目录满,进入不了系统。docker默认路径是在/var/lib/docker下。一定要谨慎使用-a,会删除所有镜像文件且不可恢复。可以通过命令查看docker占用空间。如果占用空间太大 可用以下命令清理。原创 2023-10-28 11:34:06 · 417 阅读 · 0 评论 -
conda配置国内源(已验证速度)
用conda安装时总是出现速度慢等问题。注意上面的http,不是https。用国内源下载速度会快很多倍。原创 2023-09-28 21:46:46 · 2055 阅读 · 1 评论 -
linux文件代理高速下载,告别龟速下载!
只需要在前面加上镜像代理地址, 速度达到1MB/s以上。高速下载: wget。原创 2023-01-28 22:02:23 · 743 阅读 · 0 评论 -
python-pcl点云显示
从pandaset中导入点云数据但是无法显示立体框 只能使用open3d#! /usr/bin/env python3# -*-coding:utf-8-*-import pclimport pcl.pcl_visualizationfrom pandaset import DataSet, geometryimport numpy as npimport pandasdataset_root = "/media/ning/DataSet6/nuscenes/pandaset"d原创 2022-04-30 11:33:18 · 2237 阅读 · 0 评论 -
Docker中安装python-pcl库
Docker环境如下:Ubuntu 18.04CUDA 11.0pytorch 1.8python 3.6.9首先安装Python-pcl$ sudo apt-get update -y$ sudo apt-get install libpcl-dev -y此时python中import pcl还是无法使用还需要pip3安装pcl库从我上传的资源库中下载并安装:pip3 install python_pcl-0.3.0rc1-cp36-cp36m-linux原创 2022-04-28 22:05:32 · 1974 阅读 · 0 评论 -
点云目标检测CenterPoint之Dockerfile文件
# modified from https://github.com/xfbs/docker-openpcdetFROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu18.04RUN apt updateRUN apt install -y python3.7 python3-pip apt-transport-https ca-certificates gnupg software-properties-common wget git ninja-build l.原创 2022-03-26 15:41:17 · 4472 阅读 · 0 评论 -
Docker镜像加速指令(阿里)
sudo mkdir -p /etc/dockersudo tee /etc/docker/daemon.json <<-'EOF'{ "registry-mirrors": ["https://o6ul5754.mirror.aliyuncs.com"]}EOFsudo systemctl daemon-reloadsudo systemctl restart docker效果非常明显!来源:docker镜像速度慢的解决方法_dong-sir的博客-CSDN博客...原创 2022-03-23 23:54:37 · 1505 阅读 · 0 评论 -
RuntimeError: CUDA error: no kernel image is available for execution on the device
导致的原因一般都是显卡算力和cuda或者torch版本不匹配比如在conda中安装的pytorch=1.5.0 cuda=10.2错误:RuntimeError: CUDA error: no kernel image is available for execution on the device参考pytorch 报错 RuntimeError: CUDA error: no kernel image is available for execution on the device_可豌豆的原创 2022-02-27 20:12:13 · 30056 阅读 · 15 评论 -
ERROR: Failed building wheel for mayavi
conda虚拟环境中安装mayavi提示错误:Numpy is required to build Mayavi correctly, please install it first.ERROR: Failed building wheel for mayavi ******************************************************************************** Traceback (most recent call last..原创 2022-02-27 13:30:03 · 1531 阅读 · 0 评论 -
WSL2安装图形界面之xfce4+vcxsv
wsl2(win10 Linux子系统)图形界面的安装,wsl同理_左阁的博客-CSDN博客_wsl2安装图形界面其次安装桌面以及一些运行必要的插件(Xfce,基于GTK2.0,和旧版Gnome界面类似):sudo apt-get install --assume-yes xfce4 xorg-dev libopencc2 libopencc2-data libqt4-opengl libqtwebkit4 unzip zip下载vcxsv,安装后启动XLaunch启动xla原创 2022-02-20 01:40:20 · 1040 阅读 · 1 评论 -
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
输入docker version返回错误Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?解决办法:service docker start * Starting Docker: docker原创 2022-02-19 22:49:30 · 1167 阅读 · 0 评论 -
Got permission denied while trying to connect to the Docker daemon socket
docker权限问题,需要将当前用户添加到docker组sudo groupadd docker #添加docker用户组sudo gpasswd -a $XXX docker #检测当前用户是否已经在docker用户组中,其中XXX为用户名sudo gpasswd -a $USER docker #将当前用户添加至docker用户组newgrp docker #更新docker用户组#检测docker是否正常docker versio原创 2022-02-19 11:17:50 · 563 阅读 · 0 评论 -
docker: Error response from daemon: could not select device driver ““ with capabilities: [[gpu]].
需要安装nvidia-container-toolkit或nvidia-container-runtime(包含nvidia-container-toolkit)distribution=$(. /etc/os-release;echo $ID$VERSION_ID)curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - #正常会显示OKcurl -s -L https://nvidia.gith原创 2022-02-19 11:14:52 · 1652 阅读 · 0 评论 -
Ubuntu安装显卡驱动
#查看显卡型号ubuntu-drivers devices#安装驱动sudo ubuntu-drivers autoinstall查看显卡后从官网下载lshw -numeric -C display参考:Ubuntu 18.04 安装 NVIDIA 显卡驱动 - 知乎原创 2022-02-19 10:01:58 · 538 阅读 · 0 评论 -
通过VS Code远程访问局域网Linux
来源:配置vscode远程到Linux环境下 - z417 - 博客园首先,VS Code安装插件remote SSH其次,修改C:\Users\xxx\.ssh\configHost JetsonNanoHostName 192.168.137.2User root#或其他用户名进入VS Code设置中勾选自动登录打开远程remote SSH就可以看到目录了。...原创 2021-09-26 11:29:04 · 363 阅读 · 0 评论 -
Ubuntu安装jupyter lab并通过windows远程访问
来源:jupyter lab安装配置及远程访问_ruokeqx-CSDN博客_jupyterlab远程访问pip3 install jupyterlab#不要使用sudojupyter lab --generate-configvim /home/username/.jupyter/jupyter_notebook_config.py##加入以下数据c.NotebookApp.allow_root =Truec.NotebookApp.open_browser =False#不需..原创 2021-09-16 17:11:05 · 556 阅读 · 0 评论 -
Ubuntu与Windows网线直连并访问网络
主机Windows设置IPV4地址:192.168.137.1子网掩码:255.255.255.0Ubuntu设置:安装基础服务:sudo apt-get install xrdp vnc4server xbase-clientssudo apt-get install dconf-editor打开之后,依次展开org->gnome->desktop->remote-access,然后取消 “requlre-encryption”的勾选即可来源:..原创 2021-09-15 16:07:39 · 2189 阅读 · 0 评论 -
解决Github拒绝授权问题Permission denied, please try again
正确生成秘钥并在Github添加公钥后通过以下命令测试SSHssh -T git@github.comgit@github.com's password: Permission denied, please try again.git@github.com's password: 输入密码无效;解决办法:vim ~/.ssh/config#添加Host github.comidentityFile ~/.ssh/id_rsa#自己的私钥文件名Host github.com原创 2021-09-15 14:15:08 · 3746 阅读 · 5 评论 -
catkin_make编译错误No rule to make target ‘/usr/local/lib/libpcl_common.so‘
原来安装ros melodic libpcl-dev 1.8自行下载安装PCL-1.11库后总是出现undefined reference to 'pcl::KdTreeFLANN<pcl::PointXYZ, flann::L2_Simple<float>>::radiusSearch(pcl::PointXYZ const&, double, std::vector<int, std::allocator<int>>&, std..原创 2021-03-19 18:50:32 · 2677 阅读 · 1 评论 -
启动cartographer_ros进行仿真错误process has died exit code -11
怀疑原因是pcl版本问题:https://ask.csdn.net/questions/3354161先卸载原有pcl:sudo rm -r /usr/include/pcl-1.9 /usr/share/pcl-1.9 /usr/bin/pcl* /usr/lib/libpcl*找到github 对应版本https://github.com/PointCloudLibrary/pcl/releases/tag/pcl-1.7.2下载zip解压缩mkdir buildc.原创 2021-03-18 21:02:31 · 2840 阅读 · 1 评论 -
/usr/bin/ld: cannot find -lUUID::UUID无法加载库文件
catkin_make后出现以下问题:/usr/bin/ld: cannot find -lUUID::UUIDcollect2: error: ld returned 1 exit statusgazebo_ros_pkgs/gazebo_ros/CMakeFiles/gazebo_ros_paths_plugin.dir/build.make:283: recipe for target '/home/nl/Documents/NRP/GazeboRosPackages/devel/lib/li原创 2021-02-20 02:17:15 · 921 阅读 · 0 评论 -
Gazebo-9不显示WSL2.0+Xlaunch
命令行输入gazebo --verbose没有图形显示!找不到出错信息![Msg] Waiting for master.Gazebo multi-robot simulator, version 9.8.0.hbp.3.0.5Copyright (C) 2012 Open Source Robotics Foundation.Released under the Apache 2 License.http://gazebosim.org[Msg] Waiting for master.[原创 2021-02-18 09:49:14 · 559 阅读 · 1 评论 -
gazebo崩溃gazebo-2 process has died exit code 139
Ubuntu 16.04 on Virtualbox 6.1gazebo 7.0大家可以试试更新gazebo到7.16版本以上(或者直接通过应用商店)添加源和钥匙sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'wget https://p原创 2020-08-26 17:59:41 · 7298 阅读 · 5 评论 -
WIN10下安装Ubuntu,ROS及配置(WSL)
Microsoft Store应用商店搜索Ubuntu 18.04并安装,搜索Windows Terminal并安装(可选)安装ROS Melodic以上版本,Kinetic不再支持!链接:http://wiki.ros.org/melodic/Installation/Ubuntuwin10下访问ubuntu(WSL)目录:C:\Users\xxx\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgs原创 2020-09-05 21:24:44 · 725 阅读 · 0 评论 -
OpenCV 3.3.1及Contrib附加库安装教程及问题Undefined reference to cv::xfeatures2d
####################################### INSTALL OPENCV ON UBUNTU OR DEBIAN ######################################## 1. KEEP UBUNTU OR DEBIAN UP TO DATEsudo apt-get -y updatesudo apt-get -y upgradesudo apt-get -y dist-upgradesudo apt-get..原创 2020-08-25 21:50:14 · 842 阅读 · 0 评论 -
Ubuntu安装Eigen3
从官网下载:http://eigen.tuxfamily.org/index.php?title=Main_Page比如在cd ~/,git clone https://gitlab.com/libeigen/eigen.gitcd ~/Eigenmkdir buildcd buildcmake ..sudo make installEIGEN3_INCLUDE_DIR = /usr/local/include/eigen3/原创 2021-02-17 18:53:28 · 524 阅读 · 0 评论 -
nginx: configuration file /home/xx.local/etc/nginx/nginx.conf test failed
nginx启动失败输入:nginx -t -c $HOME/.local/etc/nginx/nginx.confnginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)2021/02/17 01:42:50 [warn] 3784#3784: the "user" directive makes sense only if the m原创 2021-02-17 08:53:39 · 8300 阅读 · 0 评论 -
Github简易上手指南The authenticity of host github.com can‘t be established 如何生成SSH-key
第一步按照官方教程生成SSH公钥和私钥ssh-keygen -t rsa -b 4096 -C "your_email@example.com"> Generating public/private rsa key pair.> Enter a file in which to save the key (/home/you/.ssh/id_rsa): [Press enter]> Enter passphrase (empty for no passphrase): [Typ原创 2020-09-26 04:19:06 · 773 阅读 · 0 评论 -
Unable to correct problems, you have held broken packages无法安装libignition-math6-dev
sudo apt-get install libignition-math6-dev出现错误!Reading package lists... DoneBuilding dependency treeReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are u原创 2021-02-17 04:10:49 · 360 阅读 · 0 评论 -
virtualenv: error: unrecognized arguments: --no-site-packages
使用virtualenv --version,看到自己的版本大于20,就可以将如下这段删除:export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'我碰到的情况下:user_makefile报错找到对应文件后,找到no-site-packages删除即可!因为从版本20开始,默认就是’--no-site-packages‘了。...原创 2021-02-17 01:29:55 · 238 阅读 · 0 评论 -
git错误pathspec did not match any file(s) known to git及相关操作
Git error:pathspec did not match any file(s) known to git本地文件与远程无对应:我这里的情况是在执行./update_nrp update --allgit pullAlready up to date.git fetchgit branch -a* master remotes/origin/HEAD -> origin/development remotes/origin/IBA1 remotes/orig..原创 2021-02-15 10:15:30 · 22375 阅读 · 0 评论 -
切换到WSL2.0后无法连接到x-server Unable to init server: Could not connect: Connection refused无法显示窗口
之前通过安装vcxsrv-64.1.20.9.0.installer.exe,启动x-launch服务器后无法通过bash打开显示窗口错误:Unable to init server: Could not connect: Connection refused(gedit:2705): Gtk-WARNING **: 17:54:46.065: cannot open display: :0.0原因可能是WSl2.0变动后,无法连接到服务器需要更改~/.bashrc文件su原创 2021-01-13 01:03:45 · 9832 阅读 · 5 评论 -
Windows Pro Docker Desktop安装方法Windows Subsystem Linux 2.0
官方地址:https://docs.docker.com/docker-for-windows/install/确认WSL2.0版本:WSL安装方法,详见https://blog.csdn.net/li4692625/article/details/108424771windows power shell 运行 wsl -l -v, 能看到版本号version的一般为2.0WSL 1.0切换到2.0的方法:https://docs.microsoft.com/en-us/windo.原创 2021-01-04 00:26:50 · 148 阅读 · 0 评论 -
Temporary failure in name resolution域名解析错误Failed to fetch...导致Ubuntu无法更新(WSL2)
sudo apt-get updatesudo apt-get upgrade#错误错误:Failed to fetch... Temporary failure in name resolution原因分析是:DNS服务器无法正确解析解决方法:sudo rm -f /etc/resolv.confsudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.confreboot来源:https://itectec.com...原创 2021-01-12 22:58:30 · 1422 阅读 · 0 评论