[TOC] 背景 为了在某个conda环境使用带有cuda支持的opencv,手动编译 环境 ubuntu+cuda+conda+cmake 激活conda环境 conda create --name track python=3.6.9 conda activate track 建议安装上numpy,编译
ubuntu安装多个版本gcc并切换
安装gcc sudo apt update sudo apt install build-essential 安装多个版本gcc sudo apt install gcc-7 g++-7 gcc-8 g++-8 gcc-9 g++-9 gcc-10 g++-10 以下update-alternatives命令将安装gcc编译器7/8/9/
ubuntu22.04开发环境搭建
修改apt源 (视网络情况而定,可选) sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #backup sudo vi /etc/apt/sources.list 修改/etc/apt/sources.list内容 deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted
Nginx搭建文件下载站
测试机器为一个debian的lxd容器,本地安装nginx默认配置文件在/etc/nginx/nginx.conf文件下,保持配置文件不修改
Freenas使用
修改源 备份 cp /usr/local/etc/pkg/repos/local.conf /usr/local/etc/pkg/repos/local.conf.bak cp /usr/local/etc/pkg/repos/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf.bak cp /etc/pkg/FreeBSD.conf /etc/pkg/FreeBSD.conf.bak 打开在线源开关 sed -i '' 's/enabled: yes/enabled: no/' /usr/local/etc/pkg/repos/local.conf sed -i '' 's/enabled: no/enabled: yes/' /usr/local/etc/pkg/repos/FreeBSD.conf 修改/etc/pkg/FreeBSD.conf,改成中科大源 FreeBSD: { url: "pkg+http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/quarterly", mirror_type: