Ubuntu相关
用来记录Ubuntu配置的问题,以及相应深度学习环境安装的问题。还有日常使用过程中的常用终端命令。
xhsun1997
这个作者很懒,什么都没留下…
展开
-
Linux常用命令
Linux常用操作命令原创 2022-08-23 19:40:47 · 294 阅读 · 1 评论 -
安装Milvus并且跑通question-answering示例
docker配置安装dockercurl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun查看docker是否在运行: /etc/init.d/docker status如果没有运行则启动docker: sudo /etc/init.d/docker start解决非root不能运行dockersudo groupadd dockersudo usermod -aG docker $USERnewgrp dock原创 2021-07-16 17:52:04 · 641 阅读 · 0 评论 -
Ubuntu 安装CUDA, cuDNN, miniconda,配置环境,安装torch-gpu,然后配置jupyter notebook
零、pip镜像源阿里云https://mirrors.aliyun.com/pypi/simple/清华https://pypi.tuna.tsinghua.edu.cn/simple/一、conda1.1 conda的安装下载minicondahttps://docs.conda.io/en/latest/miniconda.html安装bash xxx.sh# 刷新环境变量source ~/.bashrc确认是否安装成功conda --versio原创 2021-06-27 15:34:27 · 1326 阅读 · 1 评论 -
Docker下的Ubuntu安装python3.6
安装python3.6cat /etc/apt/sources.listapt-get updateapt-get install software-properties-commonadd-apt-repository ppa:deadsnakes/ppaapt-get updateapt-get install python3.6安装pipapt-get install python3-pip原创 2021-06-23 13:52:46 · 442 阅读 · 0 评论 -
git@gitee.com: Permission denied (publickey).
ssh-keygen -t rsa -C “qq邮箱”cat ~/.ssh/id_rsa.pub将cat出的内容复制到https://gitee.com/profile/sshkeysssh -T git@gitee.com出现access原创 2021-06-18 19:40:42 · 260 阅读 · 0 评论 -
Jupyter not connection to kernel
pip uninstall tornadopip install tornado==5.1.1原创 2021-02-22 14:18:54 · 526 阅读 · 0 评论 -
Ubuntu安装mysql
安装并且打开mysqlsudo apt install mysql-serverservice mysql start查看mysql服务的状态systemctl status mysql.service重置登录密码sudo cat /etc/mysql/debian.cnf截图如下:登录mysqlmysql -u debian-sys-maint -p此时需要输入密码,自然就是上图中的password对应的密码nGG2ZLoNnRLt88qq注意,每一个人的password都原创 2020-12-28 09:45:44 · 110 阅读 · 0 评论 -
Ubuntu安装pyltp
sudo apt install gitsudo apt install cmake安装ltpgit clone https://gitee.com/fastsource/ltpcd ltppip install -r requirement.txtpython setup.py install回到ltp的上级目录git clone https://gitee.com/fastsource/pyltpcp -r ltp/ pyltp/cd pyltpgit submodule i原创 2020-11-18 09:40:58 · 685 阅读 · 0 评论 -
开机出现initramfs进不去系统
Ubuntu开机出现了initramfs,属实挺吓人的。输入:fsck -t ext4 /dev/sda1一路y回车然后输入exit退出原创 2020-11-17 11:22:44 · 8770 阅读 · 2 评论 -
Ubuntu耳机没有声音
sudo apt install pavucontrolpavucontrol有两个地方需要修改:原创 2020-11-12 20:27:29 · 150 阅读 · 0 评论 -
Ubuntu20.04需要安装的文件教程
参考这篇博客原创 2020-11-12 19:05:41 · 348 阅读 · 0 评论 -
贴出来两个讲解Ubuntu如何安装Nvidia驱动,以及安装pytorch-gpu的博客
添加链接描述添加链接描述原创 2020-11-11 11:11:41 · 169 阅读 · 0 评论 -
Ubuntu添加用户和删除用户
添加用户:suadduser usernamevim /etc/sudoers把刚刚创建的user放到sudoers下删除用户:userdel -r username查看当前电脑有哪些用户cat /etc/passwd原创 2020-10-24 21:09:19 · 328 阅读 · 0 评论 -
Ubuntu各种问题总结
unable to resolve host address当你用wget下载文件时出现上述错误,或者用pip下载文件时下载不下来。上述错误说的是无法解析主机地址,解决办法:sudo vim /etc/resolv.confnameserver 8.8.8.8nameserver 8.8.4.4原创 2020-10-14 11:12:59 · 577 阅读 · 1 评论 -
如何免密码ssh登录远程服务器,并且避免一段时间后ssh自动断开
现在假设远程服务器的ip地址是139.196.55.123端口假设就是默认的22登录名为 my_name我们首先来实现如何免密登录cd .ssh/ls看看有没有id_rsa_pub,没有的话生成密钥:ssh-keygen -t rsa -C "your_email@xx.com"回车即可如果有的话就不用执行上一步。scp -P 22 ~/.ssh/id_rsa.pub my_name@139.196.55.123:~/上面的命令是将本地的公钥传送到服务器端的主目录下,也可以原创 2020-10-24 20:44:20 · 656 阅读 · 0 评论 -
Ubuntu18.04安装和卸载teamviewer
在 /etc/apt sources.list 添加镜像源 deb http://archive.ubuntu.com/ubuntu/trusty main universe restricted multiversesudo apt updatesudo apt upgrade然后将.deb包下载下来https://download.teamviewer.com/download/linux/teamviewer_amd64.debsudo dpkg -i teamviewer_amd64.原创 2020-10-01 09:36:14 · 1357 阅读 · 0 评论 -
Ubuntu下安装的qq的下载文件地址
/home/你的用户名/.deepinwine/Deepin-QQ/drive_c/users/linfusheng/My Documents/Tencent Files/你的qq号/FileRecv原创 2020-04-26 19:10:23 · 548 阅读 · 1 评论 -
Ubuntu18.04 vscode下配置latex环境
tf.keras.callbacks.ModelCheckpointtf.keras.callbacks.ModelCheckpoint(filepath,monitor=“val_loss”,verbose=0,save_best_only=False,save_weights_only=False,mode=“auto”,save_freq=‘epoch’)if save_best_onl...原创 2020-03-08 20:19:42 · 1689 阅读 · 0 评论 -
Ubuntu安装QQ
git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntusudo sh ./install.sh上面创建好了deep-wine环境安装deepin.com应用容器QQ:http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.qq.im/TIM:http://mir...原创 2020-03-02 11:52:01 · 1052 阅读 · 0 评论 -
用filezilla或者xftp连接Ubuntu服务器
查看防火墙ufw status没有开放21端口以及ftp协议的话就用ufw allow 21ufw allow ftpservice vsftpd restart重启服务试着用filezilla或xftp连接服务器,默认是ftp协议,端口默认是21如果连接不上可以采用sftp协议。sftp是在ftp的基础上对数据进行加密,数据传输通过安全管道SSH进行,以牺牲效率为代价,端口采用...原创 2020-02-11 13:09:58 · 1223 阅读 · 0 评论 -
Ubuntu安装sublime text3
首先在官网http://www.sublimetext.com/3下载,我下载的是Linux 64bit的版本,一般会下载到Downloads/文件夹下,进入到文件夹下解压tar -xvf sublime_text_3_build_3211_x64.tar.bz2会生成sublime_text_3文件夹,我们要将它移动到/opt目录下sudo mv sublime_text_3 /opt/...原创 2020-02-03 13:20:36 · 4498 阅读 · 0 评论 -
Ubuntu修改jupyter notebook的工作路径
第一步jupyter notenook --generate-config --allow-root这样在/home/你的用户名/.jupyter/下生成了配置文件第二步sudo vim /home/你的用户名/.jupyter/jupyter_notebook_config.py第三步找到#c.NotebookApp.notebook_dir=’‘这一行快速的方法是在vim的普通模...原创 2020-01-30 10:32:55 · 941 阅读 · 0 评论