Practice Breaks
A major part of the test includes fixing a system that has been broken. The system most likely will not boot, the network will not work in some way, the X-windows display may be broken and one or more of the applications like Apache will not work. You will be expected to fix most of these to pass.
I am working on a simple application Break It that will break the VMware Server I have supplied. DO NOT RUN THESE ON YOUR SYSTEM. They are guaranteed to mess things up. On another system these might not be recoverable.
I have no idea if any of these are like the break fix section of the RHCE test. What I do know is each of these are breaks I have had to fix some time during my life.
Don't read them. Just run them.
You might also try http://trouble-maker.sourceforge.net/
There are a work in progress, if they don't work (IE Break things)? Well... Then fix the broken break code and send it back to me.
Contents |
Break Script 1
/bin/sed 's/\/rc 3/\/rc 1/' /etc/inittab > /tmp/inittab cp /tmp/inittab /etc/inittab /bin/sed 's/\/rc 5/\/rc 1/' /etc/inittab cp /tmp/inittab /etc/inittab for x in /boot/vmlinuz* ; do mv $x $x.gz;done clear echo "Good Luck" init 6
Break Script 2
mdadm --fail /dev/md0 /dev/sda1 mdadm --fail /dev/md1 /dev/sdb1 clear echo "Good Luck" init 6
Break 3
/sbin/service xfs stop >/dev/null /sbin/chkconfig xfs off echo "Please start Xwindows"
Break 4
/bin/rm -rf /dev/sda1 /bin/rm -rf /dev/hda1 /bin/touch /dev/sda1 /bin/touch /dev/hda1
Break 5
/bin/echo >/etc/resolv.conf /bin/echo "Without rebooting, try to ping www.google.com
Break 6
/bin/rm -rf /initrd /sbin/reboot
Break 7
/bin/rm -rf /boot/initrd-`uname -r`.img /sbin/reboot
Break 8
/bin/echo > /etc/X11/XF86Config /bin/sed -e 's/id\:[0-9]\:/id\:5\:/' /etc/inittab >/tmp/inittab /bin/mv -f /tmp/inittab /etc/inittab /sbin/reboot
Break 9
/bin/rm -rf /boot/vmlinux-`uname -r` /bin/rm -rf /boot/vmlinuz-`uname -r` /sbin/reboot
Break 10
/bin/dd if=/dev/zero of=/dev/hda bs=400 count=1 > /dev/null /bin/dd if=/dev/zero of=/dev/sda bs=400 count=1 > /dev/null /sbin/reboot
Break 11
/bin/echo > /etc/sysconfig/hwconf /sbin/chkconfig kudzu off /bin/rm -f /etc/modules.conf /sbin/mkinitrd /boot/initrd-`uname -r`.img `uname -r` /bin/echo "After reboot, give networking a try..." /bin/sleep 15 /sbin/reboot
Break 12
/bin/rm -f /lib/security/pam_stack.so /sbin/reboot
Break 13
/bin/cp -f /usr/bin/yes /sbin/init /sbin/reboot
Break 14
/sbin/mkswap /dev/hda1 > /dev/null /sbin/mkswap /dev/sda1 > /dev/null /sbin/swapon -a > /dev/null /bin/echo "Oops! /boot is toast, format and configure without reinstalling" /bin/sleep 20 /sbin/reboot