![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
JY HUA
这个作者很懒,什么都没留下…
展开
-
登陆服务器时发现nvidia driver显卡驱动不见了
1. 查看shutdown信息last -x shutdownlast -xlast -x | grep reboot发现是因为ubuntu kernal自动升级导致的。2. 关闭kernal自动升级(1) 查看 当前ubuntu kernal版本uname -r# 5.4.0-58-generic(2)关闭自动升级sudo apt-mark hold 5.4.0-58-genericDone....原创 2020-12-16 15:01:07 · 1271 阅读 · 2 评论 -
安装GPU版本的LightGBM的的正确姿势
【 安装GPU版本的LightGBM的的正确姿势 】1.install something:sudo apt-get install libboost-all-dev sudo apt install ocl-icd-opencl-dev2.Clone LightGBM and build with CUDA enabledgit clone --recursive https://github.com/Microsoft/LightGBM && cd LightGB原创 2020-05-26 19:30:15 · 6180 阅读 · 1 评论 -
linux 软连接
在当前目录建软连接aaa,指向了/zzz/xx/sssln -s /zzz/xx/sss aaa原创 2020-05-20 18:02:30 · 204 阅读 · 0 评论 -
PySpark使用pandas_udfs时报错py4j.protocol.Py4JJavaError java.lang.IllegalArgumentException
报错如下:java.lang.IllegalArgumentException at java.nio.ByteBuffer.allocate(ByteBuffer.java:334) at org.apache.arrow.vector.ipc.message.MessageSerializer.readMessage(MessageSerializer.java:543) at org.apache.arrow.vector.ipc.message.MessageChannelReader.原创 2020-05-18 19:39:47 · 1149 阅读 · 0 评论 -
jupyter notebook的安装及远程连接配置
# 安装jupyter notebookapt-get install -y jupyter# or:pip3 install -y jupyter# 生成jupyter notebook配置文件jupyter-notebook --generate-config# 进配置文件vim ~/.jupyter/jupyter_notebook_config.py# 修改以下c.NotebookApp.ip = '0.0.0.0'c.NotebookApp.open_browser =.原创 2020-05-18 14:19:53 · 338 阅读 · 0 评论 -
ubuntu重启后无ip
settings 选项network,打开wired-connect 即可自动获取ip地址。原创 2020-05-18 12:08:41 · 929 阅读 · 0 评论 -
mac端vnc连接ubuntu远程桌面教程
1. 在ubuntu端STEP1 命令行安装以下:sudo apt-get install vnc4serversudo apt-get install ubuntu-desktopsudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminalsudo apt-get i...原创 2020-04-23 13:44:37 · 12094 阅读 · 2 评论 -
测试两台服务器之间的网络带宽
测AB两台机器之间的网速安装iperf:$ sudo apt-get install -y iperf在B机器:$ iperf -s------------------------------------------------------------Server listening on TCP port 5001TCP window size: 128 KBy...原创 2020-04-07 23:44:24 · 2568 阅读 · 0 评论 -
ubuntu 安装 cuda10.2 8.0 及 cuBLAS
1. 下载文件Base Installer: cuda_8.0.61_375.26_linux.run(1.47G) 下载地址:https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run**Patch 2:**cuda_8.0.61.2_linux.run(9...原创 2020-02-07 18:55:56 · 5747 阅读 · 0 评论 -
Ubuntu装机
1. 升级apt-getapt-get updateapt-get upgrade2.安装sudoapt-get install sudo3. 安装vimsudo apt-get updateapt-get install vim4.创建新用户并赋予sudo权限# 创建新用户adduser xxx# 赋予新用户sudo权限,把root那行复制后改成x...原创 2020-02-06 22:27:16 · 173 阅读 · 0 评论 -
升级pip3后报错ImportError: cannot import name 'main'
升级pip3:pip3 install --upgrade pip显示成功升级:安装成功,查看pip版本:pip3 --version报错如下:Traceback (most recent call last): File "/usr/bin/pip3", line 9, in <module> from pip import mai...原创 2019-12-09 14:28:10 · 99 阅读 · 0 评论 -
免密登录远程服务器(SSH免密登录)
在本地终端输入:ssh-copy-id username@11.11.111.111输出一次密码再连接该服务器时,即可免密直接连接。原创 2019-12-05 17:12:36 · 159 阅读 · 0 评论 -
sh xxx.py 报错xxx.sh : Syntax error: Bad for loop variable
xxx.sh内容for((i=0;i<5;i++)); do python run_bert.py \--model_type bert \--model_name_or_path chinese_roberta \--do_train \--do_eval \--do_test \--data_dir ./data/data_$i \--output_dir...原创 2019-09-29 10:56:17 · 267 阅读 · 0 评论 -
服务器端jupyter notebook 服务挂了,报错 502 bad gateway, KeyError: 'runtime_dir' PermissionError: [Errno 13]
登录jupyter时报错:正常情况重启jupyter不间断服务即可:nohup jupyter notebook &但重启时报错如下:Traceback (most recent call last): File "/usr/local/anaconda3/lib/python3.7/site-packages/traitlets/traitlets.py...原创 2019-09-18 10:52:38 · 1895 阅读 · 0 评论 -
linux下安装zip报错
执行sudo apt-get install zip报错如下:Reading package lists... DoneBuilding dependency tree Reading state information... DoneYou might want to run 'apt --fix-broken install' to correct these...原创 2019-07-05 10:43:12 · 1676 阅读 · 0 评论