
linux
喵喵扫描仪
这个作者很懒,什么都没留下…
展开
-
AWS的各种key的互转与使用
把pemkey转换成ssh-rsassh-keygen -y -f 1.pem > 1.rsa添加到ec2的认证里面,也可以修改cat 1.rsa >> ~/.ssh/authorized_keyswindows登录的时候使用puttygen.exe 转换pem到ppk,勾选ssh-1(rsa),save privatekey原创 2021-09-01 16:02:50 · 473 阅读 · 0 评论 -
ROG Zephyrus G14(幻14)Ubuntu 20.04 双系统安装避坑指南(4800H AMD Nvidia GPU核显独显问题,快捷键Fn键盘灯驱动)
目录1.G14为什么安装Ubuntu 20.04?2.大致步骤3.遇到的问题4.解决问题1.G14为什么安装Ubuntu 20.04?试着安装18.04没有成功,各种问题,AMD这颗4800HS CPU/GPU以及Intel的AX200 Wifi6无线网卡都太新了,20.04至少可以顺利安装运行GNOME.2.大致步骤留出硬盘的free space准备安装Ubuntu下载Rufus和Ubuntu20.04 ISO镜像烧录到U盘里制作启动盘在FreeSpace上建立Ext4分区,挂载到"/“下,原创 2020-10-02 00:00:30 · 7817 阅读 · 19 评论 -
Ubuntu Installing Multiple GCC Versions多个GCC版本安装和切换
This section provides instructions about how to install and use multiple versions of GCC on Ubuntu 18.04. The newer versions of the GCC compiler include support for new languages, better performance and extended features.At the time of writing this articl原创 2020-09-30 22:01:54 · 802 阅读 · 0 评论 -
Ubuntu apt-get & snap proxy
1sudo apt-get -o Acquire::http::proxy=“http://127.0.0.1:12333/” install six2修改/etc/apt/apt.conf(或者/etc/envrionment),增加Acquire::http::proxy “http://127.0.0.1:12333/”;Acquire::ftp::proxy “ftp://127.0.0.1:12333/”;Acquire::https::proxy “https://127.0.0.1原创 2020-09-30 21:55:39 · 783 阅读 · 0 评论 -
Ubuntu 18.04 qt5 cuda 10.2 cudnn 7.6.5下的OpenCV 4.4.0 C++编译
下载opencv-4.4.0.zipunzip opencv-4.4.0.zipcd opencv-4.4.0.zipmkdir buildcd build安装依赖,参考How to install OpenCV 4.2.0 with CUDA 10.0 in Ubuntu distro 18.04$ sudo apt update$ sudo apt upgrade$ sudo apt install build-essential cmake pkg-config unzip yas原创 2020-07-31 16:59:06 · 1140 阅读 · 3 评论 -
Pytorch的一些使用技巧(不定期更新)
1.如果pytorch运行有问题可以查看一下运行环境以及编译的cuda版本等:python -c 'from torch.utils.collect_env import main; main()'示例输出:Collecting environment information... PyTorch version: 1.4.0 Is debug build: No CUDA used to build PyTorch: 10.1OS: CentOS Linux 7 (Core) GCC vers原创 2020-06-24 10:51:19 · 486 阅读 · 0 评论 -
CentOS7的一些常用操作记录
CentOS7防火墙添加端口firewall-cmd --list-portsfirewall-cmd --permanent --zone=public --add-port=12345/tcpfirewall-cmd --reload原创 2020-05-08 11:30:09 · 149 阅读 · 0 评论 -
持续监控GPU运行情况
watch -d -n 0.5 nvidia-smi-d是会highlight变化的部分,可以清晰的观察GPU的使用率原创 2020-04-22 16:57:48 · 939 阅读 · 0 评论 -
Multiple SSH Keys settings for different github account
Multiple SSH Keys settings for different github accountcreate different public keycreate different ssh key according the article Mac Set-Up Git$ ssh-keygen -t rsa -C "your_email@youremail.com"Ple...转载 2020-03-26 22:52:50 · 171 阅读 · 0 评论 -
Python Conda的一般使用
创建和使用Conda环境配置文件with your conda environment activated, run the following command to generate dependency yaml file:conda env export > environment_droplet.ymlCommit the yml file, git clone the...原创 2020-03-26 22:43:55 · 595 阅读 · 0 评论 -
解决Linux多个本地用户之间文件共享的问题,文件夹访问Permission Denied
主要思路就是用root权限创建文件夹,然后给文件夹分配用户组的权限,然后把所有需要访问这个文件夹的用户加到这个用户组当中来例如有alex,bob两个用户,互相无法访问对方的home~文件夹,为了共享文件,可以让root用户在/home中创建一个shared文件夹,然后创建一个用户组dev01在root或者sudo下:groupadd dev01创建用户组之后添加文件夹并为文件夹更改组m...原创 2020-03-26 22:32:42 · 10746 阅读 · 2 评论 -
CentOS能ping通IP但是无法解析DNS的问题Could not resolve host
最近使用新的GPU服务器遇到Could not resolve host: mirrorlist.centos.org; Unknown error这说明DNS没有配置好先试试能不能ping通IP,如果可以只要设置一下DNS就行了ping 8.8.8.8OK的话修改 /etc/resolv.conf添加:nameserver 8.8.8.8保存,然后yum update...原创 2020-03-26 22:51:57 · 1933 阅读 · 1 评论 -
Ubuntu 18.04 及 cuda深度学习环境安装
安装ubuntu 18.04 desktop1.下载镜像https://ubuntu.com/download/desktop2.制作启动u盘如果是Windows就使用etcherhttps://www.balena.io/etcher/或者rufushttps://rufus.ie/制作启动u盘3.开始安装正常安装,记得安装的时候选上第三方驱动之类的4.启动系统这个时候...原创 2020-03-26 22:39:27 · 1118 阅读 · 0 评论