
linux学习
农民小飞侠
如果放弃了,那还谈什么理想
展开
-
ubuntu 18.04 SUMO的安装教程
然后就可以开开心心的跑DQN,PPO等程序了哈,是不是很简单。原创 2023-04-01 19:26:58 · 669 阅读 · 1 评论 -
【linux】ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
找出系统中的libpython3.7m.so.1.0的位置。原创 2022-11-27 21:28:09 · 3877 阅读 · 2 评论 -
http://archive.ubuntu.com/ubuntu xenial/main amd64 tmux amd64 2.1-3build1 403 Forbidden
今天在更新ubuntu的时候出现了下面的错误:Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libevent-2.0-5 amd64 2.0.21-stable-2ubuntu0.16.04.1 403 ForbiddenErr:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 tmux amd64 2.1-3build1 403 Forbidden原创 2022-04-08 19:22:14 · 573 阅读 · 0 评论 -
Not enough space on parition mounted at /. Need 3391709712 bytes.
今天在装cuda的时候遇到了下面的问题:Not enough space on parition mounted at /. Need 3391709712 bytes.解决方法sh cuda_10.0.130_410.48_linux.run -tmpdir=/mnt/data --override这样就不抱错了。参考文献[1].安装cuda10.0 :Not enough space on parition mounted at /. Need 6996399136 bytes. ht原创 2022-04-06 09:47:49 · 561 阅读 · 0 评论 -
ubuntu 使用crontab设置定时任务
今天使用ubuntu设置定时任务,每天定时执行脚本,crontab可以在下面的网站上找:https://crontab.guru/every-5-minutes比如:0 8 * * *表示的是每天8点执行任务.首先安装crontab:apt-get install cron然后启动crontab:service cron restart然后编辑定时任务:crontab -e写入需要执行的定时任务,如:0 8 * * * /bin/bash /home/eric/run.sh原创 2022-03-05 11:40:21 · 3873 阅读 · 0 评论 -
ubuntu系统调整系统时间
今天发现ubuntu的时区不对,所以调整了一下,把调整过程分享出来:terminal输入命令:tzselect然后按照下面的操作就行了Please identify a location so that time zone rules can be set correctly.Please select a continent, ocean, "coord", or "TZ". 1) Africa 2) Americas 3) Antarctica 4) Asia 5) Atlanti原创 2022-03-02 10:08:22 · 1604 阅读 · 0 评论 -
ubuntu 16.04 anaconda 切换清华的软件源安装pytorch
今天用anaconda安装pytorch的时候,发现安装的速度很慢,于是切换成了anaconda的软件源:conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/# 设置搜索时显示通道地址conda config --set原创 2021-12-18 19:09:51 · 1059 阅读 · 0 评论 -
ubuntu开启键盘背光灯
今天买了键盘,发现背光灯不亮,但是在windows系统下就是好好的,一查资料,果然是ubuntu搞的鬼,还要设置命令,我真是:xset led named 'Scroll Lock'关闭背光灯xset -led named 'Scroll Lock'参考文献Ubuntu下设置键盘背光灯...原创 2021-11-04 22:45:30 · 1427 阅读 · 3 评论 -
ModuleNotFoundError: No module named ‘mkl‘
今天在运行QRec的时候出现了下面的问题:ModuleNotFoundError: No module named 'mkl'解决方法用anaconda安装conda install mkl-service参考文献help_ModuleNotFoundError: No module named ‘mkl’原创 2021-10-01 21:44:12 · 2330 阅读 · 8 评论 -
ssh_exchange_identification: Connection closed by remote host
今天在服务器上试了好多次密码,然后结果就登录不进去了,总是在报错:ssh_exchange_identification: Connection closed by remote host解决方法root用户登录进去,然后执行下面的命令:echo "sshd: ALL" >> /etc/hosts.allow && service sshd restart...原创 2021-09-16 17:06:16 · 518 阅读 · 0 评论 -
centos7 安装mysql5.7之后设置数据库密码
今天在centos7上面安装了mysql5.7,然后设置了密码,发现挺有意思的,这里分享出来,首先输入命令:mysql_secure_installation然后根据下面的步骤进行操作就行了。[root@server1 ~]# mysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE原创 2021-09-01 21:06:00 · 332 阅读 · 0 评论 -
paddle OSError: (External) Cuda error(101), invalid device ordinal.
今天把paddle降到了2.0之后,出问题了:...OSError: (External) Cuda error(101), invalid device ordinal. [Advise: Please search for the error code(101) on website( https://docs.nvidia.com/cuda/archive/10.0/cuda-runtime-api/group__CUDART__TYPES.html#group__CUDART__TYPES原创 2021-07-09 11:14:35 · 1712 阅读 · 0 评论 -
paddle RuntimeError: (PreconditionNotMet) Cannot load cudnn shared library.
今天在装了paddle-gpu版本运行程序的时候,出现了下面的问题:RuntimeError: (PreconditionNotMet) Cannot load cudnn shared library. Cannot invoke method cudnnGetVersion.解决方案好像是cudnn没装,需要装cudnn,我的是cuda10.2,于是下载对应的cudnn,下载地址为:https://developer.nvidia.com/rdp/cudnn-archive可能需要登陆哈,下载原创 2021-07-07 15:40:12 · 6985 阅读 · 0 评论 -
Cenos建立软连接的方式把docker从根目录移动到指定目录去,修改默认存储
今天在用docker镜像的时候,发现docker把Cenos的homemulu占满了,我用建立软连接的方法来解决/home空间不足的问题:首先找到doeker根目录docker info | grep "Docker Root Dir"我的根目录为:Docker Root Dir: /home/work/docker然后移动到指定的文件目录,我这里是/mnt目录mv /home/work/docker/ /mnt/ln -s /mnt/docker/ /home/work/etc/in原创 2021-07-02 15:29:41 · 565 阅读 · 0 评论 -
Could not find the required component ‘costmap_2d‘
今天在安装sensor layer的时候出现了下面的错误:-- Could not find the required component 'costmap_2d'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.CMake Error at /opt/原创 2021-06-19 20:00:28 · 3074 阅读 · 0 评论 -
ubuntu 16.04安装ROS Kinetic
今天尝试在ubuntu环境下安装ROS Kinetic,发现过程还不是很顺,我这里分享一下我的过程:sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF原创 2021-06-19 10:52:08 · 231 阅读 · 0 评论 -
ROS Unable to contact my own server at [http://eric-ms-7a54:42579/]
今天在使用ros环境的时候出现了下面的问题:➜ ~ roscore ... logging to /home/eric/.ros/log/4f4e2e38-d093-11eb-85c4-0242323584ca/roslaunch-eric-ms-7a54-2130.logChecking log directory for disk usage. This may take awhile.Press Ctrl-C to interruptDone checking log file原创 2021-06-19 08:27:47 · 1243 阅读 · 0 评论 -
ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21‘ not found
在运行TransGAN的时候出现了下面的错误:ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found解决方法vim ~/.bashrcexport LD_LIBRARY_PATH=/data/XXX/anaconda3/lib:$LD_LIBRARY_PATH其中XXX要自己自行找哈,用户名的意思which python就可以找到参考文献解决动态库路径错误导致ImportError: /lib64原创 2021-06-15 10:04:22 · 484 阅读 · 2 评论 -
centos7 anaconda3下载慢的问题
今天尝试在anacodna上面下载anaconda3,速度非常的慢:HTTP request sent, awaiting response... 200 OKLength: 685906562 (654M) [application/x-sh]Saving to: ‘Anaconda3-2019.03-Linux-x86_64.sh’ 1% [ ] 10,230,219 10.8KB/s eta 5h 34m c原创 2021-01-25 13:57:22 · 226 阅读 · 1 评论 -
libxcb-xinerama.so.0: cannot open shared object file: No such file or directory
今天在ubutnu 18.04上装了mayavi, 但是写代码可视化点云的时候出现了下面的情况:QLibraryPrivate::loadPlugin failed on "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/eric/anaconda3/envs/pointnet/lib/py原创 2020-09-06 09:51:30 · 7787 阅读 · 0 评论 -
could not open directory /lib/modules/4.13.0-43-generic: No such file or directory
今天在更新ubuntu的时候,出现了下面的问题:➜ ~ sudo apt-get upgrade sudo: unable to resolve host eric-ms-7a54Reading package lists... DoneBuilding dependency tree Reading state information... DoneCalculating upgrade... DoneThe following packages have been k原创 2020-05-23 20:02:26 · 3551 阅读 · 0 评论 -
linux 使用nohup的时候输出日志的同时也输出该程序的pid
今天在调试程序的时候发现找不到进程pid,用grep查找python进程的时候,发现有很多重名的,不知道该杀死哪一个,这里可以在用nohup的时候同时把pid输出到文件里面,这样就方便操作进程了,我的命令为:nohup python3 -u train.py > output2.log 2>&1 & echo $! > run.pid这个运行完以后,训练...原创 2020-04-10 11:32:49 · 1114 阅读 · 0 评论 -
SoX中的Silence的用法
最近用了SoX库的Silence,发现官方的教程读得我是云里雾里,所以特地写一个教程学习一下。我生成了一个60ms白噪声的音频文件,随后把其中几个部分做成静音,生成的音频如下:例子1.切除音频中开始的静音sox in.wav out1.wav silence 1 0.1 1%above-period 参数放在silence参数之后,如果你想使用这个过滤器,首先要设置1...原创 2020-02-02 17:19:24 · 2774 阅读 · 1 评论 -
ubuntu 添加cuda到bashrc环境变量
在使用下面命令的时候,会出现找不到该命令,但是cuda已经安装好了,这是因为cuda环境变量有问题,执行的命令为:nvcc -V需要添加的环境变量,我安装的是cuda-10,这里根据安装的cuda版本自行更改下面的配置, vim ~/.bashrc:export PATH=/usr/local/cuda-10.0/bin:$PATHexport LD_LIBRARY_PATH=/...原创 2019-11-28 22:25:28 · 37980 阅读 · 2 评论 -
ubuntu 16.04 W: GPG error: https://repo.fdzh.org/chrome/deb stable Release:
今天在运行:sudo apt-get update出现了下面的错误:W: GPG error: https://repo.fdzh.org/chrome/deb stable Release: The following signatures were invalid: KEYEXPIRED 1555048520 KEYEXPIRED 1555048520 KEYEXPIRED...原创 2019-11-06 23:55:14 · 2092 阅读 · 0 评论 -
ubuntu 16.04 An error occurred during the signature verification. The repository is not updated and
今天在使用:sudo apt-get update出现了下面的错误:W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used解决方法sudo apt-get clean ...原创 2019-11-06 23:46:52 · 1972 阅读 · 0 评论 -
ubuntu 16.04 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/xenial/main/binary-amd64/Packa
今天在运行:sudo apt-get update出现了有些源404错误:W: The repository 'http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release' does not have a Release file.N: Data from such a repository can't be...原创 2019-11-06 23:37:39 · 1537 阅读 · 0 评论 -
ubuntu 16.04 getdata.sh: 7: getdata.sh: [[: not found
今天在运行transformer-xl的脚本的时候,出现了下面的错误:=== Acquiring datasets ===---getdata.sh: 7: getdata.sh: [[: not found- Downloading WikiText-103 (WT2)getdata.sh: 19: getdata.sh: [[: not found- Downloading e...原创 2019-10-27 21:21:21 · 334 阅读 · 0 评论 -
ubuntu 16.04 安装Ralink MT7601U (148f:7601) 驱动
最近买了一个无线网卡,然后插在ubuntu上,发现wifi用不了,然后试了很多安装驱动的方法,发现驱动安装不上去。解决方法sudo apt-add-repository ppa:thopiekar/mt7601sudo apt-get updatesudo apt-get install mt7601-sta-dkmssudo modprobe mt7601u然后输入:i...原创 2019-10-17 22:00:16 · 6918 阅读 · 0 评论 -
新加入硬盘后,硬盘的编号改变了,导致ubuntu 进不去了
最近给电脑加了一块硬盘,但是加了硬盘后,Ubuntu 系统就进不去了。EDAC: ECC is disabled.EDAC: Couldn't find mci handler.....具体的log日志还有很多,本人没有截图不好意思,只记得那么多了。在没有插入新硬盘之前,有两块硬盘,一个固态,一个机械,固态硬盘的编号为0,机械硬盘的编号为1.插入一个新的机械硬盘后,新的机械硬盘的...原创 2019-10-14 22:44:52 · 4396 阅读 · 2 评论 -
ubuntu 18.04安装cuda 8.0 和cudnn 6.0
我的cuda 8.0的下载链接为:https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-runcudnn 6.0的下载链接为:https://developer.nvidia.com/compute/machine-learning/cudnn/s...原创 2019-08-06 17:05:18 · 4868 阅读 · 6 评论 -
SSH 配置端口转发文件~/.ssh/config
今天问了一下搞运维的,说可以配置config文件来进行端口转发,然后我就自己学习了一波,发现非常的好用,这里分享出来给大家。首先打开命令行,输入:vim ~/.ssh/config按键i,然后输入:Host example HostName ip_address User host_name LocalForward 7474 127.0.0.1:747...原创 2019-08-02 18:16:24 · 4593 阅读 · 0 评论 -
ubuntu 18.04/Mac 安装oh-my-zsh和zsh-autosuggestions
安装教程跟ubuntu 16.04安装教程一样,地址为:https://blog.youkuaiyun.com/w5688414/article/details/83036991但是你再次打开terminal的时候,发现zsh没有启用,这个时候需要:chsh -s /bin/zsh # 将默认的shell从bash改为zshsudo reboot # 重新启动重启以后再打开term...原创 2019-07-24 09:39:35 · 1578 阅读 · 0 评论 -
ubuntu 18.04 anydesk: Package libpango1.0-0 is not installed.
今天在装anydesk的时候出现了下面的错误:Selecting previously unselected package anydesk.(Reading database ... 175981 files and directories currently installed.)Preparing to unpack anydesk_5.1.1-1_amd64.deb ...Fa...原创 2019-07-04 19:26:56 · 3487 阅读 · 2 评论 -
ImportError: libcublas.so.8.0: cannot open shared object file: No such file or directory
我的环境是ubuntu 18.04, tensorflow-gpu 1.4,cuda 9.0, cudnn 7.0然后在运行的时候出现了下面的错误:Traceback (most recent call last): File "/home/eric/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflo...原创 2019-07-04 18:51:08 · 4973 阅读 · 0 评论 -
minimal BASH like line editing is supported
今天给台式机惠普的电脑装了双系统,win10+ubuntu 18.04,安装成功以后就重启,进入windows用easyBCD设置ubuntu启动项,但是当我再重启想进入ubuntu18.04的时候,出现了下面的错误:minimal BASH like line editing is supported是一个grub的黑屏界面。解决方法我的惠普电脑有两个盘,固态上装的是win10...原创 2019-07-03 17:36:37 · 6228 阅读 · 0 评论 -
ubuntu 16.04切换到windows 10系统后,耳机没有声音
我们在切换双系统的时候,都习惯reboot的方式,但是当我们登录win10的时候,我们的耳机神奇的听不见的声音了这大概是ubuntu 下用了耳机后,没有释放掉占去的声卡,然后我们采用的热启动,切换到win10 ,win10 不能使用声卡设备,所以没有声音。解决办法:直接关机,注意不是重启然后按电源键进行重启原创 2017-07-27 17:24:57 · 1260 阅读 · 0 评论 -
ubuntu 18.04 增加swap的空间
创建一个 Swap 文件cd /sudo mkdir swap_pluscd swap_plus/sudo dd if=/dev/zero of=swap_plus bs=1G count=30 #创建30G的swap,大小为bs*count把生成的文件转换成 Swap 文件$ sudo mkswap swap_plus激活 Swap 文件sudo swapon...原创 2019-08-20 17:02:37 · 529 阅读 · 0 评论 -
zsh: no matches found: nvidia*
今天在ubuntu 18.04上卸载nvidia驱动的时候,出现了下面的问题:sudo apt-get remove --purge nvidia*zsh: no matches found: nvidia*解决方法sudo apt-get purge "nvidia*"参考文献[1].purge nvidia: no matches found.https://g...原创 2019-08-18 00:18:34 · 2332 阅读 · 1 评论 -
ubuntu 18.04 安装 nvidia drivers 430安装
1. 将NVIDIA repository 加入你的 aptwget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.debsudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_...原创 2019-08-18 09:06:20 · 3313 阅读 · 2 评论