Skip to content

Instantly share code, notes, and snippets.

Avatar

666threesixes666 666threesixes666

View GitHub Profile
View 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
@666threesixes666
666threesixes666 / smb.conf
Last active Dec 16, 2015
samba shares smb.conf
View 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 / grubdefaultetc
Created May 28, 2013
grub2 configuration file for gentoo located @ /etc/default/grub
View grubdefaultetc
# 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.
View kernelconfig
#
# 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 / fstab
Last active Dec 18, 2015
generic fstab for gentoo install
View fstab
# /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 / config
Created Jun 11, 2013
generic kernel config
View config
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_SATA_NV=y
CONFIG_ATH5K=m
CONFIG_ATH5K_PCI=y
CONFIG_JFS_FS=y
CONFIG_FUSE_FS=y
@666threesixes666
666threesixes666 / xdm
Created Jun 11, 2013
lightdm tweaks to xdm config
View xdm
# We always try and start X on a static VT. The various DMs normally default
# to using VT7. If you wish to use the xdm init script, then you should ensure
# that the VT checked is the same VT your DM wants to use. We do this check to
# ensure that you haven't accidentally configured something to run on the VT
# in your /etc/inittab file so that you don't get a dead keyboard.
CHECKVT=7
# What display manager do you use ? [ xdm | gdm | kdm | gpe | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
DISPLAYMANAGER="lightdm"
@666threesixes666
666threesixes666 / gitlab
Created Jun 28, 2013
gitlab init script
View gitlab
#!/sbin/runscript
# GitLab 5.3 init script for Gentoo Linux
# see https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md
GITLAB_BASE=/home/git/gitlab
GITLAB_USER=git
depend() {
need net redis
}
@666threesixes666
666threesixes666 / wapresets
Created Jul 17, 2013
audacious winamp presets
View wapresets
[Presets]
Preset0=Classical
Preset1=Club
Preset2=Dance
Preset3=Flat
Preset4=Live
Preset5=Laptop Speakers/Headphone
Preset6=Rock
Preset7=Pop
Preset8=Full Bass and Treble
View conky.conf
background yes
font Sans:size=10
#xftfont Sans:size=10
use_xft yes
xftalpha 0.9
update_interval 3.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes