Archive for the ‘Linux/Unix’ Category

(sort of) automated Cygwin install

Saturday, October 18th, 2014
setup-x86.exe -Dq -s http://mirrors.koehn.com/cygwin/cygwin-ftp/ \
-P openssl,curl,wget,lynx,nc,inetutils,rsync,vim,bind,sed,awk,binutils,\
ncdu,sleep,less,gzip,zip,unzip,bc,procps,openssh,cygrunsrv,wget,vi -R c:/cygwin

Net::SSH::Perl really slow?

Wednesday, November 7th, 2012

I eventually ran across this article which clued me in to install Math::BigInt::GMP (yum install perl-Math-BigInt-GMP on RHEL variants).

ESXi 4 lost password

Tuesday, February 28th, 2012

I recently powered up an old ESXi 4 host and could not remember the root password.  A bit of Googling led me to the solution.

nslcd and sudo

Monday, February 27th, 2012

For some reason nslcd on Scientific Linux 6 does not recognize the sudoers_base directive in it’s config file. But to have sudo work I need that directive in there. After growing tired of manually fixing this every reboot I patched the nslcd init script until a more permanent solution can be found. This is for nss-pam-ldapd-0.7.5-14.el6_2.1.x86_64 but other versions may be affected as well.

--- /etc/init.d/nslcd.original 2012-02-27 10:18:57.474789464 -0600
 +++ /etc/init.d/nslcd 2012-02-27 10:19:01.862151506 -0600
 @@ -33,6 +33,7 @@
 RETVAL=$?
 echo
 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
 + sed -i -e 's/^#sudoers_base/sudoers_base/' /etc/nslcd.conf
 return $RETVAL
 }
@@ -44,6 +45,7 @@
 if [ $RETVAL -eq 0 ]; then
 rm -f /var/lock/subsys/$prog
 fi
 + sed -i -e 's/^sudoers_base/#sudoers_base/' /etc/nslcd.conf
 }
restart() {

Update:
sudo now uses its own ldap config file, /etc/sudo-ldap.conf
https://bugzilla.redhat.com/show_bug.cgi?id=760843