Linux
Gentoo xorg.conf
Gentoo我的xorg.conf配置文档,双显卡:INTEL核显+NVIDIA独显
Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "intel" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "01:00:0" Option "RegistryDwords" "EnableBrightnessControl=1" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" EndSection Section "Device" Identifier "intel" Driver "modesetting" BusID "00:02:0" EndSection Section "Screen" Identifier "intel" Device "intel" EndSection
Linux
socks-connect.sh
#!/usr/binbash read -p "Please input a IP: " ip1 read -p "Please input local port: " port1 ssh -N -f -D $port1 username@$ip1 &>/dev/null if [ $? -eq 0 ]; then echo "$ip1 success!" else echo "$ip1 error" fi
Linux
Gentoo bash
常用到的命令集:
emerge --sync //更新仓库
#emerge -av portage //更新包管理器
#emerge --ask --update --deep --newuse --with-bdeps=y @world //更新重构系统
emerge -avuDN @world //更新重构系统,同上
emerge @preserved-rebuild //检查依赖关系重建部分软件包
#revdep-rebuild gentoolkit包里面的一个软件,用来检查系统的依赖关系是否都满足,自动安装没有满足关系.
#emerge -av --depclean //清除孤立软件
#emerge -e world //本地重新编译整个系统,USE标记变化不大时不需执行
dispatch-conf //更新系统配置文件
env-update && source /etc/profile //如有必要,更新环境变量 (更多…)