Skip to content

Instantly share code, notes, and snippets.

View skiane's full-sized avatar

Stéphane Fritsch skiane

View GitHub Profile
@skiane
skiane / create-centos-7.2-mini-unattended-iso.sh
Last active January 9, 2019 09:38
create-centos-7.2-mini-unattended-iso.sh
# This script create a Centos Minimal Unattended ISO
# This method is based on excellent article http://pyxlmap.net/technology/software/linux/custom-centos-iso
#
# This script has be tested with CentOS 7.2 (on the orign server) to install CentOS 7.2 (on the target server)
# TODO:
# * test package update to reduce the update task on the target system. The following command downloads all updates :
# (cd $CENTOS_CUSTOM_PATH/Packages ; yumdownloader $(for i in *; { echo ${i%%-[0-9]*}; } ) )
# Some global settings :
cd /etc/yum.repo.d
curl -O http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh5.repo
curl -O http://archive.cloudera.com/gplextras5/redhat/6/x86_64/gplextras/cloudera-gplextras5.repo
rpm --import http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera
yum clean all
# All
yum install -y zookeeper
mkdir -p /var/lib/zookeeper
chown -R zookeeper /var/lib/zookeeper/
#!/bin/sh
IDRAC_PWD=calvin
IDRAC_LOGIN=root
IDRAC_IP_LIST="192.168.0.120 10.90.220.10 10.90.200.105"
sshracadm()
{
ip=$1
shift
ZONE=''
# Source this file to get system timezone on CentOS/RHEL
test -f /etc/sysconfig/clock && . /etc/sysconfig/clock
# Read /etc/timezone on Debian
test -f /etc/timezone && ZONE=$(cat /etc/timezone)
# This is for CentOS7
test -x /usr/bin/timedatectl && ZONE=$(/usr/bin/timedatectl |grep -i timezone | awk '{print $2}' )
#!/bin/sh
# download with this permalink : https://gist.githubusercontent.com/skian/8f5de0419755a7b07d7d/raw/96b4b06ad41630359f54d12db5d43eb52e076ed8/linux-on-dell.sh
# Usage :
# This script should be run as root
yum install -y perl wget
# This was the pre-2015 way to install Dell YUM repo
@skiane
skiane / create-centos-6.5-mini-unattended-iso.sh
Last active March 14, 2023 23:48
# This script create a Centos Minimal Unattended ISO
# This script create a Centos Minimal Unattended ISO
# This method is based on excellent article http://pyxlmap.net/technology/software/linux/custom-centos-iso
#
# This script has be tested with CentOS 6.5
# TODO:
# * test package update to reduce the update task on the target system. The following command downloads all updates :
# (cd $CENTOS_CUSTOM_PATH/Packages ; yumdownloader $(for i in *; { echo ${i%%-[0-9]*}; } ) )
# Some global settings :
@skiane
skiane / rpi-start.md
Last active March 14, 2016 22:19
Commencement avec un Raspberry Pi

Débuter avec un Raspberry Pi

Ce document trace mes premières expérimentations avec un Raspberry Pi. Cela permettra sans doute à d'autre de gagner du temps.

Il s'agit d'un modèle B (avec 512Mo de RAM donc).

Jour 1 - démarrage du RPI

Ajout du support IPv6 (après tout en France, on utilise des Freebox)

@skiane
skiane / snews.py
Last active December 15, 2015 08:39 — forked from anonymous/snews.py
sNews in Python
#!/usr/bin/python
# -*- coding: UTF-8 -*-
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
"""
XXX BUG Protect search field
XXX BUG missing last char (not anymore ?)
XXX TODO test form_groupings
XXX BUG not error mess when wrong login
"""