Saturday, 17 January 2015
Friday, 16 January 2015
Revert to a previous Boot Environment - Solaris 11
Revert to a previous Boot Environment:
beadm list beadm activate solaris-backup-1 reboot
Thursday, 15 January 2015
How to set CentOS/Redhat to auto update
# yum update -y # yum install yum-cron # chkconfig yum-cron on
Wednesday, 14 January 2015
Unattended Updates - Debian
To set up auto updates on Debian, do the following:
apt-get install unattended-upgrades apt-listchangesEdit /etc/apt/apt.conf.d/50unattended-upgrades and uncomment the line:
Unattended-Upgrade::Mail "root";Edit /etc/apt/apt.conf.d/20auto-upgrades, and add the following:
APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Unattended-Upgrade "1";Or run the following command as root:
dpkg-reconfigure -plow unattended-upgrades
Tuesday, 13 January 2015
Creating an encrupted password for kickstart - CentOS
Use OpenSSL to generate an MD5 crypt:
# openssl passwd -1 "password here" $1$e/5d7DEs$bhFiuOQp8MMe785dzvBPv.Use grub-crypt to generate a SHA256 crypt:
# grub-crypt --sha-256 Password: Retype password: $5$W/DyB05xk2UIZz6k$YyBl36yKHVmaFmJHNS1m/b2/viRa6KnQe3dDQVZZ5n3Put the password hash in your kickstart file:
rootpw --iscrypted password_hashMake sure your authconfig configuration matches the crypt:
authconfig --enableshadow [--enablemd5|--passalgo=sha256]
Monday, 12 January 2015
INIT: Id “1” respawning too fast: disabled for 5 minutes
Console error message:
INIT: Id “1” respawning too fast: disabled for 5 minutesWhat causes this problem? Apparently, this is due to this line in my /etc/inittab file:
1:2345:respawn:/sbin/getty 38400 tty1Which says to spawn a terminal on a non existant serial port. You get a respawning too fast error when an inittab line makes no sense. So simptly comment it out:
#1:2345:respawn:/sbin/getty 38400 tty1
Friday, 9 January 2015
Puppet List Installed Modules - Install non Puppetforge modules
To list Puppet modules downloaded from puppetforge:
# puppet module list /etc/puppet/modules ├── adrien-alternatives (v0.3.0) ├── alkivi-console_data (v0.0.1) ├── attachmentgenie-locales (v1.0.6) ├── example42-puppi (v2.1.10) ├── herculesteam-augeasproviders_core (v2.0.1) ├── herculesteam-augeasproviders_shellvar (v2.0.1) ├── pfmooney-mit_krb5 (v0.0.5) ├── puppetlabs-concat (v1.0.0) ├── puppetlabs-firewall (v1.2.0) ├── puppetlabs-inifile (v1.2.0) ├── puppetlabs-ntp (v3.3.0) ├── puppetlabs-stdlib (v4.3.2) ├── saz-ssh (v2.4.0) ├── ssm-munin (v0.0.5) ├── stahnma-epel (v1.0.2) ├── trlinkin-nsswitch (v1.0.0) └── trlinkin-validate_multi (v0.1.0)To install modules from elsewhere:
cd /var/tmp wget https://github.com/lermit/puppet-nslcd/archive/master.zip cd /etc/puppet/environments/testing/ unzip /var/tmp/master.zip
Subscribe to:
Posts (Atom)