首页
壁纸
留言板
友链
更多
统计归档
Search
1
TensorBoard:训练日志及网络结构可视化工具
12,493 阅读
2
主板开机跳线接线图【F_PANEL接线图】
5,322 阅读
3
Linux使用V2Ray 原生客户端
4,301 阅读
4
NVIDIA 显卡限制功率
2,493 阅读
5
海康威视监控摄像头使用指南
2,276 阅读
好物分享
实用教程
linux使用
wincmd
学习笔记
mysql
java学习
nginx
综合面试题
大数据
网络知识
放码过来
python
javascript
java
opencv
蓝桥杯
leetcode
深度学习
开源模型
相关知识
数据集和工具
模型轻量化
语音识别
计算机视觉
杂七杂八
硬件科普
主机安全
嵌入式设备
其它
bug处理
登录
/
注册
Search
标签搜索
好物分享
学习笔记
linux
MySQL
nvidia
typero
内网穿透
webdav
vps
java
cudann
gcc
cuda
树莓派
CNN
图像去雾
ssh安全
nps
暗通道先验
阿里云
jupiter
累计撰写
331
篇文章
累计收到
63
条评论
首页
栏目
好物分享
实用教程
linux使用
wincmd
学习笔记
mysql
java学习
nginx
综合面试题
大数据
网络知识
放码过来
python
javascript
java
opencv
蓝桥杯
leetcode
深度学习
开源模型
相关知识
数据集和工具
模型轻量化
语音识别
计算机视觉
杂七杂八
硬件科普
主机安全
嵌入式设备
其它
bug处理
页面
壁纸
留言板
友链
统计归档
搜索到
64
篇与
的结果
2021-01-16
CenterOS7防火墙常用命令
查看防火墙是否关闭[root@localhost ~]# firewall-cmd --state not running [root@localhost ~]#开启防火墙[root@localhost ~]# systemctl start firewalld [root@localhost ~]# firewall-cmd --state running关闭防火墙[root@localhost ~]# systemctl stop firewalld [root@localhost ~]# firewall-cmd --state not running禁止firewall开机启动[root@localhost ~]# systemctl disable firewalld Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. 这样设置的话,下次重启开机的时候就会禁止firewall的启动,即关闭状态。设置firewall开机启动[root@localhost ~]# systemctl enable firewalld Created symlink from /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service to /usr/lib/systemd/system/firewalld.service. Created symlink from /etc/systemd/system/multi-user.target.wants/firewalld.service to /usr/lib/systemd/system/firewalld.service.参考资料CENTER OS7关闭防火墙:https://www.cnblogs.com/gucb/p/11156935.html
2021年01月16日
675 阅读
0 评论
0 点赞
2021-01-16
CentOS7设置上网代理
CentOS设置上网代理1、网页上网网页上网设置代理很简单,在firefox浏览器下 Edit-->>Preferences-->>Advanced-->>Network在Connection下点击Settings,里面的manual proxy configuration里设置IP和PORT即可,2、系统环境代理设置设置全局代理修改 /etc/profile 文件,添加下面内容:http_proxy=http://username:password@yourproxy:8080/ https_proxy=https://username:password@yourproxy:8080/ export http_proxy export https_proxy如果没有密码限制,则以上内容可以修改为以下内容:http_proxy=http://yourproxy:8080/ https_proxy=https://yourproxy:8080/ export http_proxy export https_proxy针对某个用户设置代理只修改 ~/.bash_profile 文件,文件内容与上面的 /etc/profile 相同http_proxy=http://username:password@yourproxy:8080/ https_proxy=https://username:password@yourproxy:8080/ export http_proxy export https_proxy如果没有密码限制,则以上内容可以修改为以下内容:http_proxy=http://yourproxy:8080/ https_proxy=https://yourproxy:8080/ export http_proxy export https_proxy3、设置yum 的代理对于 yum 的代理,还要另外设置 /etc/yum.conf 文件vi /etc/yum.conf 添加以下代码:http_proxy=http://username:password@yourproxy:8080/ #若无密码限制,则为以下方式 http_proxy=http://yourproxy:8080/4、wget代理设置编辑文件为:/etc/wgetrcvi /etc/wgetrc添加下面两行:http_proxy=http://username:password@yourproxy:8080/ https_proxy=https://username:password@yourproxy:8080/ #若无密码限制,则为以下方式 http_proxy=http://yourproxy:8080/ https_proxy=https://yourproxy:8080/参考资料CentOS设置网络代理:https://blog.csdn.net/u013063153/article/details/78120945CentOS设置上网代理:https://blog.csdn.net/bohenzong1654/article/details/100964835?utm_medium=distribute.pc_relevant.none-task-blog-searchFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-searchFromBaidu-1.control
2021年01月16日
753 阅读
0 评论
0 点赞
2021-01-14
linux 路由表设置 之 route 指令详解
linux 路由表设置 之 route 指令详解3 种路由类型主机路由主机路由是路由选择表中指向单个IP地址或主机名的路由记录。主机路由的Flags字段为H。例如,在下面的示例中,本地主机通过IP地址192.168.1.1的路由器到达IP地址为10.0.0.10的主机。Destination Gateway Genmask Flags Metric Ref Use Iface ----------- ------- ------- ----- ------ --- --- ----- 10.0.0.10 192.168.1.1 255.255.255.255 UH 0 0 0 eth0网络路由网络路由是代表主机可以到达的网络。网络路由的Flags字段为N。例如,在下面的示例中,本地主机将发送到网络192.19.12的数据包转发到IP地址为192.168.1.1的路由器。Destination Gateway Genmask Flags Metric Ref Use Iface ----------- ------- ------- ----- ----- --- --- ----- 192.19.12 192.168.1.1 255.255.255.0 UN 0 0 0 eth0默认路由当主机不能在路由表中查找到目标主机的IP地址或网络路由时,数据包就被发送到默认路由(默认网关)上。默认路由的Flags字段为G。例如,在下面的示例中,默认路由是IP地址为192.168.1.1的路由器。Destination Gateway Genmask Flags Metric Ref Use Iface ----------- ------- ------- ----- ------ --- --- ----- default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0route 命令格式设置和查看路由表都可以用 route 命令,设置内核路由表的命令格式是:# route [add|del] [-net|-host] target [netmask Nm] [gw Gw] [[dev] If]其中:add : 添加一条路由规则del : 删除一条路由规则-net : 目的地址是一个网络-host : 目的地址是一个主机target : 目的网络或主机netmask : 目的地址的网络掩码gw : 路由数据包通过的网关dev : 为路由指定的网络接口route 命令使用查看路由表route命令查看 Linux 内核路由表# route Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 # route 目标 网关 子网掩码 标志 跃点 引用 使用 接口 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 route 命令的输出项说明字段含义Destination(目标)目标网段或者主机Gateway(网关)网关地址,”*” 表示目标是本主机所属的网络,不需要路由Genmask(子网掩码)网络掩码Flags(标志)标记。一些可能的标记如下: U — 路由是活动的 H — 目标是一个主机 G — 路由指向网关 R — 恢复动态路由产生的表项 D — 由路由的后台程序动态地安装 M — 由路由的后台程序修改 ! — 拒绝路由Metric(跃点)路由距离,到达指定网络所需的中转数(linux 内核中没有使用)Ref(引用)路由项引用次数(linux 内核中没有使用)Use(使用)此路由项被路由软件查找的次数Iface(接口)该路由表项对应的输出接口修改路由表添加路由添加到主机的路由# route add -host 192.168.1.2 dev eth0 # route add -host 10.20.30.148 gw 10.20.30.40 #添加到10.20.30.148的路由记录添加到网络的路由# route add -net 10.20.30.40 netmask 255.255.255.248 eth0 #添加10.20.30.40的网络 # route add -net 10.20.30.48 netmask 255.255.255.248 gw 10.20.30.41 #添加10.20.30.48的网络 # route add -net 192.168.1.0/24 eth1添加默认路由(网关)# route add default gw 192.168.1.1删除路由删除到主机的路由# route del -host 192.168.1.2 dev eth0:0 # route del -host 10.20.30.148 gw 10.20.30.40删除到网络的路由# route del -net 10.20.30.40 netmask 255.255.255.248 eth0 # route del -net 10.20.30.48 netmask 255.255.255.248 gw 10.20.30.41 # route del -net 192.168.1.0/24 eth1删除默认网关# route del default gw 192.168.1.1屏蔽路由# route add -net 224.0.0.0 netmask 240.0.0.0 reject查看结果Destination Gateway Genmask Flags Metric Ref Use Iface 224.0.0.0 - 240.0.0.0 ! 0 - 0 -说明:增加一条屏蔽的路由,目的地址为 224.x.x.x 将被拒绝参考资料linux 路由表设置 之 route 指令详解:https://blog.csdn.net/chenlycly/article/details/52141854
2021年01月14日
661 阅读
0 评论
0 点赞
2021-01-13
Ubuntu 修改用户的 Shell & 添加用户时指定 Shell
Ubuntu 修改用户的 Shell & 添加用户时指定 Shell修改用户的 Shell如果你没有管理员权限, 那么你只能修改自己的 Shell, 输入 chsh 命令.chsh这时你会获得提醒, 要求输入新的 Shell 应用路径. 如果你要换成 bash, 请输入 /bin/bash 并回车确认.Enter the new value, or press ENTER for the default Login Shell [/bin/sh]:/bin/bash如果你是牛逼的管理员, 那么恭喜你, 除了使用 chsh 命令, 你还可以通过修改配置文件批量修改. vim /etc/passwd打开 /etc/passwd 文件, 你将看到所有用户及其使用的 Shell, 会有很多行类似这样的内容, 每行是一个用户.jupiter:x:1000:1000:jupiter,,,:/home/jupiter:/bin/sh这里只需要件 /bin/sh 改成 /bin/bash 即可.jupiter:x:1000:1000:jupiter,,,:/home/jupiter:/bin/bash添加用户时指定 Shelluseradd -s /bin/bash {用户昵称}参考资料修改 Ubuntu 用户的 Shell:https://blog.csdn.net/fightforyourdream/article/details/17609337
2021年01月13日
763 阅读
0 评论
0 点赞
2021-01-12
Python3实现局域网存活主机扫描(多线程)
Python3实现局域网存活主机扫描import os import time import platform import threading def get_os(): ''''' get os 类型 ''' os = platform.system() if os == "Windows": return "n" else: return "c" def ping_ip(ip_str): cmd = ["ping", "-{op}".format(op=get_os()), "1", ip_str] output = os.popen(" ".join(cmd)).readlines() flag = False for line in list(output): if not line: continue if str(line).upper().find("TTL") >=0: flag = True break if flag: print("ip: %s is ok ***"%ip_str) def find_ip(ip_prefix): ''''' 给出当前的127.0.0 ,然后扫描整个段所有地址 ''' for i in range(1,256): ip = '%s.%s'%(ip_prefix,i) t = threading.Thread(target=ping_ip, args=(ip,)) # 注意传入的参数一定是一个元组! t.start() if __name__ == "__main__": print("start time %s"%time.ctime()) ip_prefix = "10.1.130" find_ip(ip_prefix) print("end time %s"%time.ctime())
2021年01月12日
694 阅读
0 评论
0 点赞
2021-01-12
ubuntu 16.04 pptp搭建服务端和客户端及异常处理
服务端1. 安装pptpsudo apt-get install pptpd2. 修改pptpd.conf中的配置信息sudo vim /etc/pptpd.conf在末尾增加下面两行,或者打开的内容里面找到这两行,取消掉注释localip 192.168.0.1 remoteip 192.168.0.234-238,192.168.0.245分别为创建pptp时的主机ip和连接pptp的其他主机使用的ip段,可以自行修改。注意,这里的ip并不是指外网ip或者当前局域网ip,而是指创建(虚拟专用网络)会分配的ip地址。一般这个可以不用修改。3. 修改chap-secrets配置连接pptp 所需要的账号和密码,修改配置文件/etc/ppp/chap-secretssudo vim /etc/ppp/chap-secrets在末尾添加以下内容#用户名 pptpd 密码 * neo pptpd 123456 *末尾的表示可以使用任意IP连入,如果你要设置指定IP才能连接,可以将替换成对应的IP。支持添加多个账号。4. 设置ms-dns配置使用的dns,修改配置文件sudo vim /etc/ppp/pptpd-options在末尾增加下面两行,或者打开的内容里面找到这两行,取消掉注释# 这是谷歌的DNS 可以根据实际填写 ms-dns 8.8.8.8 ms-dns 8.8.4.45. 开启转发修改配置文件sudo vim /etc/sysctl.conf在末尾增加下面内容,或者打开的内容里面找到这一行,取消掉注释net.ipv4.ip_forward=1保存之后执行sudo sysctl -p6. 配置iptables若未安装iptables 执行脚本安装sudo apt-get install iptablestips:若之前安装pptp失败的。执行以下脚本;如果是第一次安装可忽略以下内容(目的为了清除iptables里旧的规则)sudo iptables -F sudo iptables -X sudo iptables -t nat -F sudo iptables -t nat -X然后,允许GRE协议以及1723端口、47端口:sudo iptables -A INPUT -p gre -j ACCEPT sudo iptables -A INPUT -p tcp --dport 1723 -j ACCEPT sudo iptables -A INPUT -p tcp --dport 47 -j ACCEPT7.下一步,开启NAT转发:sudo iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eno33 -j MASQUERADE注意,上面的eno33是连接网络的网卡的名称,不同机器这个可能是不一样的。可以在终端输入ifconfig来查看。例如neo@ubuntu:~$ ifconfig ens33 Link encap:Ethernet HWaddr 00:0c:29:37:79:85 inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:255.255.255.0 inet6 addr: xxxx::20c:29ff:fe37:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:293 errors:0 dropped:0 overruns:0 frame:0 TX packets:211 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:26801 (26.8 KB) TX bytes:41763 (41.7 KB)8 重启pptp服务sudo service pptpd restartubuntu客户端1. 安装pptp客户端sudo apt-get install pptp-linux2. 初始化一个连接通道:mypptp使用服务端设置的账号密码neo/6yhn^YHNsudo pptpsetup --create mypptp --server xxx.xxx.xxx.xxx --username neo --password 6yhn^YHN --encrypt --startxxx.xxx.xxx.xxx是pptp mypptp服务端的ip地址 根据实际情况填写(以下示例)root@ubuntu:~# sudo pptpsetup --create mypptp --server 172.31.1.112 --username neo --password 6yhn^YHN --encrypt --start Using interface ppp0 Connect: ppp0 <--> /dev/pts/2 CHAP authentication succeeded MPPE 128-bit stateless compression enabled local IP address 192.168.0.234 remote IP address 192.168.0.13. 查看连接是否成功root@ubuntu:~# ip addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:0c:29:xx:86:5f brd ff:ff:ff:ff:ff:ff inet .31.1.113/24 brd xxx.31.1.2xxx5 scope global ens33 valid_lft forever preferred_lft forever inet6 fxx0::20c:29ff:fxx3e:8xxf/64 scope link valid_lft forever preferred_lft forever 8: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 3 link/ppp inet 192.168.0.234 peer 192.168.0.1/32 scope global ppp0 valid_lft forever preferred_lft forever也可以在pptp 服务端查看neo@ubuntu:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 xxx.xxx.1.1 0.0.0.0 UG 0 0 0 ens33 xxx.xxx.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33 192.168.0.234 0.0.0.0 255.255.255.255 UH 0 0 0 ppp04. 断开重启pptp客户端断开连接poff mypptp重接mypptppon mypptp5. 处理错误LCP: timeout sending Config-Requests执行:sudo modprobe nf_conntrack_pptp异常处理1.PPTP连接后无法打开网页,但QQ等软件又能使用的原因和解决方案PPTP连接后,能正常PING通局域网IP,DNS的IP,也能PING通百度这些网站的IP,但是网站偏偏打不开。直接PING域名,发现DNS也能解析域名,证明不是DNS出现的问题。在CMD里输入netsh interface ipv4 show subinterfaces发现PPTP连接“鹏泰机房”的MTU值是1400。而其它的连接都是1500。会不会是MTU没有自动协商造成了网络拥堵。参照下面这篇文章的方法PPTP拨入成功后在CMD里输入netsh interface ipv4 set subinterface "鹏泰机房" mtu=1400 store=persistent把pptp连接MTU固定修改为1400后。如飞的页面又能打开了。2.如果还是有些网页打不开服务器端执行iptables -I FORWARD -p tcp --syn -i ppp0 -j TCPMSS --set-mss 1356 或iptables -A FORWARD -p tcp --syn -s 192.168.0.0/24 -j TCPMSS --set-mss 1356参考资料ubuntu 16.04 pptp搭建服务端和客户端:https://blog.csdn.net/yanghao937170/article/details/105953256分析PPTP连接后无法打开网页,但QQ等软件又能使用的原因和解决方案:https://zhuanlan.zhihu.com/p/250068405PPTP MTU值设置导致主机无法上网问题解决:http://www.361way.com/pptp-mtu-mss/5173.html
2021年01月12日
896 阅读
0 评论
0 点赞
2021-01-11
VNC连接报错“too many security failures”解决
服务器装了虚拟机之后,通过VNC VIEWER远程管理,但连接的时候,经常报错“too many security failures”。 这是因为VNC的黑名单机制,用来保护你的服务器。如果有人暴力破解,将会触发VNC的黑名单机制。因此,有两种方式可以让你重新登录。1、杀掉vncserver进程,再重新启动,就可以登录了。sudo vncserver -kill :1 sudo vncserver :12、重置黑名单。vncconfig -display :1 -set BlacklistTimeout=0 -set BlacklistThreshold=1000000 #重新登录之后恢复黑名单设置: vncconfig -display :1 -set BlacklistTimeout=100000000000 -set BlacklistThreshold=10 #display :指定桌面号 (一般为1) #BlacklistTimeout : 设置黑名单的过期时间 #BlacklistThreshold : 允许的失败次数 #默认的过期时间是600秒,这里设置的很大,目的是延长黑名单的时间。参考资料2019-01-31 VNC连接报错“too many security failures”
2021年01月11日
684 阅读
0 评论
0 点赞
2021-01-09
Windows 下 cmd 窗口使用 ssh 命令
使用浏览器打开官网、下载setupssh:https://www.mls-software.com/opensshd.html安装setupssh:只保留客户端即可登录远程服务:输入命令:ssh –p端口号 用户名@IP地址例如:ssh –p22 root@127.0.0.1 点击回车根据提示输入密码连接成功。
2021年01月09日
693 阅读
0 评论
0 点赞
2021-01-04
grub开机引导(grub rescue)修复
grub开机引导(grub rescue)修复1、查看分区:grub rescue> ls 会出现如下字样:(hd0) (hd0,msdos9) (hd0,msdos8) (hd0,msdos7) (hd0,msdos6) (hd0,msdos5) (hd0,msdos2) (hd0,msdos1) 注:上面是我的分区设备,每个人可能不一样,但原理都是一样的。2、寻找ubuntu所在分区:(就是寻找你的Linux系统是装在以上哪个分区里)grub rescue> ls (hd0,msdos1)/ 若出现unknown filesystem字样,则尝试下一个若出现的是你的ubuntu主文件夹下的文件夹和文件的名字,那就是的要找的分区了。3、修改启动分区:(假如你找到的启动分区是hd0,msdos8)grub rescue>root=(hd0,msdos8) grub rescue>prefix=/boot/grub //grub路径设置 grub rescue>set root=(hd0,msdos8) grub rescue>set prefix=(hd0,msdos8)/boot/grub grub rescue>insmod normal //启动normal启动 grub rescue>normal 之后你就会看到熟悉的启动菜单栏了4、进入ubuntu修复grub sudo update-grub sudo grub-install /dev/sda5、重启,搞定!!
2021年01月04日
735 阅读
0 评论
0 点赞
2021-01-04
CentOS更换yum源
CentOS更换yum源centos7:163yum源:1)备份当前yum源防止出现意外还可以还原回来cd /etc/yum.repos.d/ cp CentOS-Base.repo CentOS-Base-repo.bak2)使用wget下载163yum源repo文件wget http://mirrors.163.com/.help/CentOS7-Base-163.repo3) 清理旧包yum clean all4)把下载下来163repo文件设置成为默认源mv CentOS7-Base-163.repo CentOS-Base.repo5)生成163yum源缓存并更新yum源yum makecache yum update阿里云yum源:1)备份当前yum源防止出现意外还可以还原回来cd /etc/yum.repos.d/ cp CentOS-Base.repo CentOS-Base-repo.bak2)使用wget下载阿里yum源repo文件wget http://mirrors.aliyun.com/repo/Centos-7.repo3) 清理旧包yum clean all4)把下载下来阿里云repo文件设置成为默认源mv Centos-7.repo CentOS-Base.repo5)生成阿里云yum源缓存并更新yum源yum makecache yum updatecentos61.首先备份原来的cent os官方yum源cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak2.获取阿里的yum源覆盖本地官方yum源wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo3.清理yum缓存,并生成新的缓存yum clean all yum makecache
2021年01月04日
752 阅读
0 评论
0 点赞
2020-09-29
ubuntu使用指南:安装最新显卡驱动
1.检测系统现有的nvidia驱动方法nvidia-smi在系统还没有旧版本的nvidia驱动的时候,可以用以下命令查看显卡型号:lshw -numeric -C display2. 安装步骤2.1下载NVIDIA官方驱动到NVIDIA的官方驱动网站下载对应显卡的驱动程序,下载后的文件格式为run。URL:https://www.geforce.cn/drivers2.2删除原有的NVIDIA驱动程序sudo apt remove nvidia-* sudo add-apt-repository --remove ppa:graphics-drivers/ppa sudo apt update2.3bios禁用禁用secure boot,也就是设置为disablesudo apt install mokutil sudo mokutil --disable-validation reboot重启时出现蓝屏按任意键,出现四个选择,选Change Secure Boot state。2.4禁用nouveau打开编辑配置文件:vim /etc/modprobe.d/blacklist.conf在最后一行添加:blacklist nouveau这一条的含义是禁用nouveau第三方驱动,之后也不需要改回来。由于nouveau是构建在内核中的,所以要执行下面命令生效:sudo update-initramfs -u reboot2.5重启之后,可以查看nouveau有没有运行:lsmod | grep nouveau # 没输出代表禁用生效2.6设置运行级别为3sudo init 32.7安装驱动给驱动文件增加可执行权限:sudo chmod a+x NVIDIA-Linux-x86_64XXX.run然后执行安装:sudo sh ./NVIDIA-Linux-x86_64XXX.run --no-opengl-files安装完成后重启即可,记得验证是否安装成功,参考前面所讲。–no-opengl-files 参数必须加否则会循环登录,也就是loop login2.8安装过程中的选项1. The distribution-provided pre-install script failed! Are you sure you want to continue? + yes 2. Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later? + no 3. 问题没记住 + install without signing 4. Nvidia’s 32-bit compatibility libraries? + No 5. Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up. + Yes 这些选项如果选择错误可能会导致安装失败,没关系,只要前面不出错,多尝试几次就好。2.9挂载Nvidia驱动modprobe nvidia3.检查驱动是否安装成功nvidia-smi如果出现如下提示,则说明安装成功参考链接ubuntu 16.04LTS nvidia driver更新https://www.cnblogs.com/peixu/p/13725279.html
2020年09月29日
605 阅读
0 评论
0 点赞
2020-09-26
ubuntu使用指南:扩展swap分区
1.查看当前空间大小free [Result] total used free shared buff/cache available Mem: 16374480 2326112 8420288 525920 5628080 13133004 Swap: 1999868 0 19998682.创建一个 Swap 文件cd / sudo mkdir swap cd swap sudo dd if=/dev/zero of=swapfile bs=1M count=2048 #创建2G的swap,大小为bs*count [Result] 记录了2048+0 的读入 记录了2048+0 的写出 2147483648 bytes (2.1 GB, 2.0 GiB) copied, 4.89824 s, 438 MB/s3.把生成的文件转换成 Swap 文件sudo mkswap swapfile [Result] Setting up swapspace version 1, size = 2 GiB (2147479552 bytes) 无标签, UUID=ceab0529-be6f-4955-a6c0-fe7380f719544.激活 Swap 文件sudo swapon swapfile [Result] swapon: /swap/swapfile:不安全的权限 0644,建议使用 0600。5.查看交换空间大小free [Result] total used free shared buff/cache available Mem: 16374480 2536676 5767220 708820 8070584 12737668 Swap: 4097016 0 40970166.设置swap分区为开机自动挂载sudo cp /etc/fstab /etc/fstab.bak #先备份文件/etc/fstab echo '/swap/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
2020年09月26日
576 阅读
0 评论
0 点赞
2020-09-26
ubuntu使用指南:移动硬盘的挂载和取消挂载
找硬盘查看系统硬盘和分区,并找到待挂载的硬盘sudo fdisk -l [Result] ···· Disk /dev/sdc:465.78 GiB,500107859968 字节,976773164 个扇区 Disk model: MQ01ACF050 单元:扇区 / 1 * 512 = 512 字节 扇区大小(逻辑/物理):512 字节 / 4096 字节 I/O 大小(最小/最佳):4096 字节 / 4096 字节 磁盘标签类型:gpt 磁盘标识符:4D7B6DAB-C941-4BA2-A0BB-BF43D857FAA5 设备 起点 末尾 扇区 大小 类型 /dev/sdc1 2048 976773119 976771072 465.8G Microsoft 基本数据挂载sudo mount /dev/sdc1 '挂载点'取消挂载sudo umount /dev/sdc1假如提示被占用:使用fuser -vm /mnt/dir查看占用程序
2020年09月26日
688 阅读
0 评论
0 点赞
2020-09-26
ubuntu使用指南:清理/boot 删除旧内核
查看当前内核版本uname -a
2020年09月26日
610 阅读
0 评论
0 点赞
2020-09-17
ubuntu使用指南:rsync 断点续传(本机文件复制、ssh文件复制)
Usage本机复制大量文件的断点续传当要传送的文件较大,为了防止网络中断所带来的时间损失,建议采用rsync命令替代scp,实现断点续传文件。语法本机rsync -rP src_path/ dst_path/sshrsync -rP --rsh=ssh src_path/ dst_path/ eg:rsync -P --rsh=ssh home.tar 192.168.0.34:/home/home.tar参数说明-r 用于复制文件夹-P 断点续传-rsh=ssh 远程shell
2020年09月17日
580 阅读
0 评论
0 点赞
1
...
3
4
5