
ubuntu
ubuntu操作记录
qq_45911550
蚓无爪牙筋骨,唯用心也。
展开
-
ubuntu18.04 cuda安装日志
[sudo] password for hjshao: ============ Summary ============Driver: Not SelectedToolkit: Installed in /usr/local/cuda-11.0/Samples: Installed in /home/hjshao/, but missing recommended librariesPlease make sure that - PATH includes /usr/loc原创 2022-03-28 15:56:58 · 1441 阅读 · 0 评论 -
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
执行下面的命令能够成功。(Yolov5) C:\Users\Lu Daze>conda install pytorch torchvision torchaudio cudatoolkit=10.0 -c pytorch(Yolov5) C:\Users\Lu Daze>conda install pytorch torchvision torchaudio cudatoolkit=10.0 -c pytorchCollecting package metadata (current_r原创 2022-03-17 17:08:15 · 1482 阅读 · 0 评论 -
linux修改密码
参考链接原创 2022-03-08 20:40:50 · 143 阅读 · 0 评论 -
k80安装cuda
1、k80不带输出接口,我的电脑里另外又放了一张显卡,先查看GPU信息运行lspci | grep -i nvidia我得到如下结果03:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)04:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)05:00.0 VGA compatible controller: NVIDIA Corp原创 2022-02-26 11:25:05 · 5222 阅读 · 0 评论 -
linux下查看文件(夹)信息
1、查看文件大小ls -lh # 查看当前目录下文件的大小原创 2021-10-28 22:10:11 · 2617 阅读 · 0 评论 -
grep使用笔记
一、使用1、找到文件中包含“aaa”的所有python文件grep -rn "aaa" *.py2、常用模式[root@www ~]# grep [-acinv] [--color=auto] '搜寻字符串' filename选项与参数:-a :将 binary 文件以 text 文件的方式搜寻数据-c :计算找到 '搜寻字符串' 的次数-i :忽略大小写的不同,所以大小写视为相同-n :顺便输出行号-v :反向选择,亦即显示出没有 '搜寻字符串' 内容的那一行!--color=au原创 2021-10-28 21:18:25 · 147 阅读 · 0 评论 -
sftp上传和下载文件
教程1、连接[root@tecmint ~]# sftp tecmint@27.48.137.6Connecting to 27.48.137.6...tecmint@27.48.137.6's password:sftp>2、上传文件sftp> put local.profile #需要在远程服务器新建一个local文件夹,否则会报错Uploading local.profile to /tecmint/local.profile3、下载文件sftp> get原创 2021-10-27 22:06:38 · 3380 阅读 · 0 评论 -
linux查看和关闭系统代理
参考链接原创 2021-10-10 20:42:05 · 2098 阅读 · 0 评论 -
linux man命令使用笔记
1、定位显示文档中的某一关键字,输入/String,回车Sring就会显示高亮,n找到下一个,N找到上一个;原创 2021-08-04 11:01:28 · 87 阅读 · 0 评论 -
ubuntu防火墙
查看状态sudo ufw status关闭sudo ufw disable打开sudo ufw enable参考链接原创 2021-07-01 21:18:47 · 120 阅读 · 0 评论 -
linux改变文件编码格式
参考连接原创 2021-07-01 12:30:13 · 271 阅读 · 0 评论 -
linux压缩与解压
1、rar参考链接原创 2021-06-30 16:37:21 · 94 阅读 · 0 评论 -
ubuntu 安装netbeans
忠告:不要使用sudo apt-get install netbeans来进行安装,我在ubuntu18.04得到了血的教训,一堆问题,实在难搞使用sudo snap install netbeans --classic来进行安装即可。原创 2021-06-03 15:36:13 · 487 阅读 · 0 评论 -
ubuntu下查看软件和apt-get 卸载软件
参考链接原创 2021-06-03 15:24:17 · 2778 阅读 · 0 评论 -
ubuntu18.04安装android-studio
sudo apt install openjdk-8-jdksudo snap install android-studio --classic原创 2021-05-30 23:56:27 · 334 阅读 · 2 评论 -
ubuntu18.04配置pycharm+pyqt5
原创 2021-05-29 18:17:12 · 471 阅读 · 0 评论 -
linux(ubuntu)下各种语言的编译调试运行
一、python1、调试命令:原文链接二、c++c++调试也可用c的调试方法三、c四、java五、matlab原创 2021-05-23 22:14:13 · 131 阅读 · 0 评论 -
ubuntu18.04安装chrome
原创 2021-05-22 23:04:48 · 128 阅读 · 0 评论 -
ubuntu18.04 安装中文输入法
link原创 2021-05-05 23:29:34 · 497 阅读 · 0 评论 -
ubuntu进阶用法
一、用户操作1、用户的添加删除和切换参考链接2、修改密码一般用户输入passwd之后需要输入当前密码才能够修改密码,进入超级用户之后可以直接修改密码,不用管当前密码,在这种情况下:1、如果修改root密码,直接输入passwd便可以更改2、如果需要修改某一用户的密码,命令为passwd username...原创 2021-03-13 10:59:48 · 190 阅读 · 0 评论 -
ubuntu20.04安装opencv4
安装教程如果报错如下:参考这个解决方案原创 2021-02-17 12:27:26 · 748 阅读 · 0 评论 -
服务器和本地主机之间的文件复制
参考链接原创 2021-02-04 00:14:26 · 171 阅读 · 0 评论 -
linux进程管理
1、ps c现实进程的真实名称2、显示所有进程信息,连同命令行ps -ef3、ps 与grep 常用组合用法,查找特定进程ps -ef |grep ssh4、显示指定用户进程ps -u root5、按内存占用情况对进程排序ps auxw --sort=rss6、在进行系统维护时,如果CPU负载突然增加,而又不知道是哪一个进程造成的ps auxw --sort=%cpu...原创 2021-01-13 17:50:37 · 124 阅读 · 0 评论 -
ubuntu20.04安装英伟达驱动用于机器学习训练
原文地址在安装过程中出现了一些小插曲,最后重复安装之后总算成功了!原创 2021-01-10 17:38:33 · 501 阅读 · 0 评论 -
ubuntu 的anaconda和系统自带的python切换使用的方法
附上链接转载 2021-01-08 23:26:50 · 422 阅读 · 0 评论 -
ubuntu卸载删除anaconda的方法(主要在于删除配置文件)
电脑第一次安装anaconda之后,修改了.condarc文件,导致了一堆问题,后面卸载(直接将anaconda文件夹删了)重装,之后几次都不成功,最后在文件夹下把与anaconda相关的文件都删了,再次装上安装才将问题完美解决。删除的配置文件和anaconda所在目录是一样的,但是被隐藏了,CTRL+H就可以显示出来,主要有下面这些。...原创 2021-01-08 22:20:28 · 1013 阅读 · 0 评论 -
安装向日葵ubuntu20.04
链接转载 2021-01-05 16:31:44 · 358 阅读 · 0 评论 -
How to add a directory into path under ubuntu
1.CTRL+ALT+Tsudo vim .bashrc2.add the following information at the end of the fileexport PATH="/path/to/dir:$PATH"/path/to/dir is your directory you want to add to path3.After saving, run the command in your terminal:source ~/.bashrcover原创 2020-12-31 01:01:07 · 219 阅读 · 0 评论 -
curl basic usage
curl urlcurl, a tool to request internet with bash, may be Chinese couldn’t display normally, you should install zhcon with command sudo apt-get install zhcon then, the command to enter Chinese interface…may be:zhcon --utf8To exit with he keyboard shortc原创 2020-12-29 22:57:42 · 104 阅读 · 0 评论 -
install flash player for firefox, system: ubuntu20.04
In gernal:after downloading the .tar.gz file, we should unpackage the package,there will be a file whose suffix is.so(libflashplayer.so), it’s the useful file, copy this file to the right floder of firefox’s pougs, the path is be /usr/lib/mozilla/plugi原创 2020-12-28 21:51:04 · 162 阅读 · 0 评论 -
ubuntu第二次安装kivy打包环境(一次搞定,没有出错)
kivy第一次打包的过程可谓十分艰辛,各种错误,很难解决,之前的我的笔记本以物理机的形式装了ubuntu,后面由于办公不便,又装回了win10。近段时间给笔记本加了一块ssd,就在这块ssd上又装了一ubuntu20.04,而这一次对kivy环境的安装却十分顺利,只是耗时有点长,大概两到3个小时(晚上12点开始打包,弄到凌晨1点半,还有好几个包没下载,我就直接睡了,第二天起来就打包好了)具体过程:第一步:安装kivy第二步:安装buildozer第三步:选定一个目录存放你的源程序,命名为main.p原创 2020-12-21 08:26:34 · 1842 阅读 · 10 评论 -
关于vim的一些配置
sudo vim ~/.vimrc插入下面的信息autocmd FileType python set tabstop=4 | set expandtab | set autoindentset helplang=cn "中文帮助文档(前提是下了中文包)syntax enablesyntax on " 自动语法高亮set number"显示行号colorscheme desert" 设定配色方案set guifont=Consolas:h12:cANSI"英文字体set guifontw原创 2020-12-20 20:28:58 · 117 阅读 · 0 评论 -
ubuntu20.04安装QQ、微信、钉钉
在执行下面这个命令:wget -O- https://deepin-wine.i-m.dev/setup.sh | sh会有下面的提示,按照提示安装即可:大功告成,现在可以试试安装更新deepin-wine软件了,如:微信:sudo apt-get install com.qq.weixin.deepinQQ:sudo apt-get install com.qq.im.deepin钉钉:sudo apt-get install com.dingtalk.deepin由于新版变化,安装完成后原创 2020-12-20 09:41:15 · 3502 阅读 · 13 评论 -
ubuntu20.04 如何在命令模式和GUI之间切换
6进入命令模式。初次尝试,在了很多跟头。1、CTRL+ALT+F7回来,无效2、startx回来,无效重启了若干次之后查到一个命令:sudo systemctl isolate graphical完美回来。原创 2020-12-19 19:04:43 · 12068 阅读 · 3 评论 -
conda 无法激活base环境解决办法
解决办法:# 重新进入虚拟环境source activate# 退出虚拟环境conda deactivate原创 2020-12-19 12:03:53 · 7670 阅读 · 2 评论 -
ubuntu进入root权限
退出root:CTRL+dexit原创 2020-12-19 01:33:57 · 497 阅读 · 3 评论 -
ubuntu设置可隐藏的文件夹
如果你想在linux下建立一个文件夹,但是又想打开是看不到它,那么你可以在文件名前加一个点(.)。这是我的home目录。创建完之后并没有显示u,如何让他显示呢,CTRL+H即可原创 2020-12-19 01:26:35 · 928 阅读 · 1 评论 -
ubuntu 外接显示器只有桌面
如上图,选择镜像,不过这个时候笔记本的屏幕也是在使用中,可以将笔记本设置为合上盖子仍然运行就可以了。原创 2020-12-19 00:37:23 · 1150 阅读 · 1 评论 -
win10家庭版卸载linux子系统
因为各种原因先在虚拟机上装了ubuntu,后又在win10开启了ubuntu的子系统,用着不顺心,果断卸载;这个命令没有作用了:lxrun /uninstall /full这样子搞:linux系统还是来物理机装上比较好,虚拟机和子系统只能到一些小事情,很容易出问题;...原创 2020-08-11 13:11:53 · 480 阅读 · 1 评论 -
solution of wrong like this:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?solution:To install or uninstall any software using non root user, you have to原创 2020-08-14 23:14:50 · 168 阅读 · 0 评论