Skip to content

Instantly share code, notes, and snippets.

View scottslowe's full-sized avatar

Scott S. Lowe scottslowe

View GitHub Profile
@scottslowe
scottslowe / sled-10-etc-hosts
Created December 22, 2014 01:06
This /etc/hosts file, taken from SLED 10, is configured to assist with integration into Active Directory.
###############
# /etc/hosts
###############
# This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
@scottslowe
scottslowe / sled-10-krb5-conf
Created December 22, 2014 01:08
This is a krb5.conf file from a SLED 10 workstation configured to authenticate against Microsoft Active Directory.
###############
# krb5.conf for connecting with Windows Server 2003#
###############
[logging]
kdc = FILE:/var/log/krb5/krb5kdc.log
admin_server = FILE:/var/log/krb5/kadmind.log
default = SYSLOG:NOTICE:DAEMON
[libdefaults]
ticket_lifetime = 24000
@scottslowe
scottslowe / sled-10-ldap-conf
Created December 22, 2014 01:09
This is an ldap.conf taken from a SLED 10 workstation configured to use Active Directory for lookups.
###############
# custom ldap.conf for connecting with Server 2003 R2
###############
host 10.10.10.1
base dc=domain,dc=com
uri ldap://windows-dc-hostname.domain.com/
binddn cn=linux-ldap-user,cn=Users,dc=domain,dc=com
bindpw ldap-user-passwd
scope sub
bind_timelimit 15
@scottslowe
scottslowe / sled-10-nsswitch-conf
Created December 22, 2014 01:12
This nsswitch.conf is for a SLED 10 workstation integrated into Active Directory.
###############
# /etc/nsswitch.conf
###############
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry [NOTFOUND=return] means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
@scottslowe
scottslowe / sled-10-ntp-conf
Created December 22, 2014 01:20
This is an ntp.conf file taken from an Active Directory-integrated SLED 10 workstation.
###############
# /etc/ntp.conf file
#
# Sample NTP configuration file.
# See package ntp-doc for documentation, Mini-HOWTO and FAQ.
# Copyright 1998 S.u.S.E. GmbH Fuerth, Germany.
#
# Author: Michael Andres,
#
###############
@scottslowe
scottslowe / sled-10-smb-conf
Created December 22, 2014 01:23
This is a Samba configuration file (smb.conf) used to integrate SLED 10 into Active Directory.
###############
# /etc/samba/smb.conf file
###############
# smb.conf is the main Samba configuration file. You find a full
# commented version at /usr/share/doc/packages/samba/examples/
# smb.conf.SUSE if the samba-doc package is installed.
# Date: 2007-02-07
[global]
workgroup = DOMAIN-SHORTNAME
realm = DOMAIN.COM
@scottslowe
scottslowe / sled-10-pam-conf
Created December 22, 2014 01:25
These PAM configuration files were taken from a SLED 10 workstation configured to integrate with Active Directory.
###############
# /etc/pam.d/common-account - authorization settings common to all services
###############
# This file is included from other service-specific PAM config
# files, and should contain a list of the authorization modules
# that define the central access policy for use on the system.
# The default is to only deny service to users whose accounts
# are expired.
#
account sufficient pam_krb5.so
@scottslowe
scottslowe / sled-10-master-pam
Created December 22, 2014 01:28
This PAM configuration is used on SLED 10 to control authentication, and is used for integration into Active Directory.
#%PAM-1.0
###########line above is part of this file#################
#/etc/pam.d/su config file
###########################################################
#auth sufficient pam_rootok.so
auth include common-auth
account include common-account
password include common-password
session include common-session
session optional pam_xauth.so
@scottslowe
scottslowe / hostd-config
Created December 30, 2014 02:22
This snippet of XML, taken from /etc/vmware/hostd/config.xml on an ESX 3.5U3 host, changes the HA heartbeat delay.
<vmsvc>
<heartbeatDelayInSecs>0</heartbeatDelayInSecs>
</vmsvc>
@scottslowe
scottslowe / ubuntu-1404-preseed
Created May 20, 2015 17:49
This is a preseed file, written for Ubuntu Server 14.04.2, that provides a fully automated installation (assuming the presence of a PXE boot infrastructure and a local HTTP server to provide the installation files).
# Ubuntu Server automated installation
# by Scott Lowe ([email protected])
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
d-i netcfg/choose_interface select eth0
d-i netcfg/get_hostname string hostname
d-i netcfg/get_domain string domain.com
d-i netcfg/wireless_wep string