Latest Posts

cygwin setup长时间停留在0p_000_autorebase.dash


cygwin setup长时间停留在0p_000_autorebase.dash, 

setup hang on 0p_000_autorebase.dash。

这个情况的出现环境是使用win7 32位os,机器性能比较低。

查找网上资料,有些反馈原因就是慢,没有其它的错误,有些甚至在这一步等待了10个小时。

不要等了一会看到不动,就自己退出程序。在机器空闲的时候,让它自己跑上,或者晚上休息的时候跑上,第二天看结果。

cygwin setup hang


Read More

SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!


遇到以下情况是怎么导致的,该如何解决。

root@test-desktop:~# ssh admin@100.22.36.133
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
be:f5:25:75:ce:05:64:1c:23:7e:9a:42:87:56:b1:d1.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /root/.ssh/known_hosts:19
  remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R 100.22.36.133
RSA host key for 100.22.36.133 has changed and you have requested strict checking.
Host key verification failed.
root@test-desktop:~# 

导致这个问题的原因是,对应IP地址的sshd服务器可能重新对RSA Key进行了初始化,导致了改变。或者这个ip地址没有变,但所使用的机器可能改变了。

这样就会导致远程机器与本地的文件缓存对应不起来。

要解决这个问题,只要参考,提示中的说明即可:

ssh-keygen -f "/root/.ssh/known_hosts" -R 100.22.36.133

root@test-desktop:~# ssh-keygen -f "/root/.ssh/known_hosts" -R 100.22.36.133
# Host 100.22.36.133 found: line 19 type RSA
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old
root@test-desktop:~#

 

当然也可以采用一个极端的操作,将所有缓存的数据都删除。

rm /root/.ssh/known_hosts


Read More

windows操作系统对IPMI的支持


ipmiutils

http://ipmiutil.sourceforge.net

参考描述:

The only IPMI project natively supporting Windows drivers

 

 

refer:

https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ipmiprv/ipmi-provider


Read More

常用的linux诊断命令汇总


命令名称 命令用途
cat  
df 当前文件系统磁盘使用情况
dmesg  
ethtool 查询及设置网卡参数
ifconfig 显示和设置网络设备
last 显示最近登录的用户
ls  
netstat 显示各种网络相关信息,如网络连接,路由表,接口状态 。
ping  
ps 当前系统进程的状态列表
route  
traceroute  
top 能够实时显示系统中各个进程的资源占用状况
uptime 当前系统运行时间和系统负载(uptime)

 


Read More

linux下的checksum工具尤其频繁使用的md5sum和sha256sum和crc32


工具列表:

/usr/bin/md5sum

/usr/bin/sha1sum

/usr/bin/sha224sum

/usr/bin/sha256sum

/usr/bin/sha384sum

/usr/bin/sha512sum

/usr/bin/shasum

/usr/bin/crc32
 

工具执行示例

[Documents]$ md5sum file1.txt
1ff38cc592c4c5d0c8e3ca38be8f1eb1  file1.txt

工具的来源

GNU coreutils home page: <http://www.gnu.org/software/coreutils/>

工具执行环境:

可以在linux下执行,或者在windows的cygwin mingwin中执行。


Read More

使用分号在命令行实现shell脚本的功能(一行实现脚本)


使用分号在命令行实现脚本的功能,总有一个适合你。

命令1 ; 命令2    多条命令顺序执行,命令之间没有任何逻辑关系

1 统计程序ls执行时间 date; ls; date
2 统计程序生成128K文件的时间 date; tr '\000' '\377' < /dev/zero | dd of=out1024.bin bs=1024 count=128 ; date
3 循环输出1到10 for i in {1..10}; do echo $i; done;
4 循环输出A到F for i in {A..F}; do echo $i; done;
5 循环创建10个文件 for i in {1..10}; do mkdir cunyoulu$i; done;
     

 


Read More

通过手机访问www.cunyoulu net网址二维码


cunyoulu

手机访问http://www.cunyoulu net/网址二维码

 


Read More

ipmitool命令与raw命令与ipmi spec对照表5-NETFN_TRANSPORT


ipmitool命令与raw命令与ipmi spec对照表5-NETFN_TRANSPORT

raw命令索引 对应IPMI Spec的章节 raw命令格式 字符串命令
ipmitool raw 0x0c 0x01 Set LAN Configuration Parameters(23.1) ipmitool raw 0x0c 0x01 Data[1:N] ipmitool lan set
ipmitool raw 0x0c 0x02 Get LAN Configuration Parameters(23.2) ipmitool raw 0x0c 0x02 Data[1:4] ipmitool lan print []
ipmitool raw 0x0c 0x03 Suspend BMC ARPs(23.3) ipmitool raw 0x0c 0x03 Data[1:2]  
ipmitool raw 0x0c 0x10 Set Serial/Modem Configuration(25.1)    
ipmitool raw 0x0c 0x11 Get Serial/Modem Configuration(25.2)    
ipmitool raw 0x0c 0x12 Set Serial/Modem Mux(25.3)    
ipmitool raw 0x0c 0x13 Get TAP Response Codes(25.4)    
ipmitool raw 0x0c 0x20 SOL Activating(26.1)    
ipmitool raw 0x0c 0x21 Set SOL Configuration Parameters(26.2)    
ipmitool raw 0x0c 0x22 Get SOL Configuration Parameters(26.3)    

Read More


© 2008-2022 CunYouLu存有录博客 村友录 存游录 鲁ICP备08005943号