Skip to content

Instantly share code, notes, and snippets.

View 666threesixes666's full-sized avatar

666threesixes666 666threesixes666

View GitHub Profile
@666threesixes666
666threesixes666 / fstab
Last active December 18, 2015 01:48
generic fstab for gentoo install
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
@666threesixes666
666threesixes666 / kernelconfig
Last active December 17, 2015 20:19
kernel .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.9.3 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@666threesixes666
666threesixes666 / grubdefaultetc
Created May 28, 2013 22:29
grub2 configuration file for gentoo located @ /etc/default/grub
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/files/grub.default-2,v 1.2 2012/06/28 22:36:53 floppym Exp $
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub2-mkconfig -o /boot/grub2/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.
@666threesixes666
666threesixes666 / smb.conf
Last active December 16, 2015 22:09
samba shares smb.conf
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
workgroup = WORKGROUP
netbios name = $USER
# $USER should be changed to what you want your computer known as on the SMB network.
# server string is the equivalent of the NT Description field
server string = the share of the century
@666threesixes666
666threesixes666 / update-grub2
Last active December 14, 2015 16:19
update-grub2
#!/bin/bash
#make sure boot is mounted to load the kernel
mount | grep "/boot" /proc/self/mounts > /dev/null
if [ $? -ne 0 ]; then
mount /boot
fi
#make sure you have a grub2 directory in boot
if [ ! -d "/boot/grub2" ]; then
mkdir /boot/grub2
fi