上一页 1 ··· 6 7 8 9 10 11 12 下一页

[security][modsecurity][nginx] nginx 与 modsecurity

摘要: 参考文档: https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#installation-for-nginx nginx不支持动态加载模块,所以需要重新编译,将modsecurity和nginx整合。 一: 软件准备: Mo 阅读全文
posted @ 2017-06-14 20:48 toong 阅读(658) 评论(0) 推荐(0) 编辑

[archlinux][crypto] 从T450迁移archlinux操作系统至T460s笔记本

摘要: 从T450笔记本迁移archlinux操作系统之T460s笔记本,同时: 1。 使用cryptsetup做底层块加密。 2. 全新使用btrfs文件系统。 一,硬盘分区。 1T的SSD,使用UEFI启动。 二, 块加密 [cipher][archlinux][disk encryption][btr 阅读全文
posted @ 2017-06-11 21:20 toong 阅读(796) 评论(0) 推荐(0) 编辑

[adminitrative][archlinux][setfont] 设置console的字体大小

摘要: 电脑的分辨率高了之后,用命令行进入的时候,完全看不清楚,是否容易导致眼瞎。 第一步便把字体调大就成了很必要的操作。 使用一个命令能马上生效: setfont 使用配置文件 /etc/vconsole.conf 能固化配置。 我一般先装一个字体。 然后在文件夹 /usr/share/kbd/conso 阅读全文
posted @ 2017-06-11 18:51 toong 阅读(1480) 评论(0) 推荐(0) 编辑

[daily][archlinux][rsync] rsync

摘要: 科普文档:https://wiki.archlinux.org/index.php/Rsync 之前改文件系统时,用过。 然而用的不太对,导致一部分文件的权限出了问题。 [troubleshoot][archlinux][bcache] 修改linux文件系统 / 分区方案 / 做混合硬盘 / 系统 阅读全文
posted @ 2017-06-11 11:24 toong 阅读(435) 评论(0) 推荐(0) 编辑

[skill][msgpack] 初试msgpack库以及基本使用

摘要: It's like JSON. but fast and small. http://msgpack.org/index.html 源码: https://github.com/msgpack/msgpack-c 扩展阅读: 用到了Cmake ,大概是一个用来生成makefile的系统 :https 阅读全文
posted @ 2017-06-08 18:54 toong 阅读(756) 评论(0) 推荐(0) 编辑

[skill][c][ld][gcc] 明确指定gcc在链接时明确使用静态库

摘要: 通常,我们这样链接: gcc -o a.out -L/usr/lib/ -ltest a.o 这样它会链接动态库 libtest.so, 可是有时候我们想在静态库与动态库同时存在时,优先使用静态库。 当然,我们可以这样: gcc -o a.out a.o /usr/lib/libtest.a 可是总 阅读全文
posted @ 2017-06-08 16:13 toong 阅读(236) 评论(0) 推荐(0) 编辑

[administrative][lvm] lvm 分区修改

摘要: 默认安装的CentOS6.3操作系统,使用lvm分区。root挂载了50G,home挂载了1.5T。 由于需求要求,现在需要把home的1.5T全部移动到root下。 使用archiso启动,查看lvm信息如下: 当前状态是一个pv sdb2, 一个vg vg_t185, 三个lv lv_root, 阅读全文
posted @ 2017-06-07 20:23 toong 阅读(327) 评论(0) 推荐(0) 编辑

[administrative] windows 下制作USB启动盘的工具

摘要: arch魔教的文档: https://wiki.archlinux.org/index.php/USB_flash_installation_media windows 下的 dd: https://sourceforge.net/p/usbwriter/wiki/Documentation/ 但是 阅读全文
posted @ 2017-06-07 15:43 toong 阅读(186) 评论(0) 推荐(0) 编辑

[administrative][archlinux][netctl][wpa_supplicant] 查看WIFI链接信息

摘要: 当使用 netctl + wpa_supplicant的时候,环境里同时存在好多个WIFI,而我同时有配置了他们的密钥信息在配置文件中。 那么我该如何查看,我当前链接到了哪个WIFI上? 阅读全文
posted @ 2017-06-06 16:43 toong 阅读(349) 评论(0) 推荐(0) 编辑

[skill][makefile] makefile 常用内容记录

摘要: 其实,makefile有点复杂。 文档看了又看,还是要经常翻,做个记录备忘 :) 1. 隐含命令 implicit rules 与 implicit rule 相对应的有 pattern rules 和 suffix rules Canceling Implicit Rules 定义一个空的 rec 阅读全文
posted @ 2017-06-06 16:17 toong 阅读(203) 评论(0) 推荐(0) 编辑

[security] security engine things

摘要: 1. luarock luarock 之于 lua,就好比 pip 之于 python https://luarocks.org/ 2. lua的库 3. 其他 PCRE库 https://github.com/google/re2/ BoyerMoore base64 decode Aho-Cor 阅读全文
posted @ 2017-06-06 14:25 toong 阅读(181) 评论(0) 推荐(0) 编辑

[administrative][CentOS] 新装系统时如何正确精准的选择基础环境和软件包

摘要: 出于不同的目的,在进行全新CentOS安装的时候,我们到底应该如何作出选择。 是mininal,base server, base web server, 还是啥? 答案在这里: https://access.redhat.com/documentation/en-US/Red_Hat_Enterp 阅读全文
posted @ 2017-06-05 13:51 toong 阅读(630) 评论(0) 推荐(0) 编辑

[filesystem][archlinux][disk encryption][btrfs] btrfs

摘要: fork from here http://www.cnblogs.com/hugetong/p/6914248.html boot分区,MBR加密:https://wiki.archlinux.org/index.php/Dm-crypt/Specialties#Securing_the_unen 阅读全文
posted @ 2017-06-02 20:52 toong 阅读(381) 评论(0) 推荐(0) 编辑

[cipher][archlinux][disk encryption][btrfs] 磁盘分区加密 + btrfs

摘要: 科普链接:https://wiki.archlinux.org/index.php/Disk_encryption 前面的链接关于硬盘加密,讲了几种,基本上就是选dm-crypt with LUKS 在grub中,解密根分区以及/boot分区。 dm-crypt文档:https://wiki.arc 阅读全文
posted @ 2017-06-02 19:15 toong 阅读(2154) 评论(0) 推荐(0) 编辑

[administrative][archlinux][clonezilla][disk cloning] 一块 windows 10 硬盘的备份

摘要: https://wiki.archlinux.org/index.php/disk_cloning https://wiki.archlinux.org/index.php/full_system_backup_with_rsync https://en.wikipedia.org/wiki/Com 阅读全文
posted @ 2017-06-01 17:48 toong 阅读(322) 评论(0) 推荐(0) 编辑

[administrative][CentOS][NetworkManager] 万恶的NetworkManager到底怎么用

摘要: 这好像是第三次不得不去学会NetworkManager的用法,可是它真的很难用。社区里无人不吐槽。 然而,还是要用! 这次从redhat的文档入手,也许可以成功 --! https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_ 阅读全文
posted @ 2017-06-01 16:35 toong 阅读(219) 评论(0) 推荐(0) 编辑

[administrative][qemu][kvm] qemu使用--bridge-helper

摘要: 公司服务器,源码安装的 qemu-2.9.0。 不是yum装的。 问题1:非超级用户的kvm权限问题: 略,直接超级用户使用。 也许有用? https://access.redhat.com/documentation/zh-CN/Red_Hat_Enterprise_Virtualization/ 阅读全文
posted @ 2017-06-01 16:33 toong 阅读(2776) 评论(0) 推荐(0) 编辑

[adminstrative][CentOS] CentOS 7 常用操作笔记

摘要: CentOS从6换到7, 还没有系统的学习。虽然主要用的是systemd,但还是有一下特有的区别,会逐步整理如下: 官网文档索引:https://access.redhat.com/documentation/en/red-hat-enterprise-linux/ 管理员手册:https://ac 阅读全文
posted @ 2017-06-01 14:42 toong 阅读(171) 评论(0) 推荐(0) 编辑

knowledge learning things TODO

摘要: 加密分区 suricata调研 tor配置 tilda配置 automake / autoconf / libtool 使用 大页内存的深入原理 Memory channels Network Manager到底怎么用 DNS / Search domain iptables参数的详细含义 scap 阅读全文
posted @ 2017-05-27 10:02 toong 阅读(135) 评论(0) 推荐(0) 编辑

[CentOS7][ssh][publickey][troubleshoot] 通过密钥登录ssh故障排查

摘要: 通常情况下,我会使用非对称加密的方式来进行ssh的登录。 做法: 将公钥添加到 $HOME/.ssh/authorized_keys 文件中。 但是通常,会遇见各种各样的问题,导致失败。汇总如下: 0. 常用的排除手段,一般就是,双端开debug,clinet开启的方式如下,server还从来没与与 阅读全文
posted @ 2017-05-26 11:41 toong 阅读(541) 评论(0) 推荐(0) 编辑

[hardware][intel] intel全系列网卡调研

摘要: 除了公司用,我自己还要买一块家用。 但是在这一切开始之前,还需要搞清楚PCIE到底咋回事。 一, 总线 https://zh.wikipedia.org/wiki/%E6%80%BB%E7%BA%BF 二,PCI https://zh.wikipedia.org/wiki/%E5%A4%96%E8% 阅读全文
posted @ 2017-05-25 18:58 toong 阅读(1066) 评论(0) 推荐(0) 编辑

[skill][debug][gdb] 使用core dump 进行GDB

摘要: core dump 扫盲:https://wiki.archlinux.org/index.php/Core_dump 1. 人为制作 core dump 1.1 实时在线生成core dump。进程不会停止。 1.2 对进程发生会造成core dump的信号 2. 调试 设置启用 core dum 阅读全文
posted @ 2017-05-24 13:55 toong 阅读(513) 评论(0) 推荐(0) 编辑

[maven] 初试maven

摘要: 环境 CentOS 6 一, 安装: [root@okk ~]# wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz [root@okk ~]# tar z 阅读全文
posted @ 2017-05-23 13:49 toong 阅读(180) 评论(0) 推荐(0) 编辑

[elastic search][redis] 初试 ElasticSearch / redis

摘要: 现有项目组,工作需要。 http://www.cnblogs.com/xing901022/p/4704319.html Elastic Search权威指南(中文版) https://es.xiaoleilu.com/010_Intro/00_README.html https://www.ela 阅读全文
posted @ 2017-05-19 20:04 toong 阅读(368) 评论(0) 推荐(0) 编辑

[X][xrandr][archlinux] 手动调整显示器分辨率

摘要: 有一些时候,电脑并不能正确的识别出显示器的最大分辨率,这有可能是软件的原因,硬件的原因,显示器的原因,VGA线的原因等其他原因。 我遇到的情况,是开机时候连着VGA的话,就可以正确识别。如果使用中间进行了插拔,便不能获得最佳分辨率了。 我当前这台显示器最佳分辨率是1920x1080, 断过VGA之后 阅读全文
posted @ 2017-05-18 12:05 toong 阅读(3798) 评论(0) 推荐(0) 编辑

[skill][git] git 常用操作记录

摘要: 傻瓜入门: step by step : https://try.github.io/levels/1/challenges/1 一本书: https://git-scm.com/book/en/v2 竟然有中文版 O.O: https://git-scm.com/book/zh/v2/ git实在 阅读全文
posted @ 2017-05-16 13:57 toong 阅读(319) 评论(0) 推荐(0) 编辑

[skill][funny] 一个很厉害的for循环

摘要: from libdssl。 阅读全文
posted @ 2017-05-15 13:47 toong 阅读(441) 评论(0) 推荐(0) 编辑

[https][openssl] OpenSSL 公钥、私钥以及自签名证书

摘要: 转自:https://www.zybuluo.com/muyanfeixiang/note/392079 简介 公钥私钥用来互相加解密的一对密钥,一般是采用RSA非对称算法。公钥加密的私钥能解密,私钥加密的公钥能解密。关于公私钥更多内容,网上都有就不详细介绍。 关于CA证书,是由第三方机构下发的,可 阅读全文
posted @ 2017-05-12 14:28 toong 阅读(7672) 评论(0) 推荐(1) 编辑

[web][nginx] 初识nginx -- 使用nginx搭建https DPI解码测试环境

摘要: 环境 CentOS 7 X86 文档: https://nginx.org/en/docs/ 安装: 配置文件: 默认不需要更改 启动: 浏览器直接访问即可。 自定义页:拷贝至配置文件指定的目录后,就可以在浏览器中访问了。 如: http://192.168.7.4/index_a.html 可以设 阅读全文
posted @ 2017-05-12 11:48 toong 阅读(579) 评论(0) 推荐(0) 编辑

[httpd] httpd directory list character encoding

摘要: 在httpd下放置文件用来直接从浏览器访问的时候,中文文件名有可能产生乱码。 做以下设置,调整字符编码: 1: Add this to your .htaccess: 2: editing httpd.conf and adding: Update @ 20170515 我哥们去试了。说不好使! 阅读全文
posted @ 2017-05-12 09:30 toong 阅读(126) 评论(0) 推荐(0) 编辑

[others] 一个酷酷的站

摘要: https://xkcd.com/ https://xkcd.com/1080/ 阅读全文
posted @ 2017-05-10 11:14 toong 阅读(109) 评论(0) 推荐(0) 编辑

[dev][https] 非PFS协商的https的流量的解码

摘要: 经过基础调研之后,目前准备确认实现方案,完成对https的解码。 之前的调研,传送门: http://www.cnblogs.com/hugetong/p/6670083.html 1. 需求: 以旁路方式,完成对非PFS协商的https流量完成解码,前提是可以获得服务器私钥。 2. 先寻找几个可参 阅读全文
posted @ 2017-05-03 09:15 toong 阅读(1352) 评论(0) 推荐(0) 编辑

[skill] 异或

摘要: 都怪学习不好,或者老师教的不好。虽然知道异或的算法,但是始终不明白,到底有什么意义。。。直到今天,终于明白了。 还是应该怪我学的不好,不能怪老师。 今天有一个应用场景,写一个函数。这是一个hash表的插入函数,实现的是tcp/ip的流存储。输入是一个以太包,为了在这个表的存下双向包。 需要定义一个h 阅读全文
posted @ 2017-04-28 18:02 toong 阅读(151) 评论(0) 推荐(0) 编辑

[daily][archlinux] 本地字符乱码, 无法显示中文

摘要: 一: 突然有一天,Konsole里边看见的中文文件名的文件,就变成了乱码。thunderbird存到本地的附件,文件名也变成了乱码。 在X下查看locale,内容如下: 手动设置了之后也不对。 但是在字符模式下就是正常的。 locale的值。是在/etc/locale.conf中设置的。同时参见 s 阅读全文
posted @ 2017-04-28 17:39 toong 阅读(1562) 评论(0) 推荐(1) 编辑

[linux] 对一个虚拟机的研究

摘要: 今天拿到了一个vmware的虚拟机硬盘镜像,是其他公司的演示产品。 启动之后是带着ubuntu字样的grub。进入系统之后也不是shell,而是一个定制的命令行。所以如果想了解细节的话,只能单独挂硬盘了。 首先现在同事的vmware虚拟机里用CentOS的光盘挂载了一下,简单的看了看,用起来不太方便 阅读全文
posted @ 2017-04-13 11:32 toong 阅读(274) 评论(0) 推荐(0) 编辑

[archlinux][plasma][screensaver] plasma5配置屏保程序,没成功(-_-#)

摘要: plamsa用了好久,一直没有屏保。我想要玄酷的屏保! 用xscreensaver, 之前用FVWM2的时候,就用过了,很玄酷。 一,安装 pacman -S xscreensaver 二,配置 xscreensaver-demo 是图形的,可以配置。会自动写入~/.conf/xscreensave 阅读全文
posted @ 2017-04-11 11:41 toong 阅读(403) 评论(0) 推荐(0) 编辑

[skill][https][ssl/tls] HTTPS相关知识汇总

摘要: 结论前置: A 身份验证 证书, 服务器证书 B 密钥协商 RSA DHE / ECDHE PSK C 加密通信 加密通信采用对称加密,使用B阶段协商出来的密钥。 B 阶段如果使用 RSA 协商,可以用服务器证书在协商过程中解密到 C过程中的密钥。从而解密通信内容。(此方式下,采用旁路方式就可以)。 阅读全文
posted @ 2017-04-06 20:37 toong 阅读(1032) 评论(0) 推荐(0) 编辑

[dpdk][kernel][driver] 如何让DPDK的UIO开机自动加载到正确的网卡上

摘要: 0. 前言 开了虚拟机,开始dpdk之前,我每天都干这几件事: 作为一个有理想的人,很明显,这件事需要让机器自己干 --! 做了上百次之后,我终于开窍了。。。 1. linux启动过程 BOIS/UEFI --> MBR --> grub2 -> linux kernel --> initrd -- 阅读全文
posted @ 2017-04-04 20:44 toong 阅读(1646) 评论(0) 推荐(0) 编辑

[archlinux] linux boot process/order/stage

摘要: 信息量好大 --! 神教读物,无人能比: https://wiki.archlinux.org/index.php/Arch_boot_process IBM的高质量文档 https://www.ibm.com/developerworks/library/l-linuxboot/ https:// 阅读全文
posted @ 2017-03-31 18:13 toong 阅读(176) 评论(0) 推荐(0) 编辑

[potatos][flex][TBC] 语义分析词法分析 flex

摘要: FLEX: The Fast Lexical Analyzer https://github.com/westes/flex 这并不是我的人生中第一次遇见flex,好多工程中,我都发现他们用到了flex,yacc,bison等。 只是大概知道好像是语法分析器,但是并不关心。 知道最近,我要给pota 阅读全文
posted @ 2017-03-29 11:26 toong 阅读(298) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页