会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wangaolin
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
下一页
2020年4月27日
SSH 三步解决免密登录
摘要: 转自:https://blog.csdn.net/jeikerxiao/article/details/84105529 1.客户端生成公私钥 2.上传公钥到服务器 3.测试免密登录1.客户端生成公私钥本地客户端生成公私钥:(一路回车默认即可) ssh-keygen 上面这个命令会在用户目录.ssh
阅读全文
posted @ 2020-04-27 17:47 wangaolin
阅读(187)
评论(0)
推荐(0)
2020年4月25日
用命令直接在两台ubuntu之间传输数据
摘要: 转自: https://www.cnblogs.com/asmer-stone/p/4915302.html 首先查看openssh-server是否启动: ps -e | grep ssh 如果没有任何提示则是没有启动: sudo /etc/init.d/ssh -start 启动进程。若提示找不
阅读全文
posted @ 2020-04-25 17:24 wangaolin
阅读(595)
评论(0)
推荐(0)
ubuntu使用ssh远程登陆操作ubuntu
摘要: 使用以下代码检测expect是否已经安装ls /usr/bin | grep expect 如果显示为空,则使用以下命令安装sudo apt-get install tcl tk expect以下是示例脚本#! /usr/bin/expectspawn ssh crrc@192.168.10.192
阅读全文
posted @ 2020-04-25 16:46 wangaolin
阅读(397)
评论(0)
推荐(0)
2020年4月16日
一、Ubuntu添加开机自动启动程序的方法
摘要: https://www.cnblogs.com/the-wang/p/11230087.html 一、Ubuntu添加开机自动启动程序的方法 1. 开机启动时自动运行程序 Linux加载后, 它将初始化硬件和设备驱动, 然后运行第一个进程init。init根据配置文件继续引导过程,启动其它进程。通常
阅读全文
posted @ 2020-04-16 19:38 wangaolin
阅读(1010)
评论(0)
推荐(0)
Ubuntu配置和修改IP地址
摘要: 原文链接: https://www.baidu.com/link?url=KG7Kt1UCvADhrFOnh1gG1MX7XGikmpDWuTbvGye9EWTJz3G-o-9_Y9-yt4YMJ3h6Ol9sInyQ8BlnLVqWzUnI0K&wd=&eqid=b8cd45d90003835e0
阅读全文
posted @ 2020-04-16 17:41 wangaolin
阅读(1396)
评论(0)
推荐(0)
ubuntu中编写shell脚本开机自动启动
摘要: 1、新建个shell脚本文件(例starter.sh) 内容如下 #!/bin/sh### BEGIN INIT INFO# Provides: starter# Required-Start: $remote_fs $syslog# Required-Stop: $remote_fs $syslo
阅读全文
posted @ 2020-04-16 17:22 wangaolin
阅读(7102)
评论(0)
推荐(0)
2020年4月13日
ubuntu脚本自动输入sudo密码
摘要: 转载▼ linux 新开一个终端并在新终端中执行命令 gnome-terminal -t "title-name" -- bash -c "sh ./run.sh;exec bash;" 以sudo apt-get update为例 1、使用echo和管道命令 #! /bin/bash echo “
阅读全文
posted @ 2020-04-13 20:38 wangaolin
阅读(4638)
评论(0)
推荐(1)
Linux(Ubuntu)中改变敲入sudo之后记住密码的时间
摘要: 原创Storller 最后发布于2016-11-09 17:02:30 阅读数 1604 收藏展开在使用Ubuntu时可能会遇到当敲入sudo XXX XXX….$: 之后系统会记录密码一段时间,如果想要改变这个记录的时间(系统默认是5分钟),方法如下: 输入sudo visudo 找到”Defau
阅读全文
posted @ 2020-04-13 20:36 wangaolin
阅读(252)
评论(0)
推荐(0)
ubuntu运行sh脚本sudo自动输入密码
摘要: 示例: sudo apt-get update 第一种方法:使用管道(上一个命令的 stdout 接到下一个命令的 stdin): #!/bin/bashecho password | sudo -S apt-get update第二种方法使用文本块输入重定向: 第二种方法:#!/bin/bashs
阅读全文
posted @ 2020-04-13 19:06 wangaolin
阅读(1922)
评论(0)
推荐(0)
2020年4月7日
判断CUDA是否可用:
摘要: tf.test.is_built_with_cuda()
阅读全文
posted @ 2020-04-07 11:53 wangaolin
阅读(3139)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告