注64位系统

第一步下载 wget http://www.rarlab.com/rar/rarlinux-x64-5.3.0.tar.gz
第二步解压 tar -zxvf rarlinux-x64-5.3.0.tar.gz
第三步     进入解压出的“rar”文件夹 cd rar
第四步    进行配置 make
       显示如下表示成功
mkdir -p /usr/local/bin

mkdir -p /usr/local/lib

cp rar unrar /usr/local/bin

cp rarfiles.lst /etc

cp default.sfx /usr/local/lib
可以用rar命令开始解压 
rar x test.rar //解压 test.rar 到当前目录
压缩
rar test.rar ./test/ //将 test目录打包为 test.rar
---------------------
原文:https://blog.csdn.net/weixin_41404058/article/details/80304869
部分应用可使用common+n快捷键
相信不少使用 Mac 的朋友对 OS X 里的时间显示都有很大意见,只能显示当前日期,功能缺失得很厉害,所以不少朋友都使用第三方的日历软件来取代系统自带的,像 Fantastical。不过 Fantastical 是一款收费软件,如果想要免费软件的话,其实大家还可以试试这款 Itsycal。
官方网站:https://www.mowglii.com/itsycal/

http://www.apprcn.com/itsycal.html


brew install tree

来自:https://blog.csdn.net/xidiancoder/article/details/72654583
brew install iproute2mac
来自:https://blog.csdn.net/u010164190/article/details/79474309

实用工具-》网络工具-》Traceroute
来自:https://blog.csdn.net/qq_38789531/article/details/82734646
密钥登陆能,发现SSH不行,提示:
$ssh -l xiangdong 10.244.25.**
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

到:
$ssh -l xiangdong 10.244.25.**
xiangdong@10.244.25.89's password:


实践OK办法,能密钥能密码:
cat  /etc/ssh/sshd_config|grep -E "PermitRootLogin|UsePAM|PasswordAuthentication"

UsePAM yes  #改成NO后出现需要密钥,还登陆不了。后修改为yes后重启oK service sshd restart
PermitRootLogin yes
PasswordAuthentication yes


root依然不行,修改UsePAM no,还是不行,后来加一个irdcops帐号且能 sudo ,也就用它去SSH就行了:
$ssh -l root 10.244.25.**
root@10.244.25.**'s password:
Permission denied, please try again.

==================================
首先:配置ssh服务器配置文件。

在root 用户下才能配置。

vi /etc/ssh/sshd_config

权限设为no:

#PermitRootLogin yes

#UsePAM yes

#PasswordAuthentication yes

如果前面有# 号,将#号去掉,之后将yes修改为no。

修改之后为:

PermitRootLogin no

UsePAM no

PasswordAuthentication no

权限设为yes:

RSAAuthentication yes

PubkeyAuthentication yes

(2)重启sshd服务

systemctl restart sshd.service

systemctl status sshd.service #查看ssh服务的状态

#systemctl start sshd.service  #开启ssh服务

#sytemctl enable sshd.service #ssh服务随开机启动,还有个disabled

#systemctl stop sshd.ervice #停止

正常情况下应该是Active:active(running)
摘自:https://www.cnblogs.com/xubing-613/p/6844564.html
用了这么久的MAC,一直在找这个剪切文件的方法。


今天没事在网上找别的东西时偶然的发现了关于MAC下剪切的快捷键!
和大家分享一下!!

首先选中文件,按Command+C复制文件;

然后按Command+Option+V;就可以把你的文件剪走了!


在这里补充一下,我这里讲的是剪切文件夹,不是剪切文本和文字!Command+X只能剪切文字文本之类的!

来自:https://bbs.feng.com/read-htm-tid-5861420.html
引言
习惯了使用markdown 输入法,便什么都是用 md 来编写,可惜目前文件双击都是使用 xcode 打开的。右键选择打开方式,无法更改默认打开方式(和 windows 不同),才发现,默认打开另有地方。只需三步完美设置,请看下列步骤:
步骤
一、右键选中文件,点击显示简介

二、在显示简介标签页,点击下拉框选中我们需要打开的软件
这里我使用的简洁优美小众的 Typora,好产品值得推荐

三、所有格式都用它打开,得点选:使用此应用程序打开所有这种类型的文稿。【全部更改...】 <==点它。

来自:https://blog.csdn.net/lovechris00/article/details/79935134
CentOS7升级GCC版本:https://jackxiang.com/post/10700/

想打包一个swoole最新版,出现 问题如下:


解决办法:
安装最新版本的swoole 提示

pecl install swolle
...
GCC 4.8 or later required.
首先想到的时候yum更新gcc

yum install gcc
Package gcc-4.4.7-23.el6.x86_64 already installed and latest version
Nothing to do
已经是最新版本了,怎么办,只有找其它源了

curl -Lks http://www.hop5.in/yum/el6/hop5.repo > /etc/yum.repos.d/hop5.repo
yum install gcc gcc-g++
安装成功

gcc -v
gcc version 4.8.2 20131212 (Red Hat 4.8.2-8) (GCC)


来自:https://my.oschina.net/2688/blog/2933883
Windows10自带剪贴板,前提是将系统升级到win10 1809的更新及其以上,才会有系统的剪贴板,我们可以尝试更新win10系统解决。
打开方法:
下载文件
,放到这儿:C:\Windows\System32\clipbrd.exe


picindex=3" target="_blank">https://jingyan.baidu.com/album/574c5219f8073f2c8d9dc198.html?picindex=3
https://jingyan.baidu.com/article/3d69c551a9a4d8b1cf02d7b1.html

按WIN+V键即可打开剪贴板查看器。

1)Windows下有一个复制粘贴的,免费开源的 Windows 管理剪贴板,让你处理文字更高效:Ditto,快捷键个人设置的是 Ctrl + Shift + D,Mac下也需要有这样一款软件。
2)贴贴板 – 高效易用的剪贴板工具[macOS]:  https://www.appinn.com/tie-tie-ban-for-macos
快捷键:  Ctrl+1  or  fn+option+F1 or option + 1
自己一直在用,very good!
1、Mac(Paste破解版)

     百度网盘下载链接:https://pan.baidu.com/s/1ZxfHW0YJ5-ibepIPh8XC7g

     使用方法:先按Command+C复制文本或图片,然后按Command+Shift+V(快捷键可自定义)选择历史粘贴对象。

   【如果安装后打开时提示:已损坏,移到废纸篓。

      解决方法: 在隐私里面打开任意来源

      具体做法:打开终端\ 输入命令:sudo spctl --master-disable  (master前面为两短-) 

      此时去mac的系统偏好设置\安全性与隐私,可以看到下图,就解决问题了。



2、Win(多款)

    百度网盘下载链接:https://pan.baidu.com/s/1wG1vlg2v12za48IuPVovJg  

    使用方法:按Ctrl+~ 选择历史粘贴对象。


原文:https://blog.csdn.net/kzadmxz/article/details/81413141
背景:在Mac上向linux上拷文件时,想和Win一样贴上全路径,怎么得到文件的全路径?

mac下如何复制文件路径:  option+command+C

查看文件的文件路径快捷键:option+command+p键

如何查看问件的时间:shift + command + p

From: https://blog.csdn.net/cdqn10086/article/details/70216350
在macos下安装ansible主要有三种方法,建议采用源码安装的方法安装ansible。
brew安装(需要安装homebrew模块)
brew install ansible

From: https://www.jianshu.com/p/873975e0abb8
Demon:
code ~/.bashrc

根据终端命令行使用 bash 还是 zsh 选择编辑环境变量的文件。

bash,写入 ~/.bash_profile

zsh, 写入 ~/.zshrc

阅读全文
以下四条命令搞定,谁用谁知道



来自:https://blog.csdn.net/weixin_40545512/article/details/82685927
$git pull
hint: Waiting for your editor to close the file... fatal: cannot run /usr/local/bin/vim: No such file or directory
error: unable to start editor '/usr/local/bin/vim'
Not committing merge; use 'git commit' to complete the merge.


I tried to upgrade from the default vim install on Mac OS X (vim 7.2) to the one used by MacVim (vim 7.3) by creating a symlink:

alias vim=/usr/bin/vim

来自:https://apple.stackexchange.com/questions/14299/replaced-usr-bin-vim-now-i-get-error-messages
背影:买了个Mac本,无法用.vbs脚本,输入个密码啥的更快一些。
xiangdongAutoEnterPasswd*.py


secureCRT支持运行.js和.vbs以及.py格式的脚本,无奈mac上识别前两个格式的脚本只能写一写python脚本,
举个简单的例子,利用脚本直接ssh连接一台机器,
在View菜单中勾选Button Bar让这个菜单在下方显示出来,
在下方的Default右方右键出现一个菜单点击New Button按钮,在显示框的Function一栏选择Run Script中间选择编写好的.py文件
.py文件的内容大致如下:


另外一个:


来自:https://blog.csdn.net/medivhq/article/details/52119572
分页: 15/339 第一页 上页 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 下页 最后页 [ 显示模式: 摘要 | 列表 ]