Gentoo tweaks

Vim with a more friendly look, /etc/vim/vimrc.local

set background=dark
set tabstop=4
set showmatch
set showcmd
set autowrite
highlight ModeMsg cterm=bold ctermfg=2 ctermbg=black    " set mode message ( --INSERT-- ) to green
highlight StatusLine ctermfg=7 ctermbg=9               " set the     active statusline to black on white
highlight StatusLineNC ctermfg=8 ctermbg=9              " set   inactive statusline to black on grey
syntax on

Simple copy Linux kernel to the right place, /sbin/cpkern.sh

#!/bin/sh
cp /usr/src/linux/arch/i386/boot/bzImage /boot/linux-$1
cp /usr/src/linux/System.map /boot/System.map-$1
cp /usr/src/linux/.config /boot/config-$1

Bash stuff, add to /etc/bash/bashrc

alias ll='ls -lah --color=auto'
export LANG="en_US.UTF-8"
alias upd='emerge -v sync && emerge -uavDN world && etc-update && revdep-rebuild -v'

Vmware with OEM only Guest OS (Windows Server), in the *.vmx file

SMBIOS.reflectHost=TRUE

Some tricks with make.conf

# make sure we logs the error messages from compiling
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_SYSTEM="mail"
PORTAGE_ELOG_MAILURI="email@example.com localhost"
PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} was merged on \${HOST} with some messages"
PORTAGE_ELOG_MAILFROM="email@example.com"

Popularity: 1% [?]

Leave a Reply

Leave a Reply
  • (required)
  • (required) (will not be published)