上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 首先需要安装createrepo这个软件包,使用yum安装即可 创建软件库文件夹,比如mkdir -p /var/www/html/myrepo/x86_64, 将软件包拷贝到文件夹下。 cd到该文件夹,执行 createdb .命令 将会在同级目录生成数据库信息。 在客户机上创建repo配置文件, 阅读全文
posted @ 2018-10-22 18:24 sherlock-merlin 阅读(299) 评论(0) 推荐(0)
摘要: 子网掩码 阅读全文
posted @ 2018-10-10 20:52 sherlock-merlin 阅读(1374) 评论(0) 推荐(0)
摘要: 搭建如下拓扑 交换机: 创建vlan10 20 g0/0/1接口设置访问类型为access,加入到vlan10;g0/0/2接口设置访问类型为access,加入到vlan20 g0/0/3接口设置为trunk,允许所有vlan通过 路由器: 创建子接口g0/0/0.10,ip地址设置为192.168 阅读全文
posted @ 2018-08-27 22:35 sherlock-merlin 阅读(1671) 评论(0) 推荐(0)
摘要: 安装必要的依赖 yum install subversion binutils bzip2 gcc gcc-c++ gawk gettext flex ncurses-devel zlib-devel make patch unzip perl-ExtUtils-MakeMaker glibc gl 阅读全文
posted @ 2018-08-17 17:35 sherlock-merlin 阅读(4619) 评论(0) 推荐(0)
摘要: 实验方式:先从linux虚拟机ping windows主机,然后从windows主机ping linux虚拟机,在pc上采用wireshark抓包。 如下(只保留了关键信息) 可以看到linux发出的ICMP请求和window下是有所区别的,linux下默认大小是98字节,windows下是74字节 阅读全文
posted @ 2018-08-16 23:15 sherlock-merlin 阅读(1001) 评论(0) 推荐(0)
摘要: 之前在路由器上ping笔记本发现ping不通,但是笔记本ping路由器通,也没多想。今天想起来可能是win7的防火墙作怪,以前上课虚拟机好像也是ping不通宿主机,但是宿主机能ping通虚拟机。 简单来说,win7关闭防火墙或者配置防火墙使能够响应ping请求。 控制面板依次打开Control Pa 阅读全文
posted @ 2018-08-16 23:03 sherlock-merlin 阅读(5823) 评论(0) 推荐(0)
摘要: 1、下载chromedriver文件 http://chromedriver.storage.googleapis.com/index.html google官方下载地址 http://dl.nwjs.io/ 推荐下载nwjs sdk,chromedriver文件包含在sdk中,下载后解压即可找到 阅读全文
posted @ 2018-08-15 18:22 sherlock-merlin 阅读(756) 评论(0) 推荐(0)
摘要: 1 download the vmdk from Mikro Tik official website 2 create a new vmware host with use an exited vmdk 3 the default username is "admin" and with empt 阅读全文
posted @ 2018-08-03 16:26 sherlock-merlin 阅读(609) 评论(0) 推荐(0)
摘要: 安装前注意事项: 1、cobbler主机要为静态ip,否则和dhcpd服务冲突。 2、如果用虚拟机安装,client的内存请设置为2g以上,否则会报错。 3、kickstart文件中不要出现中文,大坑。。 需要关闭selinux。(重要) centos官方源中无cobbler软件包,需要先安装epe 阅读全文
posted @ 2018-08-01 22:31 sherlock-merlin 阅读(314) 评论(0) 推荐(0)
摘要: 镜像从http://downloads.openwrt.org/releases下载 注意选择generic-rootfs.tar.gz这种类型的镜像 使用docker import导入镜像,导入后可以使用docker images查看看 docker import http://downloads 阅读全文
posted @ 2018-07-31 14:45 sherlock-merlin 阅读(17871) 评论(0) 推荐(0)
摘要: 在sourceforge.net网站下载源码包 需要安装的依赖项有zlib-devel、xz-devel.x86_64 修改Makefile文件以支持xz压缩的squashfs文件,去掉Makefile中 #XZ_SUPPORT = 1的#号 yum install -y zlib-devel xz 阅读全文
posted @ 2018-07-30 09:31 sherlock-merlin 阅读(1986) 评论(0) 推荐(0)
摘要: 使用chkconfig命令列举出所有服务,配合管道筛选出开机默认启动的服务,再去掉level0(关机)、level4(无意义)和level6(重启)的显示,使结果更直观。 chkconfig | grep 3:on | awk '{print $1,$3,$4,$5,$7}' abrt-ccpp 1 阅读全文
posted @ 2018-07-28 15:43 sherlock-merlin 阅读(676) 评论(0) 推荐(0)
摘要: 以前以为添加计划任务就是crontab -e来添加,知道今天偶然发现了/etc/cron.d目录,才发现事情没有那么简单。。 crontab -e命令编辑的文件是保存在/var/spool/cron/目录下的一个以用户名为名的文件。 cron有三个地方的配置文件:/etc/crontab,/etc/ 阅读全文
posted @ 2018-07-24 15:27 sherlock-merlin 阅读(432) 评论(0) 推荐(0)
摘要: 不同于标准linux主机,openwrt使用dnsmasq来管理dns和dhcp。 修改dnsmasq的配置文件 vi /etc/config/dhcp 在config dnsmasq这组下面添加 list addnhosts '/etc/myhosts' 这样就可以把/etc/myhosts文件当 阅读全文
posted @ 2018-07-21 15:19 sherlock-merlin 阅读(10892) 评论(0) 推荐(0)
摘要: 我们经常用ps | grep xxx来查询是否存在某进程,但默认情况下会将grep这个命令也作为结果返回,这样无论是否存在查询的进程,该命令的返回值都是0。 要避免这种情况可以使用grep的-v参数,含义是Select non-matching lines(选择不匹配的行)。 比如查询cron服务是 阅读全文
posted @ 2018-07-19 09:44 sherlock-merlin 阅读(4884) 评论(0) 推荐(0)
摘要: 本来想安装openwrt的,但是op官方没有支持pi3,甚至op都不怎么发新版了,仅LEDE分支有缓慢的更新。。离题了,之前给pi3装过LEDE,体验不是很好。今天到openwrt官网看了下,发现之前lede不支持pi3,之前刷的固件是为pi2准备的。好在现在已经为pi3做了适配。 根据官方的说法, 阅读全文
posted @ 2018-07-16 23:41 sherlock-merlin 阅读(1520) 评论(0) 推荐(0)
摘要: 也可以用binwalk分析路由器固件,得到uImage文件头起始地址(xxx用10进制起始地址代替) dd if=a.bin of=a.out skip=xxx bs=1c count=64 阅读全文
posted @ 2018-07-16 16:05 sherlock-merlin 阅读(958) 评论(0) 推荐(0)
摘要: 之前用binwalk -Me提取固件中的squashfs,但会生成大量的压缩包等,只提取文件系统的话,可以定位squashfs的文件头(hsqs)位置,然后用dd将它分离出来,然后在unsquashfs解压出来。 比如手头上有个路由器固件,文件名为hc6361.bin hexdump -C hc63 阅读全文
posted @ 2018-07-14 17:46 sherlock-merlin 阅读(3628) 评论(1) 推荐(0)
摘要: document.addEventListener('keydown',test); function test(e){ var x=e.keyCode; if(x == 49){ console.log("hello"); } } 阅读全文
posted @ 2018-07-13 10:45 sherlock-merlin 阅读(660) 评论(0) 推荐(0)
摘要: 在linux控制台下工作,有时候遇到不懂的单词,想要找个linux下的词典程序,搜寻无果,只好自己动手写个了。 首先获取词典文本文件,在github上找到一个 建立数据库 create database dictdb; 创建表 create table dict(en text,zh text); 阅读全文
posted @ 2018-07-09 12:14 sherlock-merlin 阅读(184) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页