当前位置: 首页 > news >正文

云教育科技网站建设百度自动点击器下载

云教育科技网站建设,百度自动点击器下载,网站制作需要什么软件有哪些,网络服务的工具Mac配置ITerm2 install-shell-integration配置lrzsz配置zsh安装Oh-My-Zsh修改皮肤文件加载皮肤添加插件配置profiles 1.expect配置文件2.shell脚本 iterm2顶部白条闪烁 install-shell-integration 安装完成之后会有一个指示标,需要弄掉Preferences > Profiles …

Mac配置ITerm2

  • install-shell-integration
  • 配置lrzsz
  • 配置zsh
  • 安装Oh-My-Zsh
  • 修改皮肤文件
  • 加载皮肤
  • 添加插件
  • 配置profiles
    • 1.expect+配置文件
    • 2.shell脚本
  • iterm2顶部白条闪烁

install-shell-integration

安装完成之后会有一个指示标,需要弄掉Preferences > Profiles > (your profile) > Terminal, scroll down to "Shell Integration", and turn off "Show mark indicators".

配置lrzsz

brew install lrzsz

下载

iterm2-send-zmodem.sh
iterm2-recv-zmodem.sh

mv iterm2-send-zmodem.sh /usr/local/bin/
mv iterm2-recv-zmodem.sh /usr/local/bin/
chmod +x iterm2-*

打开iterm2 按住command + ,进入 Preperences->Profiles–>Advanced找到Triggers点击edit

在这里插入图片描述

在这里插入图片描述

Regular expression: rz waiting to receive.\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Instant: checkedRegular expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
Instant: checked

如果使用 brew 下载脚本

brew install laggardkernel/tap/iterm2-zmodem
但是如果用上面这种方式安装的,前面配置的sh脚本的名称有变化,自己最好去/usr/local/bin下面确认一下,需要修改成
/usr/local/bin/iterm2-zmodem-send
/usr/local/bin/iterm2-zmodem-recv
-+, --append:将文件内容追加到已存在的同名文件
-a,--ascii:以文本方式传输
-b, --binary:以二进制方式传输,推荐使用
--delay-startup N:等待N秒
-e, --escape:对所有控制字符转义,建议使用
-E, --rename:已存在同名文件则重命名新上传的文件,以点和数字作为后缀
-p, --protect:对ZMODEM协议有效,如果目标文件已存在则跳过
-q, --quiet:安静执行,不输出提示信息
-v, --verbose:输出传输过程中的提示信息
-y, --overwrite:存在同名文件则替换
-X, --xmodem:使用XMODEM协议
--ymodem:使用YMODEM协议
-Z, --zmodem:使用ZMODEM协议
--version:显示版本信息
--h, --help:显示帮助信息

配置zsh

安装Oh-My-Zsh

安装脚本来自于Oh My Zsh官方仓库

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

修改皮肤文件

vim ~/.oh-my-zsh/themes/fishy.zsh-theme

加载皮肤

sed -i '' 's/^\(ZSH_THEME=\)".*"$/\1"fishy"/g' ~/.zshrc
source ~/.zshrc

添加插件

zsh-syntax-highlighting

# mac os
brew install zsh-syntax-highlighting
# intel
echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh'  >> ~/.zshrc
# arm
echo 'source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh'  >> ~/.zshrc
source ~/.zshrc

zsh-autosuggestions

#mac os
brew install zsh-autosuggestions
#intel
echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
#arm
echo 'source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
source ~/.zshrc

配置profiles

1.expect配置文件

第一种 expect脚本文件

  1. 在一个目录下创建一个expect脚本文件,建议在自己的.ssh目录下,为了分类可以有子目录。

内容如下:

# !/usr/bin/expect -f
set user root
# set password
set host host
set port 22
set timeout 30spawn ssh -i ~/.ssh/***.pem  $user@$host
expect {"(yes/no)?" {send "yes\n";exp_continue}"*password:*" {send "$password\n"}
}
interact
  1. 进入iterm2->preference->profiles

在这里插入图片描述

第二种 登陆加参数

  1. 创建登陆脚本
# !/usr/bin/expect -f
set port [lindex $argv 0]
set user [lindex $argv 1]
set host [lindex $argv 2]
set passwd [lindex $argv 3]
set timeout 30
spawn ssh -p $port $user@$host
expect {"(yes/no)?" {send "yes\n";exp_continue}"*password:*" {send "$passwd\n"}
}
interact# !/usr/bin/expect -f
set user [lindex $argv 0]
set host [lindex $argv 1]
set passwd [lindex $argv 2]
set timeout 30
spawn ssh -i ~/.ssh/***.pem -t $user@$host
expect {"(yes/no)?" {send "yes\n";exp_continue}"Enter passphrase for key*" {send "$passwd\n"}
}
interact# !/usr/bin/expect -f
set user [lindex $argv 0]
set host [lindex $argv 1]
set passwd [lindex $argv 2]
set timeout 30
spawn ssh -i ~/.ssh/***.pem -t $user@$host
expect {"*yes/no*" {send "yes\r";exp_continue;}"Enter passphrase for key*" {send "$passwd\r"}
}interact# !/usr/bin/expect -fset pem [lindex $argv 0]
set user [lindex $argv 1]
set host [lindex $argv 2]
set passwd [lindex $argv 3]
set timeout 30
spawn ssh -i $pem -t $user@$host
expect {"*yes/no*" {send "yes\r";exp_continue;}"Enter passphrase for key*" {send "$passwd\r"}
}
interact
  1. 授予执行权限
chmod +x file
  1. 进入iterm2->preference->profiles

在这里插入图片描述

2.shell脚本

#!/bin/bash
# ssh -i ~/.ssh/***.pem -t root@host
ssh -i ~/.ssh/***.pem -t root@$1# !/bin/bash
pem='~/.ssh/***.pem'
user='root'
passwd='****'echo 'please input host!'
while read host; doexpect ~/.ssh/***.sh $pem $user $host $passwdbreak
done

iterm2顶部白条闪烁

在这里插入图片描述

http://www.hkea.cn/news/588336/

相关文章:

  • 建设企业网站方案网站优化软件哪个好
  • 郑州做网站要搜索引擎最新排名
  • wordpress建好站了打不开首页成都关键词优化排名
  • 京东网站开发需求如何做谷歌优化
  • 微信app开发诊断网站seo现状的方法
  • 做旅行网站网站seo优化多少钱
  • 上海专业网站建设咨询网络销售怎么样
  • 奶茶网页设计图片湖南seo网站多少钱
  • 家里电脑做网站服务器如何建立网址
  • 临西做网站哪里便宜seo专业培训课程
  • 高端网站设计报价表个人网上卖货的平台
  • 广州网站优化推广公司网站优化排名资源
  • 济南网站建设大标网络企业seo服务
  • net域名大网站东莞关键词自动排名
  • 做企业平台的网站怎样进行网络营销吸引顾客
  • 天河网站 建设seo信科分公司谷歌搜索引擎网址
  • 西安网站建设招骋外贸如何推广
  • 网站改版降权武汉seo排名公司
  • 南京哪家公司做企业网站 做得比较好百度seo怎么优化
  • 白云做网站SEO市场营销策略有哪些
  • 做网站用lunx怎么建立一个网站
  • 电商网站开发定制百度推广优化排名
  • 网站备案 法人身份证cba最新消息
  • 做公司网站需要什么手续厦门seo网站优化
  • 合肥本地网站网站关键词公司
  • 武汉电商网站建设seopc流量排行榜企业
  • 如何给给公司建立网站seo商学院
  • 让建站公司做网站需要什么最新腾讯新闻
  • 网站开发的意义搜索关键词排名优化
  • 如何建一个论坛网站怎么做营销推广