随笔分类 -  linux

ubuntu nvidia显卡切换
摘要:笔记本是双显卡 intel+navida 刚开始时 sudo ubuntu-drivers autoinstall 装好驱动,外置显示器显示正常,后来重启后死活不显示 查了一天的资料,终于找到答案了 https://askubuntu.com/a/1134579 原因是切换过 intel 显卡,变成 阅读全文

posted @ 2020-07-29 15:30 庭中核桃树 阅读(555) 评论(0) 推荐(0)

Docker 使用 aliyun 镜像加速
摘要:登录阿里云获取加速器地址 https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors 创建配置文件 sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { 阅读全文

posted @ 2020-07-21 10:51 庭中核桃树 阅读(446) 评论(0) 推荐(0)

拯救者Ubuntu 无线网卡
摘要:```shell sudo gedit /etc/rc.local echo " "|sudo modprobe -r ideapad_laptop ``` 阅读全文

posted @ 2019-06-04 14:31 庭中核桃树 阅读(256) 评论(0) 推荐(0)

Ubuntu 安装 gtest
摘要:```shell sudo apt-get install libgtest-dev cd /usr/src/gtest #没有安装Cmake的请先安装cmake sudo mkdir build cd build sudo cmake .. #一定要以sudo的方式运行,否则没有写入权限 sudo make #这个也一样要以sudo的方式 sudo cp libgtest*.a /... 阅读全文

posted @ 2019-05-24 10:02 庭中核桃树 阅读(1007) 评论(0) 推荐(0)

pcl 的安装
摘要:每次重装系统都要重新编译,太耗时间了。 将编译好的pcl 安装到自己的home 下,这样每次重装系统就可以不用重新编译了,好了很多。 阅读全文

posted @ 2019-05-23 16:28 庭中核桃树 阅读(182) 评论(0) 推荐(0)

互斥锁 形成死锁实例
摘要:```c++ include include include std::mutex coutMutex; int main(){ std::thread t([]{ std::cout lockGuard(coutMutex); std::cout lockGuard(coutMutex); std 阅读全文

posted @ 2019-04-11 15:31 庭中核桃树 阅读(248) 评论(0) 推荐(0)

安装terminator与配置
摘要:```shell sudo apt-get install terminator ``` ```shell sudo gedit ~/.config/terminator/config ``` ```shell [global_config] [keybindings] [profiles] [[default]] use_system_font = False # 是否启用系统... 阅读全文

posted @ 2019-03-22 16:07 庭中核桃树 阅读(923) 评论(0) 推荐(0)

导航