![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ubuntu
DarrenXf
这个作者很懒,什么都没留下…
展开
-
Some index files failed to download. They have been ignored, or old ones used instead
Some index files failed to download. They have been ignored, or old ones used insteadwhen use–sudo apt-get updatefail and showSome index files failed to download. They have been ignored, or old o...原创 2020-03-16 20:30:30 · 1157 阅读 · 0 评论 -
E: Package <packagename> has no installation candidate
E: Package has no installation candidatesolutionsudo apt-get updatesudo apt-get upgradesudo apt-get install <packagename>原创 2020-03-16 20:29:42 · 394 阅读 · 0 评论 -
about ubuntu could not get lock /var/lib/dpkg/lock solution
about ubuntu could not get lock /var/lib/dpkg/lock solutiondelete the lock filesudo rm /var/lib/dpkg/lockthen you can use apt-get likesudo apt-get install vim原创 2020-03-16 20:25:43 · 166 阅读 · 0 评论 -
Ubuntu 16.04 下 旋转显示器屏幕 竖屏显示
xrandr -o left$ xrandr -o left 向左旋转90度$ xrandr -o right 向右旋转90度$ xrandr -o inverted 上下翻转$ xrandr -o normal 回到正常角度原创 2018-09-14 10:58:03 · 14730 阅读 · 0 评论 -
Ubuntu 16.04 菜单栏 换位置 挪到左边 挪到下边
Ubuntu菜单栏的位置可以调 到左侧 或者底部调整到底部$ gsettings set com.canonical.Unity.Launcher launcher-position Bottom调整到左侧$ gsettings set com.canonical.Unity.Launcher launcher-position Left ...原创 2018-09-14 10:58:24 · 1935 阅读 · 0 评论 -
Ubuntu 16.04 curl 安装 使用
curl是利用URL语法在命令行方式显工作的开元文件传输工具。安装$ sudo apt install -y curl使用$ curl http://www.baidu.com这是最简单的使用方法。用这个命令获得到http://www.baidu.com指向的页面,同样,如果这个URL指向的是文件或者图片,就会直接下载到本地。如果下载的是HTML文档,那么缺省只会显示文件头...原创 2018-09-14 10:58:34 · 12649 阅读 · 0 评论 -
Python Linux Ubuntu apt安装PyCharm
PyCharm一个是Python集成开发环境,它既提供收费的专业版,也提供免费的社区版本。PyCharm带有一整套可以帮助用户在使用Python语言开发时提高其效率的工具,比如调试、语法高亮、Project管理、代码跳转、自动完成、单元测试。PyCharm非常好用,而且是跨平台的。PyCharm网址:http://www.jetbrains.com/pycharm/添加源:$ sudo a...原创 2018-10-09 14:52:35 · 462 阅读 · 0 评论 -
Ubuntu mysql安装与使用
Ubuntu 下安装 mysql运行下面的shell代码#安装mysql sudo apt-get -y install mysql-server sudo apt-get -y install mysql-client sudo apt-get -y install libmysqlclient-dev 安装过程中会提示你创建root账户那就创建 要把root...原创 2018-10-17 14:38:02 · 1066 阅读 · 0 评论 -
Ubuntu鼠标变十字 不能点击
出现这种情况,应该是bash 直接运行了python文件系统中出现了一个import 进程.python文件中除了注释应该是import在最前边ps -ef|grep import可以查看系统中的这个进程you 9541 9538 0 15:49 pts/2 00:00:00 [import] <defunct>you 17627 17624 0...原创 2018-10-26 15:59:00 · 1226 阅读 · 0 评论 -
Ubuntu matplotlib animation save 保存 使用 例子
animation_demo.py"""================pyplot animation================Generating an animation by calling `~.pyplot.pause` between plotting commands.The method shown here is only suitable for s...原创 2018-09-06 14:54:01 · 2094 阅读 · 0 评论 -
Ubuntu 16.04 apt-get 安装 ffmpeg
Ubuntu 16.04 下 apt-get 安装 ffmpegsudo add-apt-repository ppa:djcj/hybridsudo apt-get updatesudo apt-get -y install ffmpeg网速比较慢的话可能会失败,经测试可以安装成功。...原创 2018-09-06 14:13:45 · 5615 阅读 · 0 评论 -
Ubuntu 16.04 截图 快捷键 设置 screenshot
Setting->Keyboard->Shortcurts->Custom Shortcuts-> + 号然后输入名称 :自有截图命令: gnome-screenshot -a点击 Apply点击自由截图 后面的Disabled按下 Ctrl +Alt +A 三个键至此 自有截图命令设置完成调用就可以直接 Ctrl+Alt+A...原创 2018-09-03 16:47:37 · 1756 阅读 · 0 评论 -
Ubuntu Git的安装与使用
First,确定你的系统中是否有git,简单通过git命令查看$ git没有git的话,系统会给出提示。如果没有git,通过在命令行输入 sudo apt-get install git 命令安装git。$ sudo apt-get install git安装后,配置git$ git config --global user.name "your name"$ gi...原创 2018-08-22 17:12:30 · 210 阅读 · 0 评论 -
Ubuntu 18.04 16.04 Nvidia 驱动安装
First,查看nvidia-smi 命令:$ nvidia-smiCommand 'nvidia-smi' not found, but can be installed with:sudo apt install nvidia-340 sudo apt install nvidia-utils-390查看显卡信息:$ lspci |grep VGA01:...原创 2018-08-27 14:11:10 · 13891 阅读 · 5 评论 -
Ubuntu 18.04 16.04 设置输入法切换方法 中文输入法
新装的unbunu 18.04 16.04 也可以。默认应该有中文输入法,但是应该不太好用。我们安装一个搜狗输入法。下面的shell代码实现了更新软件,检查语言支持。然后下载搜狗输入法,并且安装。然后把fcitx设置为默认输入。然后重启系统。重启系统后修改生效。sudo apt-get -y updatesudo apt-get -y upgratesudo apt -y in...原创 2018-08-23 11:30:22 · 15259 阅读 · 1 评论 -
Ubuntu 16.04 下查看gpu的运行情况
$ nvidia-smiFri Aug 31 14:49:38 2018 +-----------------------------------------------------------------------------+| NVIDIA-SMI 384.130 Driver Version: 384.130 ...原创 2018-08-31 14:53:21 · 6022 阅读 · 3 评论 -
Ubuntu 16.04 安装CUDA9.2
Verify You Have a CUDA-Capable GPU$ lspci | grep -i nvidia01:00.0 VGA compatible controller: NVIDIA Corporation Device 1b06 (rev a1)01:00.1 Audio device: NVIDIA Corporation Device 10ef (rev a1)...原创 2018-08-29 13:31:03 · 1620 阅读 · 0 评论 -
Ubuntu 16.04 安装cuDNN 7.1
安装cuDNN7.1同样去英伟达官网的cuDNN下载页面:https://developer.nvidia.com/rdp/cudnn-download,最新版本是cuDNN7.1.4,有三个版本可以选择,分别面向CUDA8.0, CUDA9.0, CUDA9.2:查看本机的cuda$ nvcc -VCopyright (c) 2005-2018 NVIDIA Corporat...原创 2018-08-29 15:04:11 · 6300 阅读 · 0 评论 -
Ubuntu 16.04 安装 CUDA 9.0 cuDNN 7.0 tensorflow-gpu 1.8.0
默认系统装的是Ubuntu 16.04,并且安装了显卡驱动。走过很多坑,这些软件之间是互相依赖的,所以我们只安装这些固定的版本。CUDA 9.0 cuDNN 7.0 tensorflow-gpu 1.8.0 希望以后会更容易安装些。如果不是这篇文章写了很久,就照着这篇文章做,不要试图去安装这里涉及软件的最新版本。第一步先安装 CUDA 9.0。这个并不是官方默认最新的。下载地址...原创 2018-08-29 18:27:34 · 1879 阅读 · 0 评论 -
Ubuntu屏幕录制工具
命令安装SimpleScreenRecordersudo add-apt-repository ppa:maarten-baert/simplescreenrecordersudo apt-get updatesudo apt-get install simplescreenrecorder原创 2018-09-05 13:04:54 · 601 阅读 · 0 评论 -
matplotlib animation 动画 使用
import numpy as npimport matplotlib.pyplot as plt from matplotlib.animation import FuncAnimationfig, ax = plt.subplots()xdata,ydata = [],[]ln, = ax.plot([],[],'r-',animated=False)def init():...原创 2018-09-05 23:09:38 · 1866 阅读 · 0 评论 -
Ubuntu 运行Shell 以及 修改Ubuntu默认Shell
平时写的Shell都是bash,在Ubuntu上写Shell有些不习惯。因为buntu6.10已将先前默认的bashshell更换为了dash。其表现是/bin/sh链接到了/bin/dash而不是传统的/bin/bash。$ cd /bin$ ll sh -> dash*在现在的Ubuntu中,/bin/sh默认是指向dash,不是传统的bash shell。das...原创 2018-08-26 11:00:53 · 14771 阅读 · 0 评论