Genact in Termux – Run Realistic Terminal Simulations

Genact is a simple command-line tool that creates fake terminal activity for fun and demonstrations. It can simulate different tasks such as compiling code, downloading files, running Docker builds, scanning logs, and other terminal activities. Genact is useful when you want to create realistic-looking terminal output without actually performing those tasks.

Here’s what you can do with Genact in Termux:

  • Simulate different terminal activities.
  • Run different activity modules.
  • Change the simulation speed.
  • Run multiple modules.
  • Run a specific module.
  • Set a time limit for the simulation.
  • Set the number of modules to run.

Install Genact in Termux

Below are the simple commands to install Genact in Termux using Rust and Cargo. Copy and run each command one by one to install the tool.

Update Termux packages.

pkg update && pkg upgrade -y

Install Rust and Cargo.

pkg install rust make clang -y

Add Cargo to the PATH permanently.

echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Install Genact using Cargo.

cargo install genact

Genact is now installed and ready to use.

Use Genact in Termux

After installing Genact, you can use different commands to run simulated terminal activities and customize how they are displayed.

Run Genact.

genact

List all available modules.

genact -l

Genact provides the following modules:

  • ansible – Simulates Ansible activity.
  • bootlog – Simulates system boot log activity.
  • botnet – Simulates botnet-related terminal output.
  • bruteforce – Simulates a brute-force process.
  • cargo – Simulates Rust Cargo activity.
  • cc – Simulates C compiler activity.
  • composer – Simulates Composer package activity.
  • cryptomining – Simulates cryptocurrency mining activity.
  • docker_build – Simulates a Docker image build.
  • docker_image_rm – Simulates removing Docker images.
  • download – Simulates downloading files.
  • julia – Simulates Julia-related activity.
  • kernel_compile – Simulates Linux kernel compilation.
  • memdump – Simulates memory dump activity.
  • mkinitcpio – Simulates initramfs generation activity.
  • rkhunter – Simulates a rootkit detection scan.
  • simcity – Runs the SimCity simulation module.
  • terraform – Simulates Terraform activity.
  • weblog – Simulates web server log activity.
  • wpt – Simulates WPT-related terminal activity.

Run a specific module.

genact -m ansible

Run the boot log module.

genact -m bootlog

Run the botnet module.

genact -m botnet

Run the brute-force module.

genact -m bruteforce

Run the Cargo module.

genact -m cargo

Run the C compiler module.

genact -m cc

Run the Composer module.

genact -m composer

Run the cryptomining module.

genact -m cryptomining

Run the Docker build module.

genact -m docker_build

Run the Docker image removal module.

genact -m docker_image_rm

Run the download module.

genact -m download

Run the Julia module.

genact -m julia

Run the kernel compilation module.

genact -m kernel_compile

Run the memory dump module.

genact -m memdump

Run the mkinitcpio module.

genact -m mkinitcpio

Run the rkhunter module.

genact -m rkhunter

Run the SimCity module.

genact -m simcity

Run the Terraform module.

genact -m terraform

Run the weblog module.

genact -m weblog

Run the WPT module.

genact -m wpt

Run multiple modules together.

genact -m cargo,download,weblog

Change the simulation speed.

genact -s 2

A higher speed factor makes the simulated activity run faster.

Instantly print a specific number of lines.

genact -i 10

Exit after a specific amount of time.

genact --exit-after-time 2h10min

Exit after running a specific number of modules.

genact --exit-after-modules 5

Generate Bash completion.

genact --print-completions bash

Generate Zsh completion.

genact --print-completions zsh

Generate a man page.

genact --print-manpage

Show the installed version.

genact -V

Show the help menu.

genact -h

Genact only simulates terminal activity and does not actually perform the tasks shown in its output. You can use different modules and speed options to create different terminal simulations.

End Note

Genact is a fun and simple tool for creating simulated terminal activity. It provides many modules and options, so you can choose different activities and change how they appear on your screen. You can try different modules to see the various types of terminal output it can generate.

SHARE THIS POST: