Skip to content

Instantly share code, notes, and snippets.

@mazgi
Last active September 29, 2015 05:43
Show Gist options
  • Save mazgi/91c63d740aeab6c207b5 to your computer and use it in GitHub Desktop.
Save mazgi/91c63d740aeab6c207b5 to your computer and use it in GitHub Desktop.
root@sysresccd /mnt/gentoo % grep -vE '^\s*(#|$)' etc/locale.gen 
en_US ISO-8859-1
en_US.UTF-8 UTF-8
ja_JP.EUC-JP EUC-JP
ja_JP.UTF-8 UTF-8
ja_JP EUC-JP
root@sysresccd /mnt/gentoo % grep -vE '^\s*(#|$)' etc/portage/make.conf
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="-bindist mmx sse sse2"
USE="$USE -introspection"
USE="$USE bash-completion zsh-completion vim-syntax"
USE="$USE git"
USE="$USE jemalloc aio"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
GRUB_PLATFORMS="emu pc"
LINGUAS="en ja"
root@sysresccd /mnt/gentoo % cat etc/profile.d/makeopts.sh                 
#!/bin/bash
export MAKEOPTS="-j$(($(nproc)*2+1)) -l$(($(nproc)+1))"
root@sysresccd /mnt/gentoo % grep -vE '^\s*(#|$)' etc/env.d/02locale       
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
root@sysresccd /mnt/gentoo % mkdir -p $(dirname etc/portage/repos.conf/gentoo.conf)
root@sysresccd /mnt/gentoo % cat etc/portage/repos.conf/gentoo.conf
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes
root@sysresccd /mnt/gentoo % cat etc/portage/repos.conf/mazgi-experimental.conf
[mazgi-experimental]
location = /var/lib/portage/repo.data/mazgi-experimental
sync-type = git
sync-uri = git://github.com/mazgi/portage-overlay.git
auto-sync = yes
root@sysresccd /mnt/btrfs/gentoo % grep -vE '^\s*(#|$)' etc/fstab
/dev/vda3	/		btrfs	defaults,subvol=gentoo,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cache	1 2
/dev/vda3	/var/log	btrfs	defaults,subvol=var-log,compress=gzip,ssd,discard,space_cache,autodefrag,inode_cache	1 2
/dev/vda3	/usr/portage	btrfs	defaults,subvol=usr-portage,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cache	1 2
/dev/vda2	none		swap	sw	0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment