Skip to main content

Posts

Showing posts from July, 2012

desktop lock up on RHEL

Issue : my desktop would lock up and become unresponsive while the machine still had a normally functioning  OS. Resolution : attempt #1:  disable the Lenovo fingerprint reader.  This didn't fix it. attempt #2:  stop using Google Chrome.  Wasn't Google Chrome... attempt #3:  stay away from flash...  perhaps I'll try uninstalling flash. attempt #4:  this seems to have fixed it... update the boot string with  i8042.noloop SOLVED : --FOR RHEL update your /boot/grub/grub.conf title Red Hat Enterprise Linux Workstation (2.6.32-279.2.1.el6.x86_64)         root (hd0,2)         kernel /vmlinuz-2.6.32-279.2.1.el6.x86_64 ro root=/dev/mapper/vg_neo-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_LVM_LV=vg_neo/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_neo/lv_root rd_NO_DM i8042.noloop         initrd /initramfs...

Install an old kernel

Issue : My laptop has been acting up since my latest kernel update (at least that is what I am hoping it is).  I had run a clean-up on my machine to remove the older kernels.  I would like to re-install the most recent kernel. Resolution : [root@neo ~]# yum list --showduplicates | grep kernel.x86_64 | tail -2 | head -1 | awk '{ print "kernel-"$2 }' | xargs yum install [root@neo ~]# grep 2.6.32-279.1.1.el6 /boot/grub/grub.conf  title Red Hat Enterprise Linux Workstation (2.6.32-279.1.1.el6.x86_64) kernel /vmlinuz-2.6.32-279.1.1.el6.x86_64 ro root=/dev/mapper/vg_neo-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_LVM_LV=vg_neo/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_neo/lv_root rd_NO_DM irqpoll initrd /initramfs-2.6.32-279.1.1.el6.x86_64.img Alternate ending: [root@neo ~]# yum list --showduplicates | grep kernel.x86_64 | tail -2 Unable to read consumer identity kernel.x86_...

"finish" script for RHEL 6.3 x86_64

Issue: As powerful and inclusive as RHEL is for a server, it still needs a few tweaks to make it functional as a desktop.  I end up rebuilding my primary machine often enough that I decided I needed a finish script. #!/bin/sh PWD=`pwd` DATE=`date +%Y%m%d` ARCH=`uname -p` # ****************************** # Setup local user(s) # Add the admin/redacted Groups and redacted User - if not already there. # ****************************** if [ -d /home/redacted ] then   echo "mv /home/redacted /home/redacted.${DATE} "   exit 9   mv /home/redacted /home/redacted.${DATE} fi getent group admin >/dev/null || groupadd -g 6969 admin getent group redacted >/dev/null || groupadd -g 2025 redacted getent passwd redacted >/dev/null || useradd -g 2025 -u 2025 -G admin -s /bin/bash -c "Redacted" -d /home/redacted -p '$6$KumYpty4aMKx8Jp/$<ENCRYPTED PASSPHRASE HERE>.' redacted # UPDATE THE SUDOERS FILE cat << EOF >> /etc/sudoers...

backup Satellite (embedded) database

A simple script to backup the embedded Oracle database included with Satellite 5.4.1 [root@rhnsat01 Satellite]# cat db_backup.sh  #!/bin/bash PRETTY_DATE=`date +%Y%m%d` BACKUP_DIR=/rhnsat-backup/${PRETTY_DATE} OUTPUT_LOG=/var/log/rhnsat-backup.log mkdir ${BACKUP_DIR} if [ ! -d ${BACKUP_DIR} ] then   echo "ERROR: unable to create Backup Dir: ${BACKUP_DIR}"   exit 9 fi # MESSAGE TO USER ON CONSOLE echo "NOTE: you can find output at: ${OUTPUT_LOG}" # BEGIN LOGGING OF THE SCRIPT OUTPUT echo "Script ran at: `date +%Y%m%d-%H%M`" > ${OUTPUT_LOG} echo "start: `date +%Y%m%d-%H%M`" >> ${OUTPUT_LOG} # UPDATE PERMISSIONS OF THE BACKUP DIRECTORY TO ALLOW ORACLE # TO WRITE echo "chown -R oracle:dba /rhnsat-backup/*" >> ${OUTPUT_LOG} chown -R oracle:dba /rhnsat-backup/* >> ${OUTPUT_LOG} # CREATE A REPORT OF THE CURRENT ORACLE DB USAGE echo "su - oracle -c \"/usr/...

Red Hat Training Review

The following is my perspective of the Red Hat classes I have taken.  I am very happy with training I have received from Red Hat.  If your goal is to become certified, I highly recommend taking advantage of the courses.  Currently (July 2012) I have successfully completed the RHCSA, RHCE and RHCVA exams. The most important step is to take advantage of the self-assessment online Red Hat skills assessment tool RH300 -  RHCE Rapid Track Course with RHCSA and RHCE Exams RH300 - Course Description RH300 is a  fast-paced   review   over 4 days to prep for the exam. I felt as though quite a few people who attended this class at the same time as myself did not understand the goal of this particular class.  RH300 is not for the squeamish.  You should NOT hope to learn a lot from this class.   If you are a proficient Linux (read: Red Hat) Administrator and simply need some guidance on what to expect and what to study for, this class is fo...