随笔分类 -  Linux

摘要:软件包: 示例: 阅读全文
posted @ 2019-12-05 13:59 范辉 阅读(275) 评论(0) 推荐(0)
摘要:安装 app-portage/gentoolkit 使用如下方式,可查询某个被包安装的文件列表,可以筛选文件类型 emerge -c 之后,执行一下 revdep-rebuild 修复潜在的依赖损坏 全局 USE 标志含义写在 /usr/portage/profiles/use.desc 文件中 局 阅读全文
posted @ 2019-04-17 16:29 范辉 阅读(211) 评论(0) 推荐(0)
摘要:sudo apt remove plymouth sudo sed -i 's/ splash//g' /etc/default/grub sudo update-grub 阅读全文
posted @ 2019-04-07 11:26 范辉 阅读(356) 评论(0) 推荐(0)
摘要:如下等同于安装 xfce4 meta,除了不安装 app finder 阅读全文
posted @ 2018-11-03 23:42 范辉 阅读(447) 评论(0) 推荐(0)
摘要:下载 stage3 amd64 systemd xxxxxxxx.tar.bz2 /etc/portage/make.conf 0 台式机,有线网络 OS:Gentoo CPU:Intel Haswell i7 /etc/portage/make.conf 1 MacBook Pro,无线网络 OS 阅读全文
posted @ 2018-10-28 12:50 范辉 阅读(676) 评论(0) 推荐(0)
摘要:安装之后,使用 nm connetion editor 编辑连接信息; 之使 systemctl retart NetworkManager; 之后使用 nmcli conn up $CONNECT_NAME 启动。 其它参考: https://major.io/2016/05/03/802 1x 阅读全文
posted @ 2018-10-11 09:36 范辉 阅读(723) 评论(0) 推荐(0)
摘要:一、"init"是内核启动的第一个用户空间程序(PID=1),也是所有用户态进程的"大总管";所有内核态进程的大总管是PID=2的[kthreadd]; 二、vim 状态栏显示当前文件的绝对路径 三、某些国外软件包,可以尝试从 FreeBSD 的缓存服务器下载,如 rust 源码: http://d 阅读全文
posted @ 2018-04-11 12:19 范辉 阅读(178) 评论(0) 推荐(0)
摘要:设置需要的 use 与 FEATURES,重新编译 glibc 即可: 相关文档地址: https://www.funtoo.org/Package:Valgrind 阅读全文
posted @ 2018-03-29 13:48 范辉 阅读(283) 评论(0) 推荐(0)
摘要:基础概念 1.什么是CMDB CMDB——配置管理数据库,通过识别、控制、维护,检查企业的IT资源,从而高效控制与管理不断变化的IT基础架构与IT服务,并为其它流程,例如事故管理、问题管理、变更管理、发布管理等流程提供准确的配置信息。 2.CMDB的作用 数量庞大、品种繁多的 IT 设备及以这些IT 阅读全文
posted @ 2018-01-17 11:34 范辉 阅读(1002) 评论(0) 推荐(2)
摘要:alt + 鼠标滑轮/触摸板拖放 阅读全文
posted @ 2017-10-22 16:34 范辉 阅读(755) 评论(0) 推荐(0)
摘要:修改配置文件 “~/.ssh/config”,加上这两行,重启服务器: 阅读全文
posted @ 2017-09-23 22:56 范辉 阅读(619) 评论(0) 推荐(0)
摘要:$HOME/.xinitrc 阅读全文
posted @ 2017-09-19 21:44 范辉 阅读(268) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-09-11 12:26 范辉 阅读(232) 评论(0) 推荐(0)
摘要:defaults.pcm.card 1 defaults.pcm.device 1 defaults.ctl.card 1 阅读全文
posted @ 2017-08-26 18:21 范辉 阅读(2425) 评论(0) 推荐(0)
摘要:ssh 公钥连接条件: sshd_config 中启用公钥认证 authorized_keys 文件权限必须为 0600 目标用户的 家目录 权限必须为 0700 目标账户必须已设定登陆密码(即处于可登陆状态)—— /etc/shadow 文件中的密码位不能为 '!' 或 '!!' 阅读全文
posted @ 2017-07-11 10:03 范辉 阅读(164) 评论(0) 推荐(0)
摘要:#扫描 btrfs 文件系统btrfs device scan btrfs device scan /dev/sda #创建子卷或快照 btrfs subvolume create /mnt/btrfs/new_subvol #删除使用 btrfs subvolume delete /SubVolN 阅读全文
posted @ 2017-04-02 20:37 范辉 阅读(779) 评论(0) 推荐(0)
摘要:... ... 阅读全文
posted @ 2017-03-05 23:00 范辉 阅读(657) 评论(0) 推荐(0)
摘要:零、使用 Git 源 一、Gentoo openRC风格随机启动脚本 /etc/local.d 目录: *.start 后缀文件,正常开机启动; *stop 后缀文件,正常关机时执行 二、SSD调优 将 /usr/portage、/usr/src 等大型目录绑定到HDD中的目录,减少SSD磁盘占用及 阅读全文
posted @ 2017-02-18 19:23 范辉 阅读(1507) 评论(0) 推荐(0)
摘要:参考:https://wiki.gentoo.org/wiki/Systemd systemd 支持普通用户定义的 unit[s] 开机启动 systemctl --user enable/disable/start/stop/daemon-reload... xxx.timer/xxx.servi 阅读全文
posted @ 2017-02-18 09:17 范辉 阅读(8911) 评论(0) 推荐(2)
摘要:Tips: zsh 默认仅显示最近 16 条历史记录 ~/.zshrc source ~/.cargo/env export RUST_SRC_PATH=`rustc --print sysroot`/lib/rustlib/src/rust/srcexport RUSTUP_DIST_SERVER 阅读全文
posted @ 2017-01-14 14:30 范辉 阅读(743) 评论(0) 推荐(0)