Use Linux
文章平均质量分 82
Learn linux by using it.
ShaneRun
To Think, To Explore, To Contribute.
展开
-
Install cuDNN v8.0.5 in ubuntu 20.04
what: NVIDIA cuDNN是用于深度神经网络的GPU加速库。cuDNN安装很简单,就是将解压的文件放到指定位置即可.why: GPU acceleration for DNNhow: cuDNN安装很简单,就是将解压的文件放到指定位置即可[2].step 1: Register a Nvidia account and go to the download page. Select the version based on your CUDA versionstep 2: naviga.原创 2021-01-24 00:01:27 · 873 阅读 · 0 评论 -
[210121] Nvidia驱动自动更新后导致nvidia-smi不可用
[210121] Failed to initialize NVML: Driver/library version mismatchwhat: failed to use nvidia-smi on 1/21, but it worked normally on 1/20.(base) shane@shane-MS-7A94:~$ nvidia-smiFailed to initialize NVML: Driver/library version mismatchwhy: Driver/li原创 2021-01-22 11:03:54 · 701 阅读 · 0 评论 -
[210121] install nvidia driver via ssh
[210121] install nvidia driver via sshwhat: install nvidia driver via sshwhy: server is in another placehow:step 1: download target driverstep 2: stop X server service# 为了能够安装新的 nvidia 驱动,我们需要关闭这个 X 服务,我的 Ubuntu 是基于 lightdm 类型的桌面系统,采用如下命令:$ sudo /e原创 2021-01-22 10:49:10 · 445 阅读 · 1 评论 -
How to embed used fonts while making PDF file in Linux?
Take Ubuntu 20.04 for example:$ pdftops intput_file.pdf$ ps2pdfwr -dPDFSETTINGS=/prepress intput_file.ps output_file.pdfI tried, and got succeeded.原创 2020-10-25 08:28:55 · 63 阅读 · 0 评论 -
[200917] difference between ‘/‘, ‘./‘ and ‘../‘
[200917] difference between ‘/’, ‘./’ and ‘…/’‘/’ is the root folder‘./’ is current folderfor example: python test.py and python ./test.py is the same‘…/’ is parent folder原创 2020-09-17 10:42:21 · 73 阅读 · 0 评论 -
[200830] Temperature monitoring in Linux
[200830] temperature monitoringCPUUse ‘lm_sensors’ to monitor CPU: Linux 查看CPU温度# checkrpm -q lm_sensors# installsudo apt-get install lm-sensors -y# configure sensorsyes | sudo sensors-detect# runsensors# watch every 2swatch -n 2 sensorsGPUw原创 2020-08-30 13:39:30 · 125 阅读 · 0 评论 -
[200718]write error: No space left on device
After this error, I could’t login the system any more…But I could still use SSH to login the server.Then, used the following guideline to clean the disk.After that, I could login the server normally.1.查询磁盘空间占用情况df -h2.进入根目录,查询大文件与目录cd /du -sh * |原创 2020-07-20 09:26:59 · 281 阅读 · 0 评论 -
linux_ask_02-How to enable/disable ssh service?
ID = linux_ask_02Status: closedQuestionHow to manage auto startup service?Take ssh service as example, this is enabled by default.I want to disable it.AnswerLearn from [1], the way is simple.To disable the SSH service to start during system boot ru原创 2020-07-04 21:14:34 · 363 阅读 · 0 评论 -
linux_ask_03-How to install tar.gz file in Linux?
ID = linux_ask_03文章目录QuestionAnswerStep1: extract the fileStep2: install[2]More correct way?Step1: extract the fileStep2: follow the installation instructionMy exampleStep1: extract pycharm-community-2020.1.2Step2: follow `Install-Linux-tar.txt`Reference原创 2020-07-04 21:03:41 · 365 阅读 · 0 评论 -
linux_isu_00-No module named “Torch” error in Ubuntu 20.04
背景介绍Ubuntu 20.04 + Anaconda3 + PyTorch1.5注:Win10下安装Ubuntu双系统,参考下面的操作,写得很好。Ubuntu 20.04安装及pytorch深度学习框架配置https://blog.csdn.net/xjgao75/article/details/105869699/几点说明:(1)启动U盘只要8 GB就够了。(2)安装Ubuntu 20.04时,在分区那一步太复杂了,对于新手,选择一个挂载点(“\”)就可以了,没有进行分区。(3)没有原创 2020-06-17 14:59:11 · 352 阅读 · 0 评论 -
linux_ask_00-How to install ffmpeg in Ubuntu 20.04?
文章目录How to install ffmpeg in Ubuntu 20.04?Step1: Check statusStep2: InstallStep3: Check resultHow to install ffmpeg in Ubuntu 20.04?Step1: Check status$ ffmpeg -version Command 'ffmpeg' not found, but can be installed with: sudo apt install ffmpeg原创 2020-06-23 21:21:51 · 369 阅读 · 0 评论 -
linux_ask_01-How to install .deb package?
ID = linux_ask_01文章目录QuestionAnswerStep1: Download .deb fileStep2: Change directory to the download folderStep3: InstallStep4: Check resultStep5: Error fixing (if check failed)ReferenceQuestionHow to install .deb package?AnswerIn a word: Install your原创 2020-06-25 07:19:39 · 403 阅读 · 0 评论 -
linux_ask_03-What is bash?
ID = linux_ask_03文章目录QuestionAnswerExtension - Shell[2]EXtension - Core of linux[3]ReferenceQuestionWhat is bash?Answer本质上是Linux默认的Shell(Linux不止这一种Shell)。Shell作为用户接口,充当了用户与Kernel之间沟通桥梁的作用。bash实质上是一个可执行程序,一个用户的工作环境。[1]bash 是一个为GNU项目编写的Unix shell,原创 2020-06-28 10:46:13 · 138 阅读 · 0 评论