Trouble Maker – Breaks Your Linux Machine and Ask You to Fix Broken Linux

[‘

n

Fixing a broken Linux System can be a cumbersome job if you don’t have the idea of what exactly is going on. What most of us do when we gets a broken Linux system? Most of us searches the forum and/or google about the problem. While we hate troubles, how about installing a ‘Trouble Maker‘ application, which essentially creates troubles, gives you hard time and want you to fix broken system.

n

This is a nice way of learning to fix a broken Linux System. For this purpose, there is a special Linux Distro available called ‘Damn Vulnerable Linux’ (DVL), it’s bundled with ill-configured, outdated and exploitable tools which trains administrators to industry standard.

n

Install Trouble Maker in Linux
Trouble-Maker – We break it and You fix it

n

However, no any distribution or tool is a replacement for clearly understanding the Linux and experience in dealing with unknown problems. This is where, Trouble-Maker comes into the picture. With this “Trouble Maker” you can train Yourself on any standard Linux distribution and hence no specific distro is required.

n

In fact, you will never underestimate DVL distribution. The DVL distro contains a lot of broken applications and bugs whereas “Trouble Maker”, will provide you with 16 different modules.

n

Trouble Maker Components

n

Trouble Maker consists of three main components and they are:

n

    n

  1. The trouble-engine is developed in a cross platform way, so it can run on as many target platforms as feasible .
  2. n

  3. The trouble-modules are developed so as to denote which machines they apply to, and what requirements they have.
  4. n

  5. The trouble-module-builder is an extra module (optional) system designed to clarify packaging trouble-module files into certain modules. Currently not implemented.
  6. n

n

At this time, only RedHat Enterprise Linux, CentOS, Fedora and SUSE Linux Enterprise Server are supported. When you install and run the “Trouble Maker” first time, it will randomly choose a problem from its set of modules and ask you to deal with boot problem, configuration problem, hardware problem and user reporting problem.

n

It is Strongly recommended not to install “Trouble Maker” on your Primary/Production Machine. Better use it on any of the ‘virtual machine‘ in order to remain away from any trouble or data loss.

n

Installation of Trouble-Maker in Linux

n

The application is a crossxad-platform project and hence don’t come bundled with OS specific files/application. The project is developed in Perl programming language. Of course you needxa0Perlxa0installed on your Linuxxa0server, before using the application.

n

To install required Perl modules, you need to install and enable third party RPMForge repository under your systems. Please use the following article to enable repository.

n

Install and Enable RPMForge Repository in RHEL/CentOS

n

Once you’ve enabled RPMForge repository, you can run the following command to install required Perl modules.

n

# yum install perl-Archive-Tar perl-YAML

n

Now, download the latest Trouble-Maker application using the following download link or you may use the wget command to download it as shown.

n

http://sourceforge.net/projects/troublexadmaker/files/

n

# cd /tmprn# wget http://kaz.dl.sourceforge.net/project/trouble-maker/trouble-maker/0.11/trouble-maker-0.11.tgzrn# cd /rn# tar -zxvf /tmp/trouble-maker-0.11.tgzrn# /usr/local/trouble-maker/bin/trouble-maker.pl --version=RHEL_6

n

How to Run Trouble-Maker in Linux

n

The default mode for running trouble-maker is very easy to use. Simply run the following command with the version flag. For example, on RedHat Enterprise Linux 6, run the command as shown.

n

# /usr/local/trouble-maker/bin/trouble-maker.pl --version=RHEL_6

n

To run a specified module.

n

# /usr/local/troublexadmaker/bin/troublexadmaker.pl –version=RHEL_6 –selection=module_name

n

Trouble-Maker Problem Modules

n

Having a look at some of the System breaks, arising as a result of running Trouble Maker.

n

1. No GUI! Only command Line

n

Area to see: Your Runlevel has been modified from 5 to 3 in /etc/inittab file.

n

2. User ‘gdm’ don’t exist

n

Area to see: Modification in /etc/passwd file.

n

3. INIT: No more process in the runlevel

n

Area to see: Problem with /etc/inittab file.

n

4. Switchroot: Mount Failed: No such file or directory

n

Area to see: Location of root partition is modified. You need to change /boot/grub/grub.conf

n

5. Can’t log in as root

n

Area to see: You need to check file /etc/pam.d/login file.

n

6. initrd file not found

n

Area to see: correct /boot/grub/grub.conf

n

7. Network is not working

n

Area to see: You have to see at number of places. Check if ‘ifconfig’ command is working or not followed by looking into the file /etc/sysconfig/network file.

n

8. Log in to root denied, in console

n

Area to see: check /etc/pam.d/login file and /etc/security file and correct either or both of them.

n

9. FTP is not working

n

Area to see: check for errors in the ftp configuration file, /etc/hosts.allow and /etc/hosts.deny.

n

10. SSH not working

n

Area to see: Fix SSH configuration file.

n

Conclusion

n

I already describe 10 modules above, out of 16 modules of trouble maker, and leaving remaining 6 modules for you to explore. To be true 1 module is dummy hence you are left with 5 modules to explore and a total of 15 modules and 1 dummy module available in ‘Trouble Maker’. Run the program at your own risk. We are not responsible for any damage to your System/Server.

n

Reference Links

n

    n

  1. Product’s Homepage
  2. n

  3. Product’s Documentation
  4. n

n

Hope you people would love the writing and tell us about your experience with ‘Trouble Maker’. That’s all for now and don’t forget to provide us with your valuable feedback in the comment section.

n

‘]