随笔分类 -  FreeBSD

摘要:http://mirrors.ustc.edu.cn/help/ Rust Crates 源使用帮助 地址 https://mirrors.ustc.edu.cn/crates.io-index/ 说明 Rust Crates Registry 源 使用说明 在 $HOME/.cargo/confi 阅读全文
posted @ 2018-06-13 17:58 范辉 阅读(1164) 评论(0) 推荐(0)
摘要:一、"init"是内核启动的第一个用户空间程序(PID=1),也是所有用户态进程的"大总管";所有内核态进程的大总管是PID=2的[kthreadd]; 二、vim 状态栏显示当前文件的绝对路径 三、某些国外软件包,可以尝试从 FreeBSD 的缓存服务器下载,如 rust 源码: http://d 阅读全文
posted @ 2018-04-11 12:19 范辉 阅读(178) 评论(0) 推荐(0)
摘要:;; 创建 vm: 管理 vm: ls -al /dev/vmm bhyvectl --destroy --vm=guest_Name 配置文件: /etc/sysctl.conf net.link.tap.up_on_open=1 net.link.tap.up_on_open=1 /boot/l 阅读全文
posted @ 2016-11-23 08:11 范辉 阅读(547) 评论(0) 推荐(1)
摘要:一、使用 svn / svnlite 代替 freebsd-update 及 portsnap 等常规工具更新系统及 ports 源码 二、安装可信 ca 机构列表 cd /usr/ports/security/ca_root_nss make install clean 三、可使用系统自带的轻量级 阅读全文
posted @ 2016-11-21 12:15 范辉 阅读(344) 评论(0) 推荐(0)
摘要:内核支持 方式一:静态編译进内核 options IPFIREWALL # enables IPFW options IPFIREWALL_VERBOSE # enables logging for rules with log keywordoptions IPDIVERT # enables N 阅读全文
posted @ 2016-11-19 23:00 范辉 阅读(1164) 评论(0) 推荐(0)
摘要:相关概念 EVENT 事件,审计系统计录的对象,包括用户登陆、网络与文件操作等各方面 CLASS 类,对具有相同或类似属性的事件的分組 RECORD 记录,审计系统生成的日志中的每一条信息 TRAIL 账目,即日志文件 SELECTION EXPRESSION 筛选表达式,用于提取有效审计信息的語法 阅读全文
posted @ 2016-11-18 23:07 范辉 阅读(554) 评论(0) 推荐(0)
摘要:sysctl 常见参数 # 常用于脚本中抓取参数值 阅读全文
posted @ 2016-11-17 23:07 范辉 阅读(419) 评论(0) 推荐(0)
摘要:参考資料 http://docs.oracle.com/cd/E37934_01/html/E36658/toc.html https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/zfs.html 内核支持 方式一:ZFS 静态編译进内核 阅读全文
posted @ 2016-11-16 08:36 范辉 阅读(2924) 评论(0) 推荐(0)
摘要:特别提醒:自行定制的内核,必須经过全方位测试无誤后,方能用于生产环境 基于:/usr/src/sys/amd64/conf/GENERIC ... 阅读全文
posted @ 2016-11-15 08:41 范辉 阅读(2047) 评论(0) 推荐(0)
摘要:一、Network Servers DNS unbound/local_unbound # /etc/rc.conf local_unbound_enable="YES" # 测试指定 DNS 服务器是否畅通且启用安全特性(DNSSEC),测试通过的 DNS 服务器地址可保留在 /etc/resol 阅读全文
posted @ 2016-11-14 14:27 范辉 阅读(730) 评论(0) 推荐(0)
摘要:一、Managing Services in FreeBSD Service restart will only work if it is set to YES in /etc/rc.conf. To start, stop or restart a service regardless of t 阅读全文
posted @ 2016-11-13 22:21 范辉 阅读(2432) 评论(0) 推荐(0)
摘要:一、首先安装 Xorg 安装 xorg pkg install xorg pkg install xorg 清除旧文件(如果已前安装过 xorg) /etc/X11/xorg.conf /usr/local/etc/X11/xorg.conf /usr/local/etc/X11/xorg.conf 阅读全文
posted @ 2016-11-13 14:28 范辉 阅读(1056) 评论(0) 推荐(0)
摘要:Tips: sysctl -d kern.maxvnodes #查看系统控制选项的含义 true > file #清空文件内容 alias ls 'ls -I(大写i)' #取消 root 的 ls 自动显示隐匿文件 在线查詢 ports 库中的软件包信息 http://www.freebsd.or 阅读全文
posted @ 2016-11-12 15:54 范辉 阅读(729) 评论(0) 推荐(0)