From 44af3cbbac77ab2c55940bd7c894006be8b47959 Mon Sep 17 00:00:00 2001 From: Dhruv-89 Date: Fri, 2 Jan 2026 00:04:53 +0530 Subject: [PATCH 1/6] Added Dhruv-89 CLA-Signers --- .github/cla-signers.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/cla-signers.json b/.github/cla-signers.json index 31d79cb8d..e830489b1 100644 --- a/.github/cla-signers.json +++ b/.github/cla-signers.json @@ -86,6 +86,15 @@ ], "signed_date": "2026-01-01", "cla_version": "1.0" + }, + { + "name": "Dhruv", + "github_username": "Dhruv-89", + "emails": [ + "dhruvborkar21@gmail.com" + ], + "signed_date": "2026-01-02", + "cla_version": "1.0" } ], "corporations": { From 47f2f5b6749da8cf3b2a8ca5740a10387819c867 Mon Sep 17 00:00:00 2001 From: Dhruv-89 Date: Sun, 11 Jan 2026 16:24:54 +0530 Subject: [PATCH 2/6] Added new ask, demo and cli --- cortex/ask.py | 779 +++++++++++++++++++++++++++++++++++-------------- cortex/cli.py | 6 +- cortex/demo.py | 172 ++++++++--- 3 files changed, 694 insertions(+), 263 deletions(-) diff --git a/cortex/ask.py b/cortex/ask.py index 33c063510..b6be104ee 100644 --- a/cortex/ask.py +++ b/cortex/ask.py @@ -1,145 +1,304 @@ """Natural language query interface for Cortex. Handles user questions about installed packages, configurations, -and system state using LLM with semantic caching. +and system state using an agentic LLM loop with command execution. """ import json import os -import platform -import shutil +import re +import shlex import sqlite3 import subprocess +from enum import Enum from typing import Any - -class SystemInfoGatherer: - """Gathers local system information for context-aware responses.""" - - @staticmethod - def get_python_version() -> str: - """Get installed Python version.""" - return platform.python_version() - - @staticmethod - def get_python_path() -> str: - """Get Python executable path.""" - import sys - - return sys.executable - - @staticmethod - def get_os_info() -> dict[str, str]: - """Get OS information.""" - return { - "system": platform.system(), - "release": platform.release(), - "version": platform.version(), - "machine": platform.machine(), - } - - @staticmethod - def get_installed_package(package: str) -> str | None: - """Check if a package is installed via apt and return version.""" +from pydantic import BaseModel, Field, field_validator + + +class LLMResponseType(str, Enum): + """Type of response from the LLM.""" + COMMAND = "command" + ANSWER = "answer" + + +class SystemCommand(BaseModel): + """Pydantic model for a system command to be executed. + + The LLM must return either a command to execute for data gathering, + or a final answer to the user's question. + """ + response_type: LLMResponseType = Field( + description="Whether this is a command to execute or a final answer" + ) + command: str | None = Field( + default=None, + description="The shell command to execute (only for response_type='command')" + ) + answer: str | None = Field( + default=None, + description="The final answer to the user (only for response_type='answer')" + ) + reasoning: str = Field( + default="", + description="Brief explanation of why this command/answer was chosen" + ) + + @field_validator("command") + @classmethod + def validate_command_not_empty(cls, v: str | None, info) -> str | None: + if info.data.get("response_type") == LLMResponseType.COMMAND: + if not v or not v.strip(): + raise ValueError("Command cannot be empty when response_type is 'command'") + return v + + @field_validator("answer") + @classmethod + def validate_answer_not_empty(cls, v: str | None, info) -> str | None: + if info.data.get("response_type") == LLMResponseType.ANSWER: + if not v or not v.strip(): + raise ValueError("Answer cannot be empty when response_type is 'answer'") + return v + + +class CommandValidator: + """Validates and filters commands to ensure they are read-only. + + Only allows commands that fetch data, blocks any that modify the system. + """ + + # Commands that are purely read-only and safe + ALLOWED_COMMANDS: set[str] = { + # System info + "uname", "hostname", "uptime", "whoami", "id", "groups", "w", "who", "last", + "date", "cal", "timedatectl", + # File/directory listing (read-only) + "ls", "pwd", "tree", "file", "stat", "readlink", "realpath", "dirname", "basename", + "find", "locate", "which", "whereis", "type", "command", + # Text viewing (read-only) + "cat", "head", "tail", "less", "more", "wc", "nl", "strings", + # Text processing (non-modifying) + "grep", "egrep", "fgrep", "awk", "sed", "cut", "sort", "uniq", "tr", "column", + "diff", "comm", "join", "paste", "expand", "unexpand", "fold", "fmt", + # Package queries (read-only) + "dpkg-query", "dpkg", "apt-cache", "apt-mark", "apt-config", "aptitude", + "pip3", "pip", "python3", "python", "gem", "npm", "cargo", "go", + # System info commands + "lsb_release", "hostnamectl", "lscpu", "lsmem", "lsblk", "lspci", "lsusb", + "lshw", "dmidecode", "hwinfo", "inxi", + # Process/resource info + "ps", "top", "htop", "pgrep", "pidof", "pstree", "free", "vmstat", "iostat", + "mpstat", "sar", "nproc", "getconf", + # Disk/filesystem info + "df", "du", "mount", "findmnt", "blkid", "lsof", "fuser", "fdisk", + # Network info (read-only) + "ip", "ifconfig", "netstat", "ss", "route", "arp", "ping", "traceroute", + "tracepath", "nslookup", "dig", "host", "getent", "hostname", + # GPU info + "nvidia-smi", "nvcc", "rocm-smi", "clinfo", + # Environment + "env", "printenv", "echo", "printf", + # Systemd info (read-only) + "systemctl", "journalctl", "loginctl", "timedatectl", "localectl", + # Kernel/modules + "uname", "lsmod", "modinfo", "sysctl", + # Misc info + "getconf", "locale", "xdpyinfo", "xrandr", + } + + # Subcommands that are blocked for otherwise allowed commands + BLOCKED_SUBCOMMANDS: dict[str, set[str]] = { + "dpkg": {"--configure", "-i", "--install", "--remove", "-r", "--purge", "-P", + "--unpack", "--clear-avail", "--forget-old-unavail", "--update-avail", + "--merge-avail", "--set-selections", "--clear-selections"}, + "apt-mark": {"auto", "manual", "hold", "unhold", "showauto", "showmanual"}, # only show* are safe + "pip3": {"install", "uninstall", "download", "wheel", "cache"}, + "pip": {"install", "uninstall", "download", "wheel", "cache"}, + "python3": {"-c"}, # Block arbitrary code execution + "python": {"-c"}, + "npm": {"install", "uninstall", "update", "ci", "run", "exec", "init", "publish"}, + "gem": {"install", "uninstall", "update", "cleanup", "pristine"}, + "cargo": {"install", "uninstall", "build", "run", "clean", "publish"}, + "go": {"install", "get", "build", "run", "clean", "mod"}, + "systemctl": {"start", "stop", "restart", "reload", "enable", "disable", + "mask", "unmask", "edit", "set-property", "reset-failed", + "daemon-reload", "daemon-reexec", "kill", "isolate", + "set-default", "set-environment", "unset-environment"}, + "mount": {"--bind", "-o", "--move"}, # Block actual mounting + "fdisk": {"-l"}, # Only allow listing (-l), block everything else (inverted logic handled below) + "sysctl": {"-w", "--write", "-p", "--load"}, # Block writes + } + + # Commands that are completely blocked (never allowed) + BLOCKED_COMMANDS: set[str] = { + # Dangerous/destructive + "rm", "rmdir", "unlink", "shred", + "mv", "cp", "install", "mkdir", "touch", + # Editors (sed is allowed for text processing, redirections are blocked separately) + "nano", "vim", "vi", "emacs", "ed", + # Package modification + "apt", "apt-get", "aptitude", "dpkg-reconfigure", "update-alternatives", + "snap", "flatpak", + # System modification + "shutdown", "reboot", "poweroff", "halt", "init", "telinit", + "useradd", "userdel", "usermod", "groupadd", "groupdel", "groupmod", + "passwd", "chpasswd", "chage", + "chmod", "chown", "chgrp", "chattr", "setfacl", + "ln", "mkfifo", "mknod", + # Dangerous utilities + "dd", "mkfs", "fsck", "parted", "gdisk", "cfdisk", "sfdisk", + "kill", "killall", "pkill", + "nohup", "disown", "bg", "fg", + "crontab", "at", "batch", + "su", "sudo", "doas", "pkexec", + # Network modification + "iptables", "ip6tables", "nft", "ufw", "firewall-cmd", + "ifup", "ifdown", "dhclient", + # Shell/code execution + "bash", "sh", "zsh", "fish", "dash", "csh", "tcsh", "ksh", + "eval", "exec", "source", + "xargs", # Can be used to execute arbitrary commands + "tee", # Writes to files + } + + # Patterns that indicate dangerous operations + DANGEROUS_PATTERNS: list[str] = [ + r">\s*[^|]", # Output redirection (except pipes) + r">>\s*", # Append redirection + r"<\s*", # Input redirection + r"\$\(", # Command substitution + r"`[^`]+`", # Backtick command substitution + r";\s*", # Command chaining + r"&&\s*", # AND chaining + r"\|\|\s*", # OR chaining + r"\|.*(?:sh|bash|zsh|exec|eval|xargs)", # Piping to shell + ] + + @classmethod + def validate_command(cls, command: str) -> tuple[bool, str]: + """Validate a command for safety. + + Args: + command: The shell command to validate + + Returns: + Tuple of (is_valid, error_message) + """ + if not command or not command.strip(): + return False, "Empty command" + + command = command.strip() + + # Check for dangerous patterns + for pattern in cls.DANGEROUS_PATTERNS: + if re.search(pattern, command): + return False, f"Command contains blocked pattern (redirections, chaining, or subshells)" + + # Parse the command try: - result = subprocess.run( - ["dpkg-query", "-W", "-f=${Version}", package], - capture_output=True, - text=True, - timeout=5, - ) - if result.returncode == 0: - return result.stdout.strip() - except (subprocess.SubprocessError, FileNotFoundError): - # If dpkg-query is unavailable or fails, return None silently. - # We avoid user-visible logs to keep CLI output clean. - pass - return None - - @staticmethod - def get_pip_package(package: str) -> str | None: - """Check if a Python package is installed via pip.""" + parts = shlex.split(command) + except ValueError as e: + return False, f"Invalid command syntax: {e}" + + if not parts: + return False, "Empty command" + + # Get base command (handle sudo prefix) + base_cmd = parts[0] + cmd_args = parts[1:] + + if base_cmd == "sudo": + return False, "sudo is not allowed - only read-only commands permitted" + + # Check if command is completely blocked + if base_cmd in cls.BLOCKED_COMMANDS: + return False, f"Command '{base_cmd}' is not allowed - it can modify the system" + + # Check if command is in allowed list + if base_cmd not in cls.ALLOWED_COMMANDS: + return False, f"Command '{base_cmd}' is not in the allowed list of read-only commands" + + # Check for blocked subcommands + if base_cmd in cls.BLOCKED_SUBCOMMANDS: + blocked = cls.BLOCKED_SUBCOMMANDS[base_cmd] + for arg in cmd_args: + # Handle fdisk specially - only -l is allowed + if base_cmd == "fdisk": + if arg not in ["-l", "--list"]: + return False, f"fdisk only allows -l/--list for listing partitions" + elif arg in blocked: + return False, f"Subcommand '{arg}' is not allowed for '{base_cmd}' - it can modify the system" + + # Special handling for pip/pip3 - only allow show, list, freeze, check, config + if base_cmd in ["pip", "pip3"]: + if cmd_args: + allowed_pip_cmds = {"show", "list", "freeze", "check", "config", "--version", "-V", "help", "--help"} + if cmd_args[0] not in allowed_pip_cmds: + return False, f"pip command '{cmd_args[0]}' is not allowed - only read-only commands like 'show', 'list', 'freeze' are permitted" + + # Special handling for apt-mark - only showhold, showauto, showmanual + if base_cmd == "apt-mark": + if cmd_args: + allowed_apt_mark = {"showhold", "showauto", "showmanual"} + if cmd_args[0] not in allowed_apt_mark: + return False, f"apt-mark command '{cmd_args[0]}' is not allowed - only showhold, showauto, showmanual are permitted" + + return True, "" + + @classmethod + def execute_command(cls, command: str, timeout: int = 10) -> tuple[bool, str, str]: + """Execute a validated command and return the result. + + Args: + command: The shell command to execute + timeout: Maximum execution time in seconds + + Returns: + Tuple of (success, stdout, stderr) + """ + # Validate first + is_valid, error = cls.validate_command(command) + if not is_valid: + return False, "", f"Command blocked: {error}" + try: result = subprocess.run( - ["pip3", "show", package], + command, + shell=True, capture_output=True, text=True, - timeout=5, + timeout=timeout, ) - if result.returncode == 0: - for line in result.stdout.splitlines(): - if line.startswith("Version:"): - return line.split(":", 1)[1].strip() - except (subprocess.SubprocessError, FileNotFoundError): - # If pip is unavailable or the command fails, return None silently. - pass - return None - - @staticmethod - def check_command_exists(cmd: str) -> bool: - """Check if a command exists in PATH.""" - return shutil.which(cmd) is not None - - @staticmethod - def get_gpu_info() -> dict[str, Any]: - """Get GPU information if available.""" - gpu_info: dict[str, Any] = {"available": False, "nvidia": False, "cuda": None} - - # Check for nvidia-smi - if shutil.which("nvidia-smi"): - gpu_info["nvidia"] = True - gpu_info["available"] = True - try: - result = subprocess.run( - ["nvidia-smi", "--query-gpu=name,driver_version", "--format=csv,noheader"], - capture_output=True, - text=True, - timeout=5, - ) - if result.returncode == 0: - gpu_info["model"] = result.stdout.strip().split(",")[0] - except (subprocess.SubprocessError, FileNotFoundError): - # If nvidia-smi is unavailable or fails, keep defaults. - pass - - # Check CUDA version - try: - result = subprocess.run( - ["nvcc", "--version"], - capture_output=True, - text=True, - timeout=5, - ) - if result.returncode == 0: - for line in result.stdout.splitlines(): - if "release" in line.lower(): - parts = line.split("release") - if len(parts) > 1: - gpu_info["cuda"] = parts[1].split(",")[0].strip() - except (subprocess.SubprocessError, FileNotFoundError): - # If nvcc is unavailable or fails, leave CUDA info unset. - pass - - return gpu_info - - def gather_context(self) -> dict[str, Any]: - """Gather relevant system context for LLM.""" - return { - "python_version": self.get_python_version(), - "python_path": self.get_python_path(), - "os": self.get_os_info(), - "gpu": self.get_gpu_info(), - } + return ( + result.returncode == 0, + result.stdout.strip(), + result.stderr.strip(), + ) + except subprocess.TimeoutExpired: + return False, "", f"Command timed out after {timeout} seconds" + except Exception as e: + return False, "", f"Command execution failed: {e}" class AskHandler: - """Handles natural language questions about the system.""" + """Handles natural language questions about the system using an agentic loop. + + The handler uses an iterative approach: + 1. LLM generates a read-only command to gather information + 2. Command is validated and executed + 3. Output is sent back to LLM + 4. LLM either generates another command or provides final answer + 5. Max 5 iterations before giving up + """ + + MAX_ITERATIONS = 5 def __init__( self, api_key: str, provider: str = "claude", model: str | None = None, + debug: bool = False, ): """Initialize the ask handler. @@ -147,11 +306,20 @@ def __init__( api_key: API key for the LLM provider provider: Provider name ("openai", "claude", or "ollama") model: Optional model name override + debug: Enable debug output to shell """ self.api_key = api_key self.provider = provider.lower() self.model = model or self._default_model() - self.info_gatherer = SystemInfoGatherer() + self.debug = debug + + # Import rich console for debug output + if self.debug: + from rich.console import Console + from rich.panel import Panel + self._console = Console() + else: + self._console = None # Initialize cache try: @@ -165,14 +333,20 @@ def __init__( def _default_model(self) -> str: if self.provider == "openai": - return "gpt-4" + return "gpt-4o" # Use gpt-4o for 128K context elif self.provider == "claude": return "claude-sonnet-4-20250514" elif self.provider == "ollama": return "llama3.2" elif self.provider == "fake": return "fake" - return "gpt-4" + return "gpt-4o" + + def _debug_print(self, title: str, content: str, style: str = "dim") -> None: + """Print debug output if debug mode is enabled.""" + if self.debug and self._console: + from rich.panel import Panel + self._console.print(Panel(content, title=f"[bold]{title}[/bold]", style=style)) def _initialize_client(self): if self.provider == "openai": @@ -197,88 +371,182 @@ def _initialize_client(self): else: raise ValueError(f"Unsupported provider: {self.provider}") - def _get_system_prompt(self, context: dict[str, Any]) -> str: - return f"""You are a helpful Linux system assistant. Answer questions about the user's system clearly and concisely. - -System Context: -{json.dumps(context, indent=2)} - -Rules: -1. Provide direct, human-readable answers -2. Use the system context to give accurate information -3. Be concise but informative -4. If you don't have enough information, say so clearly -5. For package compatibility questions, consider the system's Python version and OS -6. Return ONLY the answer text, no JSON or markdown formatting""" - - def _call_openai(self, question: str, system_prompt: str) -> str: - response = self.client.chat.completions.create( - model=self.model, - messages=[ - {"role": "system", "content": system_prompt}, - {"role": "user", "content": question}, - ], - temperature=0.3, - max_tokens=500, - ) - # Defensive: content may be None or choices could be empty in edge cases - try: - content = response.choices[0].message.content or "" - except (IndexError, AttributeError): - content = "" - return content.strip() - - def _call_claude(self, question: str, system_prompt: str) -> str: - response = self.client.messages.create( - model=self.model, - max_tokens=500, - temperature=0.3, - system=system_prompt, - messages=[{"role": "user", "content": question}], - ) - # Defensive: content list or text may be missing/None + def _get_system_prompt(self) -> str: + return """You are a Linux system assistant that answers questions by executing read-only shell commands. + +Your task is to help answer the user's question about their system by: +1. Generating shell commands to gather the needed information +2. Analyzing the command output +3. Either generating another command if more info is needed, or providing the final answer + +IMPORTANT RULES: +- You can ONLY use READ-ONLY commands that fetch data (no modifications allowed) +- Allowed commands include: cat, ls, grep, find, dpkg-query, apt-cache, pip3 show/list, ps, df, free, uname, lscpu, etc. +- NEVER use commands that modify the system (rm, mv, cp, apt install, pip install, etc.) +- NEVER use sudo +- NEVER use output redirection (>, >>), command chaining (;, &&, ||), or command substitution ($(), ``) + +You must respond with a JSON object in this exact format: +{ + "response_type": "command" | "answer", + "command": "" (only if response_type is "command"), + "answer": "" (only if response_type is "answer"), + "reasoning": "" +} + +Examples of ALLOWED commands: +- cat /etc/os-release +- dpkg-query -W -f='${Version}' python3 +- pip3 show numpy +- pip3 list +- ls -la /usr/bin/python* +- uname -a +- lscpu +- free -h +- df -h +- ps aux | grep python +- apt-cache show nginx +- systemctl status nginx (read-only status check) + +Examples of BLOCKED commands (NEVER use these): +- sudo anything +- apt install/remove +- pip install/uninstall +- rm, mv, cp, mkdir, touch +- echo "text" > file +- command1 && command2""" + + # Maximum characters of command output to include in history + MAX_OUTPUT_CHARS = 2000 + + def _truncate_output(self, output: str) -> str: + """Truncate command output to avoid context length issues.""" + if len(output) <= self.MAX_OUTPUT_CHARS: + return output + # Keep first and last portions + half = self.MAX_OUTPUT_CHARS // 2 + return f"{output[:half]}\n\n... [truncated {len(output) - self.MAX_OUTPUT_CHARS} chars] ...\n\n{output[-half:]}" + + def _build_iteration_prompt( + self, + question: str, + history: list[dict[str, str]] + ) -> str: + """Build the prompt for the current iteration.""" + prompt = f"User Question: {question}\n\n" + + if history: + prompt += "Previous commands and results:\n" + for i, entry in enumerate(history, 1): + prompt += f"\n--- Attempt {i} ---\n" + prompt += f"Command: {entry['command']}\n" + if entry['success']: + truncated_output = self._truncate_output(entry['output']) + prompt += f"Output:\n{truncated_output}\n" + else: + prompt += f"Error: {entry['error']}\n" + prompt += "\n" + prompt += "Based on the above results, either provide another command to gather more information, or provide the final answer.\n" + else: + prompt += "Generate a shell command to gather the information needed to answer this question.\n" + + prompt += "\nRespond with a JSON object as specified in the system prompt." + return prompt + + def _parse_llm_response(self, response_text: str) -> SystemCommand: + """Parse the LLM response into a SystemCommand object.""" + # Try to extract JSON from the response + response_text = response_text.strip() + + # Handle markdown code blocks + if "```json" in response_text: + response_text = response_text.split("```json")[1].split("```")[0].strip() + elif "```" in response_text: + response_text = response_text.split("```")[1].split("```")[0].strip() + try: - text = getattr(response.content[0], "text", None) or "" - except (IndexError, AttributeError): - text = "" - return text.strip() + data = json.loads(response_text) + return SystemCommand(**data) + except (json.JSONDecodeError, Exception) as e: + # If parsing fails, treat it as a direct answer + return SystemCommand( + response_type=LLMResponseType.ANSWER, + answer=response_text, + reasoning="Could not parse structured response, treating as direct answer" + ) - def _call_ollama(self, question: str, system_prompt: str) -> str: - import urllib.error - import urllib.request + def _call_llm(self, system_prompt: str, user_prompt: str) -> str: + """Call the LLM and return the response text.""" + if self.provider == "openai": + response = self.client.chat.completions.create( + model=self.model, + messages=[ + {"role": "system", "content": system_prompt}, + {"role": "user", "content": user_prompt}, + ], + temperature=0.3, + max_tokens=1000, + ) + try: + content = response.choices[0].message.content or "" + except (IndexError, AttributeError): + content = "" + return content.strip() + + elif self.provider == "claude": + response = self.client.messages.create( + model=self.model, + max_tokens=1000, + temperature=0.3, + system=system_prompt, + messages=[{"role": "user", "content": user_prompt}], + ) + try: + text = getattr(response.content[0], "text", None) or "" + except (IndexError, AttributeError): + text = "" + return text.strip() + + elif self.provider == "ollama": + import urllib.request - url = f"{self.ollama_url}/api/generate" - prompt = f"{system_prompt}\n\nQuestion: {question}" + url = f"{self.ollama_url}/api/generate" + prompt = f"{system_prompt}\n\n{user_prompt}" - data = json.dumps( - { + data = json.dumps({ "model": self.model, "prompt": prompt, "stream": False, "options": {"temperature": 0.3}, - } - ).encode("utf-8") - - req = urllib.request.Request(url, data=data, headers={"Content-Type": "application/json"}) - - with urllib.request.urlopen(req, timeout=60) as response: - result = json.loads(response.read().decode("utf-8")) - return result.get("response", "").strip() - - def _call_fake(self, question: str, system_prompt: str) -> str: - """Return predefined fake response for testing.""" - fake_response = os.environ.get("CORTEX_FAKE_RESPONSE", "") - if fake_response: - return fake_response - # Default fake responses for common questions - q_lower = question.lower() - if "python" in q_lower and "version" in q_lower: - return f"You have Python {platform.python_version()} installed." - return "I cannot answer that question in test mode." + }).encode("utf-8") + + req = urllib.request.Request( + url, data=data, headers={"Content-Type": "application/json"} + ) + + with urllib.request.urlopen(req, timeout=60) as response: + result = json.loads(response.read().decode("utf-8")) + return result.get("response", "").strip() + + elif self.provider == "fake": + # For testing - return a simple answer + fake_response = os.environ.get("CORTEX_FAKE_RESPONSE", "") + if fake_response: + return fake_response + return json.dumps({ + "response_type": "answer", + "answer": "Test mode response", + "reasoning": "Fake provider for testing" + }) + else: + raise ValueError(f"Unsupported provider: {self.provider}") def ask(self, question: str) -> str: """Ask a natural language question about the system. + Uses an agentic loop to execute read-only commands and gather information + to answer the user's question. + Args: question: Natural language question @@ -287,19 +555,16 @@ def ask(self, question: str) -> str: Raises: ValueError: If question is empty - RuntimeError: If offline and no cached response exists + RuntimeError: If LLM API call fails """ if not question or not question.strip(): raise ValueError("Question cannot be empty") question = question.strip() - context = self.info_gatherer.gather_context() - system_prompt = self._get_system_prompt(context) - - # Cache lookup uses both question and system context (via system_prompt) for system-specific answers - cache_key = f"ask:{question}" - - # Try cache first + system_prompt = self._get_system_prompt() + + # Cache lookup + cache_key = f"ask:v2:{question}" if self.cache is not None: cached = self.cache.get_commands( prompt=cache_key, @@ -310,32 +575,98 @@ def ask(self, question: str) -> str: if cached is not None and len(cached) > 0: return cached[0] - # Call LLM - try: - if self.provider == "openai": - answer = self._call_openai(question, system_prompt) - elif self.provider == "claude": - answer = self._call_claude(question, system_prompt) - elif self.provider == "ollama": - answer = self._call_ollama(question, system_prompt) - elif self.provider == "fake": - answer = self._call_fake(question, system_prompt) - else: - raise ValueError(f"Unsupported provider: {self.provider}") - except Exception as e: - raise RuntimeError(f"LLM API call failed: {str(e)}") - - # Cache the response silently - if self.cache is not None and answer: + # Agentic loop + history: list[dict[str, str]] = [] + tried_commands: list[str] = [] + + if self.debug: + self._debug_print("Ask Query", f"Question: {question}", style="cyan") + + for iteration in range(self.MAX_ITERATIONS): + if self.debug: + self._debug_print( + f"Iteration {iteration + 1}/{self.MAX_ITERATIONS}", + f"Calling LLM ({self.provider}/{self.model})...", + style="blue" + ) + + # Build prompt with history + user_prompt = self._build_iteration_prompt(question, history) + + # Call LLM try: - self.cache.put_commands( - prompt=cache_key, - provider=self.provider, - model=self.model, - system_prompt=system_prompt, - commands=[answer], + response_text = self._call_llm(system_prompt, user_prompt) + except Exception as e: + raise RuntimeError(f"LLM API call failed: {str(e)}") + + if self.debug: + self._debug_print("LLM Raw Response", response_text[:500] + ("..." if len(response_text) > 500 else ""), style="dim") + + # Parse response + parsed = self._parse_llm_response(response_text) + + if self.debug: + self._debug_print( + "LLM Parsed Response", + f"Type: {parsed.response_type.value}\n" + f"Reasoning: {parsed.reasoning}\n" + f"Command: {parsed.command or 'N/A'}\n" + f"Answer: {(parsed.answer[:100] + '...') if parsed.answer and len(parsed.answer) > 100 else parsed.answer or 'N/A'}", + style="yellow" ) - except (OSError, sqlite3.Error): - pass # Silently fail cache writes - - return answer + + # If LLM provides a final answer, return it + if parsed.response_type == LLMResponseType.ANSWER: + answer = parsed.answer or "Unable to determine an answer." + + if self.debug: + self._debug_print("Final Answer", answer, style="green") + + # Cache the response + if self.cache is not None and answer: + try: + self.cache.put_commands( + prompt=cache_key, + provider=self.provider, + model=self.model, + system_prompt=system_prompt, + commands=[answer], + ) + except (OSError, sqlite3.Error): + pass + + return answer + + # LLM wants to execute a command + if parsed.command: + command = parsed.command + tried_commands.append(command) + + if self.debug: + self._debug_print("Executing Command", f"$ {command}", style="magenta") + + # Validate and execute the command + success, stdout, stderr = CommandValidator.execute_command(command) + + if self.debug: + if success: + output_preview = stdout[:1000] + ("..." if len(stdout) > 1000 else "") if stdout else "(empty output)" + self._debug_print("Command Output (SUCCESS)", output_preview, style="green") + else: + self._debug_print("Command Output (FAILED)", f"Error: {stderr}", style="red") + + history.append({ + "command": command, + "success": success, + "output": stdout if success else "", + "error": stderr if not success else "", + }) + + # Max iterations reached + commands_list = "\n".join(f" - {cmd}" for cmd in tried_commands) + result = f"Could not find an answer after {self.MAX_ITERATIONS} attempts.\n\nTried commands:\n{commands_list}" + + if self.debug: + self._debug_print("Max Iterations Reached", result, style="red") + + return result diff --git a/cortex/cli.py b/cortex/cli.py index 7d248002d..4a0e0df61 100644 --- a/cortex/cli.py +++ b/cortex/cli.py @@ -506,7 +506,7 @@ def _sandbox_exec(self, sandbox, args: argparse.Namespace) -> int: # --- End Sandbox Commands --- - def ask(self, question: str) -> int: + def ask(self, question: str, debug: bool = False) -> int: """Answer a natural language question about the system.""" api_key = self._get_api_key() if not api_key: @@ -519,6 +519,7 @@ def ask(self, question: str) -> int: handler = AskHandler( api_key=api_key, provider=provider, + debug=debug, ) answer = handler.ask(question) console.print(answer) @@ -1630,6 +1631,7 @@ def main(): # Ask command ask_parser = subparsers.add_parser("ask", help="Ask a question about your system") ask_parser.add_argument("question", type=str, help="Natural language question") + ask_parser.add_argument("--debug", action="store_true", help="Show debug output for agentic loop") # Install command install_parser = subparsers.add_parser("install", help="Install software") @@ -1875,7 +1877,7 @@ def main(): elif args.command == "status": return cli.status() elif args.command == "ask": - return cli.ask(args.question) + return cli.ask(args.question, debug=args.debug) elif args.command == "install": return cli.install( args.software, diff --git a/cortex/demo.py b/cortex/demo.py index 0f01108b5..6fd487eeb 100644 --- a/cortex/demo.py +++ b/cortex/demo.py @@ -1,50 +1,148 @@ -import time - -from cortex.branding import show_banner -from cortex.hardware_detection import detect_hardware +"""Interactive demo for Cortex Linux.""" +import subprocess +import sys -def run_demo() -> int: - show_banner() - print("\n๐Ÿš€ Cortex One-Command Investor Demo\n") +from rich.console import Console +from rich.panel import Panel +from rich.prompt import Prompt, Confirm +from rich.markdown import Markdown - # 1๏ธโƒฃ Hardware Scan - print("๐Ÿ” Scanning system hardware...") - time.sleep(0.8) +from cortex.branding import show_banner - hw = detect_hardware() +console = Console() - print(f"โœ” CPU: {hw.cpu.model}") - print(f"โœ” RAM: {hw.memory.total_gb} GB") - gpu = hw.gpu - if gpu and len(gpu) > 0: - print(f"โœ” GPU: {gpu[0].model}") +def _run_cortex_command(args: list[str], capture: bool = False) -> tuple[int, str]: + """Run a cortex command and return exit code and output.""" + cmd = ["cortex"] + args + if capture: + result = subprocess.run(cmd, capture_output=True, text=True) + return result.returncode, result.stdout + result.stderr else: - print("โš ๏ธ GPU: Not detected (CPU mode enabled)") + result = subprocess.run(cmd) + return result.returncode, "" - # 2๏ธโƒฃ Model Recommendations - print("\n๐Ÿค– Model Recommendations:") - if gpu and len(gpu) > 0: - print("โ€ข LLaMA-3-8B โ†’ Optimized for your GPU") - print("โ€ข Mistral-7B โ†’ High performance inference") - else: - print("โ€ข Phi-2 โ†’ Lightweight CPU model") - print("โ€ข Mistral-7B-Instruct โ†’ Efficient on CPU") - # 3๏ธโƒฃ Quick LLM Test (safe mock) - print("\n๐Ÿงช Running quick LLM test...") - time.sleep(1) - print("Prompt: Hello from Cortex") - print("Response: Hello! Your system is AI-ready ๐Ÿš€") +def _wait_for_enter(): + """Wait for user to press enter.""" + console.print("\n[dim]Press Enter to continue...[/dim]") + input() - # 4๏ธโƒฃ Kernel / System Status - print("\nโš™๏ธ System Status:") - print("โœ” Kernel Scheduler: Active") - print("โœ” AI Runtime: Ready") - # 5๏ธโƒฃ Summary - print("\nโœ… Demo Complete") - print("๐ŸŽ‰ Your system is READY for AI workloads\n") +def _section(title: str, problem: str): + """Display a compact section header.""" + console.print(f"\n[bold cyan]{'โ”€' * 50}[/bold cyan]") + console.print(f"[bold white]{title}[/bold white]") + console.print(f"[dim]{problem}[/dim]\n") + +def run_demo() -> int: + """Run the interactive Cortex demo.""" + console.clear() + show_banner() + + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + # INTRODUCTION + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + + intro = """ +**Cortex** - The AI-native package manager for Linux. + +In this demo you'll try: +โ€ข **Ask** - Query your system in natural language +โ€ข **Install** - Install packages with AI interpretation +โ€ข **Rollback** - Undo installations safely +""" + console.print(Panel(Markdown(intro), title="[cyan]Demo[/cyan]", border_style="cyan")) + _wait_for_enter() + + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + # ASK COMMAND + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + + _section( + "๐Ÿ” Ask Command", + "Query your system without memorizing Linux commands." + ) + + console.print("[dim]Examples: 'What Python version?', 'How much disk space?'[/dim]\n") + + user_question = Prompt.ask( + "[cyan]What would you like to ask?[/cyan]", + default="What version of Python is installed?" + ) + + console.print(f"\n[yellow]$[/yellow] cortex ask \"{user_question}\"\n") + _run_cortex_command(["ask", user_question]) + + _wait_for_enter() + + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + # INSTALL COMMAND + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + + _section( + "๐Ÿ“ฆ Install Command", + "Describe what you want - Cortex finds the right packages." + ) + + console.print("[dim]Examples: 'a web server', 'python dev tools', 'docker'[/dim]\n") + + user_install = Prompt.ask( + "[cyan]What would you like to install?[/cyan]", + default="a lightweight text editor" + ) + + console.print(f"\n[yellow]$[/yellow] cortex install \"{user_install}\" --dry-run\n") + _run_cortex_command(["install", user_install, "--dry-run"]) + + console.print() + if Confirm.ask("Actually install this?", default=False): + console.print(f"\n[yellow]$[/yellow] cortex install \"{user_install}\" --execute\n") + _run_cortex_command(["install", user_install, "--execute"]) + + _wait_for_enter() + + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + # ROLLBACK COMMAND + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + + _section( + "โช Rollback Command", + "Undo any installation by reverting to the previous state." + ) + + console.print("[dim]First, let's see your installation history with IDs:[/dim]\n") + console.print("[yellow]$[/yellow] cortex history --limit 5\n") + _run_cortex_command(["history", "--limit", "5"]) + + _wait_for_enter() + + if Confirm.ask("Preview a rollback?", default=False): + console.print("\n[cyan]Copy an installation ID from the history above:[/cyan]") + console.print("[dim]$ cortex rollback [/dim]", end="") + rollback_id = input().strip() + + if rollback_id: + console.print(f"\n[yellow]$[/yellow] cortex rollback {rollback_id} --dry-run\n") + _run_cortex_command(["rollback", rollback_id, "--dry-run"]) + + if Confirm.ask("Actually rollback?", default=False): + console.print(f"\n[yellow]$[/yellow] cortex rollback {rollback_id}\n") + _run_cortex_command(["rollback", rollback_id]) + + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + # SUMMARY + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + + console.print(f"\n[bold cyan]{'โ”€' * 50}[/bold cyan]") + console.print("[bold green]โœ“ Demo Complete![/bold green]\n") + console.print("[dim]Commands: ask, install, history, rollback, stack, status[/dim]") + console.print("[dim]Run 'cortex --help' for more.[/dim]\n") + return 0 + + +if __name__ == "__main__": + sys.exit(run_demo()) From 8b590279adbca868018ca30c119ff52c4315f5a4 Mon Sep 17 00:00:00 2001 From: Dhruv-89 Date: Tue, 13 Jan 2026 00:04:05 +0530 Subject: [PATCH 3/6] new do flag --- cortex/ask.py | 692 +++++++- cortex/cli.py | 620 ++++++- cortex/do_runner.py | 63 + cortex/do_runner/Untitled | 1 + cortex/do_runner/__init__.py | 129 ++ cortex/do_runner/database.py | 367 ++++ cortex/do_runner/diagnosis.py | 2716 ++++++++++++++++++++++++++++++ cortex/do_runner/diagnosis_v2.py | 1857 ++++++++++++++++++++ cortex/do_runner/executor.py | 468 +++++ cortex/do_runner/handler.py | 2382 ++++++++++++++++++++++++++ cortex/do_runner/managers.py | 287 ++++ cortex/do_runner/models.py | 349 ++++ cortex/do_runner/terminal.py | 198 +++ cortex/do_runner/verification.py | 977 +++++++++++ cortex/semantic_cache.py | 5 +- cortex/system_info_generator.py | 800 +++++++++ cortex/test.py | 0 requirements.txt | 4 +- 18 files changed, 11878 insertions(+), 37 deletions(-) create mode 100644 cortex/do_runner.py create mode 100644 cortex/do_runner/Untitled create mode 100644 cortex/do_runner/__init__.py create mode 100644 cortex/do_runner/database.py create mode 100644 cortex/do_runner/diagnosis.py create mode 100644 cortex/do_runner/diagnosis_v2.py create mode 100644 cortex/do_runner/executor.py create mode 100644 cortex/do_runner/handler.py create mode 100644 cortex/do_runner/managers.py create mode 100644 cortex/do_runner/models.py create mode 100644 cortex/do_runner/terminal.py create mode 100644 cortex/do_runner/verification.py create mode 100644 cortex/system_info_generator.py create mode 100644 cortex/test.py diff --git a/cortex/ask.py b/cortex/ask.py index b6be104ee..c20458425 100644 --- a/cortex/ask.py +++ b/cortex/ask.py @@ -2,6 +2,9 @@ Handles user questions about installed packages, configurations, and system state using an agentic LLM loop with command execution. + +The --do mode enables write and execute capabilities with user confirmation +and privilege management. """ import json @@ -20,6 +23,14 @@ class LLMResponseType(str, Enum): """Type of response from the LLM.""" COMMAND = "command" ANSWER = "answer" + DO_COMMANDS = "do_commands" # For --do mode: commands that modify the system + + +class DoCommand(BaseModel): + """A single command for --do mode with explanation.""" + command: str = Field(description="The shell command to execute") + purpose: str = Field(description="Brief explanation of what this command does") + requires_sudo: bool = Field(default=False, description="Whether this command requires sudo") class SystemCommand(BaseModel): @@ -27,9 +38,10 @@ class SystemCommand(BaseModel): The LLM must return either a command to execute for data gathering, or a final answer to the user's question. + In --do mode, it can also return a list of commands to execute. """ response_type: LLMResponseType = Field( - description="Whether this is a command to execute or a final answer" + description="Whether this is a command to execute, a final answer, or do commands" ) command: str | None = Field( default=None, @@ -39,6 +51,10 @@ class SystemCommand(BaseModel): default=None, description="The final answer to the user (only for response_type='answer')" ) + do_commands: list[DoCommand] | None = Field( + default=None, + description="List of commands to execute (only for response_type='do_commands')" + ) reasoning: str = Field( default="", description="Brief explanation of why this command/answer was chosen" @@ -59,6 +75,14 @@ def validate_answer_not_empty(cls, v: str | None, info) -> str | None: if not v or not v.strip(): raise ValueError("Answer cannot be empty when response_type is 'answer'") return v + + @field_validator("do_commands") + @classmethod + def validate_do_commands_not_empty(cls, v: list[DoCommand] | None, info) -> list[DoCommand] | None: + if info.data.get("response_type") == LLMResponseType.DO_COMMANDS: + if not v or len(v) == 0: + raise ValueError("do_commands cannot be empty when response_type is 'do_commands'") + return v class CommandValidator: @@ -81,7 +105,7 @@ class CommandValidator: "grep", "egrep", "fgrep", "awk", "sed", "cut", "sort", "uniq", "tr", "column", "diff", "comm", "join", "paste", "expand", "unexpand", "fold", "fmt", # Package queries (read-only) - "dpkg-query", "dpkg", "apt-cache", "apt-mark", "apt-config", "aptitude", + "dpkg-query", "dpkg", "apt-cache", "apt-mark", "apt-config", "aptitude", "apt", "pip3", "pip", "python3", "python", "gem", "npm", "cargo", "go", # System info commands "lsb_release", "hostnamectl", "lscpu", "lsmem", "lsblk", "lspci", "lsusb", @@ -104,6 +128,31 @@ class CommandValidator: "uname", "lsmod", "modinfo", "sysctl", # Misc info "getconf", "locale", "xdpyinfo", "xrandr", + # Container/virtualization info + "docker", "podman", "kubectl", "crictl", "nerdctl", + "lxc-ls", "virsh", "vboxmanage", + # Development tools (version checks) + "git", "node", "nodejs", "deno", "bun", "ruby", "perl", "php", "java", "javac", + "rustc", "gcc", "g++", "clang", "clang++", "make", "cmake", "ninja", "meson", + "dotnet", "mono", "swift", "kotlin", "scala", "groovy", "gradle", "mvn", "ant", + # Database clients (info/version) + "mysql", "psql", "sqlite3", "mongosh", "redis-cli", + # Web/network tools + "curl", "wget", "httpie", "openssl", "ssh", "scp", "rsync", + # Cloud CLIs + "aws", "gcloud", "az", "doctl", "linode-cli", "vultr-cli", + "terraform", "ansible", "vagrant", "packer", + # Other common tools + "jq", "yq", "xmllint", "ffmpeg", "ffprobe", "imagemagick", "convert", + "gh", "hub", "lab", # GitHub/GitLab CLIs + "snap", "flatpak", # For version/list only + "systemd-analyze", "bootctl", + } + + # Version check flags - these make ANY command safe (read-only) + VERSION_FLAGS: set[str] = { + "--version", "-v", "-V", "--help", "-h", "-help", + "version", "help", "--info", "-version", } # Subcommands that are blocked for otherwise allowed commands @@ -127,18 +176,36 @@ class CommandValidator: "mount": {"--bind", "-o", "--move"}, # Block actual mounting "fdisk": {"-l"}, # Only allow listing (-l), block everything else (inverted logic handled below) "sysctl": {"-w", "--write", "-p", "--load"}, # Block writes + # Container tools - block modifying commands + "docker": {"run", "exec", "build", "push", "pull", "rm", "rmi", "kill", "stop", "start", + "restart", "pause", "unpause", "create", "commit", "tag", "load", "save", + "import", "export", "login", "logout", "network", "volume", "system", "prune"}, + "podman": {"run", "exec", "build", "push", "pull", "rm", "rmi", "kill", "stop", "start", + "restart", "pause", "unpause", "create", "commit", "tag", "load", "save", + "import", "export", "login", "logout", "network", "volume", "system", "prune"}, + "kubectl": {"apply", "create", "delete", "edit", "patch", "replace", "scale", "exec", + "run", "expose", "set", "rollout", "drain", "cordon", "uncordon", "taint"}, + # Git - block modifying commands + "git": {"push", "commit", "add", "rm", "mv", "reset", "revert", "merge", "rebase", + "checkout", "switch", "restore", "stash", "clean", "init", "clone", "pull", + "fetch", "cherry-pick", "am", "apply"}, + # Cloud CLIs - block modifying commands + "aws": {"s3", "ec2", "iam", "lambda", "rds", "ecs", "eks"}, # Block service commands (allow sts, configure list) + "gcloud": {"compute", "container", "functions", "run", "sql", "storage"}, + # Snap/Flatpak - block modifying commands + "snap": {"install", "remove", "refresh", "revert", "enable", "disable", "set", "unset"}, + "flatpak": {"install", "uninstall", "update", "repair"}, } - # Commands that are completely blocked (never allowed) + # Commands that are completely blocked (never allowed, even with --version) BLOCKED_COMMANDS: set[str] = { # Dangerous/destructive "rm", "rmdir", "unlink", "shred", "mv", "cp", "install", "mkdir", "touch", # Editors (sed is allowed for text processing, redirections are blocked separately) "nano", "vim", "vi", "emacs", "ed", - # Package modification - "apt", "apt-get", "aptitude", "dpkg-reconfigure", "update-alternatives", - "snap", "flatpak", + # Package modification (apt-get is dangerous, apt is allowed with restrictions) + "apt-get", "dpkg-reconfigure", "update-alternatives", # System modification "shutdown", "reboot", "poweroff", "halt", "init", "telinit", "useradd", "userdel", "usermod", "groupadd", "groupdel", "groupmod", @@ -210,7 +277,16 @@ def validate_command(cls, command: str) -> tuple[bool, str]: if base_cmd == "sudo": return False, "sudo is not allowed - only read-only commands permitted" - # Check if command is completely blocked + # Check if this is a version/help check - these are always safe + # Allow ANY command if it only has version/help flags + if cmd_args and all(arg in cls.VERSION_FLAGS for arg in cmd_args): + return True, "" # Safe: just checking version/help + + # Also allow if first arg is a version flag (e.g., "docker --version" or "git version") + if cmd_args and cmd_args[0] in cls.VERSION_FLAGS: + return True, "" # Safe: version/help check + + # Check if command is completely blocked (unless it's a version check) if base_cmd in cls.BLOCKED_COMMANDS: return False, f"Command '{base_cmd}' is not allowed - it can modify the system" @@ -243,6 +319,79 @@ def validate_command(cls, command: str) -> tuple[bool, str]: if cmd_args[0] not in allowed_apt_mark: return False, f"apt-mark command '{cmd_args[0]}' is not allowed - only showhold, showauto, showmanual are permitted" + # Special handling for docker/podman - allow info and list commands + if base_cmd in ["docker", "podman"]: + if cmd_args: + allowed_docker_cmds = { + "ps", "images", "info", "version", "inspect", "logs", "top", "stats", + "port", "diff", "history", "search", "events", "container", "image", + "--version", "-v", "help", "--help", + } + # Also allow "container ls", "image ls", etc. + if cmd_args[0] not in allowed_docker_cmds: + return False, f"docker command '{cmd_args[0]}' is not allowed - only read-only commands like 'ps', 'images', 'info', 'inspect', 'logs' are permitted" + # Check container/image subcommands + if cmd_args[0] in ["container", "image"] and len(cmd_args) > 1: + allowed_sub = {"ls", "list", "inspect", "history", "prune"} # prune for info only + if cmd_args[1] not in allowed_sub and cmd_args[1] not in cls.VERSION_FLAGS: + return False, f"docker {cmd_args[0]} '{cmd_args[1]}' is not allowed - only ls, list, inspect are permitted" + + # Special handling for kubectl - allow get, describe, logs + if base_cmd == "kubectl": + if cmd_args: + allowed_kubectl_cmds = { + "get", "describe", "logs", "top", "cluster-info", "config", "version", + "api-resources", "api-versions", "explain", "auth", + "--version", "-v", "help", "--help", + } + if cmd_args[0] not in allowed_kubectl_cmds: + return False, f"kubectl command '{cmd_args[0]}' is not allowed - only read-only commands like 'get', 'describe', 'logs' are permitted" + + # Special handling for git - allow status, log, show, diff, branch, remote, config (get) + if base_cmd == "git": + if cmd_args: + allowed_git_cmds = { + "status", "log", "show", "diff", "branch", "remote", "tag", "describe", + "ls-files", "ls-tree", "ls-remote", "rev-parse", "rev-list", "cat-file", + "config", "shortlog", "blame", "annotate", "grep", "reflog", + "version", "--version", "-v", "help", "--help", + } + if cmd_args[0] not in allowed_git_cmds: + return False, f"git command '{cmd_args[0]}' is not allowed - only read-only commands like 'status', 'log', 'diff', 'branch' are permitted" + # Block git config --set/--add + if cmd_args[0] == "config" and any(a in cmd_args for a in ["--add", "--unset", "--remove-section", "--rename-section"]): + return False, "git config modifications are not allowed" + + # Special handling for snap/flatpak - allow list and info commands + if base_cmd == "snap": + if cmd_args: + allowed_snap = {"list", "info", "find", "version", "connections", "services", "logs", "--version", "help", "--help"} + if cmd_args[0] not in allowed_snap: + return False, f"snap command '{cmd_args[0]}' is not allowed - only list, info, find are permitted" + + if base_cmd == "flatpak": + if cmd_args: + allowed_flatpak = {"list", "info", "search", "remote-ls", "remotes", "history", "--version", "help", "--help"} + if cmd_args[0] not in allowed_flatpak: + return False, f"flatpak command '{cmd_args[0]}' is not allowed - only list, info, search are permitted" + + # Special handling for AWS CLI - allow read-only commands + if base_cmd == "aws": + if cmd_args: + allowed_aws = {"--version", "help", "--help", "sts", "configure"} + # sts get-caller-identity is safe, configure list is safe + if cmd_args[0] not in allowed_aws: + return False, f"aws command '{cmd_args[0]}' is not allowed - use 'sts get-caller-identity' or 'configure list' for read-only queries" + + # Special handling for apt - only allow list, show, search, policy, depends + if base_cmd == "apt": + if cmd_args: + allowed_apt = {"list", "show", "search", "policy", "depends", "rdepends", "madison", "--version", "help", "--help"} + if cmd_args[0] not in allowed_apt: + return False, f"apt command '{cmd_args[0]}' is not allowed - only list, show, search, policy are permitted for read-only queries" + else: + return False, "apt requires a subcommand like 'list', 'show', or 'search'" + return True, "" @classmethod @@ -289,9 +438,13 @@ class AskHandler: 3. Output is sent back to LLM 4. LLM either generates another command or provides final answer 5. Max 5 iterations before giving up + + In --do mode, the handler can execute write and modify commands with + user confirmation and privilege management. """ MAX_ITERATIONS = 5 + MAX_DO_ITERATIONS = 15 # More iterations for --do mode since it's solving problems def __init__( self, @@ -299,6 +452,7 @@ def __init__( provider: str = "claude", model: str | None = None, debug: bool = False, + do_mode: bool = False, ): """Initialize the ask handler. @@ -307,11 +461,13 @@ def __init__( provider: Provider name ("openai", "claude", or "ollama") model: Optional model name override debug: Enable debug output to shell + do_mode: Enable write/execute mode with user confirmation """ self.api_key = api_key self.provider = provider.lower() self.model = model or self._default_model() self.debug = debug + self.do_mode = do_mode # Import rich console for debug output if self.debug: @@ -320,13 +476,26 @@ def __init__( self._console = Console() else: self._console = None + + # Initialize DoHandler for --do mode + self._do_handler = None + if self.do_mode: + try: + from cortex.do_runner import DoHandler + # Pass LLM callback so DoHandler can make LLM calls for interactive session + self._do_handler = DoHandler(llm_callback=self._call_llm_for_do) + except (ImportError, OSError, Exception) as e: + # Log error but don't fail - do mode just won't work + if self.debug and self._console: + self._console.print(f"[yellow]Warning: Could not initialize DoHandler: {e}[/yellow]") + pass # Initialize cache try: from cortex.semantic_cache import SemanticCache self.cache: SemanticCache | None = SemanticCache() - except (ImportError, OSError): + except (ImportError, OSError, sqlite3.OperationalError, Exception): self.cache = None self._initialize_client() @@ -372,6 +541,11 @@ def _initialize_client(self): raise ValueError(f"Unsupported provider: {self.provider}") def _get_system_prompt(self) -> str: + if self.do_mode: + return self._get_do_mode_system_prompt() + return self._get_read_only_system_prompt() + + def _get_read_only_system_prompt(self) -> str: return """You are a Linux system assistant that answers questions by executing read-only shell commands. Your task is to help answer the user's question about their system by: @@ -386,7 +560,10 @@ def _get_system_prompt(self) -> str: - NEVER use sudo - NEVER use output redirection (>, >>), command chaining (;, &&, ||), or command substitution ($(), ``) -You must respond with a JSON object in this exact format: +CRITICAL: You must respond with ONLY a JSON object - no other text before or after. +Do NOT include explanations outside the JSON. Put all reasoning inside the "reasoning" field. + +JSON format: { "response_type": "command" | "answer", "command": "" (only if response_type is "command"), @@ -415,6 +592,144 @@ def _get_system_prompt(self) -> str: - rm, mv, cp, mkdir, touch - echo "text" > file - command1 && command2""" + + def _get_do_mode_system_prompt(self) -> str: + return """You are a Linux system assistant that can READ, WRITE, and EXECUTE commands to solve problems. + +You are in DO MODE - you have the ability to make changes to the system to solve the user's problem. + +Your task is to: +1. Understand the user's problem or request +2. Quickly gather essential information (1-3 read commands MAX) +3. Plan and propose a solution with specific commands using "do_commands" +4. Execute the solution with the user's permission +5. Handle failures gracefully with repair attempts + +CRITICAL WORKFLOW RULES: +- DO NOT spend more than 3-4 iterations gathering information +- After gathering basic system info (OS, existing packages), IMMEDIATELY propose do_commands +- If you know how to install/configure something, propose do_commands right away +- Be action-oriented: the user wants you to DO something, not just analyze +- You can always gather more info AFTER the user approves the commands if needed + +WORKFLOW: +1. Quickly gather essential info (OS version, if package exists) - MAX 2-3 commands +2. IMMEDIATELY propose "do_commands" with your installation/setup plan +3. The do_commands will be shown to the user for approval before execution +4. Commands are executed using a TASK TREE system with auto-repair capabilities: + - If a command fails, Cortex will automatically diagnose the error + - Repair sub-tasks may be spawned and executed with additional permission requests + - Terminal monitoring is available during manual intervention +5. After execution, verify the changes worked and provide a final "answer" +6. If execution_failures appear in history, propose alternative solutions + +CRITICAL: You must respond with ONLY a JSON object - no other text before or after. +Do NOT include explanations outside the JSON. Put all reasoning inside the "reasoning" field. + +For gathering information (read-only): +{ + "response_type": "command", + "command": "", + "reasoning": "" +} + +For proposing changes (write/execute): +{ + "response_type": "do_commands", + "do_commands": [ + { + "command": "", + "purpose": "", + "requires_sudo": true/false + } + ], + "reasoning": "" +} + +For final answer: +{ + "response_type": "answer", + "answer": "", + "reasoning": "" +} + +For proposing repair commands after failures: +{ + "response_type": "do_commands", + "do_commands": [ + { + "command": "", + "purpose": "", + "requires_sudo": true/false + } + ], + "reasoning": "" +} + +HANDLING FAILURES: +- When you see "execution_failures" in history, analyze the error messages carefully +- Common errors and their fixes: + * "Permission denied" โ†’ Add sudo, check ownership, or run with elevated privileges + * "No such file or directory" โ†’ Create parent directories first (mkdir -p) + * "Command not found" โ†’ Install the package (apt install) + * "Service not running" โ†’ Start the service first (systemctl start) + * "Configuration syntax error" โ†’ Read config file, find and fix the error +- Always provide detailed reasoning when proposing repairs +- If the original approach won't work, suggest an alternative approach +- You may request multiple rounds of commands to diagnose and fix issues + +IMPORTANT RULES: +- BE ACTION-ORIENTED: After 2-3 info commands, propose do_commands immediately +- DO NOT over-analyze: You have enough info once you know the OS and if basic packages exist +- For installation tasks: Propose the installation commands right away +- For do_commands, each command should be atomic and specific +- Always include a clear purpose for each command +- Mark requires_sudo: true if the command needs root privileges +- Be careful with destructive commands - always explain what they do +- After making changes, verify they worked before giving final answer +- If something fails, diagnose and try alternative approaches +- Multiple permission requests may be made during a single session for repair commands + +ANTI-PATTERNS TO AVOID: +- Don't keep gathering info for more than 3 iterations +- Don't check every possible thing before proposing a solution +- Don't be overly cautious - the user wants action +- If you know how to solve the problem, propose do_commands NOW + +PROTECTED PATHS (will require user authentication): +- /etc/* - System configuration +- /boot/* - Boot configuration +- /usr/bin, /usr/sbin, /sbin, /bin - System binaries +- /root - Root home directory +- /var/log, /var/lib/apt - System data + +COMMAND RESTRICTIONS: +- Use SINGLE commands only - no chaining with &&, ||, or ; +- Use pipes (|) sparingly and only for filtering +- No output redirection (>, >>) in read commands +- If you need multiple commands, return them separately in sequence + +Examples of READ commands: +- cat /etc/nginx/nginx.conf +- ls -la /var/log/ +- systemctl status nginx +- grep -r "error" /var/log/syslog +- dpkg -l | grep nginx +- apt list --installed | grep docker (use apt list, not apt install) + +Examples of WRITE/EXECUTE commands (use with do_commands): +- echo 'server_name example.com;' >> /etc/nginx/sites-available/default +- systemctl restart nginx +- apt install -y nginx +- chmod 755 /var/www/html +- mkdir -p /etc/myapp +- cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.backup + +Examples of REPAIR commands after failures: +- sudo chown -R $USER:$USER /path/to/file # Fix ownership issues +- sudo mkdir -p /path/to/directory # Create missing directories +- sudo apt install -y missing-package # Install missing dependencies +- journalctl -u service-name -n 50 --no-pager # Diagnose service issues""" # Maximum characters of command output to include in history MAX_OUTPUT_CHARS = 2000 @@ -438,15 +753,53 @@ def _build_iteration_prompt( if history: prompt += "Previous commands and results:\n" for i, entry in enumerate(history, 1): + # Handle execution_failures context from do_commands + if entry.get("type") == "execution_failures": + prompt += f"\n--- EXECUTION FAILURES (Need Repair) ---\n" + prompt += f"Message: {entry.get('message', 'Commands failed')}\n" + for fail in entry.get("failures", []): + prompt += f"\nFailed Command: {fail.get('command', 'unknown')}\n" + prompt += f"Purpose: {fail.get('purpose', 'unknown')}\n" + prompt += f"Error: {fail.get('error', 'unknown')}\n" + prompt += "\nPlease analyze these failures and propose repair commands or alternative approaches.\n" + continue + + # Handle regular commands prompt += f"\n--- Attempt {i} ---\n" - prompt += f"Command: {entry['command']}\n" - if entry['success']: - truncated_output = self._truncate_output(entry['output']) - prompt += f"Output:\n{truncated_output}\n" + + # Check if this is a do_command execution result + if "executed_by" in entry: + prompt += f"Command (executed by {entry['executed_by']}): {entry.get('command', 'unknown')}\n" + prompt += f"Purpose: {entry.get('purpose', 'unknown')}\n" + if entry.get('success'): + truncated_output = self._truncate_output(entry.get('output', '')) + prompt += f"Status: SUCCESS\nOutput:\n{truncated_output}\n" + else: + prompt += f"Status: FAILED\nError: {entry.get('error', 'unknown')}\n" else: - prompt += f"Error: {entry['error']}\n" + prompt += f"Command: {entry.get('command', 'unknown')}\n" + if entry.get('success'): + truncated_output = self._truncate_output(entry.get('output', '')) + prompt += f"Output:\n{truncated_output}\n" + else: + prompt += f"Error: {entry.get('error', 'unknown')}\n" + prompt += "\n" - prompt += "Based on the above results, either provide another command to gather more information, or provide the final answer.\n" + + # Check if there were recent failures + has_failures = any( + e.get("type") == "execution_failures" or + (e.get("executed_by") and not e.get("success")) + for e in history[-5:] # Check last 5 entries + ) + + if has_failures: + prompt += "IMPORTANT: There were command failures. Please:\n" + prompt += "1. Analyze the error messages to understand what went wrong\n" + prompt += "2. Propose repair commands using 'do_commands' response type\n" + prompt += "3. Or suggest an alternative approach if the original won't work\n" + else: + prompt += "Based on the above results, either provide another command to gather more information, or provide the final answer.\n" else: prompt += "Generate a shell command to gather the information needed to answer this question.\n" @@ -456,23 +809,73 @@ def _build_iteration_prompt( def _parse_llm_response(self, response_text: str) -> SystemCommand: """Parse the LLM response into a SystemCommand object.""" # Try to extract JSON from the response - response_text = response_text.strip() + original_text = response_text.strip() + response_text = original_text # Handle markdown code blocks if "```json" in response_text: response_text = response_text.split("```json")[1].split("```")[0].strip() elif "```" in response_text: - response_text = response_text.split("```")[1].split("```")[0].strip() + parts = response_text.split("```") + if len(parts) >= 2: + response_text = parts[1].split("```")[0].strip() + # Try direct JSON parsing first try: data = json.loads(response_text) + except json.JSONDecodeError: + # Try to find JSON object in the text (LLM sometimes adds prose before/after) + json_match = re.search(r'\{[\s\S]*"response_type"[\s\S]*\}', original_text) + if json_match: + try: + # Find the complete JSON object by matching braces + json_str = json_match.group() + # Balance braces to get complete JSON + brace_count = 0 + json_end = 0 + for i, char in enumerate(json_str): + if char == '{': + brace_count += 1 + elif char == '}': + brace_count -= 1 + if brace_count == 0: + json_end = i + 1 + break + + if json_end > 0: + json_str = json_str[:json_end] + + data = json.loads(json_str) + except json.JSONDecodeError: + # If still fails, treat as direct answer + return SystemCommand( + response_type=LLMResponseType.ANSWER, + answer=original_text, + reasoning="Could not parse structured response, treating as direct answer" + ) + else: + # No JSON found, treat as direct answer + return SystemCommand( + response_type=LLMResponseType.ANSWER, + answer=original_text, + reasoning="No JSON structure found, treating as direct answer" + ) + + try: + # Handle do_commands - convert dict list to DoCommand objects + if data.get("response_type") == "do_commands" and "do_commands" in data: + data["do_commands"] = [ + DoCommand(**cmd) if isinstance(cmd, dict) else cmd + for cmd in data["do_commands"] + ] + return SystemCommand(**data) - except (json.JSONDecodeError, Exception) as e: - # If parsing fails, treat it as a direct answer + except Exception as e: + # If SystemCommand creation fails, treat it as a direct answer return SystemCommand( response_type=LLMResponseType.ANSWER, - answer=response_text, - reasoning="Could not parse structured response, treating as direct answer" + answer=original_text, + reasoning=f"Failed to create SystemCommand: {e}" ) def _call_llm(self, system_prompt: str, user_prompt: str) -> str: @@ -541,11 +944,107 @@ def _call_llm(self, system_prompt: str, user_prompt: str) -> str: else: raise ValueError(f"Unsupported provider: {self.provider}") + def _call_llm_for_do(self, user_request: str, context: dict | None = None) -> dict: + """Call LLM to process a natural language request for the interactive session. + + This is passed to DoHandler as a callback so it can make LLM calls + during the interactive session. + + Args: + user_request: The user's natural language request + context: Optional context dict with executed_commands, session_actions, etc. + + Returns: + Dict with either: + - {"response_type": "do_commands", "do_commands": [...], "reasoning": "..."} + - {"response_type": "answer", "answer": "...", "reasoning": "..."} + - {"response_type": "command", "command": "...", "reasoning": "..."} + """ + context = context or {} + + system_prompt = """You are a Linux system assistant in an interactive session. +The user has just completed some tasks and now wants to do something else. + +Based on their request, decide what to do: +1. If they want to EXECUTE commands (install, configure, start, etc.), respond with do_commands +2. If they want INFORMATION (show, explain, how to), respond with an answer +3. If they want to RUN a single read-only command, respond with command + +CRITICAL: Respond with ONLY a JSON object - no other text. + +For executing commands: +{ + "response_type": "do_commands", + "do_commands": [ + {"command": "...", "purpose": "...", "requires_sudo": true/false} + ], + "reasoning": "..." +} + +For providing information: +{ + "response_type": "answer", + "answer": "...", + "reasoning": "..." +} + +For running a read-only command: +{ + "response_type": "command", + "command": "...", + "reasoning": "..." +} +""" + + # Build context-aware prompt + user_prompt = f"Context:\n" + if context.get("original_query"): + user_prompt += f"- Original task: {context['original_query']}\n" + if context.get("executed_commands"): + user_prompt += f"- Commands already executed: {', '.join(context['executed_commands'][:5])}\n" + if context.get("session_actions"): + user_prompt += f"- Actions in this session: {', '.join(context['session_actions'][:3])}\n" + + user_prompt += f"\nUser request: {user_request}\n" + user_prompt += "\nRespond with a JSON object." + + try: + response_text = self._call_llm(system_prompt, user_prompt) + + # Parse the response + parsed = self._parse_llm_response(response_text) + + # Convert to dict + result = { + "response_type": parsed.response_type.value, + "reasoning": parsed.reasoning, + } + + if parsed.response_type == LLMResponseType.DO_COMMANDS and parsed.do_commands: + result["do_commands"] = [ + {"command": cmd.command, "purpose": cmd.purpose, "requires_sudo": cmd.requires_sudo} + for cmd in parsed.do_commands + ] + elif parsed.response_type == LLMResponseType.COMMAND and parsed.command: + result["command"] = parsed.command + elif parsed.response_type == LLMResponseType.ANSWER and parsed.answer: + result["answer"] = parsed.answer + + return result + + except Exception as e: + return { + "response_type": "error", + "error": str(e), + } + def ask(self, question: str) -> str: """Ask a natural language question about the system. Uses an agentic loop to execute read-only commands and gather information to answer the user's question. + + In --do mode, can also execute write/modify commands with user confirmation. Args: question: Natural language question @@ -563,9 +1062,9 @@ def ask(self, question: str) -> str: question = question.strip() system_prompt = self._get_system_prompt() - # Cache lookup + # Don't cache in do_mode (each run is unique) cache_key = f"ask:v2:{question}" - if self.cache is not None: + if self.cache is not None and not self.do_mode: cached = self.cache.get_commands( prompt=cache_key, provider=self.provider, @@ -576,20 +1075,30 @@ def ask(self, question: str) -> str: return cached[0] # Agentic loop - history: list[dict[str, str]] = [] + history: list[dict[str, Any]] = [] tried_commands: list[str] = [] + max_iterations = self.MAX_DO_ITERATIONS if self.do_mode else self.MAX_ITERATIONS if self.debug: - self._debug_print("Ask Query", f"Question: {question}", style="cyan") + mode_str = "[DO MODE]" if self.do_mode else "" + self._debug_print("Ask Query", f"{mode_str} Question: {question}", style="cyan") - for iteration in range(self.MAX_ITERATIONS): + # Import console for progress output + from rich.console import Console + loop_console = Console() + + for iteration in range(max_iterations): if self.debug: self._debug_print( - f"Iteration {iteration + 1}/{self.MAX_ITERATIONS}", + f"Iteration {iteration + 1}/{max_iterations}", f"Calling LLM ({self.provider}/{self.model})...", style="blue" ) + # Show progress to user (even without --debug) + if self.do_mode and iteration > 0: + loop_console.print(f"[dim]๐Ÿ”„ Analyzing results... (step {iteration + 1}/{max_iterations})[/dim]") + # Build prompt with history user_prompt = self._build_iteration_prompt(question, history) @@ -611,10 +1120,18 @@ def ask(self, question: str) -> str: f"Type: {parsed.response_type.value}\n" f"Reasoning: {parsed.reasoning}\n" f"Command: {parsed.command or 'N/A'}\n" + f"Do Commands: {len(parsed.do_commands) if parsed.do_commands else 0}\n" f"Answer: {(parsed.answer[:100] + '...') if parsed.answer and len(parsed.answer) > 100 else parsed.answer or 'N/A'}", style="yellow" ) + # Show what the LLM decided to do + if self.do_mode and not self.debug: + if parsed.response_type == LLMResponseType.COMMAND: + loop_console.print(f"[cyan]๐Ÿ” Gathering info:[/cyan] {parsed.command}") + elif parsed.response_type == LLMResponseType.DO_COMMANDS: + loop_console.print(f"[cyan]๐Ÿ“‹ Ready to execute {len(parsed.do_commands or [])} command(s)[/cyan]") + # If LLM provides a final answer, return it if parsed.response_type == LLMResponseType.ANSWER: answer = parsed.answer or "Unable to determine an answer." @@ -622,8 +1139,8 @@ def ask(self, question: str) -> str: if self.debug: self._debug_print("Final Answer", answer, style="green") - # Cache the response - if self.cache is not None and answer: + # Cache the response (not in do_mode) + if self.cache is not None and answer and not self.do_mode: try: self.cache.put_commands( prompt=cache_key, @@ -637,7 +1154,22 @@ def ask(self, question: str) -> str: return answer - # LLM wants to execute a command + # Handle do_commands in --do mode + if parsed.response_type == LLMResponseType.DO_COMMANDS and self.do_mode: + result = self._handle_do_commands(parsed, question, history) + if result is not None: + # If user declined, continue the loop to provide manual instructions + if result.startswith("USER_DECLINED:"): + # Add to history that user declined + history.append({ + "type": "do_commands_declined", + "commands": [(c.command, c.purpose) for c in (parsed.do_commands or [])], + "message": "User declined automatic execution. Manual instructions were provided.", + }) + continue + return result + + # LLM wants to execute a read-only command if parsed.command: command = parsed.command tried_commands.append(command) @@ -648,6 +1180,14 @@ def ask(self, question: str) -> str: # Validate and execute the command success, stdout, stderr = CommandValidator.execute_command(command) + # Show execution result to user + if self.do_mode and not self.debug: + if success: + output_lines = len(stdout.split('\n')) if stdout else 0 + loop_console.print(f"[green] โœ“ Got {output_lines} lines of output[/green]") + else: + loop_console.print(f"[yellow] โš  Command failed: {stderr[:100]}[/yellow]") + if self.debug: if success: output_preview = stdout[:1000] + ("..." if len(stdout) > 1000 else "") if stdout else "(empty output)" @@ -664,9 +1204,99 @@ def ask(self, question: str) -> str: # Max iterations reached commands_list = "\n".join(f" - {cmd}" for cmd in tried_commands) - result = f"Could not find an answer after {self.MAX_ITERATIONS} attempts.\n\nTried commands:\n{commands_list}" + result = f"Could not find an answer after {max_iterations} attempts.\n\nTried commands:\n{commands_list}" if self.debug: self._debug_print("Max Iterations Reached", result, style="red") return result + + def _handle_do_commands( + self, + parsed: SystemCommand, + question: str, + history: list[dict[str, Any]] + ) -> str | None: + """Handle do_commands response type - execute with user confirmation. + + Uses task tree execution for advanced auto-repair capabilities: + - Spawns repair sub-tasks when commands fail + - Requests additional permissions during execution + - Monitors terminals during manual intervention + - Provides detailed failure reasoning + + Returns: + Result string if completed, None if should continue loop, + or "USER_DECLINED:..." if user declined. + """ + if not self._do_handler or not parsed.do_commands: + return None + + from rich.console import Console + console = Console() + + # Prepare commands for analysis + commands = [ + (cmd.command, cmd.purpose) for cmd in parsed.do_commands + ] + + # Analyze for protected paths + analyzed = self._do_handler.analyze_commands_for_protected_paths(commands) + + # Show reasoning + console.print() + console.print(f"[bold cyan]๐Ÿค– Cortex Analysis:[/bold cyan] {parsed.reasoning}") + console.print() + + # Show task tree preview + console.print("[dim]๐Ÿ“‹ Planned tasks:[/dim]") + for i, (cmd, purpose, protected) in enumerate(analyzed, 1): + protected_note = f" [yellow](protected: {', '.join(protected)})[/yellow]" if protected else "" + console.print(f"[dim] {i}. {cmd[:60]}...{protected_note}[/dim]") + console.print() + + # Request user confirmation + if self._do_handler.request_user_confirmation(analyzed): + # User approved - execute using task tree for better error handling + run = self._do_handler.execute_with_task_tree(analyzed, question) + + # Add execution results to history + for cmd_log in run.commands: + history.append({ + "command": cmd_log.command, + "success": cmd_log.status.value == "success", + "output": cmd_log.output, + "error": cmd_log.error, + "purpose": cmd_log.purpose, + "executed_by": "cortex", + }) + + # Check if there were failures that need LLM input + failures = [c for c in run.commands if c.status.value == "failed"] + if failures: + # Add failure context to history for LLM to help with + failure_summary = [] + for f in failures: + failure_summary.append({ + "command": f.command, + "error": f.error[:500] if f.error else "Unknown error", + "purpose": f.purpose, + }) + + history.append({ + "type": "execution_failures", + "failures": failure_summary, + "message": f"{len(failures)} command(s) failed during execution. Please analyze and suggest fixes.", + }) + + # Continue loop so LLM can suggest next steps + return None + + # Return summary for now - LLM will provide final answer in next iteration + return None + else: + # User declined - provide manual instructions with monitoring + run = self._do_handler.provide_manual_instructions(analyzed, question) + + # Return special marker so we continue the loop + return f"USER_DECLINED: Manual instructions provided. Run ID: {run.run_id}" diff --git a/cortex/cli.py b/cortex/cli.py index 4a0e0df61..b0ebcd4ae 100644 --- a/cortex/cli.py +++ b/cortex/cli.py @@ -506,8 +506,12 @@ def _sandbox_exec(self, sandbox, args: argparse.Namespace) -> int: # --- End Sandbox Commands --- - def ask(self, question: str, debug: bool = False) -> int: - """Answer a natural language question about the system.""" + def ask(self, question: str | None, debug: bool = False, do_mode: bool = False) -> int: + """Answer a natural language question about the system. + + In --do mode, Cortex can execute write and modify commands with user confirmation. + If no question is provided in --do mode, starts an interactive session. + """ api_key = self._get_api_key() if not api_key: return 1 @@ -515,12 +519,31 @@ def ask(self, question: str, debug: bool = False) -> int: provider = self._get_provider() self._debug(f"Using provider: {provider}") + # Setup cortex user if in do mode + if do_mode: + try: + from cortex.do_runner import setup_cortex_user + cx_print("๐Ÿ”ง Do mode enabled - Cortex can execute commands to solve problems", "info") + # Don't fail if user creation fails - we have fallbacks + setup_cortex_user() + except Exception as e: + self._debug(f"Cortex user setup skipped: {e}") + try: handler = AskHandler( api_key=api_key, provider=provider, debug=debug, + do_mode=do_mode, ) + + # If no question and in do mode, start interactive session + if question is None and do_mode: + return self._run_interactive_do_session(handler) + elif question is None: + self._print_error("Please provide a question or use --do for interactive mode") + return 1 + answer = handler.ask(question) console.print(answer) return 0 @@ -537,6 +560,114 @@ def ask(self, question: str, debug: bool = False) -> int: except RuntimeError as e: self._print_error(str(e)) return 1 + + def _run_interactive_do_session(self, handler: AskHandler) -> int: + """Run an interactive --do session where user can type queries.""" + from rich.panel import Panel + from rich.prompt import Prompt + + console.print() + console.print(Panel( + "[bold cyan]๐Ÿš€ Cortex Interactive Session[/bold cyan]\n\n" + "Type what you want to do and Cortex will help you.\n" + "Commands will be shown for approval before execution.\n\n" + "[dim]Examples:[/dim]\n" + " โ€ข install docker and run nginx\n" + " โ€ข setup a postgresql database\n" + " โ€ข configure nginx to proxy port 3000\n" + " โ€ข check system resources\n\n" + "[dim]Type 'exit' or 'quit' to end the session.[/dim]", + title="[bold green]Welcome[/bold green]", + border_style="cyan", + )) + console.print() + + session_history = [] # Track what was done in this session + + while True: + try: + # Show session context if we have history + if session_history: + console.print(f"[dim]Session: {len(session_history)} task(s) completed[/dim]") + + # Get user input + query = Prompt.ask("[bold cyan]What would you like to do?[/bold cyan]") + + if not query.strip(): + continue + + # Check for exit + if query.lower().strip() in ["exit", "quit", "bye", "q"]: + console.print() + console.print("[cyan]๐Ÿ‘‹ Session ended. Run 'cortex do history' to see past runs.[/cyan]") + break + + # Check for help + if query.lower().strip() in ["help", "?"]: + console.print() + console.print("[bold]Available commands:[/bold]") + console.print(" [green]exit[/green], [green]quit[/green] - End the session") + console.print(" [green]history[/green] - Show session history") + console.print(" [green]clear[/green] - Clear session history") + console.print(" Or type any request in natural language!") + console.print() + continue + + # Check for history + if query.lower().strip() == "history": + if session_history: + console.print() + console.print("[bold]Session history:[/bold]") + for i, item in enumerate(session_history, 1): + status = "โœ“" if item.get("success") else "โœ—" + console.print(f" {i}. [{status}] {item['query'][:50]}...") + console.print() + else: + console.print("[dim]No tasks completed yet.[/dim]") + continue + + # Check for clear + if query.lower().strip() == "clear": + session_history.clear() + console.print("[dim]Session history cleared.[/dim]") + continue + + # Process the query + console.print() + try: + answer = handler.ask(query) + + # Track in session history + session_history.append({ + "query": query, + "success": True, + "answer": answer[:100] if answer else "", + }) + + # Print response if it's informational + if answer and not answer.startswith("USER_DECLINED"): + console.print(answer) + + except Exception as e: + console.print(f"[red]Error: {e}[/red]") + session_history.append({ + "query": query, + "success": False, + "error": str(e), + }) + + console.print() + + except KeyboardInterrupt: + console.print() + console.print("[cyan]๐Ÿ‘‹ Session ended.[/cyan]") + break + except EOFError: + console.print() + console.print("[cyan]๐Ÿ‘‹ Session ended.[/cyan]") + break + + return 0 def install( self, @@ -1287,6 +1418,422 @@ def _env_load(self, env_mgr: EnvironmentManager, args: argparse.Namespace) -> in return 0 + # --- Do Command (manage do-mode runs) --- + def do_cmd(self, args: argparse.Namespace) -> int: + """Handle `cortex do` commands for managing do-mode runs.""" + from cortex.do_runner import DoHandler, ProtectedPathsManager, CortexUserManager + + action = getattr(args, "do_action", None) + + if not action: + cx_print("\n๐Ÿ”ง Do Mode - Execute commands to solve problems\n", "info") + console.print("Usage: cortex ask --do ") + console.print(" cortex do [options]") + console.print("\nCommands:") + console.print(" history [run_id] View do-mode run history") + console.print(" setup Setup cortex user for privilege management") + console.print(" protected Manage protected paths") + console.print("\nExample:") + console.print(" cortex ask --do 'Fix my nginx configuration'") + console.print(" cortex do history") + return 0 + + if action == "history": + return self._do_history(args) + elif action == "setup": + return self._do_setup() + elif action == "protected": + return self._do_protected(args) + else: + self._print_error(f"Unknown do action: {action}") + return 1 + + def _do_history(self, args: argparse.Namespace) -> int: + """Show do-mode run history.""" + from cortex.do_runner import DoHandler + + handler = DoHandler() + run_id = getattr(args, "run_id", None) + + if run_id: + # Show specific run details + run = handler.get_run(run_id) + if not run: + self._print_error(f"Run {run_id} not found") + return 1 + + # Get statistics from database + stats = handler.db.get_run_stats(run_id) + + console.print(f"\n[bold]Do Run: {run.run_id}[/bold]") + console.print("=" * 70) + console.print(f"[bold]Query:[/bold] {run.user_query}") + console.print(f"[bold]Mode:[/bold] {run.mode.value}") + console.print(f"[bold]Started:[/bold] {run.started_at}") + console.print(f"[bold]Completed:[/bold] {run.completed_at}") + console.print(f"\n[bold]Summary:[/bold] {run.summary}") + + # Show statistics + if stats: + console.print(f"\n[bold cyan]๐Ÿ“Š Command Statistics:[/bold cyan]") + total = stats.get("total_commands", 0) + success = stats.get("successful_commands", 0) + failed = stats.get("failed_commands", 0) + skipped = stats.get("skipped_commands", 0) + console.print(f" Total: {total} | [green]โœ“ Success: {success}[/green] | [red]โœ— Failed: {failed}[/red] | [yellow]โ—‹ Skipped: {skipped}[/yellow]") + + if run.files_accessed: + console.print(f"\n[bold]Files Accessed:[/bold] {', '.join(run.files_accessed)}") + + # Get detailed commands from database + commands_detail = handler.db.get_run_commands(run_id) + + console.print(f"\n[bold cyan]๐Ÿ“‹ Commands Executed:[/bold cyan]") + console.print("-" * 70) + + if commands_detail: + for cmd in commands_detail: + status = cmd["status"] + if status == "success": + status_icon = "[green]โœ“[/green]" + elif status == "failed": + status_icon = "[red]โœ—[/red]" + elif status == "skipped": + status_icon = "[yellow]โ—‹[/yellow]" + else: + status_icon = "[dim]?[/dim]" + + console.print(f"\n{status_icon} [bold]Command {cmd['index'] + 1}:[/bold] {cmd['command']}") + console.print(f" [dim]Purpose:[/dim] {cmd['purpose']}") + console.print(f" [dim]Status:[/dim] {status} | [dim]Duration:[/dim] {cmd['duration']:.2f}s") + + if cmd["output"]: + console.print(f" [dim]Output:[/dim] {cmd['output']}") + if cmd["error"]: + console.print(f" [red]Error:[/red] {cmd['error']}") + else: + # Fallback to run.commands if database commands not available + for i, cmd in enumerate(run.commands): + status_icon = "[green]โœ“[/green]" if cmd.status.value == "success" else "[red]โœ—[/red]" + console.print(f"\n{status_icon} [bold]Command {i + 1}:[/bold] {cmd.command}") + console.print(f" [dim]Purpose:[/dim] {cmd.purpose}") + console.print(f" [dim]Status:[/dim] {cmd.status.value} | [dim]Duration:[/dim] {cmd.duration_seconds:.2f}s") + if cmd.output: + output_truncated = cmd.output[:250] + "..." if len(cmd.output) > 250 else cmd.output + console.print(f" [dim]Output:[/dim] {output_truncated}") + if cmd.error: + console.print(f" [red]Error:[/red] {cmd.error}") + + return 0 + + # List recent runs + limit = getattr(args, "limit", 20) + runs = handler.get_run_history(limit) + + if not runs: + cx_print("No do-mode runs found", "info") + return 0 + + console.print(f"\n[bold]๐Ÿ“œ Recent Do Runs:[/bold]\n") + + import json as json_module + + for run in runs: + # Get stats from database if available + stats = handler.db.get_run_stats(run.run_id) + if stats: + total = stats.get("total_commands", 0) + success = stats.get("successful_commands", 0) + failed = stats.get("failed_commands", 0) + status_str = f"[green]โœ“{success}[/green]/[red]โœ—{failed}[/red]/{total}" + else: + cmd_count = len(run.commands) + success_count = sum(1 for c in run.commands if c.status.value == "success") + failed_count = sum(1 for c in run.commands if c.status.value == "failed") + status_str = f"[green]โœ“{success_count}[/green]/[red]โœ—{failed_count}[/red]/{cmd_count}" + + # Get commands list from database + commands_list = handler.db.get_commands_list(run.run_id) + + console.print(f"[bold cyan]{'โ”€' * 70}[/bold cyan]") + console.print(f"[bold]Run ID:[/bold] {run.run_id}") + console.print(f"[bold]Query:[/bold] {run.user_query}") + console.print(f"[bold]Mode:[/bold] {run.mode.value} | [bold]Status:[/bold] {status_str} | [bold]Started:[/bold] {run.started_at[:19] if run.started_at else '-'}") + console.print(f"[bold]Summary:[/bold] {run.summary}") + + # Show commands + if commands_list: + console.print(f"[bold]Commands:[/bold]") + for i, cmd in enumerate(commands_list, 1): + cmd_short = cmd[:60] + "..." if len(cmd) > 60 else cmd + console.print(f" {i}. [cyan]{cmd_short}[/cyan]") + console.print() + + console.print(f"[dim]Use 'cortex do history ' for full details[/dim]") + return 0 + + def _do_setup(self) -> int: + """Setup cortex user for privilege management.""" + from cortex.do_runner import CortexUserManager + + cx_print("Setting up Cortex user for privilege management...", "info") + + if CortexUserManager.user_exists(): + cx_print("โœ“ Cortex user already exists", "success") + return 0 + + success, message = CortexUserManager.create_user() + if success: + cx_print(f"โœ“ {message}", "success") + return 0 + else: + self._print_error(message) + return 1 + + def _do_protected(self, args: argparse.Namespace) -> int: + """Manage protected paths.""" + from cortex.do_runner import ProtectedPathsManager + + manager = ProtectedPathsManager() + + add_path = getattr(args, "add", None) + remove_path = getattr(args, "remove", None) + list_paths = getattr(args, "list", False) + + if add_path: + manager.add_protected_path(add_path) + cx_print(f"โœ“ Added '{add_path}' to protected paths", "success") + return 0 + + if remove_path: + if manager.remove_protected_path(remove_path): + cx_print(f"โœ“ Removed '{remove_path}' from protected paths", "success") + else: + self._print_error(f"Path '{remove_path}' not found in user-defined protected paths") + return 0 + + # Default: list all protected paths + paths = manager.get_all_protected() + console.print("\n[bold]Protected Paths:[/bold]") + console.print("[dim](These paths require user confirmation for access)[/dim]\n") + + for path in paths: + is_system = path in manager.SYSTEM_PROTECTED_PATHS + tag = "[system]" if is_system else "[user]" + console.print(f" {path} [dim]{tag}[/dim]") + + console.print(f"\n[dim]Total: {len(paths)} paths[/dim]") + console.print("[dim]Use --add to add custom paths[/dim]") + return 0 + + # --- Info Command --- + def info_cmd(self, args: argparse.Namespace) -> int: + """Get system and application information using read-only commands.""" + from rich.panel import Panel + from rich.table import Table + + try: + from cortex.system_info_generator import ( + SystemInfoGenerator, + get_system_info_generator, + COMMON_INFO_COMMANDS, + APP_INFO_TEMPLATES, + ) + except ImportError as e: + self._print_error(f"System info generator not available: {e}") + return 1 + + debug = getattr(args, "debug", False) + + # Handle --list + if getattr(args, "list", False): + console.print("\n[bold]๐Ÿ“Š Available Information Types[/bold]\n") + + console.print("[bold cyan]Quick Info Types (--quick):[/bold cyan]") + for name in sorted(COMMON_INFO_COMMANDS.keys()): + console.print(f" โ€ข {name}") + + console.print("\n[bold cyan]Application Templates (--app):[/bold cyan]") + for name in sorted(APP_INFO_TEMPLATES.keys()): + aspects = ", ".join(APP_INFO_TEMPLATES[name].keys()) + console.print(f" โ€ข {name}: [dim]{aspects}[/dim]") + + console.print("\n[bold cyan]Categories (--category):[/bold cyan]") + console.print(" hardware, software, network, services, security, storage, performance, configuration") + + console.print("\n[dim]Examples:[/dim]") + console.print(" cortex info --quick cpu") + console.print(" cortex info --app nginx") + console.print(" cortex info --category hardware") + console.print(" cortex info What version of Python is installed?") + return 0 + + # Handle --quick + quick_type = getattr(args, "quick", None) + if quick_type: + console.print(f"\n[bold]๐Ÿ” Quick Info: {quick_type.upper()}[/bold]\n") + + if quick_type in COMMON_INFO_COMMANDS: + for cmd_info in COMMON_INFO_COMMANDS[quick_type]: + from cortex.ask import CommandValidator + success, stdout, stderr = CommandValidator.execute_command(cmd_info.command) + + if success and stdout: + console.print(Panel( + stdout[:1000] + ("..." if len(stdout) > 1000 else ""), + title=f"[cyan]{cmd_info.purpose}[/cyan]", + subtitle=f"[dim]{cmd_info.command[:60]}...[/dim]" if len(cmd_info.command) > 60 else f"[dim]{cmd_info.command}[/dim]", + )) + elif stderr: + console.print(f"[yellow]โš  {cmd_info.purpose}: {stderr[:100]}[/yellow]") + else: + self._print_error(f"Unknown quick info type: {quick_type}") + return 1 + return 0 + + # Handle --app + app_name = getattr(args, "app", None) + if app_name: + console.print(f"\n[bold]๐Ÿ“ฆ Application Info: {app_name.upper()}[/bold]\n") + + if app_name.lower() in APP_INFO_TEMPLATES: + templates = APP_INFO_TEMPLATES[app_name.lower()] + for aspect, commands in templates.items(): + console.print(f"[bold cyan]โ”€โ”€โ”€ {aspect.upper()} โ”€โ”€โ”€[/bold cyan]") + for cmd_info in commands: + from cortex.ask import CommandValidator + success, stdout, stderr = CommandValidator.execute_command(cmd_info.command, timeout=15) + + if success and stdout: + output = stdout[:500] + ("..." if len(stdout) > 500 else "") + console.print(f"[dim]{cmd_info.purpose}:[/dim]") + console.print(output) + elif stderr: + console.print(f"[yellow]{cmd_info.purpose}: {stderr[:100]}[/yellow]") + console.print() + else: + # Try using LLM for unknown apps + api_key = self._get_api_key() + if api_key: + try: + generator = SystemInfoGenerator( + api_key=api_key, + provider=self._get_provider(), + debug=debug, + ) + result = generator.get_app_info(app_name) + console.print(result.answer) + except Exception as e: + self._print_error(f"Could not get info for {app_name}: {e}") + return 1 + else: + self._print_error(f"Unknown app '{app_name}' and no API key for LLM lookup") + return 1 + return 0 + + # Handle --category + category = getattr(args, "category", None) + if category: + console.print(f"\n[bold]๐Ÿ“Š Category Info: {category.upper()}[/bold]\n") + + api_key = self._get_api_key() + if not api_key: + # Fall back to running common commands without LLM + category_mapping = { + "hardware": ["cpu", "memory", "disk", "gpu"], + "software": ["os", "kernel"], + "network": ["network", "dns"], + "services": ["services"], + "security": ["security"], + "storage": ["disk"], + "performance": ["cpu", "memory", "processes"], + "configuration": ["environment"], + } + aspects = category_mapping.get(category, []) + for aspect in aspects: + if aspect in COMMON_INFO_COMMANDS: + console.print(f"[bold cyan]โ”€โ”€โ”€ {aspect.upper()} โ”€โ”€โ”€[/bold cyan]") + for cmd_info in COMMON_INFO_COMMANDS[aspect]: + from cortex.ask import CommandValidator + success, stdout, _ = CommandValidator.execute_command(cmd_info.command) + if success and stdout: + console.print(stdout[:400]) + console.print() + return 0 + + try: + generator = SystemInfoGenerator( + api_key=api_key, + provider=self._get_provider(), + debug=debug, + ) + result = generator.get_structured_info(category) + console.print(result.answer) + except Exception as e: + self._print_error(f"Could not get category info: {e}") + return 1 + return 0 + + # Handle natural language query + query_parts = getattr(args, "query", []) + if query_parts: + query = " ".join(query_parts) + console.print(f"\n[bold]๐Ÿ” System Info Query[/bold]\n") + console.print(f"[dim]Query: {query}[/dim]\n") + + api_key = self._get_api_key() + if not api_key: + self._print_error("Natural language queries require an API key. Use --quick or --app instead.") + return 1 + + try: + generator = SystemInfoGenerator( + api_key=api_key, + provider=self._get_provider(), + debug=debug, + ) + result = generator.get_info(query) + + console.print(Panel(result.answer, title="[bold green]Answer[/bold green]")) + + if debug and result.commands_executed: + table = Table(title="Commands Executed") + table.add_column("Command", style="cyan", max_width=50) + table.add_column("Status", style="green") + table.add_column("Time", style="dim") + for cmd in result.commands_executed: + status = "โœ“" if cmd.success else "โœ—" + table.add_row( + cmd.command[:50] + "..." if len(cmd.command) > 50 else cmd.command, + status, + f"{cmd.execution_time:.2f}s" + ) + console.print(table) + + except Exception as e: + self._print_error(f"Query failed: {e}") + if debug: + import traceback + traceback.print_exc() + return 1 + return 0 + + # No arguments - show help + console.print("\n[bold]๐Ÿ“Š Cortex Info - System Information Generator[/bold]\n") + console.print("Get system and application information using read-only commands.\n") + console.print("[bold cyan]Usage:[/bold cyan]") + console.print(" cortex info --list List available info types") + console.print(" cortex info --quick Quick lookup (cpu, memory, etc.)") + console.print(" cortex info --app Application info (nginx, docker, etc.)") + console.print(" cortex info --category Category info (hardware, network, etc.)") + console.print(" cortex info Natural language query (requires API key)") + console.print("\n[bold cyan]Examples:[/bold cyan]") + console.print(" cortex info --quick memory") + console.print(" cortex info --app nginx") + console.print(" cortex info --category hardware") + console.print(" cortex info What Python packages are installed?") + return 0 + # --- Import Dependencies Command --- def import_deps(self, args: argparse.Namespace) -> int: """Import and install dependencies from package manager files. @@ -1542,6 +2089,8 @@ def show_rich_help(): table.add_column("Description") table.add_row("ask ", "Ask about your system") + table.add_row("ask --do ", "Solve problems (can write/execute)") + table.add_row("do history", "View do-mode run history") table.add_row("demo", "See Cortex in action") table.add_row("wizard", "Configure API key") table.add_row("status", "System status") @@ -1630,8 +2179,13 @@ def main(): # Ask command ask_parser = subparsers.add_parser("ask", help="Ask a question about your system") - ask_parser.add_argument("question", type=str, help="Natural language question") + ask_parser.add_argument("question", type=str, nargs="?", default=None, help="Natural language question (optional with --do)") ask_parser.add_argument("--debug", action="store_true", help="Show debug output for agentic loop") + ask_parser.add_argument( + "--do", + action="store_true", + help="Enable do mode - Cortex can write, read, and execute commands to solve problems. If no question is provided, starts interactive session." + ) # Install command install_parser = subparsers.add_parser("install", help="Install software") @@ -1859,6 +2413,56 @@ def main(): env_template_apply_parser.add_argument( "--encrypt-keys", help="Comma-separated list of keys to encrypt" ) + # --- Info Command (system information queries) --- + info_parser = subparsers.add_parser("info", help="Get system and application information") + info_parser.add_argument("query", nargs="*", help="Information query (natural language)") + info_parser.add_argument( + "--app", "-a", + type=str, + help="Get info about a specific application (nginx, docker, etc.)" + ) + info_parser.add_argument( + "--quick", "-q", + type=str, + choices=["cpu", "memory", "disk", "gpu", "os", "kernel", "network", "dns", + "services", "security", "processes", "environment"], + help="Quick lookup for common info types" + ) + info_parser.add_argument( + "--category", "-c", + type=str, + choices=["hardware", "software", "network", "services", "security", + "storage", "performance", "configuration"], + help="Get structured info for a category" + ) + info_parser.add_argument( + "--list", "-l", + action="store_true", + help="List available info types and applications" + ) + info_parser.add_argument( + "--debug", + action="store_true", + help="Show debug output" + ) + + # --- Do Command (manage do-mode runs) --- + do_parser = subparsers.add_parser("do", help="Manage do-mode execution runs") + do_subs = do_parser.add_subparsers(dest="do_action", help="Do actions") + + # do history [--limit N] + do_history_parser = do_subs.add_parser("history", help="View do-mode run history") + do_history_parser.add_argument("--limit", "-n", type=int, default=20, help="Number of runs to show") + do_history_parser.add_argument("run_id", nargs="?", help="Show details for specific run ID") + + # do setup - setup cortex user + do_subs.add_parser("setup", help="Setup cortex user for privilege management") + + # do protected - manage protected paths + do_protected_parser = do_subs.add_parser("protected", help="Manage protected paths") + do_protected_parser.add_argument("--add", help="Add a path to protected list") + do_protected_parser.add_argument("--remove", help="Remove a path from protected list") + do_protected_parser.add_argument("--list", action="store_true", help="List all protected paths") # -------------------------- args = parser.parse_args() @@ -1877,7 +2481,11 @@ def main(): elif args.command == "status": return cli.status() elif args.command == "ask": - return cli.ask(args.question, debug=args.debug) + return cli.ask( + getattr(args, "question", None), + debug=args.debug, + do_mode=getattr(args, "do", False) + ) elif args.command == "install": return cli.install( args.software, @@ -1905,6 +2513,10 @@ def main(): return 1 elif args.command == "env": return cli.env(args) + elif args.command == "do": + return cli.do_cmd(args) + elif args.command == "info": + return cli.info_cmd(args) else: parser.print_help() return 1 diff --git a/cortex/do_runner.py b/cortex/do_runner.py new file mode 100644 index 000000000..e5e2cea3f --- /dev/null +++ b/cortex/do_runner.py @@ -0,0 +1,63 @@ +"""Do Runner Module for Cortex. + +This file provides backward compatibility by re-exporting all classes +from the modular do_runner package. + +For new code, prefer importing directly from the package: + from cortex.do_runner import DoHandler, CommandStatus, etc. +""" + +# Re-export everything from the modular package +from cortex.do_runner import ( + # Models + CommandLog, + CommandStatus, + DoRun, + RunMode, + TaskNode, + TaskTree, + TaskType, + # Database + DoRunDatabase, + # Managers + CortexUserManager, + ProtectedPathsManager, + # Terminal + TerminalMonitor, + # Executor + TaskTreeExecutor, + # Diagnosis + AutoFixer, + ErrorDiagnoser, + # Verification + ConflictDetector, + FileUsefulnessAnalyzer, + VerificationRunner, + # Handler + DoHandler, + get_do_handler, + setup_cortex_user, +) + +__all__ = [ + "CommandLog", + "CommandStatus", + "DoRun", + "RunMode", + "TaskNode", + "TaskTree", + "TaskType", + "DoRunDatabase", + "CortexUserManager", + "ProtectedPathsManager", + "TerminalMonitor", + "TaskTreeExecutor", + "AutoFixer", + "ErrorDiagnoser", + "ConflictDetector", + "FileUsefulnessAnalyzer", + "VerificationRunner", + "DoHandler", + "get_do_handler", + "setup_cortex_user", +] diff --git a/cortex/do_runner/Untitled b/cortex/do_runner/Untitled new file mode 100644 index 000000000..597a6db29 --- /dev/null +++ b/cortex/do_runner/Untitled @@ -0,0 +1 @@ +i \ No newline at end of file diff --git a/cortex/do_runner/__init__.py b/cortex/do_runner/__init__.py new file mode 100644 index 000000000..906fd1883 --- /dev/null +++ b/cortex/do_runner/__init__.py @@ -0,0 +1,129 @@ +""" +Do Runner Module for Cortex. + +Enables the ask command to write, read, and execute commands to solve problems. +Manages privilege escalation, command logging, and user confirmation flows. + +This module is organized into the following submodules: +- models: Data classes and enums (CommandStatus, RunMode, TaskType, etc.) +- database: DoRunDatabase for storing run history +- managers: CortexUserManager, ProtectedPathsManager +- terminal: TerminalMonitor for watching terminal activity +- executor: TaskTreeExecutor for advanced command execution +- diagnosis: ErrorDiagnoser, AutoFixer for error handling +- verification: ConflictDetector, VerificationRunner, FileUsefulnessAnalyzer +- handler: Main DoHandler class +""" + +from .models import ( + CommandLog, + CommandStatus, + DoRun, + RunMode, + TaskNode, + TaskTree, + TaskType, +) + +from .database import DoRunDatabase + +from .managers import ( + CortexUserManager, + ProtectedPathsManager, +) + +from .terminal import TerminalMonitor + +from .executor import TaskTreeExecutor + +from .diagnosis import ( + AutoFixer, + ErrorDiagnoser, + LoginHandler, + LoginRequirement, + LOGIN_REQUIREMENTS, + UBUNTU_PACKAGE_MAP, + UBUNTU_SERVICE_MAP, + ALL_ERROR_PATTERNS, + get_error_category, + get_severity, + is_critical_error, +) + +# New structured diagnosis engine +from .diagnosis_v2 import ( + DiagnosisEngine, + ErrorCategory, + DiagnosisResult, + FixCommand, + FixPlan, + VariableResolution, + ExecutionResult, + ErrorStackEntry, + ERROR_PATTERNS, + get_diagnosis_engine, +) + +from .verification import ( + ConflictDetector, + FileUsefulnessAnalyzer, + VerificationRunner, +) + +from .handler import ( + DoHandler, + get_do_handler, + setup_cortex_user, +) + +__all__ = [ + # Models + "CommandLog", + "CommandStatus", + "DoRun", + "RunMode", + "TaskNode", + "TaskTree", + "TaskType", + # Database + "DoRunDatabase", + # Managers + "CortexUserManager", + "ProtectedPathsManager", + # Terminal + "TerminalMonitor", + # Executor + "TaskTreeExecutor", + # Diagnosis (legacy) + "AutoFixer", + "ErrorDiagnoser", + "LoginHandler", + "LoginRequirement", + "LOGIN_REQUIREMENTS", + "UBUNTU_PACKAGE_MAP", + "UBUNTU_SERVICE_MAP", + "ALL_ERROR_PATTERNS", + "get_error_category", + "get_severity", + "is_critical_error", + # Diagnosis v2 (structured) + "DiagnosisEngine", + "ErrorCategory", + "DiagnosisResult", + "FixCommand", + "FixPlan", + "VariableResolution", + "ExecutionResult", + "ErrorStackEntry", + "ERROR_PATTERNS", + "get_diagnosis_engine", + # Verification + "ConflictDetector", + "FileUsefulnessAnalyzer", + "VerificationRunner", + # Handler + "DoHandler", + "get_do_handler", + "setup_cortex_user", +] + diff --git a/cortex/do_runner/database.py b/cortex/do_runner/database.py new file mode 100644 index 000000000..8e5775fab --- /dev/null +++ b/cortex/do_runner/database.py @@ -0,0 +1,367 @@ +"""Database module for storing do run history.""" + +import datetime +import hashlib +import json +import os +import sqlite3 +from pathlib import Path +from typing import Any + +from rich.console import Console + +from .models import CommandLog, CommandStatus, DoRun, RunMode + +console = Console() + + +class DoRunDatabase: + """SQLite database for storing do run history.""" + + def __init__(self, db_path: Path | None = None): + self.db_path = db_path or Path.home() / ".cortex" / "do_runs.db" + self._ensure_directory() + self._init_db() + + def _ensure_directory(self): + """Ensure the database directory exists with proper permissions.""" + try: + self.db_path.parent.mkdir(parents=True, exist_ok=True) + if not os.access(self.db_path.parent, os.W_OK): + raise OSError(f"Directory {self.db_path.parent} is not writable") + except OSError: + alt_path = Path("/tmp") / ".cortex" / "do_runs.db" + alt_path.parent.mkdir(parents=True, exist_ok=True) + self.db_path = alt_path + console.print(f"[yellow]Warning: Using alternate database path: {self.db_path}[/yellow]") + + def _init_db(self): + """Initialize the database schema.""" + try: + with sqlite3.connect(str(self.db_path)) as conn: + conn.execute(""" + CREATE TABLE IF NOT EXISTS do_runs ( + run_id TEXT PRIMARY KEY, + summary TEXT NOT NULL, + commands_log TEXT NOT NULL, + commands_list TEXT, + mode TEXT NOT NULL, + user_query TEXT, + started_at TEXT, + completed_at TEXT, + files_accessed TEXT, + privileges_granted TEXT, + full_data TEXT, + total_commands INTEGER DEFAULT 0, + successful_commands INTEGER DEFAULT 0, + failed_commands INTEGER DEFAULT 0, + skipped_commands INTEGER DEFAULT 0 + ) + """) + + conn.execute(""" + CREATE TABLE IF NOT EXISTS do_run_commands ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + run_id TEXT NOT NULL, + command_index INTEGER NOT NULL, + command TEXT NOT NULL, + purpose TEXT, + status TEXT NOT NULL, + output_truncated TEXT, + error_truncated TEXT, + duration_seconds REAL DEFAULT 0, + timestamp TEXT, + useful INTEGER DEFAULT 1, + FOREIGN KEY (run_id) REFERENCES do_runs(run_id) + ) + """) + + conn.execute(""" + CREATE INDEX IF NOT EXISTS idx_do_runs_started + ON do_runs(started_at DESC) + """) + + conn.execute(""" + CREATE INDEX IF NOT EXISTS idx_do_run_commands_run_id + ON do_run_commands(run_id) + """) + + self._migrate_schema(conn) + conn.commit() + except sqlite3.OperationalError as e: + raise OSError(f"Failed to initialize database at {self.db_path}: {e}") + + def _migrate_schema(self, conn: sqlite3.Connection): + """Add new columns to existing tables if they don't exist.""" + cursor = conn.execute("PRAGMA table_info(do_runs)") + existing_columns = {row[1] for row in cursor.fetchall()} + + new_columns = [ + ("total_commands", "INTEGER DEFAULT 0"), + ("successful_commands", "INTEGER DEFAULT 0"), + ("failed_commands", "INTEGER DEFAULT 0"), + ("skipped_commands", "INTEGER DEFAULT 0"), + ("commands_list", "TEXT"), + ] + + for col_name, col_type in new_columns: + if col_name not in existing_columns: + try: + conn.execute(f"ALTER TABLE do_runs ADD COLUMN {col_name} {col_type}") + except sqlite3.OperationalError: + pass + + cursor = conn.execute(""" + SELECT run_id, full_data FROM do_runs + WHERE total_commands IS NULL OR total_commands = 0 OR commands_list IS NULL + """) + + for row in cursor.fetchall(): + run_id = row[0] + try: + full_data = json.loads(row[1]) if row[1] else {} + commands = full_data.get("commands", []) + total = len(commands) + success = sum(1 for c in commands if c.get("status") == "success") + failed = sum(1 for c in commands if c.get("status") == "failed") + skipped = sum(1 for c in commands if c.get("status") == "skipped") + + commands_list = json.dumps([c.get("command", "") for c in commands]) + + conn.execute(""" + UPDATE do_runs SET + total_commands = ?, + successful_commands = ?, + failed_commands = ?, + skipped_commands = ?, + commands_list = ? + WHERE run_id = ? + """, (total, success, failed, skipped, commands_list, run_id)) + + for idx, cmd in enumerate(commands): + exists = conn.execute( + "SELECT 1 FROM do_run_commands WHERE run_id = ? AND command_index = ?", + (run_id, idx) + ).fetchone() + + if not exists: + output = cmd.get("output", "")[:250] if cmd.get("output") else "" + error = cmd.get("error", "")[:250] if cmd.get("error") else "" + conn.execute(""" + INSERT INTO do_run_commands + (run_id, command_index, command, purpose, status, + output_truncated, error_truncated, duration_seconds, timestamp, useful) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + """, ( + run_id, + idx, + cmd.get("command", ""), + cmd.get("purpose", ""), + cmd.get("status", "pending"), + output, + error, + cmd.get("duration_seconds", 0), + cmd.get("timestamp", ""), + 1 if cmd.get("useful", True) else 0, + )) + except (json.JSONDecodeError, KeyError): + pass + + def _generate_run_id(self) -> str: + """Generate a unique run ID.""" + timestamp = datetime.datetime.now().strftime("%Y%m%d%H%M%S%f") + random_part = hashlib.sha256(os.urandom(16)).hexdigest()[:8] + return f"do_{timestamp}_{random_part}" + + def _truncate_output(self, text: str, max_length: int = 250) -> str: + """Truncate output to specified length.""" + if not text: + return "" + if len(text) <= max_length: + return text + return text[:max_length] + "... [truncated]" + + def save_run(self, run: DoRun) -> str: + """Save a do run to the database with detailed command information.""" + if not run.run_id: + run.run_id = self._generate_run_id() + + commands_log = run.get_commands_log_string() + + total_commands = len(run.commands) + successful_commands = sum(1 for c in run.commands if c.status == CommandStatus.SUCCESS) + failed_commands = sum(1 for c in run.commands if c.status == CommandStatus.FAILED) + skipped_commands = sum(1 for c in run.commands if c.status == CommandStatus.SKIPPED) + + commands_list = json.dumps([cmd.command for cmd in run.commands]) + + with sqlite3.connect(str(self.db_path)) as conn: + conn.execute(""" + INSERT OR REPLACE INTO do_runs + (run_id, summary, commands_log, commands_list, mode, user_query, started_at, + completed_at, files_accessed, privileges_granted, full_data, + total_commands, successful_commands, failed_commands, skipped_commands) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + """, ( + run.run_id, + run.summary, + commands_log, + commands_list, + run.mode.value, + run.user_query, + run.started_at, + run.completed_at, + json.dumps(run.files_accessed), + json.dumps(run.privileges_granted), + json.dumps(run.to_dict()), + total_commands, + successful_commands, + failed_commands, + skipped_commands, + )) + + conn.execute("DELETE FROM do_run_commands WHERE run_id = ?", (run.run_id,)) + + for idx, cmd in enumerate(run.commands): + conn.execute(""" + INSERT INTO do_run_commands + (run_id, command_index, command, purpose, status, + output_truncated, error_truncated, duration_seconds, timestamp, useful) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + """, ( + run.run_id, + idx, + cmd.command, + cmd.purpose, + cmd.status.value, + self._truncate_output(cmd.output, 250), + self._truncate_output(cmd.error, 250), + cmd.duration_seconds, + cmd.timestamp, + 1 if cmd.useful else 0, + )) + + conn.commit() + + return run.run_id + + def get_run(self, run_id: str) -> DoRun | None: + """Get a specific run by ID.""" + with sqlite3.connect(str(self.db_path)) as conn: + conn.row_factory = sqlite3.Row + cursor = conn.execute( + "SELECT * FROM do_runs WHERE run_id = ?", (run_id,) + ) + row = cursor.fetchone() + + if row: + full_data = json.loads(row["full_data"]) + return DoRun( + run_id=full_data["run_id"], + summary=full_data["summary"], + mode=RunMode(full_data["mode"]), + commands=[CommandLog.from_dict(c) for c in full_data["commands"]], + started_at=full_data.get("started_at", ""), + completed_at=full_data.get("completed_at", ""), + user_query=full_data.get("user_query", ""), + files_accessed=full_data.get("files_accessed", []), + privileges_granted=full_data.get("privileges_granted", []), + ) + return None + + def get_run_commands(self, run_id: str) -> list[dict[str, Any]]: + """Get detailed command information for a run.""" + with sqlite3.connect(str(self.db_path)) as conn: + conn.row_factory = sqlite3.Row + cursor = conn.execute(""" + SELECT command_index, command, purpose, status, + output_truncated, error_truncated, duration_seconds, timestamp, useful + FROM do_run_commands + WHERE run_id = ? + ORDER BY command_index + """, (run_id,)) + + commands = [] + for row in cursor: + commands.append({ + "index": row["command_index"], + "command": row["command"], + "purpose": row["purpose"], + "status": row["status"], + "output": row["output_truncated"], + "error": row["error_truncated"], + "duration": row["duration_seconds"], + "timestamp": row["timestamp"], + "useful": bool(row["useful"]), + }) + return commands + + def get_run_stats(self, run_id: str) -> dict[str, Any] | None: + """Get command statistics for a run.""" + with sqlite3.connect(str(self.db_path)) as conn: + conn.row_factory = sqlite3.Row + cursor = conn.execute(""" + SELECT run_id, summary, total_commands, successful_commands, + failed_commands, skipped_commands, started_at, completed_at + FROM do_runs WHERE run_id = ? + """, (run_id,)) + row = cursor.fetchone() + + if row: + return { + "run_id": row["run_id"], + "summary": row["summary"], + "total_commands": row["total_commands"] or 0, + "successful_commands": row["successful_commands"] or 0, + "failed_commands": row["failed_commands"] or 0, + "skipped_commands": row["skipped_commands"] or 0, + "started_at": row["started_at"], + "completed_at": row["completed_at"], + } + return None + + def get_commands_list(self, run_id: str) -> list[str]: + """Get just the list of commands for a run.""" + with sqlite3.connect(str(self.db_path)) as conn: + conn.row_factory = sqlite3.Row + cursor = conn.execute( + "SELECT commands_list FROM do_runs WHERE run_id = ?", (run_id,) + ) + row = cursor.fetchone() + + if row and row["commands_list"]: + try: + return json.loads(row["commands_list"]) + except (json.JSONDecodeError, TypeError): + pass + + cursor = conn.execute( + "SELECT command FROM do_run_commands WHERE run_id = ? ORDER BY command_index", + (run_id,) + ) + return [row["command"] for row in cursor.fetchall()] + + def get_recent_runs(self, limit: int = 20) -> list[DoRun]: + """Get recent do runs.""" + with sqlite3.connect(str(self.db_path)) as conn: + conn.row_factory = sqlite3.Row + cursor = conn.execute( + "SELECT full_data FROM do_runs ORDER BY started_at DESC LIMIT ?", + (limit,) + ) + runs = [] + for row in cursor: + full_data = json.loads(row["full_data"]) + runs.append(DoRun( + run_id=full_data["run_id"], + summary=full_data["summary"], + mode=RunMode(full_data["mode"]), + commands=[CommandLog.from_dict(c) for c in full_data["commands"]], + started_at=full_data.get("started_at", ""), + completed_at=full_data.get("completed_at", ""), + user_query=full_data.get("user_query", ""), + files_accessed=full_data.get("files_accessed", []), + privileges_granted=full_data.get("privileges_granted", []), + )) + return runs + diff --git a/cortex/do_runner/diagnosis.py b/cortex/do_runner/diagnosis.py new file mode 100644 index 000000000..416b49ba1 --- /dev/null +++ b/cortex/do_runner/diagnosis.py @@ -0,0 +1,2716 @@ +""" +Comprehensive Error Diagnosis and Auto-Fix for Cortex Do Runner. + +Handles all categories of Linux system errors: +1. Command & Shell Errors +2. File & Directory Errors +3. Permission & Ownership Errors +4. Process & Execution Errors +5. Memory & Resource Errors +6. Disk & Filesystem Errors +7. Networking Errors +8. Package Manager Errors +9. User & Authentication Errors +10. Device & Hardware Errors +11. Compilation & Build Errors +12. Archive & Compression Errors +13. Shell Script Errors +14. Environment & PATH Errors +15. Miscellaneous System Errors +""" + +import os +import re +import subprocess +import shutil +from typing import Any, Callable +from dataclasses import dataclass, field + +from rich.console import Console + +console = Console() + + +# ============================================================================ +# Error Pattern Definitions by Category +# ============================================================================ + +@dataclass +class ErrorPattern: + """Defines an error pattern and its fix strategy.""" + pattern: str + error_type: str + category: str + description: str + can_auto_fix: bool = False + fix_strategy: str = "" + severity: str = "error" # error, warning, critical + + +# Category 1: Command & Shell Errors +COMMAND_SHELL_ERRORS = [ + # Timeout errors (check first for our specific message) + ErrorPattern(r"[Cc]ommand timed out after \d+ seconds", "command_timeout", "timeout", + "Command timed out - operation took too long", True, "retry_with_longer_timeout"), + ErrorPattern(r"[Tt]imed out", "timeout", "timeout", + "Operation timed out", True, "retry_with_longer_timeout"), + ErrorPattern(r"[Tt]imeout", "timeout", "timeout", + "Operation timed out", True, "retry_with_longer_timeout"), + # Standard command errors + ErrorPattern(r"command not found", "command_not_found", "command_shell", + "Command not installed", True, "install_package"), + ErrorPattern(r"No such file or directory", "not_found", "command_shell", + "File or directory not found", True, "create_path"), + ErrorPattern(r"Permission denied", "permission_denied", "command_shell", + "Permission denied", True, "use_sudo"), + ErrorPattern(r"Operation not permitted", "operation_not_permitted", "command_shell", + "Operation not permitted (may need root)", True, "use_sudo"), + ErrorPattern(r"Not a directory", "not_a_directory", "command_shell", + "Expected directory but found file", False, "check_path"), + ErrorPattern(r"Is a directory", "is_a_directory", "command_shell", + "Expected file but found directory", False, "check_path"), + ErrorPattern(r"Invalid argument", "invalid_argument", "command_shell", + "Invalid argument passed", False, "check_args"), + ErrorPattern(r"Too many arguments", "too_many_args", "command_shell", + "Too many arguments provided", False, "check_args"), + ErrorPattern(r"[Mm]issing operand", "missing_operand", "command_shell", + "Required argument missing", False, "check_args"), + ErrorPattern(r"[Aa]mbiguous redirect", "ambiguous_redirect", "command_shell", + "Shell redirect is ambiguous", False, "fix_redirect"), + ErrorPattern(r"[Bb]ad substitution", "bad_substitution", "command_shell", + "Shell variable substitution error", False, "fix_syntax"), + ErrorPattern(r"[Uu]nbound variable", "unbound_variable", "command_shell", + "Variable not set", True, "set_variable"), + ErrorPattern(r"[Ss]yntax error near unexpected token", "syntax_error_token", "command_shell", + "Shell syntax error", False, "fix_syntax"), + ErrorPattern(r"[Uu]nexpected EOF", "unexpected_eof", "command_shell", + "Unclosed quote or bracket", False, "fix_syntax"), + ErrorPattern(r"[Cc]annot execute binary file", "cannot_execute_binary", "command_shell", + "Binary incompatible with system", False, "check_architecture"), + ErrorPattern(r"[Ee]xec format error", "exec_format_error", "command_shell", + "Invalid executable format", False, "check_architecture"), + ErrorPattern(r"[Ii]llegal option", "illegal_option", "command_shell", + "Unrecognized command option", False, "check_help"), + ErrorPattern(r"[Ii]nvalid option", "invalid_option", "command_shell", + "Invalid command option", False, "check_help"), + ErrorPattern(r"[Rr]ead-only file ?system", "readonly_fs", "command_shell", + "Filesystem is read-only", True, "remount_rw"), + ErrorPattern(r"[Ii]nput/output error", "io_error", "command_shell", + "I/O error (disk issue)", False, "check_disk", "critical"), + ErrorPattern(r"[Tt]ext file busy", "text_file_busy", "command_shell", + "File is being executed", True, "wait_retry"), + ErrorPattern(r"[Aa]rgument list too long", "arg_list_too_long", "command_shell", + "Too many arguments for command", True, "use_xargs"), + ErrorPattern(r"[Bb]roken pipe", "broken_pipe", "command_shell", + "Pipe closed unexpectedly", False, "check_pipe"), +] + +# Category 2: File & Directory Errors +FILE_DIRECTORY_ERRORS = [ + ErrorPattern(r"[Ff]ile exists", "file_exists", "file_directory", + "File already exists", True, "backup_overwrite"), + ErrorPattern(r"[Ff]ile name too long", "filename_too_long", "file_directory", + "Filename exceeds limit", False, "shorten_name"), + ErrorPattern(r"[Tt]oo many.*symbolic links", "symlink_loop", "file_directory", + "Symbolic link loop detected", True, "fix_symlink"), + ErrorPattern(r"[Ss]tale file handle", "stale_handle", "file_directory", + "NFS file handle stale", True, "remount_nfs"), + ErrorPattern(r"[Dd]irectory not empty", "dir_not_empty", "file_directory", + "Directory has contents", True, "rm_recursive"), + ErrorPattern(r"[Cc]ross-device link", "cross_device_link", "file_directory", + "Cannot link across filesystems", True, "copy_instead"), + ErrorPattern(r"[Tt]oo many open files", "too_many_files", "file_directory", + "File descriptor limit reached", True, "increase_ulimit"), + ErrorPattern(r"[Qq]uota exceeded", "quota_exceeded", "file_directory", + "Disk quota exceeded", False, "check_quota"), + ErrorPattern(r"[Oo]peration timed out", "operation_timeout", "file_directory", + "Operation timed out", True, "increase_timeout"), +] + +# Category 3: Permission & Ownership Errors +PERMISSION_ERRORS = [ + ErrorPattern(r"[Aa]ccess denied", "access_denied", "permission", + "Access denied", True, "use_sudo"), + ErrorPattern(r"[Aa]uthentication fail", "auth_failure", "permission", + "Authentication failed", False, "check_credentials"), + ErrorPattern(r"[Ii]nvalid user", "invalid_user", "permission", + "User does not exist", True, "create_user"), + ErrorPattern(r"[Ii]nvalid group", "invalid_group", "permission", + "Group does not exist", True, "create_group"), + ErrorPattern(r"[Nn]ot owner", "not_owner", "permission", + "Not the owner of file", True, "use_sudo"), +] + +# Category 4: Process & Execution Errors +PROCESS_ERRORS = [ + ErrorPattern(r"[Nn]o such process", "no_such_process", "process", + "Process does not exist", False, "check_pid"), + ErrorPattern(r"[Pp]rocess already running", "already_running", "process", + "Process already running", True, "kill_existing"), + ErrorPattern(r"[Pp]rocess terminated", "process_terminated", "process", + "Process was terminated", False, "check_logs"), + ErrorPattern(r"[Kk]illed", "killed", "process", + "Process was killed (OOM?)", False, "check_memory", "critical"), + ErrorPattern(r"[Ss]egmentation fault", "segfault", "process", + "Memory access violation", False, "debug_crash", "critical"), + ErrorPattern(r"[Bb]us error", "bus_error", "process", + "Bus error (memory alignment)", False, "debug_crash", "critical"), + ErrorPattern(r"[Ff]loating point exception", "fpe", "process", + "Floating point exception", False, "debug_crash"), + ErrorPattern(r"[Ii]llegal instruction", "illegal_instruction", "process", + "CPU instruction error", False, "check_architecture", "critical"), + ErrorPattern(r"[Tt]race.*trap", "trace_trap", "process", + "Debugger trap", False, "check_debugger"), + ErrorPattern(r"[Rr]esource temporarily unavailable", "resource_unavailable", "process", + "Resource busy", True, "wait_retry"), + ErrorPattern(r"[Tt]oo many processes", "too_many_processes", "process", + "Process limit reached", True, "increase_ulimit"), + ErrorPattern(r"[Oo]peration canceled", "operation_canceled", "process", + "Operation was canceled", False, "check_timeout"), +] + +# Category 5: Memory & Resource Errors +MEMORY_ERRORS = [ + ErrorPattern(r"[Oo]ut of memory", "oom", "memory", + "Out of memory", True, "free_memory", "critical"), + ErrorPattern(r"[Cc]annot allocate memory", "cannot_allocate", "memory", + "Memory allocation failed", True, "free_memory", "critical"), + ErrorPattern(r"[Mm]emory exhausted", "memory_exhausted", "memory", + "Memory exhausted", True, "free_memory", "critical"), + ErrorPattern(r"[Ss]tack overflow", "stack_overflow", "memory", + "Stack overflow", False, "increase_stack", "critical"), + ErrorPattern(r"[Dd]evice or resource busy", "device_busy", "memory", + "Device or resource busy", True, "wait_retry"), + ErrorPattern(r"[Nn]o space left on device", "no_space", "memory", + "Disk full", True, "free_disk", "critical"), + ErrorPattern(r"[Dd]isk quota exceeded", "disk_quota", "memory", + "Disk quota exceeded", False, "check_quota"), + ErrorPattern(r"[Ff]ile table overflow", "file_table_overflow", "memory", + "System file table full", True, "increase_ulimit", "critical"), +] + +# Category 6: Disk & Filesystem Errors +FILESYSTEM_ERRORS = [ + ErrorPattern(r"[Ww]rong fs type", "wrong_fs_type", "filesystem", + "Wrong filesystem type", False, "check_fstype"), + ErrorPattern(r"[Ff]ilesystem.*corrupt", "fs_corrupt", "filesystem", + "Filesystem corrupted", False, "fsck", "critical"), + ErrorPattern(r"[Ss]uperblock invalid", "superblock_invalid", "filesystem", + "Superblock invalid", False, "fsck", "critical"), + ErrorPattern(r"[Mm]ount point does not exist", "mount_point_missing", "filesystem", + "Mount point missing", True, "create_mountpoint"), + ErrorPattern(r"[Dd]evice is busy", "device_busy_mount", "filesystem", + "Device busy (in use)", True, "lazy_umount"), + ErrorPattern(r"[Nn]ot mounted", "not_mounted", "filesystem", + "Filesystem not mounted", True, "mount_fs"), + ErrorPattern(r"[Aa]lready mounted", "already_mounted", "filesystem", + "Already mounted", False, "check_mount"), + ErrorPattern(r"[Bb]ad magic number", "bad_magic", "filesystem", + "Bad magic number in superblock", False, "fsck", "critical"), + ErrorPattern(r"[Ss]tructure needs cleaning", "needs_cleaning", "filesystem", + "Filesystem needs fsck", False, "fsck"), + ErrorPattern(r"[Jj]ournal has aborted", "journal_aborted", "filesystem", + "Journal aborted", False, "fsck", "critical"), +] + +# Category 7: Networking Errors +NETWORK_ERRORS = [ + ErrorPattern(r"[Nn]etwork is unreachable", "network_unreachable", "network", + "Network unreachable", True, "check_network"), + ErrorPattern(r"[Nn]o route to host", "no_route", "network", + "No route to host", True, "check_routing"), + ErrorPattern(r"[Cc]onnection refused", "connection_refused", "network", + "Connection refused", True, "check_service"), + ErrorPattern(r"[Cc]onnection timed out", "connection_timeout", "network", + "Connection timed out", True, "check_firewall"), + ErrorPattern(r"[Cc]onnection reset by peer", "connection_reset", "network", + "Connection reset", False, "check_remote"), + ErrorPattern(r"[Hh]ost is down", "host_down", "network", + "Remote host down", False, "check_host"), + ErrorPattern(r"[Tt]emporary failure in name resolution", "dns_temp_fail", "network", + "DNS temporary failure", True, "retry_dns"), + ErrorPattern(r"[Nn]ame or service not known", "dns_unknown", "network", + "DNS lookup failed", True, "check_dns"), + ErrorPattern(r"[Dd]NS lookup failed", "dns_failed", "network", + "DNS lookup failed", True, "check_dns"), + ErrorPattern(r"[Aa]ddress already in use", "address_in_use", "network", + "Port already in use", True, "find_port_user"), + ErrorPattern(r"[Cc]annot assign requested address", "cannot_assign_addr", "network", + "Address not available", False, "check_interface"), + ErrorPattern(r"[Pp]rotocol not supported", "protocol_not_supported", "network", + "Protocol not supported", False, "check_protocol"), + ErrorPattern(r"[Ss]ocket operation on non-socket", "not_socket", "network", + "Invalid socket operation", False, "check_fd"), +] + +# Category 8: Package Manager Errors (Ubuntu/Debian apt) +PACKAGE_ERRORS = [ + ErrorPattern(r"[Uu]nable to locate package", "package_not_found", "package", + "Package not found", True, "update_repos"), + ErrorPattern(r"[Pp]ackage.*not found", "package_not_found", "package", + "Package not found", True, "update_repos"), + ErrorPattern(r"[Ff]ailed to fetch", "fetch_failed", "package", + "Failed to download package", True, "change_mirror"), + ErrorPattern(r"[Hh]ash [Ss]um mismatch", "hash_mismatch", "package", + "Package checksum mismatch", True, "clean_apt"), + ErrorPattern(r"[Rr]epository.*not signed", "repo_not_signed", "package", + "Repository not signed", True, "add_key"), + ErrorPattern(r"[Gg][Pp][Gg] error", "gpg_error", "package", + "GPG signature error", True, "fix_gpg"), + ErrorPattern(r"[Dd]ependency problems", "dependency_problems", "package", + "Dependency issues", True, "fix_dependencies"), + ErrorPattern(r"[Uu]nmet dependencies", "unmet_dependencies", "package", + "Unmet dependencies", True, "fix_dependencies"), + ErrorPattern(r"[Bb]roken packages", "broken_packages", "package", + "Broken packages", True, "fix_broken"), + ErrorPattern(r"[Vv]ery bad inconsistent state", "inconsistent_state", "package", + "Package in bad state", True, "force_reinstall"), + ErrorPattern(r"[Cc]onflicts with", "package_conflict", "package", + "Package conflict", True, "resolve_conflict"), + ErrorPattern(r"dpkg.*lock", "dpkg_lock", "package", + "Package manager locked", True, "clear_lock"), + ErrorPattern(r"apt.*lock", "apt_lock", "package", + "APT locked", True, "clear_lock"), + ErrorPattern(r"E: Could not get lock", "could_not_get_lock", "package", + "Package manager locked", True, "clear_lock"), +] + +# Category 9: User & Authentication Errors +USER_AUTH_ERRORS = [ + ErrorPattern(r"[Uu]ser does not exist", "user_not_exist", "user_auth", + "User does not exist", True, "create_user"), + ErrorPattern(r"[Gg]roup does not exist", "group_not_exist", "user_auth", + "Group does not exist", True, "create_group"), + ErrorPattern(r"[Aa]ccount expired", "account_expired", "user_auth", + "Account expired", False, "renew_account"), + ErrorPattern(r"[Pp]assword expired", "password_expired", "user_auth", + "Password expired", False, "change_password"), + ErrorPattern(r"[Ii]ncorrect password", "wrong_password", "user_auth", + "Wrong password", False, "check_password"), + ErrorPattern(r"[Aa]ccount locked", "account_locked", "user_auth", + "Account locked", False, "unlock_account"), +] + +# Category 16: Docker/Container Errors +DOCKER_ERRORS = [ + # Container name conflicts + ErrorPattern(r"[Cc]onflict.*container name.*already in use", "container_name_conflict", "docker", + "Container name already in use", True, "remove_or_rename_container"), + ErrorPattern(r"is already in use by container", "container_name_conflict", "docker", + "Container name already in use", True, "remove_or_rename_container"), + # Container not found + ErrorPattern(r"[Nn]o such container", "container_not_found", "docker", + "Container does not exist", True, "check_container_name"), + ErrorPattern(r"[Ee]rror: No such container", "container_not_found", "docker", + "Container does not exist", True, "check_container_name"), + # Image not found + ErrorPattern(r"[Uu]nable to find image", "image_not_found", "docker", + "Docker image not found locally", True, "pull_image"), + ErrorPattern(r"[Rr]epository.*not found", "image_not_found", "docker", + "Docker image repository not found", True, "check_image_name"), + ErrorPattern(r"manifest.*not found", "manifest_not_found", "docker", + "Image manifest not found", True, "check_image_tag"), + # Container already running/stopped + ErrorPattern(r"is already running", "container_already_running", "docker", + "Container is already running", True, "stop_or_use_existing"), + ErrorPattern(r"is not running", "container_not_running", "docker", + "Container is not running", True, "start_container"), + # Port conflicts + ErrorPattern(r"[Pp]ort.*already allocated", "port_in_use", "docker", + "Port is already in use", True, "free_port_or_use_different"), + ErrorPattern(r"[Bb]ind.*address already in use", "port_in_use", "docker", + "Port is already in use", True, "free_port_or_use_different"), + # Volume errors + ErrorPattern(r"[Vv]olume.*not found", "volume_not_found", "docker", + "Docker volume not found", True, "create_volume"), + ErrorPattern(r"[Mm]ount.*denied", "mount_denied", "docker", + "Mount point access denied", True, "check_mount_permissions"), + # Network errors + ErrorPattern(r"[Nn]etwork.*not found", "network_not_found", "docker", + "Docker network not found", True, "create_network"), + # Daemon errors + ErrorPattern(r"[Cc]annot connect to the Docker daemon", "docker_daemon_not_running", "docker", + "Docker daemon is not running", True, "start_docker_daemon"), + ErrorPattern(r"[Ii]s the docker daemon running", "docker_daemon_not_running", "docker", + "Docker daemon is not running", True, "start_docker_daemon"), + # OOM errors + ErrorPattern(r"[Oo]ut of memory", "container_oom", "docker", + "Container ran out of memory", True, "increase_memory_limit"), + # Exec errors + ErrorPattern(r"[Oo]CI runtime.*not found", "runtime_not_found", "docker", + "Container runtime not found", False, "check_docker_installation"), +] + +# Category 17: Login/Credential Required Errors +LOGIN_REQUIRED_ERRORS = [ + # Docker/Container registry login errors + ErrorPattern(r"[Uu]sername.*[Rr]equired", "docker_username_required", "login_required", + "Docker username required", True, "prompt_docker_login"), + ErrorPattern(r"[Nn]on-null [Uu]sername", "docker_username_required", "login_required", + "Docker username required", True, "prompt_docker_login"), + ErrorPattern(r"unauthorized.*authentication required", "docker_auth_required", "login_required", + "Docker authentication required", True, "prompt_docker_login"), + ErrorPattern(r"denied.*requested access", "docker_access_denied", "login_required", + "Docker registry access denied", True, "prompt_docker_login"), + ErrorPattern(r"denied:.*access", "docker_access_denied", "login_required", + "Docker registry access denied", True, "prompt_docker_login"), + ErrorPattern(r"access.*denied", "docker_access_denied", "login_required", + "Docker registry access denied", True, "prompt_docker_login"), + ErrorPattern(r"no basic auth credentials", "docker_no_credentials", "login_required", + "Docker credentials not found", True, "prompt_docker_login"), + ErrorPattern(r"docker login", "docker_login_needed", "login_required", + "Docker login required", True, "prompt_docker_login"), + # ghcr.io (GitHub Container Registry) specific errors + ErrorPattern(r"ghcr\.io.*denied", "ghcr_access_denied", "login_required", + "GitHub Container Registry access denied - login required", True, "prompt_docker_login"), + ErrorPattern(r"Head.*ghcr\.io.*denied", "ghcr_access_denied", "login_required", + "GitHub Container Registry access denied - login required", True, "prompt_docker_login"), + # Generic registry denied patterns + ErrorPattern(r"Error response from daemon.*denied", "registry_access_denied", "login_required", + "Container registry access denied - login may be required", True, "prompt_docker_login"), + ErrorPattern(r"pull access denied", "pull_access_denied", "login_required", + "Pull access denied - login required or image doesn't exist", True, "prompt_docker_login"), + ErrorPattern(r"requested resource.*denied", "resource_access_denied", "login_required", + "Resource access denied - authentication required", True, "prompt_docker_login"), + + # Git credential errors + ErrorPattern(r"[Cc]ould not read.*[Uu]sername", "git_username_required", "login_required", + "Git username required", True, "prompt_git_login"), + ErrorPattern(r"[Ff]atal:.*[Aa]uthentication failed", "git_auth_failed", "login_required", + "Git authentication failed", True, "prompt_git_login"), + ErrorPattern(r"[Pp]assword.*authentication.*removed", "git_token_required", "login_required", + "Git token required (password auth disabled)", True, "prompt_git_token"), + ErrorPattern(r"[Pp]ermission denied.*publickey", "git_ssh_required", "login_required", + "Git SSH key required", True, "setup_git_ssh"), + + # npm login errors + ErrorPattern(r"npm ERR!.*E401", "npm_auth_required", "login_required", + "npm authentication required", True, "prompt_npm_login"), + ErrorPattern(r"npm ERR!.*ENEEDAUTH", "npm_need_auth", "login_required", + "npm authentication needed", True, "prompt_npm_login"), + ErrorPattern(r"You must be logged in", "npm_login_required", "login_required", + "npm login required", True, "prompt_npm_login"), + + # AWS credential errors + ErrorPattern(r"[Uu]nable to locate credentials", "aws_no_credentials", "login_required", + "AWS credentials not configured", True, "prompt_aws_configure"), + ErrorPattern(r"[Ii]nvalid[Aa]ccess[Kk]ey", "aws_invalid_key", "login_required", + "AWS access key invalid", True, "prompt_aws_configure"), + ErrorPattern(r"[Ss]ignature.*[Dd]oes[Nn]ot[Mm]atch", "aws_secret_invalid", "login_required", + "AWS secret key invalid", True, "prompt_aws_configure"), + ErrorPattern(r"[Ee]xpired[Tt]oken", "aws_token_expired", "login_required", + "AWS token expired", True, "prompt_aws_configure"), + + # PyPI/pip login errors + ErrorPattern(r"HTTPError: 403.*upload", "pypi_auth_required", "login_required", + "PyPI authentication required", True, "prompt_pypi_login"), + + # Generic credential prompts + ErrorPattern(r"[Ee]nter.*[Uu]sername", "username_prompt", "login_required", + "Username required", True, "prompt_credentials"), + ErrorPattern(r"[Ee]nter.*[Pp]assword", "password_prompt", "login_required", + "Password required", True, "prompt_credentials"), + ErrorPattern(r"[Aa]ccess [Tt]oken.*[Rr]equired", "token_required", "login_required", + "Access token required", True, "prompt_token"), + ErrorPattern(r"[Aa][Pp][Ii].*[Kk]ey.*[Rr]equired", "api_key_required", "login_required", + "API key required", True, "prompt_api_key"), +] + +# Category 10: Device & Hardware Errors +DEVICE_ERRORS = [ + ErrorPattern(r"[Nn]o such device", "no_device", "device", + "Device not found", False, "check_device"), + ErrorPattern(r"[Dd]evice not configured", "device_not_configured", "device", + "Device not configured", False, "configure_device"), + ErrorPattern(r"[Hh]ardware error", "hardware_error", "device", + "Hardware error", False, "check_hardware", "critical"), + ErrorPattern(r"[Dd]evice offline", "device_offline", "device", + "Device offline", False, "bring_online"), + ErrorPattern(r"[Mm]edia not present", "no_media", "device", + "No media in device", False, "insert_media"), + ErrorPattern(r"[Rr]ead error", "read_error", "device", + "Device read error", False, "check_disk", "critical"), + ErrorPattern(r"[Ww]rite error", "write_error", "device", + "Device write error", False, "check_disk", "critical"), +] + +# Category 11: Compilation & Build Errors +BUILD_ERRORS = [ + ErrorPattern(r"[Nn]o rule to make target", "no_make_rule", "build", + "Make target not found", False, "check_makefile"), + ErrorPattern(r"[Mm]issing separator", "missing_separator", "build", + "Makefile syntax error", False, "fix_makefile"), + ErrorPattern(r"[Uu]ndefined reference", "undefined_reference", "build", + "Undefined symbol", True, "add_library"), + ErrorPattern(r"[Ss]ymbol lookup error", "symbol_lookup", "build", + "Symbol not found", True, "fix_ldpath"), + ErrorPattern(r"[Ll]ibrary not found", "library_not_found", "build", + "Library not found", True, "install_lib"), + ErrorPattern(r"[Hh]eader.*not found", "header_not_found", "build", + "Header file not found", True, "install_dev"), + ErrorPattern(r"[Rr]elocation error", "relocation_error", "build", + "Relocation error", True, "fix_ldpath"), + ErrorPattern(r"[Cc]ompilation terminated", "compilation_failed", "build", + "Compilation failed", False, "check_errors"), +] + +# Category 12: Archive & Compression Errors +ARCHIVE_ERRORS = [ + ErrorPattern(r"[Uu]nexpected end of file", "unexpected_eof_archive", "archive", + "Archive truncated", False, "redownload"), + ErrorPattern(r"[Cc]orrupt archive", "corrupt_archive", "archive", + "Archive corrupted", False, "redownload"), + ErrorPattern(r"[Ii]nvalid tar magic", "invalid_tar", "archive", + "Invalid tar archive", False, "check_format"), + ErrorPattern(r"[Cc]hecksum error", "checksum_error", "archive", + "Checksum mismatch", False, "redownload"), + ErrorPattern(r"[Nn]ot in gzip format", "not_gzip", "archive", + "Not gzip format", False, "check_format"), + ErrorPattern(r"[Dd]ecompression failed", "decompress_failed", "archive", + "Decompression failed", False, "check_format"), +] + +# Category 13: Shell Script Errors +SCRIPT_ERRORS = [ + ErrorPattern(r"[Bb]ad interpreter", "bad_interpreter", "script", + "Interpreter not found", True, "fix_shebang"), + ErrorPattern(r"[Ll]ine \d+:.*command not found", "script_cmd_not_found", "script", + "Command in script not found", True, "install_dependency"), + ErrorPattern(r"[Ii]nteger expression expected", "integer_expected", "script", + "Expected integer", False, "fix_syntax"), + ErrorPattern(r"[Cc]onditional binary operator expected", "conditional_expected", "script", + "Expected conditional", False, "fix_syntax"), +] + +# Category 14: Environment & PATH Errors +ENVIRONMENT_ERRORS = [ + ErrorPattern(r"[Vv]ariable not set", "var_not_set", "environment", + "Environment variable not set", True, "set_variable"), + ErrorPattern(r"[Pp][Aa][Tt][Hh] not set", "path_not_set", "environment", + "PATH not configured", True, "set_path"), + ErrorPattern(r"[Ee]nvironment corrupt", "env_corrupt", "environment", + "Environment corrupted", True, "reset_env"), + ErrorPattern(r"[Ll]ibrary path not found", "lib_path_missing", "environment", + "Library path missing", True, "set_ldpath"), + ErrorPattern(r"LD_LIBRARY_PATH", "ld_path_issue", "environment", + "Library path issue", True, "set_ldpath"), +] + +# Category 15: Service & System Errors +# Category 16: Config File Errors (Nginx, Apache, etc.) +CONFIG_ERRORS = [ + # Nginx errors + ErrorPattern(r"nginx:.*\[emerg\]", "nginx_config_error", "config", + "Nginx configuration error", True, "fix_nginx_config"), + ErrorPattern(r"nginx.*syntax.*error", "nginx_syntax_error", "config", + "Nginx syntax error", True, "fix_nginx_config"), + ErrorPattern(r"nginx.*unexpected", "nginx_unexpected", "config", + "Nginx unexpected token", True, "fix_nginx_config"), + ErrorPattern(r"nginx.*unknown directive", "nginx_unknown_directive", "config", + "Nginx unknown directive", True, "fix_nginx_config"), + ErrorPattern(r"nginx.*test failed", "nginx_test_failed", "config", + "Nginx config test failed", True, "fix_nginx_config"), + ErrorPattern(r"nginx.*could not open", "nginx_file_error", "config", + "Nginx could not open file", True, "fix_nginx_permissions"), + # Apache errors + ErrorPattern(r"apache.*syntax error", "apache_syntax_error", "config", + "Apache syntax error", True, "fix_apache_config"), + ErrorPattern(r"apache2?ctl.*configtest", "apache_config_error", "config", + "Apache config test failed", True, "fix_apache_config"), + ErrorPattern(r"[Ss]yntax error on line \d+", "config_line_error", "config", + "Config syntax error at line", True, "fix_config_line"), + # MySQL/MariaDB errors + ErrorPattern(r"mysql.*error.*config", "mysql_config_error", "config", + "MySQL configuration error", True, "fix_mysql_config"), + # PostgreSQL errors + ErrorPattern(r"postgres.*error.*config", "postgres_config_error", "config", + "PostgreSQL configuration error", True, "fix_postgres_config"), + # Generic config errors + ErrorPattern(r"configuration.*syntax", "generic_config_syntax", "config", + "Configuration syntax error", True, "fix_config_syntax"), + ErrorPattern(r"invalid.*configuration", "invalid_config", "config", + "Invalid configuration", True, "fix_config_syntax"), + ErrorPattern(r"[Cc]onfig.*parse error", "config_parse_error", "config", + "Config parse error", True, "fix_config_syntax"), +] + +SERVICE_ERRORS = [ + ErrorPattern(r"[Ss]ervice failed to start", "service_failed", "service", + "Service failed to start", True, "check_service_logs"), + ErrorPattern(r"[Uu]nit.*failed", "unit_failed", "service", + "Systemd unit failed", True, "check_service_logs"), + ErrorPattern(r"[Jj]ob for.*\.service failed", "job_failed", "service", + "Service job failed", True, "check_service_logs"), + ErrorPattern(r"[Ff]ailed to start.*\.service", "start_failed", "service", + "Failed to start service", True, "check_service_logs"), + ErrorPattern(r"[Dd]ependency failed", "dependency_failed", "service", + "Service dependency failed", True, "start_dependency"), + ErrorPattern(r"[Ii]nactive.*dead", "service_inactive", "service", + "Service not running", True, "start_service"), + ErrorPattern(r"[Mm]asked", "service_masked", "service", + "Service is masked", True, "unmask_service"), + ErrorPattern(r"[Ee]nabled-runtime", "service_enabled_runtime", "service", + "Service enabled at runtime", False, "check_service"), + ErrorPattern(r"[Cc]ontrol process exited with error", "control_process_error", "service", + "Service control process failed", True, "check_service_logs"), + ErrorPattern(r"[Aa]ctivation.*timed out", "activation_timeout", "service", + "Service activation timed out", True, "check_service_logs"), +] + +# Combine all error patterns +ALL_ERROR_PATTERNS = ( + DOCKER_ERRORS + # Check Docker errors first (common) + LOGIN_REQUIRED_ERRORS + # Check login errors (interactive) + CONFIG_ERRORS + # Check config errors (more specific) + COMMAND_SHELL_ERRORS + + FILE_DIRECTORY_ERRORS + + PERMISSION_ERRORS + + PROCESS_ERRORS + + MEMORY_ERRORS + + FILESYSTEM_ERRORS + + NETWORK_ERRORS + + PACKAGE_ERRORS + + USER_AUTH_ERRORS + + DEVICE_ERRORS + + BUILD_ERRORS + + ARCHIVE_ERRORS + + SCRIPT_ERRORS + + ENVIRONMENT_ERRORS + + SERVICE_ERRORS +) + + +# ============================================================================ +# Login/Credential Requirements Configuration +# ============================================================================ + +@dataclass +class LoginRequirement: + """Defines credentials required for a service login.""" + service: str + display_name: str + command_pattern: str # Regex to match commands that need this login + required_fields: list # List of field names needed + field_prompts: dict # Field name -> prompt text + field_secret: dict # Field name -> whether to hide input + login_command_template: str # Template for login command + env_vars: dict = field(default_factory=dict) # Optional env var alternatives + signup_url: str = "" + docs_url: str = "" + + +# Login requirements for various services +LOGIN_REQUIREMENTS = { + "docker": LoginRequirement( + service="docker", + display_name="Docker Registry", + command_pattern=r"docker\s+(login|push|pull)", + required_fields=["registry", "username", "password"], + field_prompts={ + "registry": "Registry URL (press Enter for Docker Hub)", + "username": "Username", + "password": "Password or Access Token", + }, + field_secret={"registry": False, "username": False, "password": True}, + login_command_template="docker login {registry} -u {username} -p {password}", + env_vars={"username": "DOCKER_USERNAME", "password": "DOCKER_PASSWORD"}, + signup_url="https://hub.docker.com/signup", + docs_url="https://docs.docker.com/docker-hub/access-tokens/", + ), + "ghcr": LoginRequirement( + service="ghcr", + display_name="GitHub Container Registry", + command_pattern=r"docker.*ghcr\.io", + required_fields=["username", "token"], + field_prompts={ + "username": "GitHub Username", + "token": "GitHub Personal Access Token (with packages scope)", + }, + field_secret={"username": False, "token": True}, + login_command_template="echo {token} | docker login ghcr.io -u {username} --password-stdin", + env_vars={"token": "GITHUB_TOKEN", "username": "GITHUB_USER"}, + signup_url="https://github.com/join", + docs_url="https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry", + ), + "git_https": LoginRequirement( + service="git_https", + display_name="Git (HTTPS)", + command_pattern=r"git\s+(clone|push|pull|fetch).*https://", + required_fields=["username", "token"], + field_prompts={ + "username": "Git Username", + "token": "Personal Access Token", + }, + field_secret={"username": False, "token": True}, + login_command_template="git config --global credential.helper store && echo 'https://{username}:{token}@github.com' >> ~/.git-credentials", + env_vars={"token": "GIT_TOKEN", "username": "GIT_USER"}, + docs_url="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token", + ), + "npm": LoginRequirement( + service="npm", + display_name="npm Registry", + command_pattern=r"npm\s+(login|publish|adduser)", + required_fields=["username", "password", "email"], + field_prompts={ + "username": "npm Username", + "password": "npm Password", + "email": "Email Address", + }, + field_secret={"username": False, "password": True, "email": False}, + login_command_template="npm login", # npm login is interactive + signup_url="https://www.npmjs.com/signup", + docs_url="https://docs.npmjs.com/creating-and-viewing-access-tokens", + ), + "aws": LoginRequirement( + service="aws", + display_name="AWS", + command_pattern=r"aws\s+", + required_fields=["access_key_id", "secret_access_key", "region"], + field_prompts={ + "access_key_id": "AWS Access Key ID", + "secret_access_key": "AWS Secret Access Key", + "region": "Default Region (e.g., us-east-1)", + }, + field_secret={"access_key_id": False, "secret_access_key": True, "region": False}, + login_command_template="aws configure set aws_access_key_id {access_key_id} && aws configure set aws_secret_access_key {secret_access_key} && aws configure set region {region}", + env_vars={ + "access_key_id": "AWS_ACCESS_KEY_ID", + "secret_access_key": "AWS_SECRET_ACCESS_KEY", + "region": "AWS_DEFAULT_REGION", + }, + docs_url="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html", + ), + "pypi": LoginRequirement( + service="pypi", + display_name="PyPI", + command_pattern=r"(twine|pip).*upload", + required_fields=["username", "token"], + field_prompts={ + "username": "PyPI Username (use __token__ for API token)", + "token": "PyPI Password or API Token", + }, + field_secret={"username": False, "token": True}, + login_command_template="", # Uses ~/.pypirc + signup_url="https://pypi.org/account/register/", + docs_url="https://pypi.org/help/#apitoken", + ), + "gcloud": LoginRequirement( + service="gcloud", + display_name="Google Cloud", + command_pattern=r"gcloud\s+", + required_fields=[], # Interactive browser auth + field_prompts={}, + field_secret={}, + login_command_template="gcloud auth login", + docs_url="https://cloud.google.com/sdk/docs/authorizing", + ), + "kubectl": LoginRequirement( + service="kubectl", + display_name="Kubernetes", + command_pattern=r"kubectl\s+", + required_fields=["kubeconfig"], + field_prompts={ + "kubeconfig": "Path to kubeconfig file (or press Enter for ~/.kube/config)", + }, + field_secret={"kubeconfig": False}, + login_command_template="export KUBECONFIG={kubeconfig}", + env_vars={"kubeconfig": "KUBECONFIG"}, + docs_url="https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/", + ), + "heroku": LoginRequirement( + service="heroku", + display_name="Heroku", + command_pattern=r"heroku\s+", + required_fields=["api_key"], + field_prompts={ + "api_key": "Heroku API Key", + }, + field_secret={"api_key": True}, + login_command_template="heroku auth:token", # Interactive + env_vars={"api_key": "HEROKU_API_KEY"}, + signup_url="https://signup.heroku.com/", + docs_url="https://devcenter.heroku.com/articles/authentication", + ), +} + + +# ============================================================================ +# Ubuntu Package Mappings +# ============================================================================ + +UBUNTU_PACKAGE_MAP = { + # Commands to packages + "nginx": "nginx", "apache2": "apache2", "httpd": "apache2", + "mysql": "mysql-server", "mysqld": "mysql-server", + "postgres": "postgresql", "psql": "postgresql-client", + "redis": "redis-server", "redis-server": "redis-server", + "mongo": "mongodb", "mongod": "mongodb", + "node": "nodejs", "npm": "npm", "yarn": "yarnpkg", + "python": "python3", "python3": "python3", "pip": "python3-pip", "pip3": "python3-pip", + "docker": "docker.io", "docker-compose": "docker-compose", + "git": "git", "curl": "curl", "wget": "wget", + "vim": "vim", "nano": "nano", "emacs": "emacs", + "gcc": "gcc", "g++": "g++", "make": "make", "cmake": "cmake", + "java": "default-jdk", "javac": "default-jdk", + "ruby": "ruby", "gem": "ruby", + "go": "golang-go", "cargo": "cargo", "rustc": "rustc", + "php": "php", "composer": "composer", + "ffmpeg": "ffmpeg", "imagemagick": "imagemagick", "convert": "imagemagick", + "htop": "htop", "tree": "tree", "jq": "jq", + "nc": "netcat-openbsd", "netcat": "netcat-openbsd", + "ss": "iproute2", "ip": "iproute2", + "dig": "dnsutils", "nslookup": "dnsutils", + "zip": "zip", "unzip": "unzip", + "tar": "tar", "gzip": "gzip", + "rsync": "rsync", "ssh": "openssh-client", "sshd": "openssh-server", + "screen": "screen", "tmux": "tmux", + "awk": "gawk", "sed": "sed", "grep": "grep", + "setfacl": "acl", "getfacl": "acl", + "lsof": "lsof", "strace": "strace", +} + +UBUNTU_SERVICE_MAP = { + "nginx": "nginx", + "apache": "apache2", + "mysql": "mysql", + "postgresql": "postgresql", + "redis": "redis-server", + "mongodb": "mongod", + "docker": "docker", + "ssh": "ssh", + "cron": "cron", + "ufw": "ufw", +} + + +# ============================================================================ +# Error Diagnoser Class +# ============================================================================ + +class ErrorDiagnoser: + """Comprehensive error diagnosis for all system error types.""" + + def __init__(self): + self._compile_patterns() + + def _compile_patterns(self): + """Pre-compile regex patterns for performance.""" + self._compiled_patterns = [] + for ep in ALL_ERROR_PATTERNS: + try: + compiled = re.compile(ep.pattern, re.IGNORECASE | re.MULTILINE) + self._compiled_patterns.append((compiled, ep)) + except re.error: + console.print(f"[yellow]Warning: Invalid pattern: {ep.pattern}[/yellow]") + + def extract_path_from_error(self, stderr: str, cmd: str) -> str | None: + """Extract the problematic file path from an error message.""" + patterns = [ + r"cannot (?:access|open|create|stat|read|write) ['\"]?([/\w\.\-_]+)['\"]?", + r"['\"]([/\w\.\-_]+)['\"]?: (?:Permission denied|No such file)", + r"open\(\) ['\"]([/\w\.\-_]+)['\"]? failed", + r"failed to open ['\"]?([/\w\.\-_]+)['\"]?", + r"couldn't open (?:temporary )?file ([/\w\.\-_]+)", + r"([/\w\.\-_]+): Permission denied", + r"([/\w\.\-_]+): No such file or directory", + r"mkdir: cannot create directory ['\"]?([/\w\.\-_]+)['\"]?", + r"touch: cannot touch ['\"]?([/\w\.\-_]+)['\"]?", + r"cp: cannot (?:create|stat|access) ['\"]?([/\w\.\-_]+)['\"]?", + ] + + for pattern in patterns: + match = re.search(pattern, stderr, re.IGNORECASE) + if match: + path = match.group(1) + if path.startswith("/"): + return path + + # Extract from command itself + for part in cmd.split(): + if part.startswith("/") and any(c in part for c in ["/etc/", "/var/", "/usr/", "/home/", "/opt/", "/tmp/"]): + return part + + return None + + def extract_service_from_error(self, stderr: str, cmd: str) -> str | None: + """Extract service name from error message or command.""" + cmd_parts = cmd.split() + + # From systemctl/service commands + for i, part in enumerate(cmd_parts): + if part in ["systemctl", "service"]: + for j in range(i + 1, len(cmd_parts)): + candidate = cmd_parts[j] + if candidate not in ["start", "stop", "restart", "reload", "status", + "enable", "disable", "is-active", "is-enabled", + "-q", "--quiet", "--no-pager"]: + return candidate.replace(".service", "") + + # From error message + patterns = [ + r"(?:Unit|Service) ([a-zA-Z0-9\-_]+)(?:\.service)? (?:not found|failed|could not)", + r"Failed to (?:start|stop|restart|enable|disable) ([a-zA-Z0-9\-_]+)", + r"([a-zA-Z0-9\-_]+)\.service", + ] + + for pattern in patterns: + match = re.search(pattern, stderr, re.IGNORECASE) + if match: + return match.group(1).replace(".service", "") + + return None + + def extract_package_from_error(self, stderr: str, cmd: str) -> str | None: + """Extract package name from error.""" + patterns = [ + r"[Uu]nable to locate package ([a-zA-Z0-9\-_\.]+)", + r"[Pp]ackage '?([a-zA-Z0-9\-_\.]+)'? (?:is )?not (?:found|installed)", + r"[Nn]o package '?([a-zA-Z0-9\-_\.]+)'? (?:found|available)", + r"apt.*install.*?([a-zA-Z0-9\-_\.]+)", + ] + + for pattern in patterns: + match = re.search(pattern, stderr + " " + cmd, re.IGNORECASE) + if match: + return match.group(1) + + return None + + def extract_port_from_error(self, stderr: str) -> int | None: + """Extract port number from error.""" + patterns = [ + r"[Pp]ort (\d+)", + r"[Aa]ddress.*:(\d+)", + r":(\d{2,5})\s", + ] + + for pattern in patterns: + match = re.search(pattern, stderr) + if match: + port = int(match.group(1)) + if 1 <= port <= 65535: + return port + + return None + + def _extract_container_name(self, stderr: str) -> str | None: + """Extract Docker container name from error message.""" + patterns = [ + r'container name ["\'/]([a-zA-Z0-9_\-]+)["\'/]', + r'["\'/]([a-zA-Z0-9_\-]+)["\'/] is already in use', + r'container ["\']?([a-zA-Z0-9_\-]+)["\']?', + r'No such container:?\s*([a-zA-Z0-9_\-]+)', + ] + + for pattern in patterns: + match = re.search(pattern, stderr, re.IGNORECASE) + if match: + return match.group(1) + + return None + + def _extract_image_name(self, stderr: str, cmd: str) -> str | None: + """Extract Docker image name from error or command.""" + # From command + if "docker" in cmd: + parts = cmd.split() + for i, part in enumerate(parts): + if part in ["run", "pull", "push"]: + # Look for image name after flags + for j in range(i + 1, len(parts)): + candidate = parts[j] + if not candidate.startswith("-") and "/" in candidate or ":" in candidate: + return candidate + elif not candidate.startswith("-") and j == len(parts) - 1: + return candidate + + # From error + patterns = [ + r'[Uu]nable to find image ["\']([^"\']+)["\']', + r'repository ["\']?([^"\':\s]+(?::[^"\':\s]+)?)["\']? not found', + r'manifest for ([^\s]+) not found', + ] + + for pattern in patterns: + match = re.search(pattern, stderr) + if match: + return match.group(1) + + return None + + def _extract_port(self, stderr: str) -> str | None: + """Extract port from Docker error.""" + patterns = [ + r'[Pp]ort (\d+)', + r':(\d+)->', + r'address.*:(\d+)', + r'-p\s*(\d+):', + ] + + for pattern in patterns: + match = re.search(pattern, stderr) + if match: + return match.group(1) + + return None + + def extract_config_file_and_line(self, stderr: str) -> tuple[str | None, int | None]: + """Extract config file path and line number from error.""" + patterns = [ + r'in\s+(/[^\s:]+):(\d+)', # "in /path:line" + r'at\s+(/[^\s:]+):(\d+)', # "at /path:line" + r'(/[^\s:]+):(\d+):', # "/path:line:" + r'line\s+(\d+)\s+of\s+(/[^\s:]+)', # "line X of /path" + r'(/[^\s:]+)\s+line\s+(\d+)', # "/path line X" + ] + + for pattern in patterns: + match = re.search(pattern, stderr, re.IGNORECASE) + if match: + groups = match.groups() + if groups[0].startswith("/"): + return groups[0], int(groups[1]) + elif len(groups) > 1 and groups[1].startswith("/"): + return groups[1], int(groups[0]) + + return None, None + + def extract_command_from_error(self, stderr: str) -> str | None: + """Extract the failing command name from error.""" + patterns = [ + r"'([a-zA-Z0-9\-_]+)'.*command not found", + r"([a-zA-Z0-9\-_]+): command not found", + r"bash: ([a-zA-Z0-9\-_]+):", + r"/usr/bin/env: '?([a-zA-Z0-9\-_]+)'?:", + ] + + for pattern in patterns: + match = re.search(pattern, stderr, re.IGNORECASE) + if match: + return match.group(1) + + return None + + def diagnose_error(self, cmd: str, stderr: str) -> dict[str, Any]: + """ + Comprehensive error diagnosis using pattern matching. + + Returns a detailed diagnosis dict with: + - error_type: Specific error type + - category: Error category (command_shell, network, etc.) + - description: Human-readable description + - fix_commands: Suggested fix commands + - can_auto_fix: Whether we can auto-fix + - fix_strategy: Strategy name for auto-fixer + - extracted_info: Extracted paths, services, etc. + - severity: error, warning, or critical + """ + diagnosis = { + "error_type": "unknown", + "category": "unknown", + "description": stderr[:300] if len(stderr) > 300 else stderr, + "fix_commands": [], + "can_auto_fix": False, + "fix_strategy": "", + "extracted_path": None, + "extracted_info": {}, + "severity": "error", + } + + stderr_lower = stderr.lower() + + # Extract common info + diagnosis["extracted_path"] = self.extract_path_from_error(stderr, cmd) + diagnosis["extracted_info"]["service"] = self.extract_service_from_error(stderr, cmd) + diagnosis["extracted_info"]["package"] = self.extract_package_from_error(stderr, cmd) + diagnosis["extracted_info"]["port"] = self.extract_port_from_error(stderr) + + config_file, line_num = self.extract_config_file_and_line(stderr) + if config_file: + diagnosis["extracted_info"]["config_file"] = config_file + diagnosis["extracted_info"]["line_num"] = line_num + + # Match against compiled patterns + for compiled, ep in self._compiled_patterns: + if compiled.search(stderr): + diagnosis["error_type"] = ep.error_type + diagnosis["category"] = ep.category + diagnosis["description"] = ep.description + diagnosis["can_auto_fix"] = ep.can_auto_fix + diagnosis["fix_strategy"] = ep.fix_strategy + diagnosis["severity"] = ep.severity + + # Generate fix commands based on category and strategy + self._generate_fix_commands(diagnosis, cmd, stderr) + + return diagnosis + + # Fallback: try generic patterns + if "permission denied" in stderr_lower: + diagnosis["error_type"] = "permission_denied" + diagnosis["category"] = "permission" + diagnosis["description"] = "Permission denied" + diagnosis["can_auto_fix"] = True + diagnosis["fix_strategy"] = "use_sudo" + if not cmd.strip().startswith("sudo"): + diagnosis["fix_commands"] = [f"sudo {cmd}"] + + elif "not found" in stderr_lower or "no such" in stderr_lower: + diagnosis["error_type"] = "not_found" + diagnosis["category"] = "file_directory" + diagnosis["description"] = "File or directory not found" + if diagnosis["extracted_path"]: + diagnosis["can_auto_fix"] = True + diagnosis["fix_strategy"] = "create_path" + + return diagnosis + + def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None: + """Generate specific fix commands based on the error type and strategy.""" + strategy = diagnosis.get("fix_strategy", "") + extracted = diagnosis.get("extracted_info", {}) + path = diagnosis.get("extracted_path") + + # Permission/Sudo strategies + if strategy == "use_sudo": + if not cmd.strip().startswith("sudo"): + diagnosis["fix_commands"] = [f"sudo {cmd}"] + + # Path creation strategies + elif strategy == "create_path": + if path: + parent = os.path.dirname(path) + if parent: + diagnosis["fix_commands"] = [f"sudo mkdir -p {parent}"] + + # Package installation + elif strategy == "install_package": + missing_cmd = self.extract_command_from_error(stderr) or cmd.split()[0] + pkg = UBUNTU_PACKAGE_MAP.get(missing_cmd, missing_cmd) + diagnosis["fix_commands"] = [ + "sudo apt-get update", + f"sudo apt-get install -y {pkg}" + ] + diagnosis["extracted_info"]["missing_command"] = missing_cmd + diagnosis["extracted_info"]["suggested_package"] = pkg + + # Service management + elif strategy == "start_service" or strategy == "check_service": + service = extracted.get("service") + if service: + diagnosis["fix_commands"] = [ + f"sudo systemctl start {service}", + f"sudo systemctl status {service}" + ] + + elif strategy == "check_service_logs": + service = extracted.get("service") + if service: + diagnosis["fix_commands"] = [ + f"sudo journalctl -u {service} -n 50 --no-pager", + f"sudo systemctl status {service}" + ] + + elif strategy == "unmask_service": + service = extracted.get("service") + if service: + diagnosis["fix_commands"] = [ + f"sudo systemctl unmask {service}", + f"sudo systemctl start {service}" + ] + + # Config file fixes + elif strategy in ["fix_nginx_config", "fix_nginx_permissions"]: + config_file = extracted.get("config_file") + line_num = extracted.get("line_num") + if config_file: + diagnosis["fix_commands"] = [ + f"sudo nginx -t 2>&1", + f"# Check config at: {config_file}" + (f":{line_num}" if line_num else ""), + ] + else: + diagnosis["fix_commands"] = [ + "sudo nginx -t 2>&1", + "# Check /etc/nginx/nginx.conf and sites-enabled/*", + ] + + elif strategy == "fix_apache_config": + config_file = extracted.get("config_file") + diagnosis["fix_commands"] = [ + "sudo apache2ctl configtest", + "sudo apache2ctl -S", # Show virtual hosts + ] + if config_file: + diagnosis["fix_commands"].append(f"# Check config at: {config_file}") + + elif strategy in ["fix_config_syntax", "fix_config_line"]: + config_file = extracted.get("config_file") + line_num = extracted.get("line_num") + if config_file and line_num: + diagnosis["fix_commands"] = [ + f"sudo head -n {line_num + 5} {config_file} | tail -n 10", + f"# Edit: sudo nano +{line_num} {config_file}", + ] + elif config_file: + diagnosis["fix_commands"] = [ + f"sudo cat {config_file}", + f"# Edit: sudo nano {config_file}", + ] + + elif strategy == "fix_mysql_config": + diagnosis["fix_commands"] = [ + "sudo mysql --help --verbose 2>&1 | grep -A 1 'Default options'", + "# Edit: sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf", + ] + + elif strategy == "fix_postgres_config": + diagnosis["fix_commands"] = [ + "sudo -u postgres psql -c 'SHOW config_file;'", + "# Edit: sudo nano /etc/postgresql/*/main/postgresql.conf", + ] + + # Package manager + elif strategy == "clear_lock": + diagnosis["fix_commands"] = [ + "sudo rm -f /var/lib/dpkg/lock-frontend", + "sudo rm -f /var/lib/dpkg/lock", + "sudo rm -f /var/cache/apt/archives/lock", + "sudo dpkg --configure -a" + ] + + elif strategy == "update_repos": + pkg = extracted.get("package") + diagnosis["fix_commands"] = ["sudo apt-get update"] + if pkg: + diagnosis["fix_commands"].append(f"apt-cache search {pkg}") + + elif strategy == "fix_dependencies": + diagnosis["fix_commands"] = [ + "sudo apt-get install -f", + "sudo dpkg --configure -a", + "sudo apt-get update", + "sudo apt-get upgrade" + ] + + elif strategy == "fix_broken": + diagnosis["fix_commands"] = [ + "sudo apt-get install -f", + "sudo dpkg --configure -a", + "sudo apt-get clean", + "sudo apt-get update" + ] + + elif strategy == "clean_apt": + diagnosis["fix_commands"] = [ + "sudo apt-get clean", + "sudo rm -rf /var/lib/apt/lists/*", + "sudo apt-get update" + ] + + elif strategy == "fix_gpg": + diagnosis["fix_commands"] = [ + "sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com", + "sudo apt-get update" + ] + + # Docker strategies + elif strategy == "remove_or_rename_container": + container_name = self._extract_container_name(stderr) + if container_name: + diagnosis["fix_commands"] = [ + f"docker rm -f {container_name}", + "# Or rename: docker rename {container_name} {container_name}_old" + ] + diagnosis["suggestion"] = f"Container '{container_name}' already exists. Removing it and retrying." + else: + diagnosis["fix_commands"] = [ + "docker ps -a", + "# Then: docker rm -f " + ] + + elif strategy == "stop_or_use_existing": + container_name = self._extract_container_name(stderr) + diagnosis["fix_commands"] = [ + f"docker stop {container_name}" if container_name else "docker stop ", + "# Or connect to existing: docker exec -it /bin/sh" + ] + + elif strategy == "start_container": + container_name = self._extract_container_name(stderr) + diagnosis["fix_commands"] = [ + f"docker start {container_name}" if container_name else "docker start " + ] + + elif strategy == "pull_image": + image_name = self._extract_image_name(stderr, cmd) + diagnosis["fix_commands"] = [ + f"docker pull {image_name}" if image_name else "docker pull " + ] + + elif strategy == "free_port_or_use_different": + port = self._extract_port(stderr) + if port: + diagnosis["fix_commands"] = [ + f"sudo lsof -i :{port}", + f"# Kill process using port: sudo kill $(sudo lsof -t -i:{port})", + f"# Or use different port: -p {int(port)+1}:{port}" + ] + else: + diagnosis["fix_commands"] = ["docker ps", "# Check which ports are in use"] + + elif strategy == "start_docker_daemon": + diagnosis["fix_commands"] = [ + "sudo systemctl start docker", + "sudo systemctl status docker" + ] + + elif strategy == "create_volume": + volume_name = extracted.get("volume") + diagnosis["fix_commands"] = [ + f"docker volume create {volume_name}" if volume_name else "docker volume create " + ] + + elif strategy == "create_network": + network_name = extracted.get("network") + diagnosis["fix_commands"] = [ + f"docker network create {network_name}" if network_name else "docker network create " + ] + + elif strategy == "check_container_name": + diagnosis["fix_commands"] = [ + "docker ps -a", + "# Check container names and use correct one" + ] + + # Timeout strategies + elif strategy == "retry_with_longer_timeout": + # Check if this is an interactive command that needs TTY + interactive_patterns = ["docker exec -it", "docker run -it", "-ti ", "ollama run", "ollama chat"] + is_interactive = any(p in cmd.lower() for p in interactive_patterns) + + if is_interactive: + diagnosis["fix_commands"] = [ + "# This is an INTERACTIVE command that requires a terminal (TTY)", + "# Run it manually in a separate terminal window:", + f"# {cmd}", + ] + diagnosis["description"] = "Interactive command cannot run in background" + diagnosis["suggestion"] = "This command needs interactive input. Please run it in a separate terminal." + else: + diagnosis["fix_commands"] = [ + "# This command timed out - it may still be running or need more time", + "# For docker pull: The image may be very large, try again with better network", + "# Check if the operation completed in background", + ] + diagnosis["suggestion"] = "The operation timed out. This often happens with large downloads. You can retry manually." + diagnosis["can_auto_fix"] = False # Let user decide what to do + + # Network strategies + elif strategy == "check_network": + diagnosis["fix_commands"] = [ + "ping -c 2 8.8.8.8", + "ip route", + "cat /etc/resolv.conf" + ] + + elif strategy == "check_dns": + diagnosis["fix_commands"] = [ + "cat /etc/resolv.conf", + "systemd-resolve --status", + "sudo systemctl restart systemd-resolved" + ] + + elif strategy == "check_service": + port = extracted.get("port") + if port: + diagnosis["fix_commands"] = [ + f"sudo ss -tlnp sport = :{port}", + f"sudo lsof -i :{port}" + ] + + elif strategy == "find_port_user": + port = extracted.get("port") + if port: + diagnosis["fix_commands"] = [ + f"sudo lsof -i :{port}", + f"sudo ss -tlnp sport = :{port}", + f"# Kill process: sudo kill " + ] + + elif strategy == "check_firewall": + diagnosis["fix_commands"] = [ + "sudo ufw status", + "sudo iptables -L -n" + ] + + # Disk/Memory strategies + elif strategy == "free_disk": + diagnosis["fix_commands"] = [ + "df -h", + "sudo apt-get clean", + "sudo apt-get autoremove -y", + "sudo journalctl --vacuum-size=100M", + "du -sh /var/log/*" + ] + + elif strategy == "free_memory": + diagnosis["fix_commands"] = [ + "free -h", + "sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches", + "top -b -n 1 | head -20" + ] + + elif strategy == "increase_ulimit": + diagnosis["fix_commands"] = [ + "ulimit -a", + "# Add to /etc/security/limits.conf:", + "# * soft nofile 65535", + "# * hard nofile 65535" + ] + + # Filesystem strategies + elif strategy == "remount_rw": + if path: + mount_point = self._find_mount_point(path) + if mount_point: + diagnosis["fix_commands"] = [f"sudo mount -o remount,rw {mount_point}"] + + elif strategy == "create_mountpoint": + if path: + diagnosis["fix_commands"] = [f"sudo mkdir -p {path}"] + + elif strategy == "mount_fs": + diagnosis["fix_commands"] = ["mount", "cat /etc/fstab"] + + # User strategies + elif strategy == "create_user": + # Extract username from error if possible + match = re.search(r"user '?([a-zA-Z0-9_-]+)'?", stderr, re.IGNORECASE) + if match: + user = match.group(1) + diagnosis["fix_commands"] = [ + f"sudo useradd -m {user}", + f"sudo passwd {user}" + ] + + elif strategy == "create_group": + match = re.search(r"group '?([a-zA-Z0-9_-]+)'?", stderr, re.IGNORECASE) + if match: + group = match.group(1) + diagnosis["fix_commands"] = [f"sudo groupadd {group}"] + + # Build strategies + elif strategy == "install_lib": + lib_match = re.search(r"library.*?([a-zA-Z0-9_-]+)", stderr, re.IGNORECASE) + if lib_match: + lib = lib_match.group(1) + diagnosis["fix_commands"] = [ + f"apt-cache search {lib}", + f"# Install with: sudo apt-get install lib{lib}-dev" + ] + + elif strategy == "install_dev": + header_match = re.search(r"([a-zA-Z0-9_/]+\.h)", stderr) + if header_match: + header = header_match.group(1) + diagnosis["fix_commands"] = [ + f"apt-file search {header}", + "# Install the -dev package that provides this header" + ] + + elif strategy == "fix_ldpath": + diagnosis["fix_commands"] = [ + "sudo ldconfig", + "echo $LD_LIBRARY_PATH", + "cat /etc/ld.so.conf.d/*.conf" + ] + + # Wait/Retry strategies + elif strategy == "wait_retry": + diagnosis["fix_commands"] = [ + "sleep 2", + f"# Then retry: {cmd}" + ] + + # Script strategies + elif strategy == "fix_shebang": + if path: + diagnosis["fix_commands"] = [ + f"head -1 {path}", + "# Fix shebang line to point to correct interpreter", + "# e.g., #!/usr/bin/env python3" + ] + + # Environment strategies + elif strategy == "set_variable": + var_match = re.search(r"([A-Z_]+).*not set", stderr, re.IGNORECASE) + if var_match: + var = var_match.group(1) + diagnosis["fix_commands"] = [ + f"export {var}=", + f"# Add to ~/.bashrc: export {var}=" + ] + + elif strategy == "set_path": + diagnosis["fix_commands"] = [ + "echo $PATH", + "export PATH=$PATH:/usr/local/bin", + "# Add to ~/.bashrc" + ] + + elif strategy == "set_ldpath": + diagnosis["fix_commands"] = [ + "echo $LD_LIBRARY_PATH", + "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH", + "sudo ldconfig" + ] + + # Backup/Overwrite strategy + elif strategy == "backup_overwrite": + if path: + diagnosis["fix_commands"] = [ + f"sudo mv {path} {path}.backup", + f"# Then retry: {cmd}" + ] + + # Symlink strategy + elif strategy == "fix_symlink": + if path: + diagnosis["fix_commands"] = [ + f"ls -la {path}", + f"readlink -f {path}", + f"# Remove broken symlink: sudo rm {path}" + ] + + # Directory not empty + elif strategy == "rm_recursive": + if path: + diagnosis["fix_commands"] = [ + f"ls -la {path}", + f"# Remove recursively (CAUTION): sudo rm -rf {path}" + ] + + # Copy instead of link + elif strategy == "copy_instead": + diagnosis["fix_commands"] = [ + "# Use cp instead of ln/mv for cross-device operations", + f"# cp -a " + ] + + def _find_mount_point(self, path: str) -> str | None: + """Find the mount point for a given path.""" + try: + path = os.path.abspath(path) + while path != "/": + if os.path.ismount(path): + return path + path = os.path.dirname(path) + return "/" + except: + return None + + +# ============================================================================ +# Login Handler Class +# ============================================================================ + +class LoginHandler: + """Handles interactive login/credential prompts for various services.""" + + CREDENTIALS_FILE = os.path.expanduser("~/.cortex/credentials.json") + + def __init__(self): + self.cached_credentials: dict[str, dict] = {} + self._ensure_credentials_dir() + self._load_saved_credentials() + + def _ensure_credentials_dir(self) -> None: + """Ensure the credentials directory exists with proper permissions.""" + cred_dir = os.path.dirname(self.CREDENTIALS_FILE) + if not os.path.exists(cred_dir): + os.makedirs(cred_dir, mode=0o700, exist_ok=True) + + def _encode_credential(self, value: str) -> str: + """Encode a credential value (basic obfuscation, not encryption).""" + import base64 + return base64.b64encode(value.encode()).decode() + + def _decode_credential(self, encoded: str) -> str: + """Decode a credential value.""" + import base64 + try: + return base64.b64decode(encoded.encode()).decode() + except Exception: + return "" + + def _load_saved_credentials(self) -> None: + """Load saved credentials from file.""" + import json + + if not os.path.exists(self.CREDENTIALS_FILE): + return + + try: + with open(self.CREDENTIALS_FILE, 'r') as f: + saved = json.load(f) + + # Decode all saved credentials + for service, creds in saved.items(): + decoded = {} + for field, value in creds.items(): + if field.startswith("_"): # metadata fields + decoded[field] = value + else: + decoded[field] = self._decode_credential(value) + self.cached_credentials[service] = decoded + + except (json.JSONDecodeError, IOError) as e: + console.print(f"[dim]Note: Could not load saved credentials: {e}[/dim]") + + def _save_credentials(self, service: str, credentials: dict[str, str]) -> None: + """Save credentials to file.""" + import json + from datetime import datetime + + # Load existing credentials + all_creds = {} + if os.path.exists(self.CREDENTIALS_FILE): + try: + with open(self.CREDENTIALS_FILE, 'r') as f: + all_creds = json.load(f) + except (json.JSONDecodeError, IOError): + pass + + # Encode new credentials + encoded = {} + for field, value in credentials.items(): + if value: # Only save non-empty values + encoded[field] = self._encode_credential(value) + + # Add metadata + encoded["_saved_at"] = datetime.now().isoformat() + + all_creds[service] = encoded + + # Save to file with restricted permissions + try: + with open(self.CREDENTIALS_FILE, 'w') as f: + json.dump(all_creds, f, indent=2) + os.chmod(self.CREDENTIALS_FILE, 0o600) # Read/write only for owner + console.print(f"[green]โœ“ Credentials saved to {self.CREDENTIALS_FILE}[/green]") + except IOError as e: + console.print(f"[yellow]Warning: Could not save credentials: {e}[/yellow]") + + def _delete_saved_credentials(self, service: str) -> None: + """Delete saved credentials for a service.""" + import json + + if not os.path.exists(self.CREDENTIALS_FILE): + return + + try: + with open(self.CREDENTIALS_FILE, 'r') as f: + all_creds = json.load(f) + + if service in all_creds: + del all_creds[service] + + with open(self.CREDENTIALS_FILE, 'w') as f: + json.dump(all_creds, f, indent=2) + + console.print(f"[dim]Removed saved credentials for {service}[/dim]") + except (json.JSONDecodeError, IOError): + pass + + def _has_saved_credentials(self, service: str) -> bool: + """Check if we have saved credentials for a service.""" + return service in self.cached_credentials and bool(self.cached_credentials[service]) + + def _ask_use_saved(self, service: str, requirement: LoginRequirement) -> bool: + """Ask user if they want to use saved credentials.""" + saved = self.cached_credentials.get(service, {}) + + # Show what we have saved (without showing secrets) + saved_fields = [] + for field in requirement.required_fields: + if field in saved and saved[field]: + if requirement.field_secret.get(field, False): + saved_fields.append(f"{field}=****") + else: + value = saved[field] + # Truncate long values + if len(value) > 20: + value = value[:17] + "..." + saved_fields.append(f"{field}={value}") + + if not saved_fields: + return False + + console.print() + console.print(f"[cyan]๐Ÿ“ Found saved credentials for {requirement.display_name}:[/cyan]") + console.print(f"[dim] {', '.join(saved_fields)}[/dim]") + + if "_saved_at" in saved: + console.print(f"[dim] Saved: {saved['_saved_at'][:19]}[/dim]") + + console.print() + try: + response = input("Use saved credentials? (y/n/delete): ").strip().lower() + except (EOFError, KeyboardInterrupt): + return False + + if response in ["d", "delete", "del", "remove"]: + self._delete_saved_credentials(service) + if service in self.cached_credentials: + del self.cached_credentials[service] + return False + + return response in ["y", "yes", ""] + + def _ask_save_credentials(self, service: str, credentials: dict[str, str]) -> None: + """Ask user if they want to save credentials for next time.""" + console.print() + console.print(f"[cyan]๐Ÿ’พ Save these credentials for next time?[/cyan]") + console.print(f"[dim] Credentials will be stored in {self.CREDENTIALS_FILE}[/dim]") + console.print(f"[dim] (encoded, readable only by you)[/dim]") + + try: + response = input("Save credentials? (y/n): ").strip().lower() + except (EOFError, KeyboardInterrupt): + return + + if response in ["y", "yes"]: + self._save_credentials(service, credentials) + # Also update cache + self.cached_credentials[service] = credentials.copy() + + def detect_login_requirement(self, cmd: str, stderr: str) -> LoginRequirement | None: + """Detect which service needs login based on command and error.""" + cmd_lower = cmd.lower() + stderr_lower = stderr.lower() + + # Check for specific registries in docker commands + if "docker" in cmd_lower: + if "ghcr.io" in cmd_lower or "ghcr.io" in stderr_lower: + return LOGIN_REQUIREMENTS.get("ghcr") + if "gcr.io" in cmd_lower or "gcr.io" in stderr_lower: + return LOGIN_REQUIREMENTS.get("gcloud") + return LOGIN_REQUIREMENTS.get("docker") + + # Check other services + for service, req in LOGIN_REQUIREMENTS.items(): + if re.search(req.command_pattern, cmd, re.IGNORECASE): + return req + + return None + + def check_env_credentials(self, requirement: LoginRequirement) -> dict[str, str]: + """Check if credentials are available in environment variables.""" + found = {} + for field, env_var in requirement.env_vars.items(): + value = os.environ.get(env_var) + if value: + found[field] = value + return found + + def prompt_for_credentials( + self, + requirement: LoginRequirement, + pre_filled: dict[str, str] | None = None + ) -> dict[str, str] | None: + """Prompt user for required credentials.""" + import getpass + + console.print() + console.print(f"[bold cyan]๐Ÿ” {requirement.display_name} Authentication Required[/bold cyan]") + console.print() + + if requirement.signup_url: + console.print(f"[dim]Don't have an account? Sign up at: {requirement.signup_url}[/dim]") + if requirement.docs_url: + console.print(f"[dim]Documentation: {requirement.docs_url}[/dim]") + console.print() + + # Check for existing env vars + env_creds = self.check_env_credentials(requirement) + if env_creds: + console.print(f"[green]Found credentials in environment: {', '.join(env_creds.keys())}[/green]") + + credentials = pre_filled.copy() if pre_filled else {} + credentials.update(env_creds) + + try: + for field in requirement.required_fields: + if field in credentials and credentials[field]: + console.print(f"[dim]{requirement.field_prompts[field]}: (using existing)[/dim]") + continue + + prompt_text = requirement.field_prompts.get(field, f"Enter {field}") + is_secret = requirement.field_secret.get(field, False) + + # Handle special defaults + default_value = "" + if field == "registry": + default_value = "docker.io" + elif field == "region": + default_value = "us-east-1" + elif field == "kubeconfig": + default_value = os.path.expanduser("~/.kube/config") + + if default_value: + prompt_text = f"{prompt_text} [{default_value}]" + + console.print(f"[bold]{prompt_text}:[/bold] ", end="") + + if is_secret: + value = getpass.getpass("") + else: + try: + value = input() + except (EOFError, KeyboardInterrupt): + console.print("\n[yellow]Authentication cancelled.[/yellow]") + return None + + # Use default if empty + if not value and default_value: + value = default_value + console.print(f"[dim]Using default: {default_value}[/dim]") + + if not value and field != "registry": # registry can be empty for Docker Hub + console.print(f"[red]Error: {field} is required.[/red]") + return None + + credentials[field] = value + + return credentials + + except (EOFError, KeyboardInterrupt): + console.print("\n[yellow]Authentication cancelled.[/yellow]") + return None + + def execute_login( + self, + requirement: LoginRequirement, + credentials: dict[str, str] + ) -> tuple[bool, str, str]: + """Execute the login command with provided credentials.""" + + # Build the login command + if not requirement.login_command_template: + return False, "", "No login command template defined" + + # Handle special cases + if requirement.service == "docker" and credentials.get("registry") in ["", "docker.io"]: + credentials["registry"] = "" # Docker Hub doesn't need registry in command + + # Format the command + try: + login_cmd = requirement.login_command_template.format(**credentials) + except KeyError as e: + return False, "", f"Missing credential: {e}" + + # For Docker, use stdin for password to avoid it showing in ps + if requirement.service in ["docker", "ghcr"]: + password = credentials.get("password") or credentials.get("token", "") + username = credentials.get("username", "") + registry = credentials.get("registry", "") + + if requirement.service == "ghcr": + registry = "ghcr.io" + + # Build safe command + if registry: + cmd_parts = ["docker", "login", registry, "-u", username, "--password-stdin"] + else: + cmd_parts = ["docker", "login", "-u", username, "--password-stdin"] + + console.print(f"[dim]Executing: docker login {registry or 'docker.io'} -u {username}[/dim]") + + try: + process = subprocess.Popen( + cmd_parts, + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + text=True, + ) + stdout, stderr = process.communicate(input=password, timeout=60) + return process.returncode == 0, stdout.strip(), stderr.strip() + except subprocess.TimeoutExpired: + process.kill() + return False, "", "Login timed out" + except Exception as e: + return False, "", str(e) + + # For other services, execute directly + console.print(f"[dim]Executing login...[/dim]") + try: + result = subprocess.run( + login_cmd, + shell=True, + capture_output=True, + text=True, + timeout=120, + ) + return result.returncode == 0, result.stdout.strip(), result.stderr.strip() + except subprocess.TimeoutExpired: + return False, "", "Login timed out" + except Exception as e: + return False, "", str(e) + + def handle_login(self, cmd: str, stderr: str) -> tuple[bool, str]: + """ + Main entry point: detect login requirement, prompt, and execute. + + Returns: + (success, message) + """ + requirement = self.detect_login_requirement(cmd, stderr) + + if not requirement: + return False, "Could not determine which service needs authentication" + + used_saved = False + credentials = None + + # Check for saved credentials first + if self._has_saved_credentials(requirement.service): + if self._ask_use_saved(requirement.service, requirement): + # Use saved credentials + credentials = self.cached_credentials.get(requirement.service, {}).copy() + # Remove metadata fields + credentials = {k: v for k, v in credentials.items() if not k.startswith("_")} + used_saved = True + + console.print(f"[cyan]Using saved credentials...[/cyan]") + success, stdout, login_stderr = self.execute_login(requirement, credentials) + + if success: + console.print(f"[green]โœ“ Successfully logged in to {requirement.display_name} using saved credentials[/green]") + return True, f"Logged in to {requirement.display_name} using saved credentials" + else: + console.print(f"[yellow]Saved credentials didn't work: {login_stderr[:100] if login_stderr else 'Unknown error'}[/yellow]") + console.print(f"[dim]Let's enter new credentials...[/dim]") + credentials = None + used_saved = False + + # Prompt for new credentials if we don't have valid ones + if not credentials: + # Pre-fill with any partial saved credentials (like username) + pre_filled = {} + if requirement.service in self.cached_credentials: + saved = self.cached_credentials[requirement.service] + for field in requirement.required_fields: + if field in saved and saved[field] and not requirement.field_secret.get(field, False): + pre_filled[field] = saved[field] + + credentials = self.prompt_for_credentials(requirement, pre_filled if pre_filled else None) + + if not credentials: + return False, "Authentication cancelled by user" + + # Execute login + success, stdout, login_stderr = self.execute_login(requirement, credentials) + + if success: + console.print(f"[green]โœ“ Successfully logged in to {requirement.display_name}[/green]") + + # Ask to save credentials if they weren't from saved file + if not used_saved: + self._ask_save_credentials(requirement.service, credentials) + + # Update session cache + self.cached_credentials[requirement.service] = credentials.copy() + + return True, f"Successfully authenticated with {requirement.display_name}" + else: + error_msg = login_stderr or "Login failed" + console.print(f"[red]โœ— Login failed: {error_msg}[/red]") + + # Offer to retry + console.print() + try: + retry = input("Would you like to try again? (y/n): ").strip().lower() + except (EOFError, KeyboardInterrupt): + retry = "n" + + if retry in ["y", "yes"]: + # Clear cached credentials for this service since they failed + if requirement.service in self.cached_credentials: + del self.cached_credentials[requirement.service] + return self.handle_login(cmd, stderr) # Recursive retry + + return False, f"Login failed: {error_msg}" + + +# Auto-Fixer Class +# ============================================================================ + +class AutoFixer: + """Auto-fixes errors based on diagnosis.""" + + def __init__(self, llm_callback: Callable[[str, dict], dict] | None = None): + self.diagnoser = ErrorDiagnoser() + self.llm_callback = llm_callback + # Track all attempted fixes across multiple calls to avoid repeating + self._attempted_fixes: dict[str, set[str]] = {} # cmd -> set of fix commands tried + self._attempted_strategies: dict[str, set[str]] = {} # cmd -> set of strategies tried + + def _get_fix_key(self, cmd: str) -> str: + """Generate a key for tracking fixes for a command.""" + # Normalize the command (strip sudo, whitespace) + normalized = cmd.strip() + if normalized.startswith("sudo "): + normalized = normalized[5:].strip() + return normalized + + def _is_fix_attempted(self, original_cmd: str, fix_cmd: str) -> bool: + """Check if a fix command has already been attempted for this command.""" + key = self._get_fix_key(original_cmd) + fix_normalized = fix_cmd.strip() + + if key not in self._attempted_fixes: + return False + + return fix_normalized in self._attempted_fixes[key] + + def _mark_fix_attempted(self, original_cmd: str, fix_cmd: str) -> None: + """Mark a fix command as attempted.""" + key = self._get_fix_key(original_cmd) + + if key not in self._attempted_fixes: + self._attempted_fixes[key] = set() + + self._attempted_fixes[key].add(fix_cmd.strip()) + + def _is_strategy_attempted(self, original_cmd: str, strategy: str, error_type: str) -> bool: + """Check if a strategy has been attempted for this command/error combination.""" + key = f"{self._get_fix_key(original_cmd)}:{error_type}" + + if key not in self._attempted_strategies: + return False + + return strategy in self._attempted_strategies[key] + + def _mark_strategy_attempted(self, original_cmd: str, strategy: str, error_type: str) -> None: + """Mark a strategy as attempted for this command/error combination.""" + key = f"{self._get_fix_key(original_cmd)}:{error_type}" + + if key not in self._attempted_strategies: + self._attempted_strategies[key] = set() + + self._attempted_strategies[key].add(strategy) + + def reset_attempts(self, cmd: str | None = None) -> None: + """Reset attempted fixes tracking. If cmd is None, reset all.""" + if cmd is None: + self._attempted_fixes.clear() + self._attempted_strategies.clear() + else: + key = self._get_fix_key(cmd) + if key in self._attempted_fixes: + del self._attempted_fixes[key] + # Clear all strategies for this command + to_delete = [k for k in self._attempted_strategies if k.startswith(key)] + for k in to_delete: + del self._attempted_strategies[k] + + def _get_llm_fix(self, cmd: str, stderr: str, diagnosis: dict) -> dict | None: + """Use LLM to diagnose error and suggest fix commands. + + This is called when pattern matching fails to identify the error. + """ + if not self.llm_callback: + return None + + context = { + "error_command": cmd, + "error_output": stderr[:1000], # Truncate for LLM context + "current_diagnosis": diagnosis, + } + + # Create a targeted prompt for error diagnosis + prompt = f"""Analyze this Linux command error and provide fix commands. + +FAILED COMMAND: {cmd} + +ERROR OUTPUT: +{stderr[:800]} + +Provide a JSON response with: +1. "fix_commands": list of shell commands to fix this error (in order) +2. "reasoning": brief explanation of the error and fix + +Focus on common issues: +- Docker: container already exists (docker rm -f ), port conflicts, daemon not running +- Permissions: use sudo, create directories +- Services: systemctl start/restart +- Files: mkdir -p, touch, chown + +Example response: +{{"fix_commands": ["docker rm -f ollama", "docker run ..."], "reasoning": "Container 'ollama' already exists, removing it first"}}""" + + try: + response = self.llm_callback(prompt, context) + + if response and response.get("response_type") != "error": + # Check if the response contains fix commands directly + if response.get("fix_commands"): + return { + "fix_commands": response["fix_commands"], + "reasoning": response.get("reasoning", "AI-suggested fix") + } + + # Check if it's a do_commands response + if response.get("do_commands"): + return { + "fix_commands": [cmd["command"] for cmd in response["do_commands"]], + "reasoning": response.get("reasoning", "AI-suggested fix") + } + + # Try to parse answer as fix suggestion + if response.get("answer"): + # Extract commands from natural language response + answer = response["answer"] + commands = [] + for line in answer.split('\n'): + line = line.strip() + if line.startswith('$') or line.startswith('sudo ') or line.startswith('docker '): + commands.append(line.lstrip('$ ')) + if commands: + return { + "fix_commands": commands, + "reasoning": "Extracted from AI response" + } + + return None + + except Exception as e: + console.print(f"[dim] LLM fix generation failed: {e}[/dim]") + return None + + def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 120) -> tuple[bool, str, str]: + """Execute a single command.""" + try: + if needs_sudo and not cmd.strip().startswith("sudo"): + cmd = f"sudo {cmd}" + + # Handle comments + if cmd.strip().startswith("#"): + return True, "", "" + + result = subprocess.run( + cmd, + shell=True, + capture_output=True, + text=True, + timeout=timeout, + ) + return result.returncode == 0, result.stdout.strip(), result.stderr.strip() + except subprocess.TimeoutExpired: + return False, "", f"Command timed out after {timeout} seconds" + except Exception as e: + return False, "", str(e) + + def auto_fix_error( + self, + cmd: str, + stderr: str, + diagnosis: dict[str, Any], + max_attempts: int = 5, + ) -> tuple[bool, str, list[str]]: + """ + General-purpose auto-fix system with retry logic. + + Tracks attempted fixes to avoid repeating the same fixes. + + Returns: + Tuple of (fixed, message, commands_executed) + """ + all_commands_executed = [] + current_stderr = stderr + current_diagnosis = diagnosis + attempt = 0 + skipped_attempts = 0 + max_skips = 3 # Max attempts to skip before giving up + + while attempt < max_attempts and skipped_attempts < max_skips: + attempt += 1 + error_type = current_diagnosis.get("error_type", "unknown") + strategy = current_diagnosis.get("fix_strategy", "") + category = current_diagnosis.get("category", "unknown") + + # Check if this strategy was already attempted for this error + if self._is_strategy_attempted(cmd, strategy, error_type): + console.print(f"[dim] Skipping already-tried strategy: {strategy} for {error_type}[/dim]") + skipped_attempts += 1 + + # Try to get a different diagnosis by re-analyzing + if current_stderr: + # Force a different approach by marking current strategy as exhausted + current_diagnosis["fix_strategy"] = "" + current_diagnosis["can_auto_fix"] = False + continue + + # Mark this strategy as attempted + self._mark_strategy_attempted(cmd, strategy, error_type) + + # Check fix commands that would be generated + fix_commands = current_diagnosis.get("fix_commands", []) + + # Filter out already-attempted fix commands + new_fix_commands = [] + for fix_cmd in fix_commands: + if fix_cmd.startswith("#"): # Comments are always allowed + new_fix_commands.append(fix_cmd) + elif self._is_fix_attempted(cmd, fix_cmd): + console.print(f"[dim] Skipping already-executed: {fix_cmd[:50]}...[/dim]") + else: + new_fix_commands.append(fix_cmd) + + # If all fix commands were already tried, skip this attempt + if fix_commands and not new_fix_commands: + console.print(f"[dim] All fix commands already tried for {error_type}[/dim]") + skipped_attempts += 1 + continue + + # Update diagnosis with filtered commands + current_diagnosis["fix_commands"] = new_fix_commands + + # Reset skip counter since we found something new to try + skipped_attempts = 0 + + severity = current_diagnosis.get("severity", "error") + if severity == "critical": + console.print(f"[red]โš ๏ธ Critical error: {error_type}[/red]") + + console.print(f"[cyan]๐Ÿ”ง Auto-fix attempt {attempt}/{max_attempts}: [{category}] {error_type}[/cyan]") + + fixed, message, commands = self.apply_single_fix(cmd, current_stderr, current_diagnosis) + + # Mark all executed commands as attempted + for exec_cmd in commands: + self._mark_fix_attempted(cmd, exec_cmd) + all_commands_executed.extend(commands) + + if fixed: + # Check if it's just a "use sudo" suggestion + if message == "Will retry with sudo": + sudo_cmd = f"sudo {cmd}" if not cmd.startswith("sudo") else cmd + + # Check if we already tried sudo + if self._is_fix_attempted(cmd, sudo_cmd): + console.print(f"[dim] Already tried sudo, skipping...[/dim]") + skipped_attempts += 1 + continue + + self._mark_fix_attempted(cmd, sudo_cmd) + success, stdout, new_stderr = self._execute_command(sudo_cmd) + all_commands_executed.append(sudo_cmd) + + if success: + console.print(f"[green] โœ“ Fixed with sudo[/green]") + return True, f"Fixed with sudo after {attempt} attempt(s)", all_commands_executed + else: + current_stderr = new_stderr + current_diagnosis = self.diagnoser.diagnose_error(cmd, new_stderr) + continue + + # Verify the original command now works + console.print(f"[cyan] โœ“ Fix applied: {message}[/cyan]") + console.print(f"[cyan] Verifying original command...[/cyan]") + + verify_cmd = f"sudo {cmd}" if not cmd.startswith("sudo") else cmd + success, stdout, new_stderr = self._execute_command(verify_cmd) + all_commands_executed.append(verify_cmd) + + if success: + console.print(f"[green] โœ“ Verified! Command now succeeds[/green]") + return True, f"Fixed after {attempt} attempt(s): {message}", all_commands_executed + else: + new_diagnosis = self.diagnoser.diagnose_error(cmd, new_stderr) + + if new_diagnosis["error_type"] == error_type: + console.print(f"[yellow] Same error persists, trying different approach...[/yellow]") + else: + console.print(f"[yellow] New error: {new_diagnosis['error_type']}[/yellow]") + + current_stderr = new_stderr + current_diagnosis = new_diagnosis + else: + console.print(f"[yellow] Fix attempt failed: {message}[/yellow]") + + # Try with sudo as fallback + sudo_fallback = f"sudo {cmd}" + if not cmd.strip().startswith("sudo") and not self._is_fix_attempted(cmd, sudo_fallback): + self._mark_fix_attempted(cmd, sudo_fallback) + success, _, new_stderr = self._execute_command(sudo_fallback) + all_commands_executed.append(sudo_fallback) + + if success: + return True, f"Fixed with sudo fallback", all_commands_executed + + current_stderr = new_stderr + current_diagnosis = self.diagnoser.diagnose_error(cmd, new_stderr) + else: + if cmd.strip().startswith("sudo"): + console.print(f"[dim] Already running with sudo, no more fallbacks[/dim]") + else: + console.print(f"[dim] Sudo fallback already tried[/dim]") + break + + # Final summary of what was attempted + unique_attempts = len(self._attempted_fixes.get(self._get_fix_key(cmd), set())) + if unique_attempts > 0: + console.print(f"[dim] Total unique fixes attempted: {unique_attempts}[/dim]") + + return False, f"Could not fix after {attempt} attempts ({skipped_attempts} skipped as duplicates)", all_commands_executed + + def apply_single_fix( + self, + cmd: str, + stderr: str, + diagnosis: dict[str, Any], + ) -> tuple[bool, str, list[str]]: + """Apply a single fix attempt based on the error diagnosis.""" + error_type = diagnosis.get("error_type", "unknown") + category = diagnosis.get("category", "unknown") + strategy = diagnosis.get("fix_strategy", "") + fix_commands = diagnosis.get("fix_commands", []) + extracted = diagnosis.get("extracted_info", {}) + path = diagnosis.get("extracted_path") + + commands_executed = [] + + # Strategy-based fixes + + # === Use Sudo === + if strategy == "use_sudo" or error_type in ["permission_denied", "operation_not_permitted", "access_denied"]: + if not cmd.strip().startswith("sudo"): + console.print("[dim] Adding sudo...[/dim]") + return True, "Will retry with sudo", [] + + # === Create Path === + if strategy == "create_path" or error_type == "not_found": + missing_path = path or extracted.get("missing_path") + + if missing_path: + parent_dir = os.path.dirname(missing_path) + + if parent_dir and not os.path.exists(parent_dir): + console.print(f"[dim] Creating directory: {parent_dir}[/dim]") + mkdir_cmd = f"sudo mkdir -p {parent_dir}" + success, _, mkdir_err = self._execute_command(mkdir_cmd) + commands_executed.append(mkdir_cmd) + + if success: + return True, f"Created directory {parent_dir}", commands_executed + else: + return False, f"Failed to create directory: {mkdir_err}", commands_executed + + # === Install Package === + if strategy == "install_package" or error_type == "command_not_found": + missing_cmd = extracted.get("missing_command") or self.diagnoser.extract_command_from_error(stderr) + if not missing_cmd: + missing_cmd = cmd.split()[0] if cmd.split() else "" + + suggested_pkg = UBUNTU_PACKAGE_MAP.get(missing_cmd, missing_cmd) + + if missing_cmd: + console.print(f"[dim] Installing package: {suggested_pkg}[/dim]") + + # Update repos first + update_cmd = "sudo apt-get update" + self._execute_command(update_cmd) + commands_executed.append(update_cmd) + + # Install package + install_cmd = f"sudo apt-get install -y {suggested_pkg}" + success, _, install_err = self._execute_command(install_cmd) + commands_executed.append(install_cmd) + + if success: + return True, f"Installed {suggested_pkg}", commands_executed + else: + # Try without suggested package mapping + if suggested_pkg != missing_cmd: + install_cmd2 = f"sudo apt-get install -y {missing_cmd}" + success, _, _ = self._execute_command(install_cmd2) + commands_executed.append(install_cmd2) + if success: + return True, f"Installed {missing_cmd}", commands_executed + + return False, f"Failed to install: {install_err[:100]}", commands_executed + + # === Clear Package Lock === + if strategy == "clear_lock" or error_type in ["dpkg_lock", "apt_lock", "could_not_get_lock"]: + console.print("[dim] Clearing package locks...[/dim]") + + lock_cmds = [ + "sudo rm -f /var/lib/dpkg/lock-frontend", + "sudo rm -f /var/lib/dpkg/lock", + "sudo rm -f /var/cache/apt/archives/lock", + "sudo dpkg --configure -a", + ] + + for lock_cmd in lock_cmds: + self._execute_command(lock_cmd) + commands_executed.append(lock_cmd) + + return True, "Cleared package locks", commands_executed + + # === Fix Dependencies === + if strategy in ["fix_dependencies", "fix_broken"]: + console.print("[dim] Fixing package dependencies...[/dim]") + + fix_cmds = [ + "sudo apt-get install -f -y", + "sudo dpkg --configure -a", + ] + + for fix_cmd in fix_cmds: + success, _, _ = self._execute_command(fix_cmd) + commands_executed.append(fix_cmd) + + return True, "Attempted dependency fix", commands_executed + + # === Start Service === + if strategy in ["start_service", "check_service"] or error_type in ["service_inactive", "service_not_running"]: + service = extracted.get("service") + + if service: + console.print(f"[dim] Starting service: {service}[/dim]") + start_cmd = f"sudo systemctl start {service}" + success, _, start_err = self._execute_command(start_cmd) + commands_executed.append(start_cmd) + + if success: + return True, f"Started service {service}", commands_executed + else: + # Try enable --now + enable_cmd = f"sudo systemctl enable --now {service}" + success, _, _ = self._execute_command(enable_cmd) + commands_executed.append(enable_cmd) + if success: + return True, f"Enabled and started {service}", commands_executed + return False, f"Failed to start {service}: {start_err[:100]}", commands_executed + + # === Unmask Service === + if strategy == "unmask_service" or error_type == "service_masked": + service = extracted.get("service") + + if service: + console.print(f"[dim] Unmasking service: {service}[/dim]") + unmask_cmd = f"sudo systemctl unmask {service}" + success, _, _ = self._execute_command(unmask_cmd) + commands_executed.append(unmask_cmd) + + if success: + start_cmd = f"sudo systemctl start {service}" + self._execute_command(start_cmd) + commands_executed.append(start_cmd) + return True, f"Unmasked and started {service}", commands_executed + + # === Free Disk Space === + if strategy == "free_disk" or error_type == "no_space": + console.print("[dim] Cleaning up disk space...[/dim]") + + cleanup_cmds = [ + "sudo apt-get clean", + "sudo apt-get autoremove -y", + "sudo journalctl --vacuum-size=100M", + ] + + for cleanup_cmd in cleanup_cmds: + self._execute_command(cleanup_cmd) + commands_executed.append(cleanup_cmd) + + return True, "Freed disk space", commands_executed + + # === Free Memory === + if strategy == "free_memory" or error_type in ["oom", "cannot_allocate", "memory_exhausted"]: + console.print("[dim] Freeing memory...[/dim]") + + mem_cmds = [ + "sudo sync", + "echo 3 | sudo tee /proc/sys/vm/drop_caches", + ] + + for mem_cmd in mem_cmds: + self._execute_command(mem_cmd) + commands_executed.append(mem_cmd) + + return True, "Freed memory caches", commands_executed + + # === Fix Config Syntax (all config error types) === + config_error_types = [ + "config_syntax_error", "nginx_config_error", "nginx_syntax_error", + "nginx_unexpected", "nginx_unknown_directive", "nginx_test_failed", + "apache_syntax_error", "apache_config_error", "config_line_error", + "mysql_config_error", "postgres_config_error", "generic_config_syntax", + "invalid_config", "config_parse_error", "syntax_error" + ] + + if error_type in config_error_types or category == "config": + config_file = extracted.get("config_file") + line_num = extracted.get("line_num") + + # Try to extract config file/line from error if not already done + if not config_file: + config_file, line_num = self.diagnoser.extract_config_file_and_line(stderr) + + if config_file and line_num: + console.print(f"[dim] Config error at {config_file}:{line_num}[/dim]") + fixed, msg = self.fix_config_syntax(config_file, line_num, stderr, cmd) + if fixed: + # Verify the fix (e.g., nginx -t) + if "nginx" in error_type or "nginx" in cmd.lower(): + verify_cmd = "sudo nginx -t" + v_success, _, v_stderr = self._execute_command(verify_cmd) + commands_executed.append(verify_cmd) + if v_success: + return True, f"{msg} - nginx config now valid", commands_executed + else: + console.print(f"[yellow] Config still has errors[/yellow]") + # Re-diagnose for next iteration + return False, f"{msg} but still has errors", commands_executed + return True, msg, commands_executed + else: + return False, msg, commands_executed + else: + # Can't find specific line, provide general guidance + if "nginx" in error_type or "nginx" in cmd.lower(): + console.print("[dim] Testing nginx config...[/dim]") + test_cmd = "sudo nginx -t 2>&1" + success, stdout, test_err = self._execute_command(test_cmd) + commands_executed.append(test_cmd) + if not success: + # Try to extract file/line from test output + cf, ln = self.diagnoser.extract_config_file_and_line(test_err) + if cf and ln: + fixed, msg = self.fix_config_syntax(cf, ln, test_err, cmd) + if fixed: + return True, msg, commands_executed + return False, "Could not identify config file/line to fix", commands_executed + + # === Network Fixes === + if category == "network": + if strategy == "check_dns" or error_type in ["dns_temp_fail", "dns_unknown", "dns_failed"]: + console.print("[dim] Restarting DNS resolver...[/dim]") + dns_cmd = "sudo systemctl restart systemd-resolved" + success, _, _ = self._execute_command(dns_cmd) + commands_executed.append(dns_cmd) + if success: + return True, "Restarted DNS resolver", commands_executed + + if strategy == "find_port_user" or error_type == "address_in_use": + port = extracted.get("port") + if port: + console.print(f"[dim] Port {port} in use, checking...[/dim]") + lsof_cmd = f"sudo lsof -i :{port}" + success, stdout, _ = self._execute_command(lsof_cmd) + commands_executed.append(lsof_cmd) + if stdout: + console.print(f"[dim] Process using port: {stdout[:100]}[/dim]") + return False, f"Port {port} is in use - kill the process first", commands_executed + + # === Remount Read-Write === + if strategy == "remount_rw" or error_type == "readonly_fs": + if path: + console.print("[dim] Remounting filesystem read-write...[/dim]") + # Find mount point + mount_point = "/" + check_path = os.path.abspath(path) if path else "/" + while check_path != "/": + if os.path.ismount(check_path): + mount_point = check_path + break + check_path = os.path.dirname(check_path) + + remount_cmd = f"sudo mount -o remount,rw {mount_point}" + success, _, remount_err = self._execute_command(remount_cmd) + commands_executed.append(remount_cmd) + if success: + return True, f"Remounted {mount_point} read-write", commands_executed + + # === Fix Symlink Loop === + if strategy == "fix_symlink" or error_type == "symlink_loop": + if path: + console.print(f"[dim] Fixing symlink: {path}[/dim]") + # Check if it's a broken symlink + if os.path.islink(path): + rm_cmd = f"sudo rm {path}" + success, _, _ = self._execute_command(rm_cmd) + commands_executed.append(rm_cmd) + if success: + return True, f"Removed broken symlink {path}", commands_executed + + # === Wait and Retry === + if strategy == "wait_retry" or error_type in ["resource_unavailable", "text_file_busy", "device_busy"]: + import time + console.print("[dim] Waiting for resource...[/dim]") + time.sleep(2) + return True, "Waited 2 seconds", commands_executed + + # === Use xargs for long argument lists === + if strategy == "use_xargs" or error_type == "arg_list_too_long": + console.print("[dim] Argument list too long - need to use xargs or loop[/dim]") + return False, "Use xargs or a loop to process files in batches", commands_executed + + # === Execute provided fix commands === + if fix_commands: + console.print("[dim] Executing fix commands...[/dim]") + for fix_cmd in fix_commands: + if fix_cmd.startswith("#"): + continue # Skip comments + success, stdout, err = self._execute_command(fix_cmd) + commands_executed.append(fix_cmd) + if not success and err: + console.print(f"[dim] Warning: {fix_cmd} failed: {err[:50]}[/dim]") + + if commands_executed: + return True, f"Executed {len(commands_executed)} fix commands", commands_executed + + # === Try LLM-based fix if available === + if self.llm_callback and error_type == "unknown": + console.print("[dim] Using AI to diagnose error...[/dim]") + llm_fix = self._get_llm_fix(cmd, stderr, diagnosis) + if llm_fix: + fix_commands = llm_fix.get("fix_commands", []) + reasoning = llm_fix.get("reasoning", "AI-suggested fix") + + if fix_commands: + console.print(f"[cyan] ๐Ÿค– AI diagnosis: {reasoning}[/cyan]") + for fix_cmd in fix_commands: + if self._is_fix_attempted(cmd, fix_cmd): + console.print(f"[dim] Skipping (already tried): {fix_cmd}[/dim]") + continue + + console.print(f"[dim] Executing: {fix_cmd}[/dim]") + self._mark_fix_attempted(cmd, fix_cmd) + + needs_sudo = fix_cmd.strip().startswith("sudo") or "docker" in fix_cmd + success, stdout, stderr = self._execute_command(fix_cmd, needs_sudo=needs_sudo) + commands_executed.append(fix_cmd) + + if success: + console.print(f"[green] โœ“ Fixed: {fix_cmd}[/green]") + return True, reasoning, commands_executed + + if commands_executed: + return True, f"Executed AI-suggested fixes", commands_executed + + # === Fallback: try with sudo === + if not cmd.strip().startswith("sudo"): + console.print("[dim] Fallback: will try with sudo...[/dim]") + return True, "Will retry with sudo", [] + + return False, f"No fix strategy for {error_type}", commands_executed + + def fix_config_syntax( + self, + config_file: str, + line_num: int, + stderr: str, + original_cmd: str, + ) -> tuple[bool, str]: + """Fix configuration file syntax errors.""" + console.print(f"[dim] Analyzing config: {config_file}:{line_num}[/dim]") + + # Read the config file + success, config_content, read_err = self._execute_command(f"sudo cat {config_file}") + if not success or not config_content: + return False, f"Could not read {config_file}: {read_err}" + + lines = config_content.split('\n') + if line_num > len(lines) or line_num < 1: + return False, f"Invalid line number {line_num}" + + problem_line = lines[line_num - 1] + console.print(f"[dim] Line {line_num}: {problem_line.strip()[:60]}...[/dim]") + + stderr_lower = stderr.lower() + + # Duplicate entry + if "duplicate" in stderr_lower: + console.print("[cyan] Commenting out duplicate entry...[/cyan]") + fix_cmd = f"sudo sed -i '{line_num}s/^/# DUPLICATE: /' {config_file}" + success, _, _ = self._execute_command(fix_cmd) + if success: + return True, f"Commented out duplicate at line {line_num}" + + # Missing semicolon (for nginx, etc.) + if "unexpected" in stderr_lower or "expecting" in stderr_lower: + stripped = problem_line.strip() + if stripped and not stripped.endswith((';', '{', '}', ':', ',', '#', ')')): + console.print("[cyan] Adding missing semicolon...[/cyan]") + escaped_line = stripped.replace('/', '\\/').replace('&', '\\&') + fix_cmd = f"sudo sed -i '{line_num}s/.*/ {escaped_line};/' {config_file}" + success, _, _ = self._execute_command(fix_cmd) + if success: + return True, f"Added semicolon at line {line_num}" + + # Unknown directive + if "unknown" in stderr_lower and ("directive" in stderr_lower or "option" in stderr_lower): + console.print("[cyan] Commenting out unknown directive...[/cyan]") + fix_cmd = f"sudo sed -i '{line_num}s/^/# UNKNOWN: /' {config_file}" + success, _, _ = self._execute_command(fix_cmd) + if success: + return True, f"Commented out unknown directive at line {line_num}" + + # Invalid value/argument + if "invalid" in stderr_lower: + console.print("[cyan] Commenting out line with invalid value...[/cyan]") + fix_cmd = f"sudo sed -i '{line_num}s/^/# INVALID: /' {config_file}" + success, _, _ = self._execute_command(fix_cmd) + if success: + return True, f"Commented out invalid line at line {line_num}" + + # Unterminated string + if "unterminated" in stderr_lower or ("string" in stderr_lower and "quote" in stderr_lower): + if problem_line.count('"') % 2 == 1: + console.print("[cyan] Adding missing double quote...[/cyan]") + fix_cmd = f"sudo sed -i '{line_num}s/$/\"/' {config_file}" + success, _, _ = self._execute_command(fix_cmd) + if success: + return True, f"Added missing quote at line {line_num}" + elif problem_line.count("'") % 2 == 1: + console.print("[cyan] Adding missing single quote...[/cyan]") + fix_cmd = f"sudo sed -i \"{line_num}s/$/'/\" {config_file}" + success, _, _ = self._execute_command(fix_cmd) + if success: + return True, f"Added missing quote at line {line_num}" + + # Fallback: comment out problematic line + console.print("[cyan] Fallback: commenting out problematic line...[/cyan]") + fix_cmd = f"sudo sed -i '{line_num}s/^/# ERROR: /' {config_file}" + success, _, _ = self._execute_command(fix_cmd) + if success: + return True, f"Commented out problematic line {line_num}" + + return False, "Could not identify a fix for this config error" + + +# ============================================================================ +# Utility Functions +# ============================================================================ + +def get_error_category(error_type: str) -> str: + """Get the category for an error type.""" + for pattern in ALL_ERROR_PATTERNS: + if pattern.error_type == error_type: + return pattern.category + return "unknown" + + +def get_severity(error_type: str) -> str: + """Get the severity for an error type.""" + for pattern in ALL_ERROR_PATTERNS: + if pattern.error_type == error_type: + return pattern.severity + return "error" + + +def is_critical_error(error_type: str) -> bool: + """Check if an error type is critical.""" + return get_severity(error_type) == "critical" diff --git a/cortex/do_runner/diagnosis_v2.py b/cortex/do_runner/diagnosis_v2.py new file mode 100644 index 000000000..9cb0bdb40 --- /dev/null +++ b/cortex/do_runner/diagnosis_v2.py @@ -0,0 +1,1857 @@ +""" +Cortex Diagnosis System v2 + +A structured error diagnosis and resolution system with the following flow: +1. Categorize error type (file, login, package, syntax, input, etc.) +2. LLM generates fix commands with variable placeholders +3. Resolve variables from query, LLM, or system_info_generator +4. Execute fix commands and log output +5. If error, push to stack and repeat +6. Test original command, if still fails, repeat + +Uses a stack-based approach for tracking command errors. +""" + +import json +import os +import re +import subprocess +import time +from dataclasses import dataclass, field +from enum import Enum +from typing import Any, Callable + +from rich.console import Console +from rich.panel import Panel +from rich.table import Table +from rich.tree import Tree + +console = Console() + + +# ============================================================================= +# ERROR CATEGORIES +# ============================================================================= + +class ErrorCategory(str, Enum): + """Broad categories of errors that can occur during command execution.""" + + # File & Directory Errors (LOCAL) + FILE_NOT_FOUND = "file_not_found" + FILE_EXISTS = "file_exists" + DIRECTORY_NOT_FOUND = "directory_not_found" + PERMISSION_DENIED_LOCAL = "permission_denied_local" # Local file/dir permission + READ_ONLY_FILESYSTEM = "read_only_filesystem" + DISK_FULL = "disk_full" + + # URL/Link Permission Errors (REMOTE) + PERMISSION_DENIED_URL = "permission_denied_url" # URL/API permission + ACCESS_DENIED_REGISTRY = "access_denied_registry" # Container registry + ACCESS_DENIED_REPO = "access_denied_repo" # Git/package repo + ACCESS_DENIED_API = "access_denied_api" # API endpoint + + # Authentication & Login Errors + LOGIN_REQUIRED = "login_required" + AUTH_FAILED = "auth_failed" + TOKEN_EXPIRED = "token_expired" + INVALID_CREDENTIALS = "invalid_credentials" + + # Legacy - for backward compatibility + PERMISSION_DENIED = "permission_denied" # Will be resolved to LOCAL or URL + + # Package & Resource Errors + PACKAGE_NOT_FOUND = "package_not_found" + IMAGE_NOT_FOUND = "image_not_found" + RESOURCE_NOT_FOUND = "resource_not_found" + DEPENDENCY_MISSING = "dependency_missing" + VERSION_CONFLICT = "version_conflict" + + # Command Errors + COMMAND_NOT_FOUND = "command_not_found" + SYNTAX_ERROR = "syntax_error" + INVALID_ARGUMENT = "invalid_argument" + MISSING_ARGUMENT = "missing_argument" + DEPRECATED_SYNTAX = "deprecated_syntax" + + # Service & Process Errors + SERVICE_NOT_RUNNING = "service_not_running" + SERVICE_FAILED = "service_failed" + PORT_IN_USE = "port_in_use" + PROCESS_KILLED = "process_killed" + TIMEOUT = "timeout" + + # Network Errors + NETWORK_UNREACHABLE = "network_unreachable" + CONNECTION_REFUSED = "connection_refused" + DNS_FAILED = "dns_failed" + SSL_ERROR = "ssl_error" + + # Configuration Errors + CONFIG_SYNTAX_ERROR = "config_syntax_error" + CONFIG_INVALID_VALUE = "config_invalid_value" + CONFIG_MISSING_KEY = "config_missing_key" + + # Resource Errors + OUT_OF_MEMORY = "out_of_memory" + CPU_LIMIT = "cpu_limit" + QUOTA_EXCEEDED = "quota_exceeded" + + # Unknown + UNKNOWN = "unknown" + + +# Error pattern definitions for each category +ERROR_PATTERNS: dict[ErrorCategory, list[tuple[str, str]]] = { + # File & Directory + ErrorCategory.FILE_NOT_FOUND: [ + (r"No such file or directory", "file"), + (r"cannot open '([^']+)'.*No such file", "file"), + (r"stat\(\): cannot stat '([^']+)'", "file"), + (r"File not found:? ([^\n]+)", "file"), + ], + ErrorCategory.FILE_EXISTS: [ + (r"File exists", "file"), + (r"cannot create.*File exists", "file"), + ], + ErrorCategory.DIRECTORY_NOT_FOUND: [ + (r"No such file or directory:.*/$", "directory"), + (r"cannot access '([^']+/)': No such file or directory", "directory"), + (r"mkdir: cannot create directory '([^']+)'.*No such file", "parent_directory"), + ], + # Local file/directory permission denied + ErrorCategory.PERMISSION_DENIED_LOCAL: [ + (r"Permission denied.*(/[^\s:]+)", "path"), + (r"cannot open '([^']+)'.*Permission denied", "path"), + (r"cannot create.*'([^']+)'.*Permission denied", "path"), + (r"cannot access '([^']+)'.*Permission denied", "path"), + (r"Operation not permitted.*(/[^\s:]+)", "path"), + (r"EACCES.*(/[^\s]+)", "path"), + ], + + # URL/Link permission denied (registries, APIs, repos) + ErrorCategory.PERMISSION_DENIED_URL: [ + (r"403 Forbidden.*https?://([^\s/]+)", "host"), + (r"401 Unauthorized.*https?://([^\s/]+)", "host"), + (r"Access denied.*https?://([^\s/]+)", "host"), + ], + + ErrorCategory.ACCESS_DENIED_REGISTRY: [ + (r"denied: requested access to the resource is denied", "registry"), + (r"pull access denied", "registry"), # Higher priority pattern + (r"pull access denied for ([^\s,]+)", "image"), + (r"unauthorized: authentication required.*registry", "registry"), + (r"Error response from daemon.*denied", "registry"), + (r"UNAUTHORIZED.*registry", "registry"), + (r"unauthorized to access repository", "registry"), + ], + + ErrorCategory.ACCESS_DENIED_REPO: [ + (r"Repository not found.*https?://([^\s]+)", "repo"), + (r"fatal: could not read from remote repository", "repo"), + (r"Permission denied \(publickey\)", "repo"), + (r"Host key verification failed", "host"), + (r"remote: Permission to ([^\s]+) denied", "repo"), + ], + + ErrorCategory.ACCESS_DENIED_API: [ + (r"API.*access denied", "api"), + (r"AccessDenied.*Access denied", "api"), # AWS-style error + (r"403.*API", "api"), + (r"unauthorized.*api", "api"), + (r"An error occurred \(AccessDenied\)", "api"), # AWS CLI error + (r"not authorized to perform", "api"), + ], + + # Legacy pattern for generic permission denied + ErrorCategory.PERMISSION_DENIED: [ + (r"Permission denied", "resource"), + (r"Operation not permitted", "operation"), + (r"Access denied", "resource"), + (r"EACCES", "resource"), + ], + ErrorCategory.READ_ONLY_FILESYSTEM: [ + (r"Read-only file system", "filesystem"), + ], + ErrorCategory.DISK_FULL: [ + (r"No space left on device", "device"), + (r"Disk quota exceeded", "quota"), + ], + + # Authentication & Login + ErrorCategory.LOGIN_REQUIRED: [ + (r"Login required", "service"), + (r"Authentication required", "service"), + (r"401 Unauthorized", "service"), + (r"not logged in", "service"), + (r"must be logged in", "service"), + (r"Non-null Username Required", "service"), + ], + ErrorCategory.AUTH_FAILED: [ + (r"Authentication failed", "service"), + (r"invalid username or password", "credentials"), + (r"403 Forbidden", "access"), + (r"access denied", "resource"), + ], + ErrorCategory.TOKEN_EXPIRED: [ + (r"token.*expired", "token"), + (r"session expired", "session"), + (r"credential.*expired", "credential"), + ], + ErrorCategory.INVALID_CREDENTIALS: [ + (r"invalid.*credentials?", "type"), + (r"bad credentials", "type"), + (r"incorrect password", "auth"), + ], + + # Package & Resource + ErrorCategory.PACKAGE_NOT_FOUND: [ + (r"Unable to locate package ([^\s]+)", "package"), + (r"Package ([^\s]+) is not available", "package"), + (r"No package ([^\s]+) available", "package"), + (r"E: Package '([^']+)' has no installation candidate", "package"), + (r"error: package '([^']+)' not found", "package"), + (r"ModuleNotFoundError: No module named '([^']+)'", "module"), + ], + ErrorCategory.IMAGE_NOT_FOUND: [ + (r"manifest.*not found", "image"), + (r"image.*not found", "image"), + (r"repository does not exist", "repository"), + (r"Error response from daemon: manifest for ([^\s]+) not found", "image"), + # Note: "pull access denied" moved to ACCESS_DENIED_REGISTRY + ], + ErrorCategory.RESOURCE_NOT_FOUND: [ + (r"resource.*not found", "resource"), + (r"404 Not Found", "url"), + (r"could not find ([^\n]+)", "resource"), + (r"No matching distribution found for ([^\s]+)", "package"), + (r"Could not find a version that satisfies the requirement ([^\s]+)", "package"), + ], + ErrorCategory.DEPENDENCY_MISSING: [ + (r"Depends:.*but it is not going to be installed", "dependency"), + (r"unmet dependencies", "packages"), + (r"dependency.*not satisfied", "dependency"), + (r"peer dep missing", "dependency"), + ], + ErrorCategory.VERSION_CONFLICT: [ + (r"version conflict", "packages"), + (r"incompatible version", "version"), + (r"requires.*but ([^\s]+) is installed", "conflict"), + ], + + # Command Errors + ErrorCategory.COMMAND_NOT_FOUND: [ + (r"command not found", "command"), + (r"not found", "binary"), + (r"is not recognized as", "command"), + (r"Unknown command", "subcommand"), + ], + ErrorCategory.SYNTAX_ERROR: [ + (r"syntax error", "location"), + (r"parse error", "location"), + (r"unexpected token", "token"), + (r"near unexpected", "token"), + ], + ErrorCategory.INVALID_ARGUMENT: [ + (r"invalid.*argument", "argument"), + (r"unrecognized option", "option"), + (r"unknown option", "option"), + (r"illegal option", "option"), + (r"bad argument", "argument"), + ], + ErrorCategory.MISSING_ARGUMENT: [ + (r"missing.*argument", "argument"), + (r"requires.*argument", "argument"), + (r"missing operand", "operand"), + (r"option.*requires an argument", "option"), + ], + ErrorCategory.DEPRECATED_SYNTAX: [ + (r"deprecated", "feature"), + (r"obsolete", "feature"), + (r"use.*instead", "replacement"), + ], + + # Service & Process + ErrorCategory.SERVICE_NOT_RUNNING: [ + (r"is not running", "service"), + (r"service.*stopped", "service"), + (r"inactive \(dead\)", "service"), + (r"Unit.*not found", "unit"), + (r"Failed to connect to", "service"), + (r"could not be found", "service"), + (r"Unit ([^\s]+)\.service could not be found", "service"), + ], + ErrorCategory.SERVICE_FAILED: [ + (r"failed to start", "service"), + (r"service.*failed", "service"), + (r"Job.*failed", "job"), + (r"Main process exited", "process"), + ], + ErrorCategory.PORT_IN_USE: [ + (r"Address already in use", "port"), + (r"port.*already.*use", "port"), + (r"bind\(\): Address already in use", "port"), + (r"EADDRINUSE", "port"), + ], + ErrorCategory.PROCESS_KILLED: [ + (r"Killed", "signal"), + (r"SIGKILL", "signal"), + (r"Out of memory", "oom"), + ], + ErrorCategory.TIMEOUT: [ + (r"timed out", "operation"), + (r"timeout", "operation"), + (r"deadline exceeded", "operation"), + ], + + # Network + ErrorCategory.NETWORK_UNREACHABLE: [ + (r"Network is unreachable", "network"), + (r"No route to host", "host"), + (r"Could not resolve host", "host"), + ], + ErrorCategory.CONNECTION_REFUSED: [ + (r"Connection refused", "target"), + (r"ECONNREFUSED", "target"), + (r"couldn't connect to host", "host"), + ], + ErrorCategory.DNS_FAILED: [ + (r"Name or service not known", "hostname"), + (r"Temporary failure in name resolution", "dns"), + (r"DNS lookup failed", "hostname"), + ], + ErrorCategory.SSL_ERROR: [ + (r"SSL.*error", "ssl"), + (r"certificate.*error", "certificate"), + (r"CERT_", "certificate"), + ], + + # Configuration + ErrorCategory.CONFIG_SYNTAX_ERROR: [ + (r"configuration.*syntax.*error", "config"), + (r"invalid configuration", "config"), + (r"parse error in", "config"), + (r"nginx:.*emerg.*", "nginx_config"), + (r"Failed to parse", "config"), + ], + ErrorCategory.CONFIG_INVALID_VALUE: [ + (r"invalid value", "config"), + (r"unknown directive", "directive"), + (r"invalid parameter", "parameter"), + ], + ErrorCategory.CONFIG_MISSING_KEY: [ + (r"missing.*key", "key"), + (r"required.*not set", "key"), + (r"undefined variable", "variable"), + ], + + # Resource + ErrorCategory.OUT_OF_MEMORY: [ + (r"Out of memory", "memory"), + (r"Cannot allocate memory", "memory"), + (r"MemoryError", "memory"), + (r"OOMKilled", "oom"), + ], + ErrorCategory.QUOTA_EXCEEDED: [ + (r"quota exceeded", "quota"), + (r"limit reached", "limit"), + (r"rate limit", "rate"), + ], +} + + +# ============================================================================= +# DATA STRUCTURES +# ============================================================================= + +@dataclass +class DiagnosisResult: + """Result of error diagnosis (Step 1).""" + category: ErrorCategory + error_message: str + extracted_info: dict[str, str] = field(default_factory=dict) + confidence: float = 1.0 + raw_stderr: str = "" + + +@dataclass +class FixCommand: + """A single fix command with variable placeholders.""" + command_template: str # Command with {variable} placeholders + purpose: str + variables: list[str] = field(default_factory=list) # Variable names found + requires_sudo: bool = False + + def __post_init__(self): + # Extract variables from template + self.variables = re.findall(r'\{(\w+)\}', self.command_template) + + +@dataclass +class FixPlan: + """Plan for fixing an error (Step 2 output).""" + category: ErrorCategory + commands: list[FixCommand] + reasoning: str + all_variables: set[str] = field(default_factory=set) + + def __post_init__(self): + # Collect all unique variables + for cmd in self.commands: + self.all_variables.update(cmd.variables) + + +@dataclass +class VariableResolution: + """Resolution for a variable (Step 3).""" + name: str + value: str + source: str # "query", "llm", "system_info", "default" + + +@dataclass +class ExecutionResult: + """Result of executing a fix command (Step 4).""" + command: str + success: bool + stdout: str + stderr: str + execution_time: float + + +@dataclass +class ErrorStackEntry: + """Entry in the error stack for tracking.""" + original_command: str + intent: str + error: str + category: ErrorCategory + fix_plan: FixPlan | None = None + fix_attempts: int = 0 + timestamp: float = field(default_factory=time.time) + + +# ============================================================================= +# DIAGNOSIS ENGINE +# ============================================================================= + +class DiagnosisEngine: + """ + Main diagnosis engine implementing the structured error resolution flow. + + Flow: + 1. Categorize error type + 2. LLM generates fix commands with variables + 3. Resolve variables + 4. Execute fix commands + 5. If error, push to stack and repeat + 6. Test original command + """ + + MAX_FIX_ATTEMPTS = 5 + MAX_STACK_DEPTH = 10 + + # Known URL/remote service patterns in commands + URL_COMMAND_PATTERNS = [ + r"docker\s+(pull|push|login)", + r"git\s+(clone|push|pull|fetch|remote)", + r"npm\s+(publish|login|install.*@)", + r"pip\s+install.*--index-url", + r"curl\s+", + r"wget\s+", + r"aws\s+", + r"gcloud\s+", + r"kubectl\s+", + r"helm\s+", + r"az\s+", # Azure CLI + r"gh\s+", # GitHub CLI + ] + + # Known registries and their authentication services + KNOWN_SERVICES = { + "ghcr.io": "ghcr", + "docker.io": "docker", + "registry.hub.docker.com": "docker", + "github.com": "git_https", + "gitlab.com": "git_https", + "bitbucket.org": "git_https", + "registry.npmjs.org": "npm", + "pypi.org": "pypi", + "amazonaws.com": "aws", + "gcr.io": "gcloud", + } + + def __init__( + self, + api_key: str | None = None, + provider: str = "claude", + model: str | None = None, + debug: bool = False, + ): + self.api_key = api_key or os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("OPENAI_API_KEY") + self.provider = provider.lower() + self.model = model or self._default_model() + self.debug = debug + + # Error stack for tracking command errors + self.error_stack: list[ErrorStackEntry] = [] + + # Resolution cache to avoid re-resolving same variables + self.variable_cache: dict[str, str] = {} + + # Execution history for logging + self.execution_history: list[dict[str, Any]] = [] + + # Initialize LoginHandler for credential management + self._login_handler = None + try: + from cortex.do_runner.diagnosis import LoginHandler + self._login_handler = LoginHandler() + except ImportError: + pass + + self._initialize_client() + + def _default_model(self) -> str: + if self.provider == "openai": + return "gpt-4o" + elif self.provider == "claude": + return "claude-sonnet-4-20250514" + return "gpt-4o" + + def _initialize_client(self): + """Initialize the LLM client.""" + if not self.api_key: + console.print("[yellow]โš  No API key found - LLM features disabled[/yellow]") + self.client = None + return + + if self.provider == "openai": + try: + from openai import OpenAI + self.client = OpenAI(api_key=self.api_key) + except ImportError: + self.client = None + elif self.provider == "claude": + try: + from anthropic import Anthropic + self.client = Anthropic(api_key=self.api_key) + except ImportError: + self.client = None + else: + self.client = None + + # ========================================================================= + # PERMISSION TYPE DETECTION + # ========================================================================= + + def _is_url_based_permission_error(self, command: str, stderr: str) -> tuple[bool, str | None, str | None]: + """ + Determine if permission denied is for a local file/dir or a URL/link. + + Returns: + Tuple of (is_url_based, service_name, url_or_host) + """ + # Check if command involves known remote operations + is_remote_command = any( + re.search(pattern, command, re.IGNORECASE) + for pattern in self.URL_COMMAND_PATTERNS + ) + + # Check stderr for URL patterns + url_patterns = [ + r"https?://([^\s/]+)", + r"([a-zA-Z0-9.-]+\.(io|com|org|net))", + r"registry[.\s]", + r"(ghcr\.io|docker\.io|gcr\.io|quay\.io)", + ] + + found_host = None + for pattern in url_patterns: + match = re.search(pattern, stderr, re.IGNORECASE) + if match: + found_host = match.group(1) if match.groups() else match.group(0) + break + + # Also check command for URLs/hosts + if not found_host: + for pattern in url_patterns: + match = re.search(pattern, command, re.IGNORECASE) + if match: + found_host = match.group(1) if match.groups() else match.group(0) + break + + # Determine service + service = None + if found_host: + for host_pattern, svc in self.KNOWN_SERVICES.items(): + if host_pattern in found_host.lower(): + service = svc + break + + # Detect service from command if not found from host + if not service: + if "git " in command.lower(): + service = "git_https" + if not found_host: + found_host = "git remote" + elif "aws " in command.lower(): + service = "aws" + if not found_host: + found_host = "aws" + elif "docker " in command.lower(): + service = "docker" + elif "npm " in command.lower(): + service = "npm" + + # Git-specific patterns + git_remote_patterns = [ + "remote:" in stderr.lower(), + "permission to" in stderr.lower() and ".git" in stderr.lower(), + "denied to" in stderr.lower(), + "could not read from remote repository" in stderr.lower(), + "fatal: authentication failed" in stderr.lower(), + ] + + # AWS-specific patterns + aws_patterns = [ + "accessdenied" in stderr.lower().replace(" ", ""), + "an error occurred" in stderr.lower() and "denied" in stderr.lower(), + "not authorized" in stderr.lower(), + ] + + # If it's a remote command with a host or URL-based error patterns + is_url_based = bool(is_remote_command and found_host) or any([ + "401" in stderr, + "403" in stderr, + "unauthorized" in stderr.lower(), + "authentication required" in stderr.lower(), + "login required" in stderr.lower(), + "access denied" in stderr.lower() and found_host, + "pull access denied" in stderr.lower(), + "denied: requested access" in stderr.lower(), + ]) or any(git_remote_patterns) or any(aws_patterns) + + if is_url_based: + console.print(f"[cyan] ๐ŸŒ Detected URL-based permission error[/cyan]") + console.print(f"[dim] Host: {found_host or 'unknown'}[/dim]") + console.print(f"[dim] Service: {service or 'unknown'}[/dim]") + + return is_url_based, service, found_host + + def _is_local_file_permission_error(self, command: str, stderr: str) -> tuple[bool, str | None]: + """ + Check if permission error is for a local file/directory. + + Returns: + Tuple of (is_local_file, file_path) + """ + # Check for local path patterns in stderr + local_patterns = [ + r"Permission denied.*(/[^\s:]+)", + r"cannot open '([^']+)'.*Permission denied", + r"cannot create.*'([^']+)'.*Permission denied", + r"cannot access '([^']+)'.*Permission denied", + r"cannot read '([^']+)'", + r"failed to open '([^']+)'", + r"open\(\) \"([^\"]+)\" failed", + ] + + for pattern in local_patterns: + match = re.search(pattern, stderr, re.IGNORECASE) + if match: + path = match.group(1) + # Verify it's a local path (starts with / or ./) + if path.startswith("/") or path.startswith("./"): + console.print(f"[cyan] ๐Ÿ“ Detected local file permission error[/cyan]") + console.print(f"[dim] Path: {path}[/dim]") + return True, path + + # Check command for local paths being accessed + path_match = re.search(r"(/[^\s]+)", command) + if path_match and "permission denied" in stderr.lower(): + path = path_match.group(1) + console.print(f"[cyan] ๐Ÿ“ Detected local file permission error (from command)[/cyan]") + console.print(f"[dim] Path: {path}[/dim]") + return True, path + + return False, None + + def _resolve_permission_error_type( + self, + command: str, + stderr: str, + current_category: ErrorCategory, + ) -> tuple[ErrorCategory, dict[str, str]]: + """ + Resolve generic PERMISSION_DENIED to specific LOCAL or URL category. + + Returns: + Tuple of (refined_category, additional_info) + """ + additional_info = {} + + # Only process if it's a generic permission error + permission_categories = [ + ErrorCategory.PERMISSION_DENIED, + ErrorCategory.PERMISSION_DENIED_LOCAL, + ErrorCategory.PERMISSION_DENIED_URL, + ErrorCategory.ACCESS_DENIED_REGISTRY, + ErrorCategory.ACCESS_DENIED_REPO, + ErrorCategory.ACCESS_DENIED_API, + ErrorCategory.AUTH_FAILED, + ] + + if current_category not in permission_categories: + return current_category, additional_info + + # Check URL-based first (more specific) + is_url, service, host = self._is_url_based_permission_error(command, stderr) + if is_url: + additional_info["service"] = service or "unknown" + additional_info["host"] = host or "unknown" + + # Determine more specific category + if "registry" in stderr.lower() or service in ["docker", "ghcr", "gcloud"]: + return ErrorCategory.ACCESS_DENIED_REGISTRY, additional_info + elif "git" in command.lower() or service in ["git_https"]: + return ErrorCategory.ACCESS_DENIED_REPO, additional_info + elif "api" in stderr.lower() or service in ["aws", "gcloud", "azure"]: + # AWS, GCloud, Azure are API-based services + return ErrorCategory.ACCESS_DENIED_API, additional_info + elif "aws " in command.lower() or "az " in command.lower() or "gcloud " in command.lower(): + # Cloud CLI commands are API-based + return ErrorCategory.ACCESS_DENIED_API, additional_info + else: + return ErrorCategory.PERMISSION_DENIED_URL, additional_info + + # Check local file + is_local, path = self._is_local_file_permission_error(command, stderr) + if is_local: + additional_info["path"] = path or "" + return ErrorCategory.PERMISSION_DENIED_LOCAL, additional_info + + # Default to local for generic permission denied + return ErrorCategory.PERMISSION_DENIED_LOCAL, additional_info + + # ========================================================================= + # STEP 1: Categorize Error + # ========================================================================= + + def categorize_error(self, command: str, stderr: str, stdout: str = "") -> DiagnosisResult: + """ + Step 1: Categorize the error type. + + Examines stderr (and stdout) to determine the broad category of error. + For permission errors, distinguishes between local file/dir and URL/link. + """ + self._log_step(1, "Categorizing error type") + + combined_output = f"{stderr}\n{stdout}".lower() + + best_match: tuple[ErrorCategory, dict[str, str], float] | None = None + + for category, patterns in ERROR_PATTERNS.items(): + for pattern, info_key in patterns: + match = re.search(pattern, stderr, re.IGNORECASE) + if match: + extracted_info = {info_key: match.group(1) if match.groups() else ""} + + # Calculate confidence based on pattern specificity + confidence = len(pattern) / 50.0 # Longer patterns = more specific + confidence = min(confidence, 1.0) + + if best_match is None or confidence > best_match[2]: + best_match = (category, extracted_info, confidence) + + if best_match: + category, extracted_info, confidence = best_match + + # Refine permission errors to LOCAL or URL + refined_category, additional_info = self._resolve_permission_error_type( + command, stderr, category + ) + extracted_info.update(additional_info) + + result = DiagnosisResult( + category=refined_category, + error_message=stderr[:500], + extracted_info=extracted_info, + confidence=confidence, + raw_stderr=stderr, + ) + else: + result = DiagnosisResult( + category=ErrorCategory.UNKNOWN, + error_message=stderr[:500], + confidence=0.0, + raw_stderr=stderr, + ) + + self._print_diagnosis(result, command) + return result + + # ========================================================================= + # STEP 2: Generate Fix Plan via LLM + # ========================================================================= + + def generate_fix_plan( + self, + command: str, + intent: str, + diagnosis: DiagnosisResult + ) -> FixPlan: + """ + Step 2: LLM generates fix commands with variable placeholders. + + Context given: command, intent, error, category + Output: List of commands with {variable} placeholders + """ + self._log_step(2, "Generating fix plan via LLM") + + if not self.client: + # Fallback to rule-based fix generation + return self._generate_fallback_fix_plan(command, intent, diagnosis) + + system_prompt = self._get_fix_generation_prompt() + + user_prompt = f"""Generate fix commands for this error: + +**Command:** `{command}` +**Intent:** {intent} +**Error Category:** {diagnosis.category.value} +**Error Message:** {diagnosis.error_message} +**Extracted Info:** {json.dumps(diagnosis.extracted_info)} + +Provide fix commands with variable placeholders in {{curly_braces}} for any values that need to be determined at runtime. + +Respond with JSON: +{{ + "reasoning": "explanation of the fix approach", + "commands": [ + {{ + "command": "command with {{variable}} placeholders", + "purpose": "what this command does", + "requires_sudo": true/false + }} + ] +}}""" + + try: + response = self._call_llm(system_prompt, user_prompt) + + # Parse response + json_match = re.search(r'\{[\s\S]*\}', response) + if json_match: + data = json.loads(json_match.group()) + + commands = [] + for cmd_data in data.get("commands", []): + commands.append(FixCommand( + command_template=cmd_data.get("command", ""), + purpose=cmd_data.get("purpose", ""), + requires_sudo=cmd_data.get("requires_sudo", False), + )) + + plan = FixPlan( + category=diagnosis.category, + commands=commands, + reasoning=data.get("reasoning", ""), + ) + + self._print_fix_plan(plan) + return plan + + except Exception as e: + console.print(f"[yellow]โš  LLM fix generation failed: {e}[/yellow]") + + # Fallback + return self._generate_fallback_fix_plan(command, intent, diagnosis) + + def _get_fix_generation_prompt(self) -> str: + return """You are a Linux system error diagnosis expert. Generate shell commands to fix errors. + +RULES: +1. Use {variable} placeholders for values that need to be determined at runtime +2. Common variables: {file_path}, {package_name}, {service_name}, {user}, {port}, {config_file} +3. Commands should be atomic and specific +4. Include sudo only when necessary +5. Order commands logically (prerequisites first) + +VARIABLE NAMING: +- {file_path} - path to a file +- {dir_path} - path to a directory +- {package} - package name to install +- {service} - systemd service name +- {user} - username +- {port} - port number +- {config_file} - configuration file path +- {config_line} - line number in config +- {image} - Docker/container image name +- {registry} - Container registry URL +- {username} - Login username +- {token} - Auth token or password + +EXAMPLE OUTPUT: +{ + "reasoning": "Permission denied on /etc/nginx - need sudo to write, also backup first", + "commands": [ + { + "command": "sudo cp {config_file} {config_file}.backup", + "purpose": "Backup the configuration file before modifying", + "requires_sudo": true + }, + { + "command": "sudo sed -i 's/{old_value}/{new_value}/' {config_file}", + "purpose": "Fix the configuration value", + "requires_sudo": true + } + ] +}""" + + def _generate_fallback_fix_plan( + self, + command: str, + intent: str, + diagnosis: DiagnosisResult + ) -> FixPlan: + """Generate a fix plan using rules when LLM is unavailable.""" + commands: list[FixCommand] = [] + reasoning = f"Rule-based fix for {diagnosis.category.value}" + + category = diagnosis.category + info = diagnosis.extracted_info + + # LOCAL permission denied - use sudo + if category == ErrorCategory.PERMISSION_DENIED_LOCAL: + path = info.get("path", "") + reasoning = f"Local file/directory permission denied - using elevated privileges" + commands.append(FixCommand( + command_template=f"sudo {command}", + purpose=f"Retry with elevated privileges for local path{' ' + path if path else ''}", + requires_sudo=True, + )) + + # URL-based permission - handle login + elif category in [ + ErrorCategory.PERMISSION_DENIED_URL, + ErrorCategory.ACCESS_DENIED_REGISTRY, + ErrorCategory.ACCESS_DENIED_REPO, + ErrorCategory.ACCESS_DENIED_API, + ]: + service = info.get("service", "unknown") + host = info.get("host", "unknown") + reasoning = f"URL/remote access denied - requires authentication to {service or host}" + + # Generate login command based on service + if service == "docker" or service == "ghcr" or "registry" in category.value: + registry = host if host != "unknown" else "{registry}" + commands.extend([ + FixCommand( + command_template=f"docker login {registry}", + purpose=f"Login to container registry {registry}", + ), + FixCommand( + command_template=command, + purpose="Retry original command after login", + ), + ]) + elif service == "git_https" or "repo" in category.value: + commands.extend([ + FixCommand( + command_template="git config --global credential.helper store", + purpose="Enable credential storage for git", + ), + FixCommand( + command_template=command, + purpose="Retry original command (will prompt for credentials)", + ), + ]) + elif service == "npm": + commands.extend([ + FixCommand( + command_template="npm login", + purpose="Login to npm registry", + ), + FixCommand( + command_template=command, + purpose="Retry original command after login", + ), + ]) + elif service == "aws": + commands.extend([ + FixCommand( + command_template="aws configure", + purpose="Configure AWS credentials", + ), + FixCommand( + command_template=command, + purpose="Retry original command after configuration", + ), + ]) + else: + # Generic login placeholder + commands.append(FixCommand( + command_template="{login_command}", + purpose=f"Login to {service or host}", + )) + commands.append(FixCommand( + command_template=command, + purpose="Retry original command after login", + )) + + # Legacy generic permission denied - try to determine type + elif category == ErrorCategory.PERMISSION_DENIED: + commands.append(FixCommand( + command_template=f"sudo {command}", + purpose="Retry with elevated privileges", + requires_sudo=True, + )) + + elif category == ErrorCategory.FILE_NOT_FOUND: + file_path = info.get("file", "{file_path}") + commands.append(FixCommand( + command_template=f"touch {file_path}", + purpose=f"Create missing file", + )) + + elif category == ErrorCategory.DIRECTORY_NOT_FOUND: + dir_path = info.get("directory", info.get("parent_directory", "{dir_path}")) + commands.append(FixCommand( + command_template=f"mkdir -p {dir_path}", + purpose="Create missing directory", + )) + + elif category == ErrorCategory.COMMAND_NOT_FOUND: + # Try to guess package from command + cmd_name = command.split()[0] if command else "{package}" + commands.append(FixCommand( + command_template=f"sudo apt install -y {{package}}", + purpose=f"Install package providing the command", + requires_sudo=True, + )) + + elif category == ErrorCategory.SERVICE_NOT_RUNNING: + service = info.get("service", "{service}") + commands.append(FixCommand( + command_template=f"sudo systemctl start {service}", + purpose="Start the service", + requires_sudo=True, + )) + + elif category == ErrorCategory.LOGIN_REQUIRED: + service = info.get("service", "{service}") + commands.append(FixCommand( + command_template="{login_command}", + purpose=f"Login to {service}", + )) + + elif category == ErrorCategory.PACKAGE_NOT_FOUND: + package = info.get("package", "{package}") + commands.extend([ + FixCommand( + command_template="sudo apt update", + purpose="Update package lists", + requires_sudo=True, + ), + FixCommand( + command_template=f"sudo apt install -y {package}", + purpose=f"Install the package", + requires_sudo=True, + ), + ]) + + elif category == ErrorCategory.PORT_IN_USE: + port = info.get("port", "{port}") + commands.extend([ + FixCommand( + command_template=f"sudo lsof -i :{port}", + purpose="Find process using the port", + requires_sudo=True, + ), + FixCommand( + command_template="sudo kill -9 {pid}", + purpose="Kill the process using the port", + requires_sudo=True, + ), + ]) + + elif category == ErrorCategory.CONFIG_SYNTAX_ERROR: + config_file = info.get("config", info.get("nginx_config", "{config_file}")) + commands.extend([ + FixCommand( + command_template=f"cat -n {config_file}", + purpose="Show config file with line numbers", + ), + FixCommand( + command_template=f"sudo nano {config_file}", + purpose="Edit config file to fix syntax", + requires_sudo=True, + ), + ]) + + else: + # Generic retry with sudo + commands.append(FixCommand( + command_template=f"sudo {command}", + purpose="Retry with elevated privileges", + requires_sudo=True, + )) + + plan = FixPlan( + category=diagnosis.category, + commands=commands, + reasoning=reasoning, + ) + + self._print_fix_plan(plan) + return plan + + # ========================================================================= + # STEP 3: Resolve Variables + # ========================================================================= + + def resolve_variables( + self, + fix_plan: FixPlan, + original_query: str, + command: str, + diagnosis: DiagnosisResult, + ) -> dict[str, str]: + """ + Step 3: Resolve variable values using: + 1. Extract from original query + 2. LLM call with context + 3. system_info_command_generator + """ + self._log_step(3, "Resolving variables") + + if not fix_plan.all_variables: + console.print("[dim] No variables to resolve[/dim]") + return {} + + console.print(f"[cyan] Variables to resolve: {', '.join(fix_plan.all_variables)}[/cyan]") + + resolved: dict[str, str] = {} + + for var_name in fix_plan.all_variables: + # Check cache first + if var_name in self.variable_cache: + resolved[var_name] = self.variable_cache[var_name] + console.print(f"[dim] {var_name}: {resolved[var_name]} (cached)[/dim]") + continue + + # Try extraction from diagnosis info + value = self._try_extract_from_diagnosis(var_name, diagnosis) + if value: + resolved[var_name] = value + console.print(f"[green] โœ“ {var_name}: {value} (from error)[/green]") + continue + + # Try extraction from query + value = self._try_extract_from_query(var_name, original_query) + if value: + resolved[var_name] = value + console.print(f"[green] โœ“ {var_name}: {value} (from query)[/green]") + continue + + # Try system_info_command_generator + value = self._try_system_info(var_name, command, diagnosis) + if value: + resolved[var_name] = value + console.print(f"[green] โœ“ {var_name}: {value} (from system)[/green]") + continue + + # Fall back to LLM + value = self._try_llm_resolution(var_name, original_query, command, diagnosis) + if value: + resolved[var_name] = value + console.print(f"[green] โœ“ {var_name}: {value} (from LLM)[/green]") + continue + + # Prompt user as last resort + console.print(f"[yellow] โš  Could not resolve {var_name}[/yellow]") + try: + from rich.prompt import Prompt + value = Prompt.ask(f" Enter value for {var_name}") + if value: + resolved[var_name] = value + console.print(f"[green] โœ“ {var_name}: {value} (from user)[/green]") + except Exception: + pass + + # Update cache + self.variable_cache.update(resolved) + + return resolved + + def _try_extract_from_diagnosis(self, var_name: str, diagnosis: DiagnosisResult) -> str | None: + """Try to extract variable from diagnosis extracted_info.""" + # Map variable names to diagnosis info keys + mappings = { + "file_path": ["file", "path"], + "dir_path": ["directory", "parent_directory", "dir"], + "package": ["package", "module"], + "service": ["service", "unit"], + "port": ["port"], + "config_file": ["config", "nginx_config", "config_file"], + "user": ["user"], + "image": ["image", "repository"], + } + + keys_to_check = mappings.get(var_name, [var_name]) + for key in keys_to_check: + if key in diagnosis.extracted_info and diagnosis.extracted_info[key]: + return diagnosis.extracted_info[key] + + return None + + def _try_extract_from_query(self, var_name: str, query: str) -> str | None: + """Try to extract variable from the original query.""" + # Pattern-based extraction from query + patterns = { + "file_path": [r"file\s+['\"]?([/\w.-]+)['\"]?", r"([/\w]+\.\w+)"], + "dir_path": [r"directory\s+['\"]?([/\w.-]+)['\"]?", r"folder\s+['\"]?([/\w.-]+)['\"]?"], + "package": [r"install\s+(\w[\w-]*)", r"package\s+(\w[\w-]*)"], + "service": [r"service\s+(\w[\w-]*)", r"(\w+)\.service"], + "port": [r"port\s+(\d+)", r":(\d{2,5})"], + "image": [r"image\s+([^\s]+)", r"docker.*\s+([^\s]+:[^\s]*)"], + } + + if var_name in patterns: + for pattern in patterns[var_name]: + match = re.search(pattern, query, re.IGNORECASE) + if match: + return match.group(1) + + return None + + def _try_system_info(self, var_name: str, command: str, diagnosis: DiagnosisResult) -> str | None: + """Use system_info_command_generator to get variable value.""" + try: + from cortex.system_info_generator import SystemInfoGenerator + + # System info commands for different variable types + system_queries = { + "user": "whoami", + "home_dir": "echo $HOME", + "current_dir": "pwd", + } + + if var_name in system_queries: + result = subprocess.run( + system_queries[var_name], + shell=True, + capture_output=True, + text=True, + timeout=5, + ) + if result.returncode == 0 and result.stdout.strip(): + return result.stdout.strip() + + # For package commands, try to find the package + if var_name == "package": + cmd_name = command.split()[0] if command else "" + # Common command-to-package mappings for Ubuntu + package_map = { + "nginx": "nginx", + "docker": "docker.io", + "python": "python3", + "pip": "python3-pip", + "node": "nodejs", + "npm": "npm", + "git": "git", + "curl": "curl", + "wget": "wget", + "htop": "htop", + "vim": "vim", + "nano": "nano", + } + if cmd_name in package_map: + return package_map[cmd_name] + + # Try apt-file search if available + result = subprocess.run( + f"apt-file search --regexp 'bin/{cmd_name}$' 2>/dev/null | head -1 | cut -d: -f1", + shell=True, + capture_output=True, + text=True, + timeout=10, + ) + if result.returncode == 0 and result.stdout.strip(): + return result.stdout.strip() + + # For service names, try systemctl + if var_name == "service": + # Extract service name from command if present + service_match = re.search(r'systemctl\s+\w+\s+(\S+)', command) + if service_match: + return service_match.group(1) + + except Exception as e: + if self.debug: + console.print(f"[dim] System info failed for {var_name}: {e}[/dim]") + + return None + + def _try_llm_resolution( + self, + var_name: str, + query: str, + command: str, + diagnosis: DiagnosisResult, + ) -> str | None: + """Use LLM to resolve variable value.""" + if not self.client: + return None + + prompt = f"""Extract the value for variable '{var_name}' from this context: + +Query: {query} +Command: {command} +Error Category: {diagnosis.category.value} +Error: {diagnosis.error_message[:200]} + +Respond with ONLY the value, nothing else. If you cannot determine the value, respond with "UNKNOWN".""" + + try: + response = self._call_llm("You extract specific values from context.", prompt) + value = response.strip().strip('"\'') + if value and value.upper() != "UNKNOWN": + return value + except Exception: + pass + + return None + + # ========================================================================= + # URL AUTHENTICATION HANDLING + # ========================================================================= + + def handle_url_authentication( + self, + command: str, + diagnosis: DiagnosisResult, + ) -> tuple[bool, str]: + """ + Handle URL-based permission errors by prompting for login. + + Uses LoginHandler to: + 1. Detect the service/website + 2. Prompt for credentials + 3. Store credentials for future use + 4. Execute login command + + Returns: + Tuple of (success, message) + """ + console.print("\n[bold cyan]๐Ÿ” URL Authentication Required[/bold cyan]") + + if not self._login_handler: + console.print("[yellow]โš  LoginHandler not available[/yellow]") + return False, "LoginHandler not available" + + service = diagnosis.extracted_info.get("service", "unknown") + host = diagnosis.extracted_info.get("host", "") + + console.print(f"[dim] Service: {service}[/dim]") + console.print(f"[dim] Host: {host}[/dim]") + + try: + # Use LoginHandler to manage authentication + login_req = self._login_handler.detect_login_requirement(command, diagnosis.raw_stderr) + + if login_req: + console.print(f"\n[cyan]๐Ÿ“ Login to {login_req.display_name}[/cyan]") + + # Handle login (will prompt, execute, and optionally save credentials) + success, message = self._login_handler.handle_login(command, diagnosis.raw_stderr) + + if success: + console.print(f"[green]โœ“ {message}[/green]") + return True, message + else: + console.print(f"[yellow]โš  {message}[/yellow]") + return False, message + else: + # No matching login requirement, try generic approach + console.print("[yellow] Unknown service, trying generic login...[/yellow]") + return self._handle_generic_login(command, diagnosis) + + except Exception as e: + console.print(f"[red]โœ— Authentication error: {e}[/red]") + return False, str(e) + + def _handle_generic_login( + self, + command: str, + diagnosis: DiagnosisResult, + ) -> tuple[bool, str]: + """Handle login for unknown services with interactive prompts.""" + from rich.prompt import Prompt, Confirm + + host = diagnosis.extracted_info.get("host", "unknown service") + + console.print(f"\n[cyan]Login required for: {host}[/cyan]") + + try: + # Prompt for credentials + username = Prompt.ask("Username") + if not username: + return False, "Username is required" + + password = Prompt.ask("Password", password=True) + + # Determine login command based on command context + login_cmd = None + + if "docker" in command.lower(): + registry = diagnosis.extracted_info.get("host", "") + login_cmd = f"docker login {registry}" if registry else "docker login" + elif "git" in command.lower(): + # Store git credentials + subprocess.run("git config --global credential.helper store", shell=True) + login_cmd = None # Git will prompt automatically + elif "npm" in command.lower(): + login_cmd = "npm login" + elif "pip" in command.lower() or "pypi" in host.lower(): + login_cmd = f"pip config set global.index-url https://{username}:{{password}}@pypi.org/simple/" + + if login_cmd: + console.print(f"[dim] Running: {login_cmd}[/dim]") + + # Execute login with password via stdin if needed + if "{password}" in login_cmd: + login_cmd = login_cmd.replace("{password}", password) + result = subprocess.run(login_cmd, shell=True, capture_output=True, text=True) + else: + # Interactive login + result = subprocess.run( + login_cmd, + shell=True, + input=f"{username}\n{password}\n", + capture_output=True, + text=True, + ) + + if result.returncode == 0: + # Offer to save credentials + if self._login_handler and Confirm.ask("Save credentials for future use?", default=True): + self._login_handler._save_credentials(host, { + "username": username, + "password": password, + }) + console.print("[green]โœ“ Credentials saved[/green]") + + return True, f"Logged in to {host}" + else: + return False, f"Login failed: {result.stderr[:200]}" + + return False, "Could not determine login command" + + except KeyboardInterrupt: + return False, "Login cancelled" + except Exception as e: + return False, str(e) + + # ========================================================================= + # STEP 4: Execute Fix Commands + # ========================================================================= + + def execute_fix_commands( + self, + fix_plan: FixPlan, + resolved_variables: dict[str, str] + ) -> list[ExecutionResult]: + """ + Step 4: Execute fix commands with resolved variables. + """ + self._log_step(4, "Executing fix commands") + + results: list[ExecutionResult] = [] + + for i, fix_cmd in enumerate(fix_plan.commands, 1): + # Substitute variables + command = fix_cmd.command_template + for var_name, value in resolved_variables.items(): + command = command.replace(f"{{{var_name}}}", value) + + # Check for unresolved variables + unresolved = re.findall(r'\{(\w+)\}', command) + if unresolved: + console.print(f"[yellow] โš  Skipping command with unresolved variables: {unresolved}[/yellow]") + results.append(ExecutionResult( + command=command, + success=False, + stdout="", + stderr=f"Unresolved variables: {unresolved}", + execution_time=0, + )) + continue + + console.print(f"\n[cyan] [{i}/{len(fix_plan.commands)}] {command}[/cyan]") + console.print(f"[dim] โ””โ”€ {fix_cmd.purpose}[/dim]") + + # Execute + start_time = time.time() + try: + result = subprocess.run( + command, + shell=True, + capture_output=True, + text=True, + timeout=120, + ) + execution_time = time.time() - start_time + + exec_result = ExecutionResult( + command=command, + success=result.returncode == 0, + stdout=result.stdout.strip(), + stderr=result.stderr.strip(), + execution_time=execution_time, + ) + + if exec_result.success: + console.print(f"[green] โœ“ Success ({execution_time:.2f}s)[/green]") + if exec_result.stdout and self.debug: + console.print(f"[dim] Output: {exec_result.stdout[:200]}[/dim]") + else: + console.print(f"[red] โœ— Failed: {exec_result.stderr[:200]}[/red]") + + results.append(exec_result) + + # Log to history + self.execution_history.append({ + "command": command, + "success": exec_result.success, + "stderr": exec_result.stderr[:500], + "timestamp": time.time(), + }) + + except subprocess.TimeoutExpired: + console.print(f"[red] โœ— Timeout after 120s[/red]") + results.append(ExecutionResult( + command=command, + success=False, + stdout="", + stderr="Command timed out", + execution_time=120, + )) + except Exception as e: + console.print(f"[red] โœ— Error: {e}[/red]") + results.append(ExecutionResult( + command=command, + success=False, + stdout="", + stderr=str(e), + execution_time=time.time() - start_time, + )) + + return results + + # ========================================================================= + # STEP 5 & 6: Error Stack Management and Retry Logic + # ========================================================================= + + def push_error(self, entry: ErrorStackEntry) -> None: + """Push an error onto the stack.""" + if len(self.error_stack) >= self.MAX_STACK_DEPTH: + console.print(f"[red]โš  Error stack depth limit ({self.MAX_STACK_DEPTH}) reached[/red]") + return + + self.error_stack.append(entry) + self._print_error_stack() + + def pop_error(self) -> ErrorStackEntry | None: + """Pop an error from the stack.""" + if self.error_stack: + return self.error_stack.pop() + return None + + def diagnose_and_fix( + self, + command: str, + stderr: str, + intent: str, + original_query: str, + stdout: str = "", + ) -> tuple[bool, str]: + """ + Main diagnosis and fix flow. + + Returns: + Tuple of (success, message) + """ + console.print(Panel( + f"[bold]Starting Diagnosis[/bold]\n" + f"Command: [cyan]{command}[/cyan]\n" + f"Intent: {intent}", + title="๐Ÿ”ง Cortex Diagnosis Engine", + border_style="blue", + )) + + # Push initial error to stack + initial_entry = ErrorStackEntry( + original_command=command, + intent=intent, + error=stderr, + category=ErrorCategory.UNKNOWN, # Will be set in Step 1 + ) + self.push_error(initial_entry) + + # Process error stack + while self.error_stack: + entry = self.error_stack[-1] # Peek at top + + if entry.fix_attempts >= self.MAX_FIX_ATTEMPTS: + console.print(f"[red]โœ— Max fix attempts ({self.MAX_FIX_ATTEMPTS}) reached for command[/red]") + self.pop_error() + continue + + entry.fix_attempts += 1 + console.print(f"\n[bold]Fix Attempt {entry.fix_attempts}/{self.MAX_FIX_ATTEMPTS}[/bold]") + + # Step 1: Categorize error + diagnosis = self.categorize_error(entry.original_command, entry.error) + entry.category = diagnosis.category + + # SPECIAL HANDLING: URL-based permission errors need authentication + url_auth_categories = [ + ErrorCategory.PERMISSION_DENIED_URL, + ErrorCategory.ACCESS_DENIED_REGISTRY, + ErrorCategory.ACCESS_DENIED_REPO, + ErrorCategory.ACCESS_DENIED_API, + ErrorCategory.LOGIN_REQUIRED, + ] + + if diagnosis.category in url_auth_categories: + console.print(f"[cyan]๐ŸŒ URL-based access error detected - handling authentication[/cyan]") + + auth_success, auth_message = self.handle_url_authentication( + entry.original_command, + diagnosis + ) + + if auth_success: + # Re-test the original command after login + console.print(f"\n[cyan]๐Ÿ“‹ Testing original command after login...[/cyan]") + + test_result = subprocess.run( + entry.original_command, + shell=True, + capture_output=True, + text=True, + timeout=120, + ) + + if test_result.returncode == 0: + console.print(f"[green]โœ“ Command succeeded after authentication![/green]") + self.pop_error() + if not self.error_stack: + return True, f"Fixed via authentication: {auth_message}" + continue + else: + # Different error after login + entry.error = test_result.stderr.strip() + console.print(f"[yellow]โš  New error after login, continuing diagnosis...[/yellow]") + continue + else: + console.print(f"[yellow]โš  Authentication failed: {auth_message}[/yellow]") + # Continue with normal fix flow + + # Step 2: Generate fix plan + fix_plan = self.generate_fix_plan( + entry.original_command, + entry.intent, + diagnosis + ) + entry.fix_plan = fix_plan + + # Step 3: Resolve variables + resolved_vars = self.resolve_variables( + fix_plan, + original_query, + entry.original_command, + diagnosis, + ) + + # Check if all variables resolved + unresolved = fix_plan.all_variables - set(resolved_vars.keys()) + if unresolved: + console.print(f"[yellow]โš  Could not resolve all variables: {unresolved}[/yellow]") + # Continue anyway with what we have + + # Step 4: Execute fix commands + results = self.execute_fix_commands(fix_plan, resolved_vars) + + # Check for errors in fix commands (Step 5) + fix_errors = [r for r in results if not r.success] + if fix_errors: + console.print(f"\n[yellow]โš  {len(fix_errors)} fix command(s) failed[/yellow]") + + # Push the first error back to stack for diagnosis + first_error = fix_errors[0] + if first_error.stderr and "Unresolved variables" not in first_error.stderr: + new_entry = ErrorStackEntry( + original_command=first_error.command, + intent=f"Fix command for: {entry.intent}", + error=first_error.stderr, + category=ErrorCategory.UNKNOWN, + ) + self.push_error(new_entry) + continue + + # Step 6: Test original command + console.print(f"\n[cyan]๐Ÿ“‹ Testing original command: {entry.original_command}[/cyan]") + + test_result = subprocess.run( + entry.original_command, + shell=True, + capture_output=True, + text=True, + timeout=120, + ) + + if test_result.returncode == 0: + console.print(f"[green]โœ“ Original command now succeeds![/green]") + self.pop_error() + + # Check if stack is empty + if not self.error_stack: + return True, "All errors resolved successfully" + else: + new_error = test_result.stderr.strip() + console.print(f"[yellow]โš  Original command still fails[/yellow]") + + if new_error != entry.error: + console.print(f"[cyan] New error detected, updating...[/cyan]") + entry.error = new_error + # Loop will continue with same entry + + # Stack empty but we didn't explicitly succeed + return False, "Could not resolve all errors" + + # ========================================================================= + # HELPERS + # ========================================================================= + + def _call_llm(self, system_prompt: str, user_prompt: str) -> str: + """Call the LLM and return response text.""" + if self.provider == "claude": + response = self.client.messages.create( + model=self.model, + max_tokens=2048, + system=system_prompt, + messages=[{"role": "user", "content": user_prompt}], + ) + return response.content[0].text + elif self.provider == "openai": + response = self.client.chat.completions.create( + model=self.model, + max_tokens=2048, + messages=[ + {"role": "system", "content": system_prompt}, + {"role": "user", "content": user_prompt}, + ], + ) + return response.choices[0].message.content + else: + raise ValueError(f"Unsupported provider: {self.provider}") + + def _log_step(self, step_num: int, description: str) -> None: + """Log a diagnosis step.""" + console.print(f"\n[bold blue]Step {step_num}:[/bold blue] {description}") + + def _print_diagnosis(self, diagnosis: DiagnosisResult, command: str) -> None: + """Print diagnosis result.""" + table = Table(title="Error Diagnosis", show_header=False, border_style="dim") + table.add_column("Field", style="bold") + table.add_column("Value") + + table.add_row("Category", f"[cyan]{diagnosis.category.value}[/cyan]") + table.add_row("Confidence", f"{diagnosis.confidence:.0%}") + + if diagnosis.extracted_info: + info_str = ", ".join(f"{k}={v}" for k, v in diagnosis.extracted_info.items() if v) + table.add_row("Extracted", info_str) + + table.add_row("Error", diagnosis.error_message[:100] + "..." if len(diagnosis.error_message) > 100 else diagnosis.error_message) + + console.print(table) + + def _print_fix_plan(self, plan: FixPlan) -> None: + """Print fix plan.""" + console.print(f"\n[bold]Fix Plan:[/bold] {plan.reasoning}") + + for i, cmd in enumerate(plan.commands, 1): + sudo_tag = "[sudo]" if cmd.requires_sudo else "" + vars_tag = f"[vars: {', '.join(cmd.variables)}]" if cmd.variables else "" + console.print(f" {i}. [cyan]{cmd.command_template}[/cyan] {sudo_tag} {vars_tag}") + console.print(f" [dim]{cmd.purpose}[/dim]") + + def _print_error_stack(self) -> None: + """Print current error stack.""" + if not self.error_stack: + console.print("[dim] Error stack: empty[/dim]") + return + + tree = Tree("[bold]Error Stack[/bold]") + for i, entry in enumerate(reversed(self.error_stack)): + branch = tree.add(f"[{'yellow' if i == 0 else 'dim'}]{entry.original_command[:50]}[/]") + branch.add(f"[dim]Category: {entry.category.value}[/dim]") + branch.add(f"[dim]Attempts: {entry.fix_attempts}[/dim]") + + console.print(tree) + + def get_execution_summary(self) -> dict[str, Any]: + """Get summary of all executions.""" + return { + "total_commands": len(self.execution_history), + "successful": sum(1 for h in self.execution_history if h.get("success")), + "failed": sum(1 for h in self.execution_history if not h.get("success")), + "history": self.execution_history[-20:], # Last 20 + "variables_cached": len(self.variable_cache), + } + + +# ============================================================================= +# FACTORY FUNCTION +# ============================================================================= + +def get_diagnosis_engine( + provider: str = "claude", + debug: bool = False, +) -> DiagnosisEngine: + """Factory function to create a DiagnosisEngine.""" + api_key = os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("OPENAI_API_KEY") + return DiagnosisEngine(api_key=api_key, provider=provider, debug=debug) + + +# ============================================================================= +# CLI TEST +# ============================================================================= + +if __name__ == "__main__": + import sys + + console.print("[bold]Diagnosis Engine Test[/bold]\n") + + engine = get_diagnosis_engine(debug=True) + + # Test error categorization + test_cases = [ + ("cat /nonexistent/file", "cat: /nonexistent/file: No such file or directory"), + ("docker pull ghcr.io/test/image", "Error: Non-null Username Required"), + ("apt install fakepackage", "E: Unable to locate package fakepackage"), + ("nginx -t", "nginx: [emerg] unknown directive \"invalid\" in /etc/nginx/nginx.conf:10"), + ("systemctl start myservice", "Failed to start myservice.service: Unit myservice.service not found."), + ] + + for cmd, error in test_cases: + console.print(f"\n[bold]Test:[/bold] {cmd}") + console.print(f"[dim]Error: {error}[/dim]") + + diagnosis = engine.categorize_error(cmd, error) + console.print(f"[green]Category: {diagnosis.category.value}[/green]") + console.print("") + diff --git a/cortex/do_runner/executor.py b/cortex/do_runner/executor.py new file mode 100644 index 000000000..dce6b0c7f --- /dev/null +++ b/cortex/do_runner/executor.py @@ -0,0 +1,468 @@ +"""Task Tree Executor for advanced command execution with auto-repair.""" + +import os +import subprocess +import time +from typing import Any, Callable + +from rich.console import Console +from rich.prompt import Confirm + +from .models import ( + CommandLog, + CommandStatus, + DoRun, + TaskNode, + TaskTree, + TaskType, +) +from .terminal import TerminalMonitor + +console = Console() + + +class TaskTreeExecutor: + """ + Executes a task tree with auto-repair capabilities. + + This handles: + - Executing commands in order + - Spawning repair sub-tasks when commands fail + - Asking for additional permissions when needed + - Monitoring terminals during manual intervention + - Providing detailed reasoning for failures + """ + + def __init__( + self, + user_manager: type, + paths_manager: Any, + llm_callback: Callable[[str], dict] | None = None, + ): + self.user_manager = user_manager + self.paths_manager = paths_manager + self.llm_callback = llm_callback + self.tree = TaskTree() + self._granted_privileges: list[str] = [] + self._permission_sets_requested: int = 0 + self._terminal_monitor: TerminalMonitor | None = None + + self._in_manual_mode = False + self._manual_commands_executed: list[dict] = [] + + def build_tree_from_commands( + self, + commands: list[dict[str, str]], + ) -> TaskTree: + """Build a task tree from a list of commands.""" + for cmd in commands: + self.tree.add_root_task( + command=cmd.get("command", ""), + purpose=cmd.get("purpose", ""), + ) + return self.tree + + def execute_tree( + self, + confirm_callback: Callable[[list[TaskNode]], bool] | None = None, + notify_callback: Callable[[str, str], None] | None = None, + ) -> tuple[bool, str]: + """ + Execute the task tree with auto-repair. + + Returns: + Tuple of (success, summary) + """ + total_success = 0 + total_failed = 0 + total_repaired = 0 + repair_details = [] + + for root_task in self.tree.root_tasks: + success, repaired = self._execute_task_with_repair( + root_task, + confirm_callback, + notify_callback, + ) + + if success: + total_success += 1 + if repaired: + total_repaired += 1 + else: + total_failed += 1 + if root_task.failure_reason: + repair_details.append(f"- {root_task.command[:40]}...: {root_task.failure_reason}") + + summary_parts = [ + f"Completed: {total_success}", + f"Failed: {total_failed}", + ] + if total_repaired > 0: + summary_parts.append(f"Auto-repaired: {total_repaired}") + + summary = f"Tasks: {' | '.join(summary_parts)}" + + if repair_details: + summary += "\n\nFailure reasons:\n" + "\n".join(repair_details) + + return total_failed == 0, summary + + def _execute_task_with_repair( + self, + task: TaskNode, + confirm_callback: Callable[[list[TaskNode]], bool] | None = None, + notify_callback: Callable[[str, str], None] | None = None, + ) -> tuple[bool, bool]: + """Execute a task and attempt repair if it fails.""" + was_repaired = False + + task.status = CommandStatus.RUNNING + success, output, error, duration = self._execute_command(task.command) + + task.output = output + task.error = error + task.duration_seconds = duration + + if success: + task.status = CommandStatus.SUCCESS + console.print(f"[green]โœ“[/green] {task.purpose}") + return True, False + + task.status = CommandStatus.NEEDS_REPAIR + diagnosis = self._diagnose_error(task.command, error, output) + task.failure_reason = diagnosis.get("description", "Unknown error") + + console.print(f"[yellow]โš [/yellow] {task.purpose} - {diagnosis['error_type']}") + console.print(f"[dim] โ””โ”€ {diagnosis['description']}[/dim]") + + if diagnosis.get("can_auto_fix") and task.repair_attempts < task.max_repair_attempts: + task.repair_attempts += 1 + fix_commands = diagnosis.get("fix_commands", []) + + if fix_commands: + console.print(f"[cyan]๐Ÿ”ง Attempting auto-repair ({task.repair_attempts}/{task.max_repair_attempts})...[/cyan]") + + new_paths = self._identify_paths_needing_privileges(fix_commands) + if new_paths and confirm_callback: + repair_tasks = [] + for cmd in fix_commands: + repair_task = self.tree.add_repair_task( + parent=task, + command=cmd, + purpose=f"Repair: {diagnosis['description'][:50]}", + reasoning=diagnosis.get("reasoning", ""), + ) + repair_tasks.append(repair_task) + + self._permission_sets_requested += 1 + console.print(f"\n[yellow]๐Ÿ” Permission request #{self._permission_sets_requested} for repair commands:[/yellow]") + + if confirm_callback(repair_tasks): + all_repairs_success = True + for repair_task in repair_tasks: + repair_success, _ = self._execute_task_with_repair( + repair_task, confirm_callback, notify_callback + ) + if not repair_success: + all_repairs_success = False + + if all_repairs_success: + console.print(f"[cyan]โ†ป Retrying original command...[/cyan]") + success, output, error, duration = self._execute_command(task.command) + task.output = output + task.error = error + task.duration_seconds += duration + + if success: + task.status = CommandStatus.SUCCESS + task.reasoning = f"Auto-repaired after {task.repair_attempts} attempt(s)" + console.print(f"[green]โœ“[/green] {task.purpose} [dim](repaired)[/dim]") + return True, True + else: + all_repairs_success = True + for cmd in fix_commands: + repair_task = self.tree.add_repair_task( + parent=task, + command=cmd, + purpose=f"Repair: {diagnosis['description'][:50]}", + reasoning=diagnosis.get("reasoning", ""), + ) + repair_success, _ = self._execute_task_with_repair( + repair_task, confirm_callback, notify_callback + ) + if not repair_success: + all_repairs_success = False + + if all_repairs_success: + console.print(f"[cyan]โ†ป Retrying original command...[/cyan]") + success, output, error, duration = self._execute_command(task.command) + task.output = output + task.error = error + task.duration_seconds += duration + + if success: + task.status = CommandStatus.SUCCESS + task.reasoning = f"Auto-repaired after {task.repair_attempts} attempt(s)" + console.print(f"[green]โœ“[/green] {task.purpose} [dim](repaired)[/dim]") + return True, True + + task.status = CommandStatus.FAILED + task.reasoning = self._generate_failure_reasoning(task, diagnosis) + + if diagnosis.get("manual_suggestion") and notify_callback: + console.print(f"\n[yellow]๐Ÿ“‹ Manual intervention suggested:[/yellow]") + console.print(f"[dim]{diagnosis['manual_suggestion']}[/dim]") + + if Confirm.ask("Would you like to run this manually while Cortex monitors?", default=False): + success = self._supervise_manual_intervention( + task, + diagnosis.get("manual_suggestion", ""), + notify_callback, + ) + if success: + task.status = CommandStatus.SUCCESS + task.reasoning = "Completed via manual intervention with Cortex monitoring" + return True, True + + console.print(f"\n[red]โœ— Failed:[/red] {task.purpose}") + console.print(f"[dim] Reason: {task.reasoning}[/dim]") + + return False, was_repaired + + def _execute_command(self, command: str) -> tuple[bool, str, str, float]: + """Execute a command.""" + start_time = time.time() + + try: + needs_sudo = self._needs_sudo(command) + + if needs_sudo and not command.strip().startswith("sudo"): + command = f"sudo {command}" + + result = subprocess.run( + command, + shell=True, + capture_output=True, + text=True, + timeout=300, + ) + + duration = time.time() - start_time + success = result.returncode == 0 + + return success, result.stdout, result.stderr, duration + + except subprocess.TimeoutExpired: + return False, "", "Command timed out after 300 seconds", time.time() - start_time + except Exception as e: + return False, "", str(e), time.time() - start_time + + def _needs_sudo(self, command: str) -> bool: + """Determine if a command needs sudo.""" + sudo_keywords = [ + "systemctl", "service", "apt", "apt-get", "dpkg", + "useradd", "usermod", "userdel", "groupadd", + "chmod", "chown", "mount", "umount", "fdisk", + "iptables", "ufw", "firewall-cmd", + ] + + system_paths = ["/etc/", "/var/", "/usr/", "/opt/", "/sys/", "/proc/"] + + cmd_parts = command.strip().split() + if not cmd_parts: + return False + + base_cmd = cmd_parts[0] + + if base_cmd in sudo_keywords: + return True + + for part in cmd_parts: + for path in system_paths: + if path in part: + if any(op in command for op in [">", ">>", "cp ", "mv ", "rm ", "mkdir ", "touch ", "sed ", "tee "]): + return True + + return False + + def _diagnose_error( + self, + command: str, + stderr: str, + stdout: str, + ) -> dict[str, Any]: + """Diagnose why a command failed and suggest repairs.""" + error_lower = stderr.lower() + combined = (stderr + stdout).lower() + + if "permission denied" in error_lower: + import re + path_match = None + path_patterns = [ + r"cannot (?:create|open|access|stat|remove|modify) (?:regular file |directory )?['\"]?([^'\":\n]+)['\"]?", + r"open\(\) ['\"]?([^'\"]+)['\"]? failed", + r"['\"]([^'\"]+)['\"]?: [Pp]ermission denied", + ] + for pattern in path_patterns: + match = re.search(pattern, stderr) + if match: + path_match = match.group(1).strip() + break + + return { + "error_type": "Permission Denied", + "description": f"Insufficient permissions to access: {path_match or 'unknown path'}", + "can_auto_fix": True, + "fix_commands": [f"sudo {command}"] if not command.strip().startswith("sudo") else [], + "manual_suggestion": f"Run with sudo: sudo {command}", + "reasoning": f"The command tried to access '{path_match or 'a protected resource'}' without sufficient privileges.", + } + + if "no such file or directory" in error_lower: + import re + path_match = re.search(r"['\"]?([^'\"\n]+)['\"]?: [Nn]o such file", stderr) + missing_path = path_match.group(1) if path_match else None + + if missing_path: + parent_dir = os.path.dirname(missing_path) + if parent_dir: + return { + "error_type": "File Not Found", + "description": f"Path does not exist: {missing_path}", + "can_auto_fix": True, + "fix_commands": [f"sudo mkdir -p {parent_dir}"], + "manual_suggestion": f"Create the directory: sudo mkdir -p {parent_dir}", + "reasoning": f"The target path '{missing_path}' doesn't exist.", + } + + return { + "error_type": "File Not Found", + "description": "A required file or directory does not exist", + "can_auto_fix": False, + "fix_commands": [], + "manual_suggestion": "Check the file path and ensure it exists", + "reasoning": "The command references a non-existent path.", + } + + if "command not found" in error_lower or "not found" in error_lower: + import re + cmd_match = re.search(r"(\w+): (?:command )?not found", stderr) + missing_cmd = cmd_match.group(1) if cmd_match else None + + return { + "error_type": "Command Not Found", + "description": f"Command not installed: {missing_cmd or 'unknown'}", + "can_auto_fix": bool(missing_cmd), + "fix_commands": [f"sudo apt install -y {missing_cmd}"] if missing_cmd else [], + "manual_suggestion": f"Install: sudo apt install {missing_cmd}" if missing_cmd else "Install the required command", + "reasoning": f"The command '{missing_cmd or 'required'}' is not installed.", + } + + return { + "error_type": "Unknown Error", + "description": stderr[:200] if stderr else "Command failed with no error output", + "can_auto_fix": False, + "fix_commands": [], + "manual_suggestion": f"Review the error and try: {command}", + "reasoning": f"The command failed with an unexpected error.", + } + + def _generate_failure_reasoning(self, task: TaskNode, diagnosis: dict) -> str: + """Generate detailed reasoning for why a task failed.""" + parts = [ + f"Error type: {diagnosis.get('error_type', 'Unknown')}", + f"Description: {diagnosis.get('description', 'No details available')}", + ] + + if task.repair_attempts > 0: + parts.append(f"Repair attempts: {task.repair_attempts} (all failed)") + + if diagnosis.get("reasoning"): + parts.append(f"Analysis: {diagnosis['reasoning']}") + + if diagnosis.get("manual_suggestion"): + parts.append(f"Suggestion: {diagnosis['manual_suggestion']}") + + return " | ".join(parts) + + def _identify_paths_needing_privileges(self, commands: list[str]) -> list[str]: + """Identify paths in commands that need privilege grants.""" + paths = [] + for cmd in commands: + parts = cmd.split() + for part in parts: + if part.startswith("/") and self.paths_manager.is_protected(part): + paths.append(part) + return paths + + def _supervise_manual_intervention( + self, + task: TaskNode, + instruction: str, + notify_callback: Callable[[str, str], None], + ) -> bool: + """Supervise manual command execution with terminal monitoring.""" + self._in_manual_mode = True + + console.print("\n[bold cyan]โ•โ•โ• Manual Intervention Mode โ•โ•โ•[/bold cyan]") + console.print(f"\n[yellow]Run this command in another terminal:[/yellow]") + console.print(f"[bold]{instruction}[/bold]") + + self._terminal_monitor = TerminalMonitor( + notification_callback=lambda title, msg: notify_callback(title, msg) + ) + self._terminal_monitor.start() + + console.print("\n[dim]Cortex is now monitoring your terminal for issues...[/dim]") + + try: + while True: + choice = Confirm.ask( + "\nHave you completed the manual step?", + default=True, + ) + + if choice: + success = Confirm.ask("Was it successful?", default=True) + + if success: + console.print("[green]โœ“ Manual step completed successfully[/green]") + return True + else: + console.print("\n[yellow]What went wrong?[/yellow]") + console.print("1. Permission denied") + console.print("2. File not found") + console.print("3. Other error") + + try: + error_choice = int(input("Enter choice (1-3): ")) + except ValueError: + error_choice = 3 + + if error_choice == 1: + console.print(f"[yellow]Try: sudo {instruction}[/yellow]") + elif error_choice == 2: + console.print("[yellow]Check the file path exists[/yellow]") + else: + console.print("[yellow]Describe the error and try again[/yellow]") + + continue_trying = Confirm.ask("Continue trying?", default=True) + if not continue_trying: + return False + else: + console.print("[dim]Take your time. Cortex is still monitoring...[/dim]") + + finally: + self._in_manual_mode = False + if self._terminal_monitor: + self._terminal_monitor.stop() + + def get_tree_summary(self) -> dict: + """Get a summary of the task tree execution.""" + return { + "tree": self.tree.to_dict(), + "permission_requests": self._permission_sets_requested, + "manual_commands": self._manual_commands_executed, + } + diff --git a/cortex/do_runner/handler.py b/cortex/do_runner/handler.py new file mode 100644 index 000000000..107ba4b42 --- /dev/null +++ b/cortex/do_runner/handler.py @@ -0,0 +1,2382 @@ +"""Main DoHandler class for the --do functionality.""" + +import datetime +import os +import shutil +import subprocess +import time +from typing import Any, Callable + +from rich.console import Console +from rich.panel import Panel +from rich.prompt import Confirm +from rich.table import Table + +from .database import DoRunDatabase +from .diagnosis import AutoFixer, ErrorDiagnoser, LoginHandler +from .managers import CortexUserManager, ProtectedPathsManager +from .models import ( + CommandLog, + CommandStatus, + DoRun, + RunMode, + TaskNode, + TaskTree, +) +from .terminal import TerminalMonitor +from .verification import ( + ConflictDetector, + FileUsefulnessAnalyzer, + VerificationRunner, +) + +console = Console() + + +class DoHandler: + """Main handler for the --do functionality.""" + + def __init__(self, llm_callback: Callable[[str], dict] | None = None): + self.db = DoRunDatabase() + self.paths_manager = ProtectedPathsManager() + self.user_manager = CortexUserManager + self.current_run: DoRun | None = None + self._granted_privileges: list[str] = [] + self.llm_callback = llm_callback + + self._task_tree: TaskTree | None = None + self._permission_requests_count = 0 + + self._terminal_monitor: TerminalMonitor | None = None + + # Initialize helper classes + self._diagnoser = ErrorDiagnoser() + self._auto_fixer = AutoFixer(llm_callback=llm_callback) + self._login_handler = LoginHandler() + self._conflict_detector = ConflictDetector() + self._verification_runner = VerificationRunner() + self._file_analyzer = FileUsefulnessAnalyzer() + + # Initialize notification manager + try: + from cortex.notification_manager import NotificationManager + self.notifier = NotificationManager() + except ImportError: + self.notifier = None + + def _send_notification(self, title: str, message: str, level: str = "normal"): + """Send a desktop notification.""" + if self.notifier: + self.notifier.send(title, message, level=level) + else: + console.print(f"[bold yellow]๐Ÿ”” {title}:[/bold yellow] {message}") + + def setup_cortex_user(self) -> bool: + """Ensure the cortex user exists.""" + if not self.user_manager.user_exists(): + console.print("[yellow]Setting up cortex user...[/yellow]") + success, message = self.user_manager.create_user() + if success: + console.print(f"[green]โœ“ {message}[/green]") + else: + console.print(f"[red]โœ— {message}[/red]") + return success + return True + + def analyze_commands_for_protected_paths( + self, + commands: list[tuple[str, str]] + ) -> list[tuple[str, str, list[str]]]: + """Analyze commands and identify protected paths they access.""" + results = [] + + for command, purpose in commands: + protected = [] + parts = command.split() + for part in parts: + if part.startswith("/") or part.startswith("~"): + path = os.path.expanduser(part) + if self.paths_manager.is_protected(path): + protected.append(path) + + results.append((command, purpose, protected)) + + return results + + def request_user_confirmation( + self, + commands: list[tuple[str, str, list[str]]], + ) -> bool: + """Show commands to user and request confirmation.""" + console.print() + console.print(Panel( + "[bold yellow]โš ๏ธ Cortex wants to execute the following commands[/bold yellow]", + expand=False, + )) + console.print() + + table = Table(show_header=True, header_style="bold cyan") + table.add_column("#", style="dim", width=3) + table.add_column("Command", style="green") + table.add_column("Purpose", style="white") + table.add_column("Protected Paths", style="yellow") + + for i, (cmd, purpose, protected) in enumerate(commands, 1): + protected_str = ", ".join(protected) if protected else "-" + table.add_row(str(i), cmd, purpose, protected_str) + + console.print(table) + console.print() + + all_protected = [] + for _, _, protected in commands: + all_protected.extend(protected) + + if all_protected: + console.print("[bold red]โš ๏ธ These commands will access protected system paths![/bold red]") + console.print(f"[dim]Protected paths: {', '.join(set(all_protected))}[/dim]") + console.print() + + return Confirm.ask("[bold]Do you want to proceed?[/bold]", default=False) + + def _needs_sudo(self, cmd: str, protected_paths: list[str]) -> bool: + """Determine if a command needs sudo to execute.""" + sudo_commands = [ + "systemctl", "service", "apt", "apt-get", "dpkg", + "mount", "umount", "fdisk", "mkfs", "chown", "chmod", + "useradd", "userdel", "usermod", "groupadd", "groupdel", + ] + + cmd_parts = cmd.split() + if not cmd_parts: + return False + + base_cmd = cmd_parts[0] + + if base_cmd in sudo_commands: + return True + + if protected_paths: + return True + + if any(p in cmd for p in ["/etc/", "/var/lib/", "/usr/", "/opt/", "/root/"]): + return True + + return False + + # Commands that benefit from streaming output (long-running with progress) + STREAMING_COMMANDS = [ + "docker pull", "docker push", "docker build", + "apt install", "apt-get install", "apt update", "apt-get update", "apt upgrade", "apt-get upgrade", + "pip install", "pip3 install", "pip download", "pip3 download", + "npm install", "npm ci", "yarn install", "yarn add", + "cargo build", "cargo install", + "go build", "go install", "go get", + "gem install", "bundle install", + "wget", "curl -o", "curl -O", + "git clone", "git pull", "git fetch", + "make", "cmake", "ninja", + "rsync", "scp", + ] + + # Interactive commands that need a TTY - cannot be run in background/automated + INTERACTIVE_COMMANDS = [ + "docker exec -it", "docker exec -ti", "docker run -it", "docker run -ti", + "docker attach", + "ollama run", "ollama chat", + "ssh ", + "bash -i", "sh -i", "zsh -i", + "vi ", "vim ", "nano ", "emacs ", + "python -i", "python3 -i", "ipython", "node -i", + "mysql -u", "psql -U", "mongo ", "redis-cli", + "htop", "top -i", "less ", "more ", + ] + + def _should_stream_output(self, cmd: str) -> bool: + """Check if command should use streaming output.""" + cmd_lower = cmd.lower() + return any(streaming_cmd in cmd_lower for streaming_cmd in self.STREAMING_COMMANDS) + + def _is_interactive_command(self, cmd: str) -> bool: + """Check if command requires interactive TTY and cannot be automated.""" + cmd_lower = cmd.lower() + # Check explicit patterns + if any(interactive in cmd_lower for interactive in self.INTERACTIVE_COMMANDS): + return True + # Check for -it or -ti flags in docker commands + if "docker" in cmd_lower and (" -it " in cmd_lower or " -ti " in cmd_lower or + cmd_lower.endswith(" -it") or cmd_lower.endswith(" -ti")): + return True + return False + + # Timeout settings by command type (in seconds) + COMMAND_TIMEOUTS = { + "docker pull": 1800, # 30 minutes for large images + "docker push": 1800, # 30 minutes for large images + "docker build": 3600, # 1 hour for complex builds + "apt install": 900, # 15 minutes + "apt-get install": 900, + "apt update": 300, # 5 minutes + "apt-get update": 300, + "apt upgrade": 1800, # 30 minutes + "apt-get upgrade": 1800, + "pip install": 600, # 10 minutes + "pip3 install": 600, + "npm install": 900, # 15 minutes + "yarn install": 900, + "git clone": 600, # 10 minutes + "make": 1800, # 30 minutes + "cargo build": 1800, + } + + def _get_command_timeout(self, cmd: str) -> int: + """Get appropriate timeout for a command.""" + cmd_lower = cmd.lower() + for cmd_pattern, timeout in self.COMMAND_TIMEOUTS.items(): + if cmd_pattern in cmd_lower: + return timeout + return 600 # Default 10 minutes for streaming commands + + def _execute_with_streaming( + self, + cmd: str, + needs_sudo: bool, + timeout: int | None = None, # None = auto-detect + ) -> tuple[bool, str, str]: + """Execute a command with real-time output streaming.""" + import select + import sys + + # Auto-detect timeout if not specified + if timeout is None: + timeout = self._get_command_timeout(cmd) + + # Show timeout info for long operations + if timeout > 300: + console.print(f"[dim] โฑ๏ธ Timeout: {timeout // 60} minutes (large operation)[/dim]") + + stdout_lines = [] + stderr_lines = [] + + try: + if needs_sudo: + process = subprocess.Popen( + ["sudo", "bash", "-c", cmd], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + text=True, + bufsize=1, # Line buffered + ) + else: + process = subprocess.Popen( + cmd, + shell=True, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + text=True, + bufsize=1, + ) + + # Use select for non-blocking reads on both stdout and stderr + import time + start_time = time.time() + + while True: + # Check timeout + if time.time() - start_time > timeout: + process.kill() + return False, "\n".join(stdout_lines), f"Command timed out after {timeout} seconds" + + # Check if process has finished + if process.poll() is not None: + # Read any remaining output + remaining_stdout, remaining_stderr = process.communicate() + if remaining_stdout: + for line in remaining_stdout.splitlines(): + stdout_lines.append(line) + self._print_progress_line(line, is_stderr=False) + if remaining_stderr: + for line in remaining_stderr.splitlines(): + stderr_lines.append(line) + self._print_progress_line(line, is_stderr=True) + break + + # Try to read from stdout/stderr without blocking + try: + readable, _, _ = select.select([process.stdout, process.stderr], [], [], 0.1) + + for stream in readable: + line = stream.readline() + if line: + line = line.rstrip() + if stream == process.stdout: + stdout_lines.append(line) + self._print_progress_line(line, is_stderr=False) + else: + stderr_lines.append(line) + self._print_progress_line(line, is_stderr=True) + except (ValueError, OSError): + # Stream closed + break + + return ( + process.returncode == 0, + "\n".join(stdout_lines).strip(), + "\n".join(stderr_lines).strip(), + ) + + except Exception as e: + return False, "\n".join(stdout_lines), str(e) + + def _print_progress_line(self, line: str, is_stderr: bool = False) -> None: + """Print a progress line with appropriate formatting.""" + if not line.strip(): + return + + line = line.strip() + + # Docker pull progress patterns + if any(p in line for p in ["Pulling from", "Digest:", "Status:", "Pull complete", "Downloading", "Extracting"]): + console.print(f"[dim] ๐Ÿ“ฆ {line}[/dim]") + # Docker build progress + elif line.startswith("Step ") or line.startswith("---> "): + console.print(f"[dim] ๐Ÿ”จ {line}[/dim]") + # apt progress patterns + elif any(p in line for p in ["Get:", "Hit:", "Fetched", "Reading", "Building", "Setting up", "Processing", "Unpacking"]): + console.print(f"[dim] ๐Ÿ“ฆ {line}[/dim]") + # pip progress patterns + elif any(p in line for p in ["Collecting", "Downloading", "Installing", "Successfully"]): + console.print(f"[dim] ๐Ÿ“ฆ {line}[/dim]") + # npm progress patterns + elif any(p in line for p in ["npm", "added", "packages", "audited"]): + console.print(f"[dim] ๐Ÿ“ฆ {line}[/dim]") + # git progress patterns + elif any(p in line for p in ["Cloning", "remote:", "Receiving", "Resolving", "Checking out"]): + console.print(f"[dim] ๐Ÿ“ฆ {line}[/dim]") + # wget/curl progress + elif "%" in line and any(c.isdigit() for c in line): + # Progress percentage - update in place + console.print(f"[dim] โฌ‡๏ธ {line[:80]}[/dim]", end="\r") + # Error lines + elif is_stderr and any(p in line.lower() for p in ["error", "fail", "denied", "cannot", "unable"]): + console.print(f"[yellow] โš  {line}[/yellow]") + # Truncate very long lines + elif len(line) > 100: + console.print(f"[dim] {line[:100]}...[/dim]") + + def _execute_single_command( + self, + cmd: str, + needs_sudo: bool, + timeout: int = 120 + ) -> tuple[bool, str, str]: + """Execute a single command with proper privilege handling.""" + # Check for interactive commands that need a TTY + if self._is_interactive_command(cmd): + return self._handle_interactive_command(cmd, needs_sudo) + + # Use streaming for long-running commands + if self._should_stream_output(cmd): + return self._execute_with_streaming(cmd, needs_sudo, timeout=300) + + try: + if needs_sudo: + result = subprocess.run( + ["sudo", "bash", "-c", cmd], + capture_output=True, + text=True, + timeout=timeout, + ) + else: + result = subprocess.run( + cmd, + shell=True, + capture_output=True, + text=True, + timeout=timeout, + ) + return ( + result.returncode == 0, + result.stdout.strip(), + result.stderr.strip(), + ) + except subprocess.TimeoutExpired: + return False, "", f"Command timed out after {timeout} seconds" + except Exception as e: + return False, "", str(e) + + def _handle_interactive_command( + self, + cmd: str, + needs_sudo: bool + ) -> tuple[bool, str, str]: + """Handle interactive commands that need a TTY. + + These commands cannot be run in the background - they need user interaction. + We'll either: + 1. Try to open in a new terminal window + 2. Or inform the user to run it manually + """ + console.print() + console.print(f"[yellow]โšก Interactive command detected[/yellow]") + console.print(f"[dim] This command requires a terminal for interaction.[/dim]") + console.print() + + full_cmd = f"sudo {cmd}" if needs_sudo else cmd + + # Try to detect if we can open a new terminal + terminal_cmds = [ + ("gnome-terminal", f'gnome-terminal -- bash -c "{full_cmd}; echo; echo Press Enter to close...; read"'), + ("konsole", f'konsole -e bash -c "{full_cmd}; echo; echo Press Enter to close...; read"'), + ("xterm", f'xterm -e bash -c "{full_cmd}; echo; echo Press Enter to close...; read"'), + ("x-terminal-emulator", f'x-terminal-emulator -e bash -c "{full_cmd}; echo; echo Press Enter to close...; read"'), + ] + + # Check which terminal is available + for term_name, term_cmd in terminal_cmds: + if shutil.which(term_name): + console.print(f"[cyan]๐Ÿ–ฅ๏ธ Opening in new terminal window ({term_name})...[/cyan]") + console.print(f"[dim] Command: {full_cmd}[/dim]") + console.print() + + try: + # Start the terminal in background + subprocess.Popen( + term_cmd, + shell=True, + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, + ) + return True, f"Command opened in new {term_name} window", "" + except Exception as e: + console.print(f"[yellow] โš  Could not open terminal: {e}[/yellow]") + break + + # Fallback: ask user to run manually + console.print(f"[bold cyan]๐Ÿ“‹ Please run this command manually in another terminal:[/bold cyan]") + console.print() + console.print(f" [green]{full_cmd}[/green]") + console.print() + console.print(f"[dim] This command needs interactive input (TTY).[/dim]") + console.print(f"[dim] Cortex cannot capture its output automatically.[/dim]") + console.print() + + # Return special status indicating manual run needed + return True, "INTERACTIVE_COMMAND_MANUAL", f"Interactive command - run manually: {full_cmd}" + + def execute_commands_as_cortex( + self, + commands: list[tuple[str, str, list[str]]], + user_query: str, + ) -> DoRun: + """Execute commands with granular error handling and auto-recovery.""" + run = DoRun( + run_id=self.db._generate_run_id(), + summary="", + mode=RunMode.CORTEX_EXEC, + user_query=user_query, + started_at=datetime.datetime.now().isoformat(), + ) + self.current_run = run + + console.print() + console.print("[bold cyan]๐Ÿš€ Executing commands with conflict detection...[/bold cyan]") + console.print() + + # Phase 1: Conflict Detection + console.print("[dim]Checking for conflicts...[/dim]") + + cleanup_commands = [] + for cmd, purpose, protected in commands: + conflict = self._conflict_detector.check_for_conflicts(cmd, purpose) + if conflict["has_conflict"]: + console.print(f"[yellow] โš  {conflict['conflict_type']}: {conflict['suggestion']}[/yellow]") + if conflict["cleanup_commands"]: + cleanup_commands.extend(conflict["cleanup_commands"]) + + if cleanup_commands: + console.print("[dim]Running cleanup commands...[/dim]") + for cleanup_cmd in cleanup_commands: + self._execute_single_command(cleanup_cmd, needs_sudo=True) + + console.print() + + all_protected = set() + for _, _, protected in commands: + all_protected.update(protected) + + if all_protected: + console.print(f"[dim]๐Ÿ“ Protected paths involved: {', '.join(all_protected)}[/dim]") + console.print() + + # Phase 2: Execute Commands + for i, (cmd, purpose, protected) in enumerate(commands, 1): + console.print(f"[bold][{i}/{len(commands)}][/bold] {cmd}") + console.print(f"[dim] โ””โ”€ {purpose}[/dim]") + + file_check = self._file_analyzer.check_file_exists_and_usefulness(cmd, purpose, user_query) + + if file_check["recommendations"]: + self._file_analyzer.apply_file_recommendations(file_check["recommendations"]) + + cmd_log = CommandLog( + command=cmd, + purpose=purpose, + timestamp=datetime.datetime.now().isoformat(), + status=CommandStatus.RUNNING, + ) + + start_time = time.time() + needs_sudo = self._needs_sudo(cmd, protected) + + success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) + + if not success: + diagnosis = self._diagnoser.diagnose_error(cmd, stderr) + + console.print(f"[yellow] โš  Error: {diagnosis['description']}[/yellow]") + console.print(f"[dim] Error type: {diagnosis['error_type']} | Category: {diagnosis.get('category', 'unknown')}[/dim]") + + # Check if this is a login/credential required error + if diagnosis.get("category") == "login_required": + console.print(f"[cyan] ๐Ÿ” Authentication required for this command[/cyan]") + + login_success, login_msg = self._login_handler.handle_login(cmd, stderr) + + if login_success: + console.print(f"[green] โœ“ {login_msg}[/green]") + console.print(f"[cyan] Retrying command...[/cyan]") + + # Retry the command after successful login + success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) + + if success: + console.print(f"[green] โœ“ Command succeeded after authentication![/green]") + else: + console.print(f"[yellow] Command still failed after login: {stderr[:100]}[/yellow]") + else: + console.print(f"[yellow] {login_msg}[/yellow]") + else: + # Not a login error, proceed with regular error handling + if diagnosis.get("extracted_path"): + console.print(f"[dim] Problematic path: {diagnosis['extracted_path']}[/dim]") + if diagnosis.get("extracted_info"): + for key, value in diagnosis["extracted_info"].items(): + if value: + console.print(f"[dim] {key}: {value}[/dim]") + + fixed, fix_message, fix_commands = self._auto_fixer.auto_fix_error( + cmd, stderr, diagnosis, max_attempts=3 + ) + + if fixed: + success = True + console.print(f"[green] โœ“ Auto-fixed: {fix_message}[/green]") + _, stdout, stderr = self._execute_single_command(cmd, needs_sudo=True) + else: + if fix_commands: + console.print(f"[yellow] Attempted fixes: {len(fix_commands)} command(s)[/yellow]") + console.print(f"[yellow] Result: {fix_message}[/yellow]") + + cmd_log.duration_seconds = time.time() - start_time + cmd_log.output = stdout + cmd_log.error = stderr + cmd_log.status = CommandStatus.SUCCESS if success else CommandStatus.FAILED + + run.commands.append(cmd_log) + run.files_accessed.extend(protected) + + if success: + console.print(f"[green] โœ“ Success ({cmd_log.duration_seconds:.2f}s)[/green]") + if stdout: + output_lines = stdout.split('\n') + if len(output_lines) > 3: + display_output = '\n'.join(output_lines[:3]) + f"\n ... ({len(output_lines) - 3} more lines)" + else: + display_output = stdout[:200] + ('...' if len(stdout) > 200 else '') + console.print(f"[dim] {display_output}[/dim]") + else: + console.print(f"[red] โœ— Failed: {stderr[:200]}[/red]") + + final_diagnosis = self._diagnoser.diagnose_error(cmd, stderr) + if final_diagnosis["fix_commands"] and not final_diagnosis["can_auto_fix"]: + console.print(f"[yellow] ๐Ÿ’ก Manual intervention required:[/yellow]") + console.print(f"[yellow] Issue: {final_diagnosis['description']}[/yellow]") + + console.print(f"[yellow] Suggested commands to try:[/yellow]") + for fix_cmd in final_diagnosis["fix_commands"]: + if not fix_cmd.startswith("#"): + console.print(f"[cyan] $ {fix_cmd}[/cyan]") + else: + console.print(f"[dim] {fix_cmd}[/dim]") + + console.print() + + self._granted_privileges = [] + + # Phase 3: Verification Tests + console.print("[bold]Running verification tests...[/bold]") + all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) + + # Phase 4: Auto-repair if tests failed + if not all_tests_passed: + console.print() + console.print("[bold yellow]๐Ÿ”ง Auto-repairing test failures...[/bold yellow]") + + repair_success = self._handle_test_failures(test_results, run) + + if repair_success: + console.print("[dim]Re-running verification tests...[/dim]") + all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) + + run.completed_at = datetime.datetime.now().isoformat() + run.summary = self._generate_summary(run) + + if test_results: + passed = sum(1 for t in test_results if t["passed"]) + run.summary += f" | Tests: {passed}/{len(test_results)} passed" + + self.db.save_run(run) + + console.print() + if all_tests_passed: + console.print(f"[bold green]โœ“ Run completed successfully[/bold green] (ID: {run.run_id})") + else: + console.print(f"[bold yellow]โš  Run completed with issues[/bold yellow] (ID: {run.run_id})") + console.print(f"[dim]Summary: {run.summary}[/dim]") + + return run + + def _handle_resource_conflict( + self, + idx: int, + cmd: str, + conflict: dict, + commands_to_skip: set, + cleanup_commands: list, + ) -> bool: + """Handle any resource conflict with user options. + + This is a GENERAL handler for all resource types: + - Docker containers + - Services + - Files/directories + - Packages + - Ports + - Users/groups + - Virtual environments + - Databases + - Cron jobs + """ + resource_type = conflict.get("resource_type", "resource") + resource_name = conflict.get("resource_name", "unknown") + conflict_type = conflict.get("conflict_type", "unknown") + suggestion = conflict.get("suggestion", "") + is_active = conflict.get("is_active", True) + alternatives = conflict.get("alternative_actions", []) + + # Resource type icons + icons = { + "container": "๐Ÿณ", + "compose": "๐Ÿณ", + "service": "โš™๏ธ", + "file": "๐Ÿ“„", + "directory": "๐Ÿ“", + "package": "๐Ÿ“ฆ", + "pip_package": "๐Ÿ", + "npm_package": "๐Ÿ“ฆ", + "port": "๐Ÿ”Œ", + "user": "๐Ÿ‘ค", + "group": "๐Ÿ‘ฅ", + "venv": "๐Ÿ", + "mysql_database": "๐Ÿ—„๏ธ", + "postgres_database": "๐Ÿ—„๏ธ", + "cron_job": "โฐ", + } + icon = icons.get(resource_type, "๐Ÿ“Œ") + + # Display the conflict + console.print() + if is_active: + console.print(f"[cyan] {icon} {resource_type.replace('_', ' ').title()} '{resource_name}' already exists![/cyan]") + else: + console.print(f"[yellow] {icon} {resource_type.replace('_', ' ').title()} '{resource_name}' exists (inactive)[/yellow]") + console.print(f"[dim] {suggestion}[/dim]") + + # If there are alternatives, show them + if alternatives: + console.print() + console.print(" [bold]What would you like to do?[/bold]") + for j, alt in enumerate(alternatives, 1): + console.print(f" {j}. {alt['description']}") + console.print() + + from rich.prompt import Prompt + choice = Prompt.ask( + " Choose an option", + choices=[str(k) for k in range(1, len(alternatives) + 1)], + default="1" + ) + + selected = alternatives[int(choice) - 1] + action = selected["action"] + action_commands = selected.get("commands", []) + + # Handle different actions + if action in ["use_existing", "use_different"]: + console.print(f"[green] โœ“ Using existing {resource_type} '{resource_name}'[/green]") + commands_to_skip.add(idx) + return True + + elif action == "start_existing": + console.print(f"[cyan] Starting existing {resource_type}...[/cyan]") + for start_cmd in action_commands: + needs_sudo = start_cmd.startswith("sudo") + success, _, stderr = self._execute_single_command(start_cmd, needs_sudo=needs_sudo) + if success: + console.print(f"[green] โœ“ {start_cmd}[/green]") + else: + console.print(f"[red] โœ— {start_cmd}: {stderr[:50]}[/red]") + commands_to_skip.add(idx) + return True + + elif action in ["restart", "upgrade", "reinstall"]: + console.print(f"[cyan] {action.title()}ing {resource_type}...[/cyan]") + for action_cmd in action_commands: + needs_sudo = action_cmd.startswith("sudo") + success, _, stderr = self._execute_single_command(action_cmd, needs_sudo=needs_sudo) + if success: + console.print(f"[green] โœ“ {action_cmd}[/green]") + else: + console.print(f"[red] โœ— {action_cmd}: {stderr[:50]}[/red]") + commands_to_skip.add(idx) + return True + + elif action in ["recreate", "backup", "replace", "stop_existing"]: + console.print(f"[cyan] Preparing to {action.replace('_', ' ')}...[/cyan]") + for action_cmd in action_commands: + needs_sudo = action_cmd.startswith("sudo") + success, _, stderr = self._execute_single_command(action_cmd, needs_sudo=needs_sudo) + if success: + console.print(f"[green] โœ“ {action_cmd}[/green]") + else: + console.print(f"[red] โœ— {action_cmd}: {stderr[:50]}[/red]") + # Don't skip - let the original command run after cleanup + return True + + elif action == "modify": + console.print(f"[cyan] Will modify existing {resource_type}[/cyan]") + # Don't skip - let the original command run to modify + return True + + # No alternatives - use default behavior (add to cleanup if available) + if conflict.get("cleanup_commands"): + cleanup_commands.extend(conflict["cleanup_commands"]) + + return False + + def _handle_test_failures( + self, + test_results: list[dict[str, Any]], + run: DoRun, + ) -> bool: + """Handle failed verification tests by attempting auto-repair.""" + failed_tests = [t for t in test_results if not t["passed"]] + + if not failed_tests: + return True + + console.print() + console.print("[bold yellow]๐Ÿ”ง Attempting to fix test failures...[/bold yellow]") + + all_fixed = True + + for test in failed_tests: + test_name = test["test"] + output = test["output"] + + console.print(f"[dim] Fixing: {test_name}[/dim]") + + if "nginx -t" in test_name: + diagnosis = self._diagnoser.diagnose_error("nginx -t", output) + fixed, msg, _ = self._auto_fixer.auto_fix_error("nginx -t", output, diagnosis, max_attempts=3) + if fixed: + console.print(f"[green] โœ“ Fixed: {msg}[/green]") + else: + console.print(f"[red] โœ— Could not fix: {msg}[/red]") + all_fixed = False + + elif "apache2ctl" in test_name: + diagnosis = self._diagnoser.diagnose_error("apache2ctl configtest", output) + fixed, msg, _ = self._auto_fixer.auto_fix_error("apache2ctl configtest", output, diagnosis, max_attempts=3) + if fixed: + console.print(f"[green] โœ“ Fixed: {msg}[/green]") + else: + all_fixed = False + + elif "systemctl is-active" in test_name: + import re + svc_match = re.search(r'is-active\s+(\S+)', test_name) + if svc_match: + service = svc_match.group(1) + success, _, err = self._execute_single_command( + f"sudo systemctl start {service}", needs_sudo=True + ) + if success: + console.print(f"[green] โœ“ Started service {service}[/green]") + else: + console.print(f"[yellow] โš  Could not start {service}: {err[:50]}[/yellow]") + + elif "file exists" in test_name: + import re + path_match = re.search(r'file exists: (.+)', test_name) + if path_match: + path = path_match.group(1) + parent = os.path.dirname(path) + if parent and not os.path.exists(parent): + self._execute_single_command(f"sudo mkdir -p {parent}", needs_sudo=True) + console.print(f"[green] โœ“ Created directory {parent}[/green]") + + return all_fixed + + def execute_with_task_tree( + self, + commands: list[tuple[str, str, list[str]]], + user_query: str, + ) -> DoRun: + """Execute commands using the task tree system with advanced auto-repair.""" + run = DoRun( + run_id=self.db._generate_run_id(), + summary="", + mode=RunMode.CORTEX_EXEC, + user_query=user_query, + started_at=datetime.datetime.now().isoformat(), + ) + self.current_run = run + self._permission_requests_count = 0 + + self._task_tree = TaskTree() + for cmd, purpose, protected in commands: + task = self._task_tree.add_root_task(cmd, purpose) + task.reasoning = f"Protected paths: {', '.join(protected)}" if protected else "" + + console.print() + console.print(Panel( + "[bold cyan]๐ŸŒณ Task Tree Execution Mode[/bold cyan]\n" + "[dim]Commands will be executed with auto-repair capabilities.[/dim]\n" + "[dim]Conflict detection and verification tests enabled.[/dim]", + expand=False, + )) + console.print() + + # Phase 1: Conflict Detection + console.print("[bold]๐Ÿ“‹ Phase 1: Checking for conflicts...[/bold]") + + conflicts_found = [] + cleanup_commands = [] + commands_to_skip = set() # Track commands that should be skipped (use existing) + commands_to_replace = {} # Track commands that should be replaced + + for i, (cmd, purpose, protected) in enumerate(commands): + conflict = self._conflict_detector.check_for_conflicts(cmd, purpose) + if conflict["has_conflict"]: + conflicts_found.append((i, cmd, conflict)) + + if conflicts_found: + console.print(f"[yellow] Found {len(conflicts_found)} potential conflict(s)[/yellow]") + + for idx, cmd, conflict in conflicts_found: + # Handle any resource conflict with alternatives + handled = self._handle_resource_conflict(idx, cmd, conflict, commands_to_skip, cleanup_commands) + + # Run cleanup commands for non-Docker conflicts + if cleanup_commands: + console.print("[dim] Running cleanup commands...[/dim]") + for cleanup_cmd in cleanup_commands: + self._execute_single_command(cleanup_cmd, needs_sudo=True) + console.print(f"[dim] โœ“ {cleanup_cmd}[/dim]") + + # Filter out skipped commands + if commands_to_skip: + filtered_commands = [ + (cmd, purpose, protected) + for i, (cmd, purpose, protected) in enumerate(commands) + if i not in commands_to_skip + ] + # Update task tree to skip these tasks + for task in self._task_tree.root_tasks: + task_idx = next( + (i for i, (c, p, pr) in enumerate(commands) if c == task.command), + None + ) + if task_idx in commands_to_skip: + task.status = CommandStatus.SKIPPED + task.output = "Using existing resource" + commands = filtered_commands + else: + console.print("[green] โœ“ No conflicts detected[/green]") + + console.print() + + all_protected = set() + for _, _, protected in commands: + all_protected.update(protected) + + if all_protected: + console.print(f"[dim]๐Ÿ“ Protected paths: {', '.join(all_protected)}[/dim]") + console.print() + + # Phase 2: Execute Commands + console.print("[bold]๐Ÿš€ Phase 2: Executing commands...[/bold]") + console.print() + + for root_task in self._task_tree.root_tasks: + self._execute_task_node(root_task, run, commands) + + # Phase 3: Verification Tests + console.print() + console.print("[bold]๐Ÿงช Phase 3: Running verification tests...[/bold]") + + all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) + + # Phase 4: Auto-repair if tests failed + if not all_tests_passed: + console.print() + console.print("[bold]๐Ÿ”ง Phase 4: Auto-repairing test failures...[/bold]") + + repair_success = self._handle_test_failures(test_results, run) + + if repair_success: + console.print() + console.print("[dim] Re-running verification tests...[/dim]") + all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) + + run.completed_at = datetime.datetime.now().isoformat() + run.summary = self._generate_tree_summary(run) + + if test_results: + passed = sum(1 for t in test_results if t["passed"]) + run.summary += f" | Tests: {passed}/{len(test_results)} passed" + + self.db.save_run(run) + + console.print() + console.print("[bold]Task Execution Tree:[/bold]") + self._task_tree.print_tree() + + console.print() + if all_tests_passed: + console.print(f"[bold green]โœ“ Run completed successfully[/bold green] (ID: {run.run_id})") + else: + console.print(f"[bold yellow]โš  Run completed with issues[/bold yellow] (ID: {run.run_id})") + console.print(f"[dim]Summary: {run.summary}[/dim]") + + if self._permission_requests_count > 1: + console.print(f"[dim]Permission requests made: {self._permission_requests_count}[/dim]") + + # Interactive session - suggest next steps + self._interactive_session(run, commands, user_query) + + return run + + def _interactive_session( + self, + run: DoRun, + commands: list[tuple[str, str, list[str]]], + user_query: str, + ) -> None: + """Interactive session after task completion - suggest next steps.""" + from rich.prompt import Prompt + + # Generate context-aware suggestions based on what was done + suggestions = self._generate_suggestions(run, commands, user_query) + + # Track context for natural language processing + context = { + "original_query": user_query, + "executed_commands": [cmd for cmd, _, _ in commands], + "session_actions": [], + } + + console.print() + console.print("[bold cyan]โ”โ”โ” What would you like to do next? โ”โ”โ”[/bold cyan]") + console.print() + + # Display suggestions + self._display_suggestions(suggestions) + + console.print() + console.print("[dim]๐Ÿ’ก Tip: You can type any request in natural language, like:[/dim]") + console.print("[dim] โ€ข 'run the container on port 3000'[/dim]") + console.print("[dim] โ€ข 'show me how to connect to it'[/dim]") + console.print("[dim] โ€ข 'install another package called redis'[/dim]") + console.print() + + while True: + try: + response = Prompt.ask( + "[bold]What would you like to do?[/bold]", + default="exit" + ) + + response_stripped = response.strip() + response_lower = response_stripped.lower() + + # Check for exit keywords + if response_lower in ["exit", "quit", "done", "no", "n", "bye", "thanks", "nothing", ""]: + console.print("[dim]๐Ÿ‘‹ Session ended. Run 'cortex do history' to see past runs.[/dim]") + break + + # Try to parse as number (for suggestion selection) + try: + choice = int(response_stripped) + if suggestions and 1 <= choice <= len(suggestions): + suggestion = suggestions[choice - 1] + self._execute_suggestion(suggestion, run, user_query) + context["session_actions"].append(suggestion.get("label", "")) + + # Continue the session + console.print() + suggestions = self._generate_suggestions(run, commands, user_query) + self._display_suggestions(suggestions) + console.print() + continue + elif suggestions and choice == len(suggestions) + 1: + console.print("[dim]๐Ÿ‘‹ Session ended.[/dim]") + break + except ValueError: + pass + + # Handle natural language request + handled = self._handle_natural_language_request( + response_stripped, + suggestions, + context, + run, + commands + ) + + if handled: + context["session_actions"].append(response_stripped) + # Update context with the new query for better suggestions + context["last_query"] = response_stripped + + # Refresh suggestions based on new context + console.print() + # Use the new query for generating suggestions + combined_query = f"{user_query}. Then: {response_stripped}" + suggestions = self._generate_suggestions(run, commands, combined_query) + self._display_suggestions(suggestions) + console.print() + + except (EOFError, KeyboardInterrupt): + console.print("\n[dim]๐Ÿ‘‹ Session ended.[/dim]") + break + + def _display_suggestions(self, suggestions: list[dict]) -> None: + """Display numbered suggestions.""" + if not suggestions: + console.print("[dim]No specific suggestions available.[/dim]") + return + + for i, suggestion in enumerate(suggestions, 1): + icon = suggestion.get("icon", "๐Ÿ’ก") + label = suggestion.get("label", "") + desc = suggestion.get("description", "") + console.print(f" [cyan]{i}.[/cyan] {icon} {label}") + if desc: + console.print(f" [dim]{desc}[/dim]") + + console.print(f" [cyan]{len(suggestions) + 1}.[/cyan] ๐Ÿšช Exit session") + + def _handle_natural_language_request( + self, + request: str, + suggestions: list[dict], + context: dict, + run: DoRun, + commands: list[tuple[str, str, list[str]]], + ) -> bool: + """Handle a natural language request from the user. + + Uses LLM if available for full understanding, falls back to pattern matching. + Returns True if the request was handled, False otherwise. + """ + request_lower = request.lower() + + # Quick keyword matching for common actions (fast path) + keyword_handlers = [ + (["start", "run", "begin", "launch", "execute"], "start"), + (["setup", "configure", "config", "set up"], "setup"), + (["demo", "example", "sample", "code"], "demo"), + (["test", "verify", "check", "validate"], "test"), + ] + + # Check if request is a simple match to existing suggestions + for keywords, action_type in keyword_handlers: + if any(kw in request_lower for kw in keywords): + # Only use quick match if it's a very simple request + if len(request.split()) <= 4: + for suggestion in suggestions: + if suggestion.get("type") == action_type: + self._execute_suggestion(suggestion, run, context["original_query"]) + return True + + # Use LLM for full understanding if available + console.print() + console.print(f"[cyan]๐Ÿค” Understanding your request...[/cyan]") + + if self.llm_callback: + return self._handle_request_with_llm(request, context, run, commands) + else: + # Fall back to pattern matching + return self._handle_request_with_patterns(request, context, run) + + def _handle_request_with_llm( + self, + request: str, + context: dict, + run: DoRun, + commands: list[tuple[str, str, list[str]]], + ) -> bool: + """Handle request using LLM for full understanding.""" + try: + # Call LLM to understand the request + llm_response = self.llm_callback(request, context) + + if not llm_response or llm_response.get("response_type") == "error": + console.print(f"[yellow]โš  Could not process request: {llm_response.get('error', 'Unknown error')}[/yellow]") + return False + + response_type = llm_response.get("response_type") + + # Handle do_commands - execute with confirmation + if response_type == "do_commands" and llm_response.get("do_commands"): + do_commands = llm_response["do_commands"] + reasoning = llm_response.get("reasoning", "") + + console.print() + console.print(f"[cyan]๐Ÿค– {reasoning}[/cyan]") + console.print() + + # Show commands and ask for confirmation + console.print("[bold]๐Ÿ“‹ Commands to execute:[/bold]") + for i, cmd_info in enumerate(do_commands, 1): + cmd = cmd_info.get("command", "") + purpose = cmd_info.get("purpose", "") + sudo = "๐Ÿ” " if cmd_info.get("requires_sudo") else "" + console.print(f" {i}. {sudo}[green]{cmd}[/green]") + if purpose: + console.print(f" [dim]{purpose}[/dim]") + console.print() + + if not Confirm.ask("Execute these commands?", default=True): + console.print("[dim]Skipped.[/dim]") + return False + + # Execute the commands + console.print() + executed_in_session = [] + for cmd_info in do_commands: + cmd = cmd_info.get("command", "") + purpose = cmd_info.get("purpose", "Execute command") + needs_sudo = cmd_info.get("requires_sudo", False) or self._needs_sudo(cmd, []) + + console.print(f"[COMMAND] {cmd}") + console.print(f" โ””โ”€ {purpose}") + + success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) + + if success: + console.print(f" [green]โœ“ Success[/green]") + if stdout: + output_preview = stdout[:300] + ('...' if len(stdout) > 300 else '') + console.print(f" [dim]{output_preview}[/dim]") + executed_in_session.append(cmd) + else: + console.print(f" [red]โœ— Failed: {stderr[:150]}[/red]") + + # Offer to diagnose and fix + if Confirm.ask(" Try to auto-fix?", default=True): + diagnosis = self._diagnoser.diagnose_error(cmd, stderr) + fixed, msg, _ = self._auto_fixer.auto_fix_error(cmd, stderr, diagnosis) + if fixed: + console.print(f" [green]โœ“ Fixed: {msg}[/green]") + executed_in_session.append(cmd) + + # Track executed commands in context for suggestion generation + if "executed_commands" not in context: + context["executed_commands"] = [] + context["executed_commands"].extend(executed_in_session) + + return True + + # Handle single command - execute directly + elif response_type == "command" and llm_response.get("command"): + cmd = llm_response["command"] + reasoning = llm_response.get("reasoning", "") + + console.print() + console.print(f"[cyan]๐Ÿ“‹ Running:[/cyan] [green]{cmd}[/green]") + if reasoning: + console.print(f" [dim]{reasoning}[/dim]") + + needs_sudo = self._needs_sudo(cmd, []) + success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) + + if success: + console.print(f"[green]โœ“ Success[/green]") + if stdout: + console.print(f"[dim]{stdout[:500]}{'...' if len(stdout) > 500 else ''}[/dim]") + else: + console.print(f"[red]โœ— Failed: {stderr[:200]}[/red]") + + return True + + # Handle answer - just display it + elif response_type == "answer" and llm_response.get("answer"): + console.print() + console.print(llm_response["answer"]) + return True + + else: + console.print(f"[yellow]I didn't understand that. Could you rephrase?[/yellow]") + return False + + except Exception as e: + console.print(f"[yellow]โš  Error processing request: {e}[/yellow]") + # Fall back to pattern matching + return self._handle_request_with_patterns(request, context, run) + + def _handle_request_with_patterns( + self, + request: str, + context: dict, + run: DoRun, + ) -> bool: + """Handle request using pattern matching (fallback when LLM not available).""" + # Try to generate a command from the natural language request + generated = self._generate_command_from_request(request, context) + + if generated: + cmd = generated.get("command") + purpose = generated.get("purpose", "Execute user request") + needs_confirm = generated.get("needs_confirmation", True) + + console.print() + console.print(f"[cyan]๐Ÿ“‹ I'll run this command:[/cyan]") + console.print(f" [green]{cmd}[/green]") + console.print(f" [dim]{purpose}[/dim]") + console.print() + + if needs_confirm: + if not Confirm.ask("Proceed?", default=True): + console.print("[dim]Skipped.[/dim]") + return False + + # Execute the command + needs_sudo = self._needs_sudo(cmd, []) + success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) + + if success: + console.print(f"[green]โœ“ Success[/green]") + if stdout: + output_preview = stdout[:500] + ('...' if len(stdout) > 500 else '') + console.print(f"[dim]{output_preview}[/dim]") + else: + console.print(f"[red]โœ— Failed: {stderr[:200]}[/red]") + + # Offer to diagnose the error + if Confirm.ask("Would you like me to try to fix this?", default=True): + diagnosis = self._diagnoser.diagnose_error(cmd, stderr) + fixed, msg, _ = self._auto_fixer.auto_fix_error(cmd, stderr, diagnosis) + if fixed: + console.print(f"[green]โœ“ Fixed: {msg}[/green]") + + return True + + # Couldn't understand the request + console.print(f"[yellow]I'm not sure how to do that. Could you be more specific?[/yellow]") + console.print(f"[dim]Try something like: 'run the container', 'show me the config', or select a number.[/dim]") + return False + + def _generate_command_from_request( + self, + request: str, + context: dict, + ) -> dict | None: + """Generate a command from a natural language request.""" + request_lower = request.lower() + executed_cmds = context.get("executed_commands", []) + cmd_context = " ".join(executed_cmds).lower() + + # Pattern matching for common requests + patterns = [ + # Docker patterns + (r"run.*(?:container|image|docker)(?:.*port\s*(\d+))?", self._gen_docker_run), + (r"stop.*(?:container|docker)", self._gen_docker_stop), + (r"remove.*(?:container|docker)", self._gen_docker_remove), + (r"(?:show|list).*(?:containers?|images?)", self._gen_docker_list), + (r"logs?(?:\s+of)?(?:\s+the)?(?:\s+container)?", self._gen_docker_logs), + (r"exec.*(?:container|docker)|shell.*(?:container|docker)", self._gen_docker_exec), + + # Service patterns + (r"(?:start|restart).*(?:service|nginx|apache|postgres|mysql|redis)", self._gen_service_start), + (r"stop.*(?:service|nginx|apache|postgres|mysql|redis)", self._gen_service_stop), + (r"status.*(?:service|nginx|apache|postgres|mysql|redis)", self._gen_service_status), + + # Package patterns + (r"install\s+(.+)", self._gen_install_package), + (r"update\s+(?:packages?|system)", self._gen_update_packages), + + # File patterns + (r"(?:show|cat|view|read).*(?:config|file|log)(?:.*?([/\w\.\-]+))?", self._gen_show_file), + (r"edit.*(?:config|file)(?:.*?([/\w\.\-]+))?", self._gen_edit_file), + + # Info patterns + (r"(?:check|show|what).*(?:version|status)", self._gen_check_version), + (r"(?:how|where).*(?:connect|access|use)", self._gen_show_connection_info), + ] + + import re + for pattern, handler in patterns: + match = re.search(pattern, request_lower) + if match: + return handler(request, match, context) + + # Use LLM if available to generate command + if self.llm_callback: + return self._llm_generate_command(request, context) + + return None + + # Command generators + def _gen_docker_run(self, request: str, match, context: dict) -> dict: + # Find the image from context + executed = context.get("executed_commands", []) + image = "your-image" + for cmd in executed: + if "docker pull" in cmd: + image = cmd.split("docker pull")[-1].strip() + break + + # Check for port in request + port = match.group(1) if match.lastindex and match.group(1) else "8080" + container_name = image.split("/")[-1].split(":")[0] + + return { + "command": f"docker run -d --name {container_name} -p {port}:{port} {image}", + "purpose": f"Run {image} container on port {port}", + "needs_confirmation": True, + } + + def _gen_docker_stop(self, request: str, match, context: dict) -> dict: + return { + "command": "docker ps -q | xargs -r docker stop", + "purpose": "Stop all running containers", + "needs_confirmation": True, + } + + def _gen_docker_remove(self, request: str, match, context: dict) -> dict: + return { + "command": "docker ps -aq | xargs -r docker rm", + "purpose": "Remove all containers", + "needs_confirmation": True, + } + + def _gen_docker_list(self, request: str, match, context: dict) -> dict: + if "image" in request.lower(): + return {"command": "docker images", "purpose": "List Docker images", "needs_confirmation": False} + return {"command": "docker ps -a", "purpose": "List all containers", "needs_confirmation": False} + + def _gen_docker_logs(self, request: str, match, context: dict) -> dict: + return { + "command": "docker logs $(docker ps -lq) --tail 50", + "purpose": "Show logs of the most recent container", + "needs_confirmation": False, + } + + def _gen_docker_exec(self, request: str, match, context: dict) -> dict: + return { + "command": "docker exec -it $(docker ps -lq) /bin/sh", + "purpose": "Open shell in the most recent container", + "needs_confirmation": True, + } + + def _gen_service_start(self, request: str, match, context: dict) -> dict: + # Extract service name + services = ["nginx", "apache2", "postgresql", "mysql", "redis", "docker"] + service = "nginx" # default + for svc in services: + if svc in request.lower(): + service = svc + break + + if "restart" in request.lower(): + return {"command": f"sudo systemctl restart {service}", "purpose": f"Restart {service}", "needs_confirmation": True} + return {"command": f"sudo systemctl start {service}", "purpose": f"Start {service}", "needs_confirmation": True} + + def _gen_service_stop(self, request: str, match, context: dict) -> dict: + services = ["nginx", "apache2", "postgresql", "mysql", "redis", "docker"] + service = "nginx" + for svc in services: + if svc in request.lower(): + service = svc + break + return {"command": f"sudo systemctl stop {service}", "purpose": f"Stop {service}", "needs_confirmation": True} + + def _gen_service_status(self, request: str, match, context: dict) -> dict: + services = ["nginx", "apache2", "postgresql", "mysql", "redis", "docker"] + service = "nginx" + for svc in services: + if svc in request.lower(): + service = svc + break + return {"command": f"systemctl status {service}", "purpose": f"Check {service} status", "needs_confirmation": False} + + def _gen_install_package(self, request: str, match, context: dict) -> dict: + package = match.group(1).strip() if match.group(1) else "package-name" + # Clean up common words + package = package.replace("please", "").replace("the", "").replace("package", "").strip() + return { + "command": f"sudo apt install -y {package}", + "purpose": f"Install {package}", + "needs_confirmation": True, + } + + def _gen_update_packages(self, request: str, match, context: dict) -> dict: + return { + "command": "sudo apt update && sudo apt upgrade -y", + "purpose": "Update all packages", + "needs_confirmation": True, + } + + def _gen_show_file(self, request: str, match, context: dict) -> dict: + # Try to extract file path or use common config locations + file_path = match.group(1) if match.lastindex and match.group(1) else None + + if not file_path: + if "nginx" in request.lower(): + file_path = "/etc/nginx/nginx.conf" + elif "apache" in request.lower(): + file_path = "/etc/apache2/apache2.conf" + elif "postgres" in request.lower(): + file_path = "/etc/postgresql/*/main/postgresql.conf" + else: + file_path = "/etc/hosts" + + return {"command": f"cat {file_path}", "purpose": f"Show {file_path}", "needs_confirmation": False} + + def _gen_edit_file(self, request: str, match, context: dict) -> dict: + file_path = match.group(1) if match.lastindex and match.group(1) else "/etc/hosts" + return { + "command": f"sudo nano {file_path}", + "purpose": f"Edit {file_path}", + "needs_confirmation": True, + } + + def _gen_check_version(self, request: str, match, context: dict) -> dict: + # Try to determine what to check version of + tools = { + "docker": "docker --version", + "node": "node --version && npm --version", + "python": "python3 --version && pip3 --version", + "nginx": "nginx -v", + "postgres": "psql --version", + } + + for tool, cmd in tools.items(): + if tool in request.lower(): + return {"command": cmd, "purpose": f"Check {tool} version", "needs_confirmation": False} + + # Default: show multiple versions + return { + "command": "docker --version; node --version 2>/dev/null; python3 --version", + "purpose": "Check installed tool versions", + "needs_confirmation": False, + } + + def _gen_show_connection_info(self, request: str, match, context: dict) -> dict: + executed = context.get("executed_commands", []) + + # Check what was installed to provide relevant connection info + if any("ollama" in cmd for cmd in executed): + return { + "command": "echo 'Ollama API: http://localhost:11434' && curl -s http://localhost:11434/api/tags 2>/dev/null | head -5", + "purpose": "Show Ollama connection info", + "needs_confirmation": False, + } + elif any("postgres" in cmd for cmd in executed): + return { + "command": "echo 'PostgreSQL: psql -U postgres -h localhost' && sudo -u postgres psql -c '\\conninfo'", + "purpose": "Show PostgreSQL connection info", + "needs_confirmation": False, + } + elif any("nginx" in cmd for cmd in executed): + return { + "command": "echo 'Nginx: http://localhost:80' && curl -I http://localhost 2>/dev/null | head -3", + "purpose": "Show Nginx connection info", + "needs_confirmation": False, + } + + return { + "command": "ss -tlnp | head -20", + "purpose": "Show listening ports and services", + "needs_confirmation": False, + } + + def _llm_generate_command(self, request: str, context: dict) -> dict | None: + """Use LLM to generate a command from the request.""" + if not self.llm_callback: + return None + + try: + prompt = f"""Given this context: +- User originally asked: {context.get('original_query', 'N/A')} +- Commands executed: {', '.join(context.get('executed_commands', [])[:5])} +- Previous session actions: {', '.join(context.get('session_actions', [])[:3])} + +The user now asks: "{request}" + +Generate a single Linux command to fulfill this request. +Respond with JSON: {{"command": "...", "purpose": "..."}} +If you cannot generate a safe command, respond with: {{"error": "reason"}}""" + + result = self.llm_callback(prompt) + if result and isinstance(result, dict): + if "command" in result: + return { + "command": result["command"], + "purpose": result.get("purpose", "Execute user request"), + "needs_confirmation": True, + } + except Exception: + pass + + return None + + def _generate_suggestions( + self, + run: DoRun, + commands: list[tuple[str, str, list[str]]], + user_query: str, + ) -> list[dict]: + """Generate context-aware suggestions based on what was installed/configured.""" + suggestions = [] + + # Analyze what was done + executed_cmds = [cmd for cmd, _, _ in commands] + cmd_str = " ".join(executed_cmds).lower() + query_lower = user_query.lower() + + # Docker-related suggestions + if "docker" in cmd_str or "docker" in query_lower: + if "pull" in cmd_str: + # Suggest running the container + for cmd, _, _ in commands: + if "docker pull" in cmd: + image = cmd.split("docker pull")[-1].strip() + suggestions.append({ + "type": "start", + "icon": "๐Ÿš€", + "label": f"Start the container", + "description": f"Run {image} in a container", + "command": f"docker run -d --name {image.split('/')[-1].split(':')[0]} {image}", + "purpose": f"Start {image} container", + }) + suggestions.append({ + "type": "demo", + "icon": "๐Ÿ“", + "label": "Show demo usage", + "description": f"Example docker-compose and run commands", + "demo_type": "docker", + "image": image, + }) + break + + # Ollama/Model runner suggestions + if "ollama" in cmd_str or "ollama" in query_lower or "model" in query_lower: + suggestions.append({ + "type": "start", + "icon": "๐Ÿš€", + "label": "Start Ollama server", + "description": "Run Ollama in the background", + "command": "docker run -d --name ollama -p 11434:11434 -v ollama:/root/.ollama ollama/ollama", + "purpose": "Start Ollama server container", + }) + suggestions.append({ + "type": "setup", + "icon": "โš™๏ธ", + "label": "Pull a model", + "description": "Download a model like llama2, mistral, or codellama", + "command": "docker exec ollama ollama pull llama2", + "purpose": "Download llama2 model", + }) + suggestions.append({ + "type": "demo", + "icon": "๐Ÿ“", + "label": "Show API demo", + "description": "Example curl commands and Python code", + "demo_type": "ollama", + }) + suggestions.append({ + "type": "test", + "icon": "๐Ÿงช", + "label": "Test the installation", + "description": "Verify Ollama is running correctly", + "command": "curl http://localhost:11434/api/tags", + "purpose": "Check Ollama API", + }) + + # Nginx suggestions + if "nginx" in cmd_str or "nginx" in query_lower: + suggestions.append({ + "type": "start", + "icon": "๐Ÿš€", + "label": "Start Nginx", + "description": "Start the Nginx web server", + "command": "sudo systemctl start nginx", + "purpose": "Start Nginx service", + }) + suggestions.append({ + "type": "setup", + "icon": "โš™๏ธ", + "label": "Configure a site", + "description": "Set up a new virtual host", + "demo_type": "nginx_config", + }) + suggestions.append({ + "type": "test", + "icon": "๐Ÿงช", + "label": "Test configuration", + "description": "Verify Nginx config is valid", + "command": "sudo nginx -t", + "purpose": "Test Nginx configuration", + }) + + # PostgreSQL suggestions + if "postgres" in cmd_str or "postgresql" in query_lower: + suggestions.append({ + "type": "start", + "icon": "๐Ÿš€", + "label": "Start PostgreSQL", + "description": "Start the database server", + "command": "sudo systemctl start postgresql", + "purpose": "Start PostgreSQL service", + }) + suggestions.append({ + "type": "setup", + "icon": "โš™๏ธ", + "label": "Create a database", + "description": "Create a new database and user", + "demo_type": "postgres_setup", + }) + suggestions.append({ + "type": "test", + "icon": "๐Ÿงช", + "label": "Test connection", + "description": "Verify PostgreSQL is accessible", + "command": "sudo -u postgres psql -c '\\l'", + "purpose": "List PostgreSQL databases", + }) + + # Node.js/npm suggestions + if "node" in cmd_str or "npm" in cmd_str or "nodejs" in query_lower: + suggestions.append({ + "type": "demo", + "icon": "๐Ÿ“", + "label": "Show starter code", + "description": "Example Express.js server", + "demo_type": "nodejs", + }) + suggestions.append({ + "type": "test", + "icon": "๐Ÿงช", + "label": "Verify installation", + "description": "Check Node.js and npm versions", + "command": "node --version && npm --version", + "purpose": "Check Node.js installation", + }) + + # Python/pip suggestions + if "python" in cmd_str or "pip" in cmd_str: + suggestions.append({ + "type": "demo", + "icon": "๐Ÿ“", + "label": "Show example code", + "description": "Example Python usage", + "demo_type": "python", + }) + suggestions.append({ + "type": "test", + "icon": "๐Ÿงช", + "label": "Test import", + "description": "Verify packages are importable", + "demo_type": "python_test", + }) + + # Generic suggestions if nothing specific matched + if not suggestions: + # Add a generic test suggestion + suggestions.append({ + "type": "test", + "icon": "๐Ÿงช", + "label": "Run a quick test", + "description": "Verify the installation works", + "demo_type": "generic_test", + }) + + return suggestions[:5] # Limit to 5 suggestions + + def _execute_suggestion( + self, + suggestion: dict, + run: DoRun, + user_query: str, + ) -> None: + """Execute a suggestion.""" + suggestion_type = suggestion.get("type") + + if suggestion_type == "demo": + self._show_demo(suggestion.get("demo_type", "generic"), suggestion) + elif "command" in suggestion: + console.print() + console.print(f"[cyan]Executing:[/cyan] {suggestion['command']}") + console.print() + + needs_sudo = "sudo" in suggestion["command"] + success, stdout, stderr = self._execute_single_command( + suggestion["command"], + needs_sudo=needs_sudo + ) + + if success: + console.print(f"[green]โœ“ Success[/green]") + if stdout: + console.print(f"[dim]{stdout[:500]}{'...' if len(stdout) > 500 else ''}[/dim]") + else: + console.print(f"[red]โœ— Failed: {stderr[:200]}[/red]") + else: + console.print("[yellow]This suggestion requires manual action.[/yellow]") + + def _show_demo(self, demo_type: str, suggestion: dict) -> None: + """Show demo code/commands for a specific type.""" + console.print() + + if demo_type == "docker": + image = suggestion.get("image", "your-image") + console.print("[bold cyan]๐Ÿ“ Docker Usage Examples[/bold cyan]") + console.print() + console.print("[dim]# Run container in foreground:[/dim]") + console.print(f"[green]docker run -it {image}[/green]") + console.print() + console.print("[dim]# Run container in background:[/dim]") + console.print(f"[green]docker run -d --name myapp {image}[/green]") + console.print() + console.print("[dim]# Run with port mapping:[/dim]") + console.print(f"[green]docker run -d -p 8080:8080 {image}[/green]") + console.print() + console.print("[dim]# Run with volume mount:[/dim]") + console.print(f"[green]docker run -d -v /host/path:/container/path {image}[/green]") + + elif demo_type == "ollama": + console.print("[bold cyan]๐Ÿ“ Ollama API Examples[/bold cyan]") + console.print() + console.print("[dim]# List available models:[/dim]") + console.print("[green]curl http://localhost:11434/api/tags[/green]") + console.print() + console.print("[dim]# Generate text:[/dim]") + console.print('''[green]curl http://localhost:11434/api/generate -d '{ + "model": "llama2", + "prompt": "Hello, how are you?" +}'[/green]''') + console.print() + console.print("[dim]# Python example:[/dim]") + console.print('''[green]import requests + +response = requests.post('http://localhost:11434/api/generate', + json={ + 'model': 'llama2', + 'prompt': 'Explain quantum computing in simple terms', + 'stream': False + }) +print(response.json()['response'])[/green]''') + + elif demo_type == "nginx_config": + console.print("[bold cyan]๐Ÿ“ Nginx Configuration Example[/bold cyan]") + console.print() + console.print("[dim]# Create a new site config:[/dim]") + console.print("[green]sudo nano /etc/nginx/sites-available/mysite[/green]") + console.print() + console.print("[dim]# Example config:[/dim]") + console.print('''[green]server { + listen 80; + server_name example.com; + + location / { + proxy_pass http://localhost:3000; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + } +}[/green]''') + console.print() + console.print("[dim]# Enable the site:[/dim]") + console.print("[green]sudo ln -s /etc/nginx/sites-available/mysite /etc/nginx/sites-enabled/[/green]") + console.print("[green]sudo nginx -t && sudo systemctl reload nginx[/green]") + + elif demo_type == "postgres_setup": + console.print("[bold cyan]๐Ÿ“ PostgreSQL Setup Example[/bold cyan]") + console.print() + console.print("[dim]# Create a new user and database:[/dim]") + console.print("[green]sudo -u postgres createuser --interactive myuser[/green]") + console.print("[green]sudo -u postgres createdb mydb -O myuser[/green]") + console.print() + console.print("[dim]# Connect to the database:[/dim]") + console.print("[green]psql -U myuser -d mydb[/green]") + console.print() + console.print("[dim]# Python connection example:[/dim]") + console.print('''[green]import psycopg2 + +conn = psycopg2.connect( + dbname="mydb", + user="myuser", + password="mypassword", + host="localhost" +) +cursor = conn.cursor() +cursor.execute("SELECT version();") +print(cursor.fetchone())[/green]''') + + elif demo_type == "nodejs": + console.print("[bold cyan]๐Ÿ“ Node.js Example[/bold cyan]") + console.print() + console.print("[dim]# Create a simple Express server:[/dim]") + console.print('''[green]// server.js +const express = require('express'); +const app = express(); + +app.get('/', (req, res) => { + res.json({ message: 'Hello from Node.js!' }); +}); + +app.listen(3000, () => { + console.log('Server running on http://localhost:3000'); +});[/green]''') + console.print() + console.print("[dim]# Run it:[/dim]") + console.print("[green]npm init -y && npm install express && node server.js[/green]") + + elif demo_type == "python": + console.print("[bold cyan]๐Ÿ“ Python Example[/bold cyan]") + console.print() + console.print("[dim]# Simple HTTP server:[/dim]") + console.print("[green]python3 -m http.server 8000[/green]") + console.print() + console.print("[dim]# Flask web app:[/dim]") + console.print('''[green]from flask import Flask +app = Flask(__name__) + +@app.route('/') +def hello(): + return {'message': 'Hello from Python!'} + +if __name__ == '__main__': + app.run(debug=True)[/green]''') + + else: + console.print("[dim]No specific demo available. Check the documentation for usage examples.[/dim]") + + console.print() + + def _execute_task_node( + self, + task: TaskNode, + run: DoRun, + original_commands: list[tuple[str, str, list[str]]], + depth: int = 0, + ): + """Execute a single task node with auto-repair capabilities.""" + indent = " " * depth + task_num = f"[{task.task_type.value.upper()}]" + + # Check if task was marked as skipped (e.g., using existing resource) + if task.status == CommandStatus.SKIPPED: + console.print(f"{indent}[cyan][SKIPPED] {task.command[:60]}{'...' if len(task.command) > 60 else ''}[/cyan]") + console.print(f"{indent}[green] โ””โ”€ โœ“ {task.output or 'Using existing resource'}[/green]") + + # Log the skipped command + cmd_log = CommandLog( + command=task.command, + purpose=task.purpose, + timestamp=datetime.datetime.now().isoformat(), + status=CommandStatus.SKIPPED, + output=task.output or "Using existing resource", + ) + run.commands.append(cmd_log) + return + + console.print(f"{indent}[bold]{task_num}[/bold] {task.command[:60]}{'...' if len(task.command) > 60 else ''}") + console.print(f"{indent}[dim] โ””โ”€ {task.purpose}[/dim]") + + protected_paths = [] + user_query = run.user_query if run else "" + for cmd, _, protected in original_commands: + if cmd == task.command: + protected_paths = protected + break + + file_check = self._file_analyzer.check_file_exists_and_usefulness(task.command, task.purpose, user_query) + + if file_check["recommendations"]: + self._file_analyzer.apply_file_recommendations(file_check["recommendations"]) + + task.status = CommandStatus.RUNNING + start_time = time.time() + + needs_sudo = self._needs_sudo(task.command, protected_paths) + success, stdout, stderr = self._execute_single_command(task.command, needs_sudo) + + task.output = stdout + task.error = stderr + task.duration_seconds = time.time() - start_time + + cmd_log = CommandLog( + command=task.command, + purpose=task.purpose, + timestamp=datetime.datetime.now().isoformat(), + status=CommandStatus.SUCCESS if success else CommandStatus.FAILED, + output=stdout, + error=stderr, + duration_seconds=task.duration_seconds, + ) + + if success: + task.status = CommandStatus.SUCCESS + console.print(f"{indent}[green] โœ“ Success ({task.duration_seconds:.2f}s)[/green]") + if stdout: + output_preview = stdout[:100] + ('...' if len(stdout) > 100 else '') + console.print(f"{indent}[dim] {output_preview}[/dim]") + run.commands.append(cmd_log) + return + + task.status = CommandStatus.NEEDS_REPAIR + diagnosis = self._diagnoser.diagnose_error(task.command, stderr) + task.failure_reason = diagnosis.get("description", "Unknown error") + + console.print(f"{indent}[yellow] โš  Error: {diagnosis['error_type']}[/yellow]") + console.print(f"{indent}[dim] {diagnosis['description']}[/dim]") + + # Check if this is a login/credential required error + if diagnosis.get("category") == "login_required": + console.print(f"{indent}[cyan] ๐Ÿ” Authentication required[/cyan]") + + login_success, login_msg = self._login_handler.handle_login(task.command, stderr) + + if login_success: + console.print(f"{indent}[green] โœ“ {login_msg}[/green]") + console.print(f"{indent}[cyan] Retrying command...[/cyan]") + + # Retry the command + needs_sudo = self._needs_sudo(task.command, []) + success, new_stdout, new_stderr = self._execute_single_command(task.command, needs_sudo) + + if success: + task.status = CommandStatus.SUCCESS + task.reasoning = "Succeeded after authentication" + cmd_log.status = CommandStatus.SUCCESS + cmd_log.stdout = new_stdout[:500] if new_stdout else "" + console.print(f"{indent}[green] โœ“ Command succeeded after authentication![/green]") + run.commands.append(cmd_log) + return + else: + # Still failed after login + stderr = new_stderr + diagnosis = self._diagnoser.diagnose_error(task.command, stderr) + console.print(f"{indent}[yellow] Command still failed: {stderr[:100]}[/yellow]") + else: + console.print(f"{indent}[yellow] {login_msg}[/yellow]") + + if diagnosis.get("extracted_path"): + console.print(f"{indent}[dim] Path: {diagnosis['extracted_path']}[/dim]") + + # Handle timeout errors specially - don't blindly retry + if diagnosis.get("category") == "timeout" or "timed out" in stderr.lower(): + console.print(f"{indent}[yellow] โฑ๏ธ This operation timed out[/yellow]") + + # Check if it's a docker pull - those might still be running + if "docker pull" in task.command.lower(): + console.print(f"{indent}[cyan] โ„น๏ธ Docker pull may still be downloading in background[/cyan]") + console.print(f"{indent}[dim] Check with: docker images | grep [/dim]") + console.print(f"{indent}[dim] Or retry with: docker pull --timeout=0 [/dim]") + elif "apt" in task.command.lower(): + console.print(f"{indent}[cyan] โ„น๏ธ Package installation timed out[/cyan]") + console.print(f"{indent}[dim] Check apt status: sudo dpkg --configure -a[/dim]") + console.print(f"{indent}[dim] Then retry the command[/dim]") + else: + console.print(f"{indent}[cyan] โ„น๏ธ You can retry this command manually[/cyan]") + + # Mark as needing manual intervention, not auto-fix + task.status = CommandStatus.NEEDS_REPAIR + task.failure_reason = "Operation timed out - may need manual retry" + cmd_log.status = CommandStatus.FAILED + cmd_log.error = stderr + run.commands.append(cmd_log) + return + + if task.repair_attempts < task.max_repair_attempts: + task.repair_attempts += 1 + console.print(f"{indent}[cyan] ๐Ÿ”ง Auto-fix attempt {task.repair_attempts}/{task.max_repair_attempts}[/cyan]") + + fixed, fix_message, fix_commands = self._auto_fixer.auto_fix_error( + task.command, stderr, diagnosis, max_attempts=3 + ) + + for fix_cmd in fix_commands: + repair_task = self._task_tree.add_repair_task( + parent=task, + command=fix_cmd, + purpose=f"Auto-fix: {diagnosis['error_type']}", + reasoning=fix_message, + ) + repair_task.status = CommandStatus.SUCCESS + + if fixed: + task.status = CommandStatus.SUCCESS + task.reasoning = f"Auto-fixed: {fix_message}" + console.print(f"{indent}[green] โœ“ {fix_message}[/green]") + cmd_log.status = CommandStatus.SUCCESS + run.commands.append(cmd_log) + return + else: + console.print(f"{indent}[yellow] Auto-fix incomplete: {fix_message}[/yellow]") + + task.status = CommandStatus.FAILED + task.reasoning = self._generate_task_failure_reasoning(task, diagnosis) + console.print(f"{indent}[red] โœ— Failed: {diagnosis['description'][:100]}[/red]") + console.print(f"{indent}[dim] Reasoning: {task.reasoning}[/dim]") + + if diagnosis.get("fix_commands") or stderr: + console.print(f"\n{indent}[yellow]๐Ÿ’ก Manual intervention available[/yellow]") + + suggested_cmds = diagnosis.get("fix_commands", [f"sudo {task.command}"]) + console.print(f"{indent}[dim] Suggested commands:[/dim]") + for cmd in suggested_cmds[:3]: + console.print(f"{indent}[cyan] $ {cmd}[/cyan]") + + if Confirm.ask(f"{indent}Run manually while Cortex monitors?", default=False): + manual_success = self._supervise_manual_intervention_for_task( + task, suggested_cmds, run + ) + if manual_success: + task.status = CommandStatus.SUCCESS + task.reasoning = "Completed via monitored manual intervention" + cmd_log.status = CommandStatus.SUCCESS + + cmd_log.status = task.status + run.commands.append(cmd_log) + + def _supervise_manual_intervention_for_task( + self, + task: TaskNode, + suggested_commands: list[str], + run: DoRun, + ) -> bool: + """Supervise manual intervention for a specific task with terminal monitoring.""" + console.print("\n[bold cyan]โ•โ•โ• Manual Intervention Mode โ•โ•โ•[/bold cyan]") + console.print("\n[yellow]Run these commands in another terminal:[/yellow]") + + for i, cmd in enumerate(suggested_commands, 1): + console.print(f"[bold]{i}. {cmd}[/bold]") + + self._terminal_monitor = TerminalMonitor( + notification_callback=lambda title, msg: self._send_notification(title, msg) + ) + self._terminal_monitor.start() + + console.print("\n[dim]๐Ÿ” Cortex is now monitoring your terminal for issues...[/dim]") + + try: + while True: + console.print() + action = Confirm.ask("Have you completed the manual step?", default=True) + + if action: + success = Confirm.ask("Was it successful?", default=True) + + if success: + console.print("[green]โœ“ Manual step completed successfully[/green]") + + verify_task = self._task_tree.add_verify_task( + parent=task, + command="# Manual verification", + purpose="User confirmed manual intervention success", + ) + verify_task.status = CommandStatus.SUCCESS + + return True + else: + console.print("\n[yellow]What happened?[/yellow]") + console.print(" 1. Still permission denied") + console.print(" 2. File/path not found") + console.print(" 3. Service error") + console.print(" 4. Other error") + + try: + choice = input("Enter choice (1-4): ").strip() + except (EOFError, KeyboardInterrupt): + return False + + if choice == "1": + console.print("\n[cyan]Try: sudo su - then run the command[/cyan]") + elif choice == "2": + console.print("\n[cyan]Verify the path exists: ls -la [/cyan]") + elif choice == "3": + console.print("\n[cyan]Check service status: systemctl status [/cyan]") + else: + console.print("\n[cyan]Please describe the error and try again[/cyan]") + + retry = Confirm.ask("Continue trying?", default=True) + if not retry: + return False + else: + console.print("[dim]Take your time. Cortex is still monitoring...[/dim]") + + except KeyboardInterrupt: + console.print("\n[yellow]Manual intervention cancelled[/yellow]") + return False + finally: + if self._terminal_monitor: + self._terminal_monitor.stop() + self._terminal_monitor = None + + def _generate_task_failure_reasoning( + self, + task: TaskNode, + diagnosis: dict, + ) -> str: + """Generate detailed reasoning for why a task failed.""" + parts = [] + + parts.append(f"Error: {diagnosis.get('error_type', 'unknown')}") + + if task.repair_attempts > 0: + parts.append(f"Repair attempts: {task.repair_attempts} (all failed)") + + if diagnosis.get("extracted_path"): + parts.append(f"Problem path: {diagnosis['extracted_path']}") + + error_type = diagnosis.get("error_type", "") + if "permission" in error_type.lower(): + parts.append("Root cause: Insufficient file system permissions") + elif "not_found" in error_type.lower(): + parts.append("Root cause: Required file or directory does not exist") + elif "service" in error_type.lower(): + parts.append("Root cause: System service issue") + + if diagnosis.get("fix_commands"): + parts.append(f"Suggested fix: {diagnosis['fix_commands'][0][:50]}...") + + return " | ".join(parts) + + def _generate_tree_summary(self, run: DoRun) -> str: + """Generate a summary from the task tree execution.""" + if not self._task_tree: + return self._generate_summary(run) + + summary = self._task_tree.get_summary() + + total = sum(summary.values()) + success = summary.get("success", 0) + failed = summary.get("failed", 0) + repaired = summary.get("needs_repair", 0) + + parts = [ + f"Total tasks: {total}", + f"Successful: {success}", + f"Failed: {failed}", + ] + + if repaired > 0: + parts.append(f"Repair attempted: {repaired}") + + if self._permission_requests_count > 1: + parts.append(f"Permission requests: {self._permission_requests_count}") + + return " | ".join(parts) + + def provide_manual_instructions( + self, + commands: list[tuple[str, str, list[str]]], + user_query: str, + ) -> DoRun: + """Provide instructions for manual execution and monitor progress.""" + run = DoRun( + run_id=self.db._generate_run_id(), + summary="", + mode=RunMode.USER_MANUAL, + user_query=user_query, + started_at=datetime.datetime.now().isoformat(), + ) + self.current_run = run + + console.print() + console.print(Panel( + "[bold cyan]๐Ÿ“‹ Manual Execution Instructions[/bold cyan]", + expand=False, + )) + console.print() + + cwd = os.getcwd() + console.print(f"[bold]1. Open a new terminal and navigate to:[/bold]") + console.print(f" [cyan]cd {cwd}[/cyan]") + console.print() + + console.print(f"[bold]2. Execute the following commands in order:[/bold]") + console.print() + + for i, (cmd, purpose, protected) in enumerate(commands, 1): + console.print(f" [bold yellow]Step {i}:[/bold yellow] {purpose}") + needs_sudo = self._needs_sudo(cmd, protected) + + if protected: + console.print(f" [red]โš ๏ธ Accesses protected paths: {', '.join(protected)}[/red]") + + if needs_sudo and not cmd.strip().startswith("sudo"): + console.print(f" [cyan]sudo {cmd}[/cyan]") + else: + console.print(f" [cyan]{cmd}[/cyan]") + console.print() + + run.commands.append(CommandLog( + command=cmd, + purpose=purpose, + timestamp=datetime.datetime.now().isoformat(), + status=CommandStatus.PENDING, + )) + + console.print("[bold]3. Once done, return to this terminal and press Enter.[/bold]") + console.print() + + monitor = TerminalMonitor( + notification_callback=lambda title, msg: self._send_notification(title, msg, "normal") + ) + + expected_commands = [cmd for cmd, _, _ in commands] + monitor.start_monitoring(expected_commands) + + console.print("[dim]๐Ÿ” Monitoring terminal activity... (press Enter when done)[/dim]") + + try: + input() + except (EOFError, KeyboardInterrupt): + pass + + observed = monitor.stop_monitoring() + + console.print() + console.print("[bold]๐Ÿ“Š Execution Summary:[/bold]") + + if observed: + console.print(f"[green]Observed {len(observed)} commands in terminal[/green]") + for obs in observed[-10:]: + console.print(f"[dim] โ€ข {obs['command']}[/dim]") + else: + console.print("[yellow]No commands observed (this is normal if bash history sync is disabled)[/yellow]") + + for obs in observed: + run.commands.append(CommandLog( + command=obs["command"], + purpose="User-executed command", + timestamp=obs["timestamp"], + status=CommandStatus.SUCCESS, + )) + + run.completed_at = datetime.datetime.now().isoformat() + run.summary = self._generate_summary(run) + + self.db.save_run(run) + + console.print() + console.print(f"[bold green]โœ“ Session recorded[/bold green] (ID: {run.run_id})") + console.print(f"[dim]Summary: {run.summary}[/dim]") + + return run + + def _generate_summary(self, run: DoRun) -> str: + """Generate a summary of what was done in the run.""" + successful = sum(1 for c in run.commands if c.status == CommandStatus.SUCCESS) + failed = sum(1 for c in run.commands if c.status == CommandStatus.FAILED) + + mode_str = "automated" if run.mode == RunMode.CORTEX_EXEC else "manual" + + if failed == 0: + return f"Successfully executed {successful} commands ({mode_str}) for: {run.user_query[:50]}" + else: + return f"Executed {successful} commands with {failed} failures ({mode_str}) for: {run.user_query[:50]}" + + def get_run_history(self, limit: int = 20) -> list[DoRun]: + """Get recent do run history.""" + return self.db.get_recent_runs(limit) + + def get_run(self, run_id: str) -> DoRun | None: + """Get a specific run by ID.""" + return self.db.get_run(run_id) + + # Expose diagnosis and auto-fix methods for external use + def _diagnose_error(self, cmd: str, stderr: str) -> dict[str, Any]: + """Diagnose a command failure.""" + return self._diagnoser.diagnose_error(cmd, stderr) + + def _auto_fix_error( + self, + cmd: str, + stderr: str, + diagnosis: dict[str, Any], + max_attempts: int = 5, + ) -> tuple[bool, str, list[str]]: + """Auto-fix an error.""" + return self._auto_fixer.auto_fix_error(cmd, stderr, diagnosis, max_attempts) + + def _check_for_conflicts(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for conflicts.""" + return self._conflict_detector.check_for_conflicts(cmd, purpose) + + def _run_verification_tests( + self, + commands_executed: list[CommandLog], + user_query: str, + ) -> tuple[bool, list[dict[str, Any]]]: + """Run verification tests.""" + return self._verification_runner.run_verification_tests(commands_executed, user_query) + + def _check_file_exists_and_usefulness( + self, + cmd: str, + purpose: str, + user_query: str, + ) -> dict[str, Any]: + """Check file existence and usefulness.""" + return self._file_analyzer.check_file_exists_and_usefulness(cmd, purpose, user_query) + + def _analyze_file_usefulness( + self, + content: str, + purpose: str, + user_query: str, + ) -> dict[str, Any]: + """Analyze file usefulness.""" + return self._file_analyzer.analyze_file_usefulness(content, purpose, user_query) + + +def setup_cortex_user() -> bool: + """Setup the cortex user if it doesn't exist.""" + handler = DoHandler() + return handler.setup_cortex_user() + + +def get_do_handler() -> DoHandler: + """Get a DoHandler instance.""" + return DoHandler() + diff --git a/cortex/do_runner/managers.py b/cortex/do_runner/managers.py new file mode 100644 index 000000000..762f9dabf --- /dev/null +++ b/cortex/do_runner/managers.py @@ -0,0 +1,287 @@ +"""User and path management for the Do Runner module.""" + +import json +import os +import pwd +import subprocess +from pathlib import Path + +from rich.console import Console + +console = Console() + + +class ProtectedPathsManager: + """Manages the list of protected files and folders requiring user authentication.""" + + SYSTEM_PROTECTED_PATHS: set[str] = { + # System configuration + "/etc", + "/etc/passwd", + "/etc/shadow", + "/etc/sudoers", + "/etc/sudoers.d", + "/etc/ssh", + "/etc/ssl", + "/etc/pam.d", + "/etc/security", + "/etc/cron.d", + "/etc/cron.daily", + "/etc/crontab", + "/etc/systemd", + "/etc/init.d", + # Boot and kernel + "/boot", + "/boot/grub", + # System binaries + "/usr/bin", + "/usr/sbin", + "/sbin", + "/bin", + # Root directory + "/root", + # System libraries + "/lib", + "/lib64", + "/usr/lib", + # Var system data + "/var/log", + "/var/lib/apt", + "/var/lib/dpkg", + # Proc and sys (virtual filesystems) + "/proc", + "/sys", + } + + USER_PROTECTED_PATHS: set[str] = set() + + def __init__(self): + self.config_file = Path.home() / ".cortex" / "protected_paths.json" + self._ensure_config_dir() + self._load_user_paths() + + def _ensure_config_dir(self): + """Ensure the config directory exists.""" + try: + self.config_file.parent.mkdir(parents=True, exist_ok=True) + except OSError: + self.config_file = Path("/tmp") / ".cortex" / "protected_paths.json" + self.config_file.parent.mkdir(parents=True, exist_ok=True) + + def _load_user_paths(self): + """Load user-configured protected paths.""" + if self.config_file.exists(): + try: + with open(self.config_file) as f: + data = json.load(f) + self.USER_PROTECTED_PATHS = set(data.get("paths", [])) + except (json.JSONDecodeError, OSError): + pass + + def _save_user_paths(self): + """Save user-configured protected paths.""" + try: + self.config_file.parent.mkdir(parents=True, exist_ok=True) + with open(self.config_file, "w") as f: + json.dump({"paths": list(self.USER_PROTECTED_PATHS)}, f, indent=2) + except OSError as e: + console.print(f"[yellow]Warning: Could not save protected paths: {e}[/yellow]") + + def add_protected_path(self, path: str) -> bool: + """Add a path to user-protected paths.""" + self.USER_PROTECTED_PATHS.add(path) + self._save_user_paths() + return True + + def remove_protected_path(self, path: str) -> bool: + """Remove a path from user-protected paths.""" + if path in self.USER_PROTECTED_PATHS: + self.USER_PROTECTED_PATHS.discard(path) + self._save_user_paths() + return True + return False + + def is_protected(self, path: str) -> bool: + """Check if a path requires authentication for access.""" + path = os.path.abspath(path) + all_protected = self.SYSTEM_PROTECTED_PATHS | self.USER_PROTECTED_PATHS + + if path in all_protected: + return True + + for protected in all_protected: + if path.startswith(protected + "/") or path == protected: + return True + + return False + + def get_all_protected(self) -> list[str]: + """Get all protected paths.""" + return sorted(self.SYSTEM_PROTECTED_PATHS | self.USER_PROTECTED_PATHS) + + +class CortexUserManager: + """Manages the cortex system user for privilege-limited execution.""" + + CORTEX_USER = "cortex" + CORTEX_GROUP = "cortex" + + @classmethod + def user_exists(cls) -> bool: + """Check if the cortex user exists.""" + try: + pwd.getpwnam(cls.CORTEX_USER) + return True + except KeyError: + return False + + @classmethod + def create_user(cls) -> tuple[bool, str]: + """Create the cortex user with basic privileges.""" + if cls.user_exists(): + return True, "Cortex user already exists" + + try: + subprocess.run( + ["sudo", "groupadd", "-f", cls.CORTEX_GROUP], + check=True, + capture_output=True, + ) + + subprocess.run( + [ + "sudo", "useradd", + "-r", + "-g", cls.CORTEX_GROUP, + "-d", "/var/lib/cortex", + "-s", "/bin/bash", + "-m", + cls.CORTEX_USER, + ], + check=True, + capture_output=True, + ) + + subprocess.run( + ["sudo", "mkdir", "-p", "/var/lib/cortex/workspace"], + check=True, + capture_output=True, + ) + subprocess.run( + ["sudo", "chown", "-R", f"{cls.CORTEX_USER}:{cls.CORTEX_GROUP}", "/var/lib/cortex"], + check=True, + capture_output=True, + ) + + return True, "Cortex user created successfully" + + except subprocess.CalledProcessError as e: + return False, f"Failed to create cortex user: {e.stderr.decode() if e.stderr else str(e)}" + + @classmethod + def grant_privilege(cls, file_path: str, mode: str = "rw") -> tuple[bool, str]: + """Grant cortex user privilege to access a specific file.""" + if not cls.user_exists(): + return False, "Cortex user does not exist. Run setup first." + + try: + acl_mode = "" + if "r" in mode: + acl_mode += "r" + if "w" in mode: + acl_mode += "w" + if "x" in mode: + acl_mode += "x" + + if not acl_mode: + acl_mode = "r" + + subprocess.run( + ["sudo", "setfacl", "-m", f"u:{cls.CORTEX_USER}:{acl_mode}", file_path], + check=True, + capture_output=True, + ) + + return True, f"Granted {acl_mode} access to {file_path}" + + except subprocess.CalledProcessError as e: + error_msg = e.stderr.decode() if e.stderr else str(e) + if "setfacl" in error_msg or "not found" in error_msg.lower(): + return cls._grant_privilege_chmod(file_path, mode) + return False, f"Failed to grant privilege: {error_msg}" + + @classmethod + def _grant_privilege_chmod(cls, file_path: str, mode: str) -> tuple[bool, str]: + """Fallback privilege granting using chmod.""" + try: + chmod_mode = "" + if "r" in mode: + chmod_mode = "o+r" + if "w" in mode: + chmod_mode = "o+rw" if chmod_mode else "o+w" + if "x" in mode: + chmod_mode = chmod_mode + "x" if chmod_mode else "o+x" + + subprocess.run( + ["sudo", "chmod", chmod_mode, file_path], + check=True, + capture_output=True, + ) + return True, f"Granted {mode} access to {file_path} (chmod fallback)" + + except subprocess.CalledProcessError as e: + return False, f"Failed to grant privilege: {e.stderr.decode() if e.stderr else str(e)}" + + @classmethod + def revoke_privilege(cls, file_path: str) -> tuple[bool, str]: + """Revoke cortex user's privilege from a specific file.""" + try: + subprocess.run( + ["sudo", "setfacl", "-x", f"u:{cls.CORTEX_USER}", file_path], + check=True, + capture_output=True, + ) + return True, f"Revoked access to {file_path}" + + except subprocess.CalledProcessError as e: + error_msg = e.stderr.decode() if e.stderr else str(e) + if "setfacl" in error_msg or "not found" in error_msg.lower(): + return cls._revoke_privilege_chmod(file_path) + return False, f"Failed to revoke privilege: {error_msg}" + + @classmethod + def _revoke_privilege_chmod(cls, file_path: str) -> tuple[bool, str]: + """Fallback privilege revocation using chmod.""" + try: + subprocess.run( + ["sudo", "chmod", "o-rwx", file_path], + check=True, + capture_output=True, + ) + return True, f"Revoked access to {file_path} (chmod fallback)" + except subprocess.CalledProcessError as e: + return False, f"Failed to revoke privilege: {e.stderr.decode() if e.stderr else str(e)}" + + @classmethod + def run_as_cortex(cls, command: str, timeout: int = 60) -> tuple[bool, str, str]: + """Execute a command as the cortex user.""" + if not cls.user_exists(): + return False, "", "Cortex user does not exist" + + try: + result = subprocess.run( + ["sudo", "-u", cls.CORTEX_USER, "bash", "-c", command], + capture_output=True, + text=True, + timeout=timeout, + ) + return ( + result.returncode == 0, + result.stdout.strip(), + result.stderr.strip(), + ) + except subprocess.TimeoutExpired: + return False, "", f"Command timed out after {timeout} seconds" + except Exception as e: + return False, "", str(e) + diff --git a/cortex/do_runner/models.py b/cortex/do_runner/models.py new file mode 100644 index 000000000..97f271d8f --- /dev/null +++ b/cortex/do_runner/models.py @@ -0,0 +1,349 @@ +"""Data models and enums for the Do Runner module.""" + +from dataclasses import dataclass, field +from enum import Enum +from typing import Any + +from rich.console import Console + +console = Console() + + +class CommandStatus(str, Enum): + """Status of a command execution.""" + PENDING = "pending" + RUNNING = "running" + SUCCESS = "success" + FAILED = "failed" + SKIPPED = "skipped" + NEEDS_REPAIR = "needs_repair" + + +class RunMode(str, Enum): + """Mode of execution for a do run.""" + CORTEX_EXEC = "cortex_exec" + USER_MANUAL = "user_manual" + + +class TaskType(str, Enum): + """Type of task in the task tree.""" + COMMAND = "command" + DIAGNOSTIC = "diagnostic" + REPAIR = "repair" + VERIFY = "verify" + ALTERNATIVE = "alternative" + + +@dataclass +class TaskNode: + """A node in the task tree representing a command or action.""" + id: str + task_type: TaskType + command: str + purpose: str + status: CommandStatus = CommandStatus.PENDING + + # Execution results + output: str = "" + error: str = "" + duration_seconds: float = 0.0 + + # Tree structure + parent_id: str | None = None + children: list["TaskNode"] = field(default_factory=list) + + # Repair context + failure_reason: str = "" + repair_attempts: int = 0 + max_repair_attempts: int = 3 + + # Reasoning + reasoning: str = "" + + def to_dict(self) -> dict[str, Any]: + return { + "id": self.id, + "task_type": self.task_type.value, + "command": self.command, + "purpose": self.purpose, + "status": self.status.value, + "output": self.output, + "error": self.error, + "duration_seconds": self.duration_seconds, + "parent_id": self.parent_id, + "children": [c.to_dict() for c in self.children], + "failure_reason": self.failure_reason, + "repair_attempts": self.repair_attempts, + "reasoning": self.reasoning, + } + + def add_child(self, child: "TaskNode"): + """Add a child task.""" + child.parent_id = self.id + self.children.append(child) + + def get_depth(self) -> int: + """Get the depth of this node in the tree.""" + depth = 0 + node = self + while node.parent_id: + depth += 1 + node = node + return depth + + +class TaskTree: + """A tree structure for managing commands with auto-repair capabilities.""" + + def __init__(self): + self.root_tasks: list[TaskNode] = [] + self._task_counter = 0 + self._all_tasks: dict[str, TaskNode] = {} + + def _generate_task_id(self, prefix: str = "task") -> str: + """Generate a unique task ID.""" + self._task_counter += 1 + return f"{prefix}_{self._task_counter}" + + def add_root_task( + self, + command: str, + purpose: str, + task_type: TaskType = TaskType.COMMAND, + ) -> TaskNode: + """Add a root-level task.""" + task = TaskNode( + id=self._generate_task_id(task_type.value), + task_type=task_type, + command=command, + purpose=purpose, + ) + self.root_tasks.append(task) + self._all_tasks[task.id] = task + return task + + def add_repair_task( + self, + parent: TaskNode, + command: str, + purpose: str, + reasoning: str = "", + ) -> TaskNode: + """Add a repair sub-task to a failed task.""" + task = TaskNode( + id=self._generate_task_id("repair"), + task_type=TaskType.REPAIR, + command=command, + purpose=purpose, + reasoning=reasoning, + ) + parent.add_child(task) + self._all_tasks[task.id] = task + return task + + def add_diagnostic_task( + self, + parent: TaskNode, + command: str, + purpose: str, + ) -> TaskNode: + """Add a diagnostic sub-task to investigate a failure.""" + task = TaskNode( + id=self._generate_task_id("diag"), + task_type=TaskType.DIAGNOSTIC, + command=command, + purpose=purpose, + ) + parent.add_child(task) + self._all_tasks[task.id] = task + return task + + def add_verify_task( + self, + parent: TaskNode, + command: str, + purpose: str, + ) -> TaskNode: + """Add a verification task after a repair.""" + task = TaskNode( + id=self._generate_task_id("verify"), + task_type=TaskType.VERIFY, + command=command, + purpose=purpose, + ) + parent.add_child(task) + self._all_tasks[task.id] = task + return task + + def add_alternative_task( + self, + parent: TaskNode, + command: str, + purpose: str, + reasoning: str = "", + ) -> TaskNode: + """Add an alternative approach when the original fails.""" + task = TaskNode( + id=self._generate_task_id("alt"), + task_type=TaskType.ALTERNATIVE, + command=command, + purpose=purpose, + reasoning=reasoning, + ) + parent.add_child(task) + self._all_tasks[task.id] = task + return task + + def get_task(self, task_id: str) -> TaskNode | None: + """Get a task by ID.""" + return self._all_tasks.get(task_id) + + def get_pending_tasks(self) -> list[TaskNode]: + """Get all pending tasks in order.""" + pending = [] + for root in self.root_tasks: + self._collect_pending(root, pending) + return pending + + def _collect_pending(self, node: TaskNode, pending: list[TaskNode]): + """Recursively collect pending tasks.""" + if node.status == CommandStatus.PENDING: + pending.append(node) + for child in node.children: + self._collect_pending(child, pending) + + def get_failed_tasks(self) -> list[TaskNode]: + """Get all failed tasks.""" + return [t for t in self._all_tasks.values() if t.status == CommandStatus.FAILED] + + def get_summary(self) -> dict[str, int]: + """Get a summary of task statuses.""" + summary = {status.value: 0 for status in CommandStatus} + for task in self._all_tasks.values(): + summary[task.status.value] += 1 + return summary + + def to_dict(self) -> dict[str, Any]: + """Convert tree to dictionary.""" + return { + "root_tasks": [t.to_dict() for t in self.root_tasks], + "summary": self.get_summary(), + } + + def print_tree(self, indent: str = ""): + """Print the task tree structure.""" + for i, root in enumerate(self.root_tasks): + is_last = i == len(self.root_tasks) - 1 + self._print_node(root, indent, is_last) + + def _print_node(self, node: TaskNode, indent: str, is_last: bool): + """Print a single node with its children.""" + status_icons = { + CommandStatus.PENDING: "[dim]โ—‹[/dim]", + CommandStatus.RUNNING: "[cyan]โ—[/cyan]", + CommandStatus.SUCCESS: "[green]โœ“[/green]", + CommandStatus.FAILED: "[red]โœ—[/red]", + CommandStatus.SKIPPED: "[yellow]โ—‹[/yellow]", + CommandStatus.NEEDS_REPAIR: "[yellow]โšก[/yellow]", + } + + type_colors = { + TaskType.COMMAND: "white", + TaskType.DIAGNOSTIC: "cyan", + TaskType.REPAIR: "yellow", + TaskType.VERIFY: "blue", + TaskType.ALTERNATIVE: "magenta", + } + + icon = status_icons.get(node.status, "?") + color = type_colors.get(node.task_type, "white") + prefix = "โ””โ”€โ”€ " if is_last else "โ”œโ”€โ”€ " + + console.print(f"{indent}{prefix}{icon} [{color}][{node.task_type.value}][/{color}] {node.command[:50]}...") + + if node.reasoning: + console.print(f"{indent}{' ' if is_last else 'โ”‚ '}[dim]Reason: {node.reasoning}[/dim]") + + child_indent = indent + (" " if is_last else "โ”‚ ") + for j, child in enumerate(node.children): + self._print_node(child, child_indent, j == len(node.children) - 1) + + +@dataclass +class CommandLog: + """Log entry for a single command execution.""" + command: str + purpose: str + timestamp: str + status: CommandStatus + output: str = "" + error: str = "" + duration_seconds: float = 0.0 + useful: bool = True + + def to_dict(self) -> dict[str, Any]: + return { + "command": self.command, + "purpose": self.purpose, + "timestamp": self.timestamp, + "status": self.status.value, + "output": self.output, + "error": self.error, + "duration_seconds": self.duration_seconds, + "useful": self.useful, + } + + @classmethod + def from_dict(cls, data: dict[str, Any]) -> "CommandLog": + return cls( + command=data["command"], + purpose=data["purpose"], + timestamp=data["timestamp"], + status=CommandStatus(data["status"]), + output=data.get("output", ""), + error=data.get("error", ""), + duration_seconds=data.get("duration_seconds", 0.0), + useful=data.get("useful", True), + ) + + +@dataclass +class DoRun: + """Represents a complete do run session.""" + run_id: str + summary: str + mode: RunMode + commands: list[CommandLog] = field(default_factory=list) + started_at: str = "" + completed_at: str = "" + user_query: str = "" + files_accessed: list[str] = field(default_factory=list) + privileges_granted: list[str] = field(default_factory=list) + + def to_dict(self) -> dict[str, Any]: + return { + "run_id": self.run_id, + "summary": self.summary, + "mode": self.mode.value, + "commands": [cmd.to_dict() for cmd in self.commands], + "started_at": self.started_at, + "completed_at": self.completed_at, + "user_query": self.user_query, + "files_accessed": self.files_accessed, + "privileges_granted": self.privileges_granted, + } + + def get_commands_log_string(self) -> str: + """Get all commands as a formatted string for storage.""" + lines = [] + for cmd in self.commands: + lines.append(f"[{cmd.timestamp}] [{cmd.status.value.upper()}] {cmd.command}") + lines.append(f" Purpose: {cmd.purpose}") + if cmd.output: + lines.append(f" Output: {cmd.output[:500]}...") + if cmd.error: + lines.append(f" Error: {cmd.error}") + lines.append(f" Duration: {cmd.duration_seconds:.2f}s | Useful: {cmd.useful}") + lines.append("") + return "\n".join(lines) + diff --git a/cortex/do_runner/terminal.py b/cortex/do_runner/terminal.py new file mode 100644 index 000000000..187a7da33 --- /dev/null +++ b/cortex/do_runner/terminal.py @@ -0,0 +1,198 @@ +"""Terminal monitoring for the manual execution flow.""" + +import datetime +import re +import threading +import time +from pathlib import Path +from typing import Any, Callable + +from rich.console import Console + +console = Console() + + +class TerminalMonitor: + """ + Monitors terminal commands for the manual execution flow. + + Monitors multiple sources: + - Bash history file + - Cursor terminal files (if available) + - External terminal output + """ + + def __init__(self, notification_callback: Callable[[str, str], None] | None = None): + self.notification_callback = notification_callback + self._monitoring = False + self._monitor_thread: threading.Thread | None = None + self._commands_observed: list[dict[str, Any]] = [] + self._lock = threading.Lock() + self._cursor_terminals_dir: Path | None = None + self._expected_commands: list[str] = [] + + # Try to find Cursor terminals directory + cursor_base = Path.home() / ".cursor" / "projects" + if cursor_base.exists(): + for project_dir in cursor_base.iterdir(): + terminals_path = project_dir / "terminals" + if terminals_path.exists(): + self._cursor_terminals_dir = terminals_path + break + + def start(self): + """Start monitoring terminal for commands.""" + self.start_monitoring() + + def stop(self): + """Stop monitoring terminal.""" + self.stop_monitoring() + + def start_monitoring(self, expected_commands: list[str] | None = None): + """Start monitoring terminal for commands.""" + self._monitoring = True + self._expected_commands = expected_commands or [] + + self._monitor_thread = threading.Thread(target=self._monitor_loop, daemon=True) + self._monitor_thread.start() + + def stop_monitoring(self) -> list[dict[str, Any]]: + """Stop monitoring and return observed commands.""" + self._monitoring = False + if self._monitor_thread: + self._monitor_thread.join(timeout=2) + + with self._lock: + return list(self._commands_observed) + + def get_observed_commands(self) -> list[dict[str, Any]]: + """Get all observed commands so far.""" + with self._lock: + return list(self._commands_observed) + + def _monitor_loop(self): + """Monitor loop that watches for terminal activity from multiple sources.""" + history_file = Path.home() / ".bash_history" + + file_positions: dict[str, int] = {} + + if history_file.exists(): + try: + file_positions[str(history_file)] = history_file.stat().st_size + except OSError: + pass + + if self._cursor_terminals_dir and self._cursor_terminals_dir.exists(): + for term_file in self._cursor_terminals_dir.glob("*.txt"): + try: + file_positions[str(term_file)] = term_file.stat().st_size + except OSError: + pass + + while self._monitoring: + time.sleep(0.5) + + if history_file.exists(): + self._check_file_for_new_commands( + history_file, file_positions, source="bash_history" + ) + + if self._cursor_terminals_dir and self._cursor_terminals_dir.exists(): + for term_file in self._cursor_terminals_dir.glob("*.txt"): + self._check_file_for_new_commands( + term_file, file_positions, source=f"cursor_terminal:{term_file.stem}" + ) + + def _check_file_for_new_commands( + self, + file_path: Path, + positions: dict[str, int], + source: str, + ): + """Check a file for new commands and process them.""" + try: + current_size = file_path.stat().st_size + key = str(file_path) + + if key not in positions: + positions[key] = current_size + return + + if current_size > positions[key]: + with open(file_path) as f: + f.seek(positions[key]) + new_content = f.read() + + new_commands = self._extract_commands_from_content(new_content, source) + + for cmd in new_commands: + self._process_observed_command(cmd, source) + + positions[key] = current_size + + except OSError: + pass + + def _extract_commands_from_content(self, content: str, source: str) -> list[str]: + """Extract commands from terminal content.""" + commands = [] + + if source == "bash_history": + commands = [c.strip() for c in content.strip().split("\n") if c.strip()] + else: + for line in content.split("\n"): + line = line.strip() + if not line: + continue + + prompt_patterns = [ + r"^\$ (.+)$", + r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+\$ (.+)$", + r"^>>> (.+)$", + ] + + for pattern in prompt_patterns: + match = re.match(pattern, line) + if match: + commands.append(match.group(1)) + break + + return commands + + def _process_observed_command(self, command: str, source: str = "unknown"): + """Process an observed command.""" + with self._lock: + self._commands_observed.append({ + "command": command, + "timestamp": datetime.datetime.now().isoformat(), + "source": source, + }) + + issues = self._check_command_issues(command) + if issues and self.notification_callback: + self.notification_callback(f"Cortex: Issue in {source}", issues) + + def _check_command_issues(self, command: str) -> str | None: + """Check if a command has potential issues and return a warning.""" + issues = [] + + if any(p in command for p in ["/etc/", "/var/", "/usr/"]): + if not command.startswith("sudo") and not command.startswith("cat"): + issues.append("May need sudo for system files") + + if "rm -rf /" in command: + issues.append("DANGER: Destructive command detected!") + + typo_checks = { + "sudp": "sudo", + "suod": "sudo", + "cta": "cat", + "mdir": "mkdir", + "mkidr": "mkdir", + } + for typo, correct in typo_checks.items(): + if command.startswith(typo + " "): + issues.append(f"Typo? Did you mean '{correct}'?") + + return "; ".join(issues) if issues else None + diff --git a/cortex/do_runner/verification.py b/cortex/do_runner/verification.py new file mode 100644 index 000000000..bc34c66c2 --- /dev/null +++ b/cortex/do_runner/verification.py @@ -0,0 +1,977 @@ +"""Verification and conflict detection for the Do Runner module.""" + +import os +import re +import subprocess +import time +from typing import Any + +from rich.console import Console + +from .models import CommandLog + +console = Console() + + +class ConflictDetector: + """Detects conflicts with existing configurations.""" + + def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 120) -> tuple[bool, str, str]: + """Execute a single command.""" + try: + if needs_sudo and not cmd.strip().startswith("sudo"): + cmd = f"sudo {cmd}" + + result = subprocess.run( + ["sudo", "bash", "-c", cmd] if needs_sudo else cmd, + shell=not needs_sudo, + capture_output=True, + text=True, + timeout=timeout, + ) + return result.returncode == 0, result.stdout.strip(), result.stderr.strip() + except subprocess.TimeoutExpired: + return False, "", f"Command timed out after {timeout} seconds" + except Exception as e: + return False, "", str(e) + + def check_for_conflicts( + self, + cmd: str, + purpose: str, + ) -> dict[str, Any]: + """ + Check if the command might conflict with existing resources. + + This is a GENERAL conflict detector that works for: + - Docker containers + - Services (systemd) + - Files/directories + - Packages + - Databases + - Users/groups + - Ports + - Virtual environments + - And more... + + Returns: + Dict with conflict info, alternatives, and cleanup commands. + """ + # Check all resource types + checkers = [ + self._check_docker_conflict, + self._check_service_conflict, + self._check_file_conflict, + self._check_package_conflict, + self._check_port_conflict, + self._check_user_conflict, + self._check_venv_conflict, + self._check_database_conflict, + self._check_cron_conflict, + ] + + for checker in checkers: + result = checker(cmd, purpose) + if result["has_conflict"]: + return result + + # Default: no conflict + return { + "has_conflict": False, + "conflict_type": None, + "resource_type": None, + "resource_name": None, + "suggestion": None, + "cleanup_commands": [], + "alternative_actions": [], + } + + def _create_conflict_result( + self, + resource_type: str, + resource_name: str, + conflict_type: str, + suggestion: str, + is_active: bool = True, + alternative_actions: list[dict] | None = None, + ) -> dict[str, Any]: + """Create a standardized conflict result with alternatives.""" + + # Generate standard alternative actions based on resource type and state + if alternative_actions is None: + if is_active: + alternative_actions = [ + { + "action": "use_existing", + "description": f"Use existing {resource_type} '{resource_name}'", + "commands": [], + }, + { + "action": "restart", + "description": f"Restart {resource_type} '{resource_name}'", + "commands": self._get_restart_commands(resource_type, resource_name), + }, + { + "action": "recreate", + "description": f"Remove and recreate {resource_type} '{resource_name}'", + "commands": self._get_remove_commands(resource_type, resource_name), + }, + ] + else: + alternative_actions = [ + { + "action": "start_existing", + "description": f"Start existing {resource_type} '{resource_name}'", + "commands": self._get_start_commands(resource_type, resource_name), + }, + { + "action": "recreate", + "description": f"Remove and recreate {resource_type} '{resource_name}'", + "commands": self._get_remove_commands(resource_type, resource_name), + }, + ] + + return { + "has_conflict": True, + "conflict_type": conflict_type, + "resource_type": resource_type, + "resource_name": resource_name, + "suggestion": suggestion, + "is_active": is_active, + "alternative_actions": alternative_actions, + "cleanup_commands": [], + "use_existing": is_active, + } + + def _get_restart_commands(self, resource_type: str, name: str) -> list[str]: + """Get restart commands for a resource type.""" + commands = { + "container": [f"docker restart {name}"], + "service": [f"sudo systemctl restart {name}"], + "database": [f"sudo systemctl restart {name}"], + "webserver": [f"sudo systemctl restart {name}"], + } + return commands.get(resource_type, []) + + def _get_start_commands(self, resource_type: str, name: str) -> list[str]: + """Get start commands for a resource type.""" + commands = { + "container": [f"docker start {name}"], + "service": [f"sudo systemctl start {name}"], + "database": [f"sudo systemctl start {name}"], + "webserver": [f"sudo systemctl start {name}"], + } + return commands.get(resource_type, []) + + def _get_remove_commands(self, resource_type: str, name: str) -> list[str]: + """Get remove/cleanup commands for a resource type.""" + commands = { + "container": [f"docker rm -f {name}"], + "service": [f"sudo systemctl stop {name}"], + "file": [f"sudo rm -f {name}"], + "directory": [f"sudo rm -rf {name}"], + "package": [], # Don't auto-remove packages + "user": [], # Don't auto-remove users + "venv": [f"rm -rf {name}"], + "database": [], # Don't auto-remove databases + } + return commands.get(resource_type, []) + + def _check_docker_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for Docker container/compose conflicts.""" + result = {"has_conflict": False} + + # Docker run with --name + if "docker run" in cmd.lower(): + name_match = re.search(r'--name\s+([^\s]+)', cmd) + if name_match: + container_name = name_match.group(1) + + # Check if container exists + success, container_id, _ = self._execute_command( + f"docker ps -aq --filter name=^{container_name}$", needs_sudo=False + ) + + if success and container_id.strip(): + # Check if running + running_success, running_id, _ = self._execute_command( + f"docker ps -q --filter name=^{container_name}$", needs_sudo=False + ) + is_running = running_success and running_id.strip() + + # Get image info + _, image_info, _ = self._execute_command( + f"docker inspect --format '{{{{.Config.Image}}}}' {container_name}", needs_sudo=False + ) + image = image_info.strip() if image_info else "unknown" + + status = "running" if is_running else "stopped" + return self._create_conflict_result( + resource_type="container", + resource_name=container_name, + conflict_type=f"container_{status}", + suggestion=f"Container '{container_name}' already exists ({status}, image: {image})", + is_active=is_running, + ) + + # Docker compose + if "docker-compose" in cmd.lower() or "docker compose" in cmd.lower(): + if "up" in cmd: + success, services, _ = self._execute_command("docker compose ps -q 2>/dev/null", needs_sudo=False) + if success and services.strip(): + return self._create_conflict_result( + resource_type="compose", + resource_name="docker-compose", + conflict_type="compose_running", + suggestion="Docker Compose services are already running", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": "Keep existing services", "commands": []}, + {"action": "restart", "description": "Restart services", "commands": ["docker compose restart"]}, + {"action": "recreate", "description": "Recreate services", "commands": ["docker compose down", "docker compose up -d"]}, + ] + ) + + return result + + def _check_service_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for systemd service conflicts.""" + result = {"has_conflict": False} + + # systemctl start/enable + if "systemctl" in cmd: + service_match = re.search(r'systemctl\s+(start|enable|restart)\s+([^\s]+)', cmd) + if service_match: + action = service_match.group(1) + service = service_match.group(2).replace('.service', '') + + success, status, _ = self._execute_command( + f"systemctl is-active {service} 2>/dev/null", needs_sudo=False + ) + + if action in ["start", "enable"] and status.strip() == "active": + return self._create_conflict_result( + resource_type="service", + resource_name=service, + conflict_type="service_running", + suggestion=f"Service '{service}' is already running", + is_active=True, + ) + + # service command + if cmd.startswith("service ") or " service " in cmd: + service_match = re.search(r'service\s+(\S+)\s+(start|restart)', cmd) + if service_match: + service = service_match.group(1) + success, status, _ = self._execute_command( + f"systemctl is-active {service} 2>/dev/null", needs_sudo=False + ) + if status.strip() == "active": + return self._create_conflict_result( + resource_type="service", + resource_name=service, + conflict_type="service_running", + suggestion=f"Service '{service}' is already running", + is_active=True, + ) + + return result + + def _check_file_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for file/directory conflicts.""" + result = {"has_conflict": False} + paths_in_cmd = re.findall(r'(/[^\s>|]+)', cmd) + + for path in paths_in_cmd: + # Skip common read paths + if path in ["/dev/null", "/etc/os-release", "/proc/", "/sys/"]: + continue + + # Check for file creation/modification commands + is_write_cmd = any(p in cmd for p in [">" , "tee ", "cp ", "mv ", "touch ", "mkdir ", "echo "]) + + if is_write_cmd and os.path.exists(path): + is_dir = os.path.isdir(path) + resource_type = "directory" if is_dir else "file" + + return self._create_conflict_result( + resource_type=resource_type, + resource_name=path, + conflict_type=f"{resource_type}_exists", + suggestion=f"{resource_type.title()} '{path}' already exists", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": f"Keep existing {resource_type}", "commands": []}, + {"action": "backup", "description": f"Backup and overwrite", "commands": [f"sudo cp -r {path} {path}.cortex.bak"]}, + {"action": "recreate", "description": f"Remove and recreate", "commands": [f"sudo rm -rf {path}" if is_dir else f"sudo rm -f {path}"]}, + ] + ) + + return result + + def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for package installation conflicts.""" + result = {"has_conflict": False} + + # apt install + if "apt install" in cmd or "apt-get install" in cmd: + pkg_match = re.search(r'(?:apt|apt-get)\s+install\s+(?:-y\s+)?(\S+)', cmd) + if pkg_match: + package = pkg_match.group(1) + success, _, _ = self._execute_command(f"dpkg -l {package} 2>/dev/null | grep -q '^ii'", needs_sudo=False) + if success: + # Get version + _, version_out, _ = self._execute_command(f"dpkg -l {package} | grep '^ii' | awk '{{print $3}}'", needs_sudo=False) + version = version_out.strip() if version_out else "unknown" + + return self._create_conflict_result( + resource_type="package", + resource_name=package, + conflict_type="package_installed", + suggestion=f"Package '{package}' is already installed (version: {version})", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": f"Keep current version ({version})", "commands": []}, + {"action": "upgrade", "description": "Upgrade to latest version", "commands": [f"sudo apt install --only-upgrade -y {package}"]}, + {"action": "reinstall", "description": "Reinstall package", "commands": [f"sudo apt install --reinstall -y {package}"]}, + ] + ) + + # pip install + if "pip install" in cmd or "pip3 install" in cmd: + pkg_match = re.search(r'pip3?\s+install\s+(?:-[^\s]+\s+)*(\S+)', cmd) + if pkg_match: + package = pkg_match.group(1) + success, version_out, _ = self._execute_command(f"pip3 show {package} 2>/dev/null | grep Version", needs_sudo=False) + if success and version_out: + version = version_out.replace("Version:", "").strip() + return self._create_conflict_result( + resource_type="pip_package", + resource_name=package, + conflict_type="pip_package_installed", + suggestion=f"Python package '{package}' is already installed (version: {version})", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": f"Keep current version ({version})", "commands": []}, + {"action": "upgrade", "description": "Upgrade to latest", "commands": [f"pip3 install --upgrade {package}"]}, + {"action": "reinstall", "description": "Reinstall package", "commands": [f"pip3 install --force-reinstall {package}"]}, + ] + ) + + # npm install -g + if "npm install -g" in cmd or "npm i -g" in cmd: + pkg_match = re.search(r'npm\s+(?:install|i)\s+-g\s+(\S+)', cmd) + if pkg_match: + package = pkg_match.group(1) + success, version_out, _ = self._execute_command(f"npm list -g {package} 2>/dev/null | grep {package}", needs_sudo=False) + if success and version_out: + return self._create_conflict_result( + resource_type="npm_package", + resource_name=package, + conflict_type="npm_package_installed", + suggestion=f"npm package '{package}' is already installed globally", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": "Keep current version", "commands": []}, + {"action": "upgrade", "description": "Update to latest", "commands": [f"npm update -g {package}"]}, + ] + ) + + return result + + def _check_port_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for port binding conflicts.""" + result = {"has_conflict": False} + + # Look for port mappings + port_patterns = [ + r'-p\s+(\d+):\d+', # docker -p 8080:80 + r'--port[=\s]+(\d+)', # --port 8080 + r':(\d+)\s', # :8080 + r'listen\s+(\d+)', # nginx listen 80 + ] + + for pattern in port_patterns: + match = re.search(pattern, cmd) + if match: + port = match.group(1) + + # Check if port is in use + success, output, _ = self._execute_command(f"ss -tlnp | grep ':{port} '", needs_sudo=True) + if success and output: + # Get process using the port + process = "unknown" + proc_match = re.search(r'users:\(\("([^"]+)"', output) + if proc_match: + process = proc_match.group(1) + + return self._create_conflict_result( + resource_type="port", + resource_name=port, + conflict_type="port_in_use", + suggestion=f"Port {port} is already in use by '{process}'", + is_active=True, + alternative_actions=[ + {"action": "use_different", "description": f"Use a different port", "commands": []}, + {"action": "stop_existing", "description": f"Stop process using port {port}", "commands": [f"sudo fuser -k {port}/tcp"]}, + ] + ) + + return result + + def _check_user_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for user/group creation conflicts.""" + result = {"has_conflict": False} + + # useradd / adduser + if "useradd" in cmd or "adduser" in cmd: + user_match = re.search(r'(?:useradd|adduser)\s+(?:[^\s]+\s+)*(\S+)$', cmd) + if user_match: + username = user_match.group(1) + success, _, _ = self._execute_command(f"id {username} 2>/dev/null", needs_sudo=False) + if success: + return self._create_conflict_result( + resource_type="user", + resource_name=username, + conflict_type="user_exists", + suggestion=f"User '{username}' already exists", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": f"Use existing user '{username}'", "commands": []}, + {"action": "modify", "description": f"Modify existing user", "commands": []}, + ] + ) + + # groupadd / addgroup + if "groupadd" in cmd or "addgroup" in cmd: + group_match = re.search(r'(?:groupadd|addgroup)\s+(\S+)$', cmd) + if group_match: + groupname = group_match.group(1) + success, _, _ = self._execute_command(f"getent group {groupname} 2>/dev/null", needs_sudo=False) + if success: + return self._create_conflict_result( + resource_type="group", + resource_name=groupname, + conflict_type="group_exists", + suggestion=f"Group '{groupname}' already exists", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": f"Use existing group '{groupname}'", "commands": []}, + ] + ) + + return result + + def _check_venv_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for virtual environment conflicts.""" + result = {"has_conflict": False} + + # python -m venv / virtualenv + if "python" in cmd and "venv" in cmd: + venv_match = re.search(r'(?:venv|virtualenv)\s+(\S+)', cmd) + if venv_match: + venv_path = venv_match.group(1) + if os.path.exists(venv_path) and os.path.exists(os.path.join(venv_path, "bin", "python")): + return self._create_conflict_result( + resource_type="venv", + resource_name=venv_path, + conflict_type="venv_exists", + suggestion=f"Virtual environment '{venv_path}' already exists", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": f"Use existing venv", "commands": []}, + {"action": "recreate", "description": "Delete and recreate", "commands": [f"rm -rf {venv_path}"]}, + ] + ) + + return result + + def _check_database_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for database creation conflicts.""" + result = {"has_conflict": False} + + # MySQL/MariaDB create database + if "mysql" in cmd.lower() and "create database" in cmd.lower(): + db_match = re.search(r'create\s+database\s+(?:if\s+not\s+exists\s+)?(\S+)', cmd, re.IGNORECASE) + if db_match: + dbname = db_match.group(1).strip('`"\'') + success, output, _ = self._execute_command( + f"mysql -e \"SHOW DATABASES LIKE '{dbname}'\" 2>/dev/null", needs_sudo=False + ) + if success and dbname in output: + return self._create_conflict_result( + resource_type="mysql_database", + resource_name=dbname, + conflict_type="database_exists", + suggestion=f"MySQL database '{dbname}' already exists", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": f"Use existing database", "commands": []}, + {"action": "recreate", "description": "Drop and recreate", "commands": [f"mysql -e 'DROP DATABASE {dbname}'"]}, + ] + ) + + # PostgreSQL create database + if "createdb" in cmd or ("psql" in cmd and "create database" in cmd.lower()): + db_match = re.search(r'(?:createdb|create\s+database)\s+(\S+)', cmd, re.IGNORECASE) + if db_match: + dbname = db_match.group(1).strip('"\'') + success, _, _ = self._execute_command( + f"psql -lqt 2>/dev/null | cut -d \\| -f 1 | grep -qw {dbname}", needs_sudo=False + ) + if success: + return self._create_conflict_result( + resource_type="postgres_database", + resource_name=dbname, + conflict_type="database_exists", + suggestion=f"PostgreSQL database '{dbname}' already exists", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": f"Use existing database", "commands": []}, + {"action": "recreate", "description": "Drop and recreate", "commands": [f"dropdb {dbname}"]}, + ] + ) + + return result + + def _check_cron_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: + """Check for cron job conflicts.""" + result = {"has_conflict": False} + + # crontab entries + if "crontab" in cmd or "/etc/cron" in cmd: + # Check if similar cron job exists + if "echo" in cmd and ">>" in cmd: + # Extract the command being added + job_match = re.search(r"echo\s+['\"]([^'\"]+)['\"]", cmd) + if job_match: + job_content = job_match.group(1) + # Check existing crontab + success, crontab, _ = self._execute_command("crontab -l 2>/dev/null", needs_sudo=False) + if success and crontab: + # Check if similar job exists + job_cmd = job_content.split()[-1] if job_content else "" + if job_cmd and job_cmd in crontab: + return self._create_conflict_result( + resource_type="cron_job", + resource_name=job_cmd, + conflict_type="cron_exists", + suggestion=f"Similar cron job for '{job_cmd}' already exists", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": "Keep existing cron job", "commands": []}, + {"action": "replace", "description": "Replace existing job", "commands": []}, + ] + ) + + return result + + +class VerificationRunner: + """Runs verification tests after command execution.""" + + def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 120) -> tuple[bool, str, str]: + """Execute a single command.""" + try: + if needs_sudo and not cmd.strip().startswith("sudo"): + cmd = f"sudo {cmd}" + + result = subprocess.run( + ["sudo", "bash", "-c", cmd] if needs_sudo else cmd, + shell=not needs_sudo, + capture_output=True, + text=True, + timeout=timeout, + ) + return result.returncode == 0, result.stdout.strip(), result.stderr.strip() + except subprocess.TimeoutExpired: + return False, "", f"Command timed out after {timeout} seconds" + except Exception as e: + return False, "", str(e) + + def run_verification_tests( + self, + commands_executed: list[CommandLog], + user_query: str, + ) -> tuple[bool, list[dict[str, Any]]]: + """ + Run verification tests after all commands have been executed. + + Returns: + Tuple of (all_passed, test_results) + """ + console.print() + console.print("[bold cyan]๐Ÿงช Running verification tests...[/bold cyan]") + + test_results = [] + services_to_check = set() + configs_to_check = set() + files_to_check = set() + + for cmd_log in commands_executed: + cmd = cmd_log.command.lower() + + if "systemctl" in cmd or "service " in cmd: + svc_match = re.search(r'(?:systemctl|service)\s+\w+\s+([^\s]+)', cmd) + if svc_match: + services_to_check.add(svc_match.group(1).replace('.service', '')) + + if "nginx" in cmd: + configs_to_check.add("nginx") + if "apache" in cmd or "a2ensite" in cmd: + configs_to_check.add("apache") + + paths = re.findall(r'(/[^\s>|&]+)', cmd_log.command) + for path in paths: + if any(x in path for x in ['/etc/', '/var/', '/opt/']): + files_to_check.add(path) + + all_passed = True + + # Config tests + if "nginx" in configs_to_check: + console.print("[dim] Testing nginx configuration...[/dim]") + success, stdout, stderr = self._execute_command("nginx -t", needs_sudo=True) + test_results.append({ + "test": "nginx -t", + "passed": success, + "output": stdout if success else stderr, + }) + if success: + console.print("[green] โœ“ Nginx configuration is valid[/green]") + else: + console.print(f"[red] โœ— Nginx config test failed: {stderr[:100]}[/red]") + all_passed = False + + if "apache" in configs_to_check: + console.print("[dim] Testing Apache configuration...[/dim]") + success, stdout, stderr = self._execute_command("apache2ctl configtest", needs_sudo=True) + test_results.append({ + "test": "apache2ctl configtest", + "passed": success, + "output": stdout if success else stderr, + }) + if success: + console.print("[green] โœ“ Apache configuration is valid[/green]") + else: + console.print(f"[red] โœ— Apache config test failed: {stderr[:100]}[/red]") + all_passed = False + + # Service status tests + for service in services_to_check: + console.print(f"[dim] Checking service {service}...[/dim]") + success, stdout, stderr = self._execute_command( + f"systemctl is-active {service}", needs_sudo=False + ) + is_active = stdout.strip() == "active" + test_results.append({ + "test": f"systemctl is-active {service}", + "passed": is_active, + "output": stdout, + }) + if is_active: + console.print(f"[green] โœ“ Service {service} is running[/green]") + else: + console.print(f"[yellow] โš  Service {service} status: {stdout.strip()}[/yellow]") + + # File existence tests + for file_path in list(files_to_check)[:5]: + if os.path.exists(file_path): + success, _, _ = self._execute_command(f"test -r {file_path}", needs_sudo=True) + test_results.append({ + "test": f"file exists: {file_path}", + "passed": True, + "output": "File exists and is readable", + }) + else: + test_results.append({ + "test": f"file exists: {file_path}", + "passed": False, + "output": "File does not exist", + }) + console.print(f"[yellow] โš  File not found: {file_path}[/yellow]") + + # Connectivity tests + query_lower = user_query.lower() + if any(x in query_lower for x in ["proxy", "forward", "port", "listen"]): + port_match = re.search(r'port\s*(\d+)|:(\d+)', user_query) + if port_match: + port = port_match.group(1) or port_match.group(2) + console.print(f"[dim] Testing connectivity on port {port}...[/dim]") + success, stdout, stderr = self._execute_command( + f"curl -s -o /dev/null -w '%{{http_code}}' http://localhost:{port}/ 2>/dev/null || echo 'failed'", + needs_sudo=False + ) + if stdout.strip() not in ["failed", "000", ""]: + console.print(f"[green] โœ“ Port {port} responding (HTTP {stdout.strip()})[/green]") + test_results.append({ + "test": f"curl localhost:{port}", + "passed": True, + "output": f"HTTP {stdout.strip()}", + }) + else: + console.print(f"[yellow] โš  Port {port} not responding (may be expected)[/yellow]") + + # Summary + passed = sum(1 for t in test_results if t["passed"]) + total = len(test_results) + + console.print() + if all_passed: + console.print(f"[bold green]โœ“ All tests passed ({passed}/{total})[/bold green]") + else: + console.print(f"[bold yellow]โš  Some tests failed ({passed}/{total} passed)[/bold yellow]") + + return all_passed, test_results + + +class FileUsefulnessAnalyzer: + """Analyzes file content usefulness for modifications.""" + + def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 120) -> tuple[bool, str, str]: + """Execute a single command.""" + try: + if needs_sudo and not cmd.strip().startswith("sudo"): + cmd = f"sudo {cmd}" + + result = subprocess.run( + ["sudo", "bash", "-c", cmd] if needs_sudo else cmd, + shell=not needs_sudo, + capture_output=True, + text=True, + timeout=timeout, + ) + return result.returncode == 0, result.stdout.strip(), result.stderr.strip() + except subprocess.TimeoutExpired: + return False, "", f"Command timed out after {timeout} seconds" + except Exception as e: + return False, "", str(e) + + def check_file_exists_and_usefulness( + self, + cmd: str, + purpose: str, + user_query: str, + ) -> dict[str, Any]: + """Check if files the command creates already exist and analyze their usefulness.""" + result = { + "files_checked": [], + "existing_files": [], + "useful_content": {}, + "recommendations": [], + "modified_command": cmd, + } + + file_creation_patterns = [ + (r'(?:echo|printf)\s+.*?>\s*([^\s;|&]+)', 'write'), + (r'(?:echo|printf)\s+.*?>>\s*([^\s;|&]+)', 'append'), + (r'tee\s+(?:-a\s+)?([^\s;|&]+)', 'write'), + (r'cp\s+[^\s]+\s+([^\s;|&]+)', 'copy'), + (r'touch\s+([^\s;|&]+)', 'create'), + (r'cat\s+.*?>\s*([^\s;|&]+)', 'write'), + (r'sed\s+-i[^\s]*\s+.*?\s+([^\s;|&]+)$', 'modify'), + (r'mv\s+[^\s]+\s+([^\s;|&]+)', 'move'), + ] + + target_files = [] + operation_type = None + + for pattern, op_type in file_creation_patterns: + matches = re.findall(pattern, cmd) + for match in matches: + if match.startswith('/') or match.startswith('~'): + target_files.append(match) + operation_type = op_type + + result["files_checked"] = target_files + + for file_path in target_files: + if file_path.startswith('~'): + file_path = os.path.expanduser(file_path) + + if os.path.exists(file_path): + result["existing_files"].append(file_path) + console.print(f"[yellow]๐Ÿ“ File exists: {file_path}[/yellow]") + + success, content, _ = self._execute_command(f"cat '{file_path}' 2>/dev/null", needs_sudo=True) + + if success and content: + useful_parts = self.analyze_file_usefulness(content, purpose, user_query) + + if useful_parts["is_useful"]: + result["useful_content"][file_path] = useful_parts + console.print(f"[cyan] โœ“ Contains useful content: {useful_parts['summary']}[/cyan]") + + if useful_parts["action"] == "merge": + result["recommendations"].append({ + "file": file_path, + "action": "merge", + "reason": useful_parts["reason"], + "keep_sections": useful_parts.get("keep_sections", []), + }) + elif useful_parts["action"] == "modify": + result["recommendations"].append({ + "file": file_path, + "action": "modify", + "reason": useful_parts["reason"], + }) + else: + result["recommendations"].append({ + "file": file_path, + "action": "backup_and_replace", + "reason": "Existing content not relevant", + }) + elif operation_type in ['write', 'copy', 'create']: + parent_dir = os.path.dirname(file_path) + if parent_dir and not os.path.exists(parent_dir): + console.print(f"[yellow]๐Ÿ“ Parent directory doesn't exist: {parent_dir}[/yellow]") + result["recommendations"].append({ + "file": file_path, + "action": "create_parent", + "reason": f"Need to create {parent_dir} first", + }) + + return result + + def analyze_file_usefulness( + self, + content: str, + purpose: str, + user_query: str, + ) -> dict[str, Any]: + """Analyze if file content is useful for the current purpose.""" + result = { + "is_useful": False, + "summary": "", + "action": "replace", + "reason": "", + "keep_sections": [], + } + + content_lower = content.lower() + purpose_lower = purpose.lower() + query_lower = user_query.lower() + + # Nginx configuration + if any(x in content_lower for x in ["server {", "location", "nginx", "proxy_pass", "listen"]): + result["is_useful"] = True + + has_server_block = "server {" in content_lower or "server{" in content_lower + has_location = "location" in content_lower + has_proxy = "proxy_pass" in content_lower + has_ssl = "ssl" in content_lower or "443" in content + + summary_parts = [] + if has_server_block: + summary_parts.append("server block") + if has_location: + summary_parts.append("location rules") + if has_proxy: + summary_parts.append("proxy settings") + if has_ssl: + summary_parts.append("SSL config") + + result["summary"] = "Has " + ", ".join(summary_parts) + + if "proxy" in query_lower or "forward" in query_lower: + if has_proxy: + existing_proxy = re.search(r'proxy_pass\s+([^;]+)', content) + if existing_proxy: + result["action"] = "modify" + result["reason"] = f"Existing proxy to {existing_proxy.group(1).strip()}" + else: + result["action"] = "merge" + result["reason"] = "Add proxy to existing server block" + result["keep_sections"] = ["server", "ssl", "location"] + elif "ssl" in query_lower or "https" in query_lower: + if has_ssl: + result["action"] = "modify" + result["reason"] = "SSL already configured, modify as needed" + else: + result["action"] = "merge" + result["reason"] = "Add SSL to existing config" + else: + result["action"] = "merge" + result["reason"] = "Preserve existing configuration" + + # Apache configuration + elif any(x in content_lower for x in [" 2: + result["is_useful"] = True + result["summary"] = f"Related content ({len(overlap)} keyword matches)" + result["action"] = "backup_and_replace" + result["reason"] = "Content partially relevant, backing up" + + return result + + def apply_file_recommendations( + self, + recommendations: list[dict[str, Any]], + ) -> list[str]: + """Apply recommendations for existing files.""" + commands_executed = [] + + for rec in recommendations: + file_path = rec["file"] + action = rec["action"] + + if action == "backup_and_replace": + backup_path = f"{file_path}.cortex.bak.{int(time.time())}" + backup_cmd = f"sudo cp '{file_path}' '{backup_path}'" + success, _, _ = self._execute_command(backup_cmd, needs_sudo=True) + if success: + console.print(f"[dim] โœ“ Backed up to {backup_path}[/dim]") + commands_executed.append(backup_cmd) + + elif action == "create_parent": + parent = os.path.dirname(file_path) + mkdir_cmd = f"sudo mkdir -p '{parent}'" + success, _, _ = self._execute_command(mkdir_cmd, needs_sudo=True) + if success: + console.print(f"[dim] โœ“ Created directory {parent}[/dim]") + commands_executed.append(mkdir_cmd) + + return commands_executed + diff --git a/cortex/semantic_cache.py b/cortex/semantic_cache.py index c883a7c1a..89a42f518 100644 --- a/cortex/semantic_cache.py +++ b/cortex/semantic_cache.py @@ -80,7 +80,10 @@ def _ensure_db_directory(self) -> None: db_dir = Path(self.db_path).parent try: db_dir.mkdir(parents=True, exist_ok=True) - except PermissionError: + # Also check if directory is writable + if not os.access(db_dir, os.W_OK): + raise PermissionError(f"Directory {db_dir} is not writable") + except (PermissionError, OSError): user_dir = Path.home() / ".cortex" user_dir.mkdir(parents=True, exist_ok=True) self.db_path = str(user_dir / "cache.db") diff --git a/cortex/system_info_generator.py b/cortex/system_info_generator.py new file mode 100644 index 000000000..5b6f1000b --- /dev/null +++ b/cortex/system_info_generator.py @@ -0,0 +1,800 @@ +""" +System Information Command Generator for Cortex. + +Generates read-only commands using LLM to retrieve system and application information. +All commands are validated against the CommandValidator to ensure they only read the system. + +Usage: + generator = SystemInfoGenerator(api_key="...", provider="claude") + + # Simple info queries + result = generator.get_info("What version of Python is installed?") + + # Application-specific queries + result = generator.get_app_info("nginx", "What's the current nginx configuration?") + + # Structured info retrieval + info = generator.get_structured_info("hardware", ["cpu", "memory", "disk"]) +""" + +import json +import os +import re +import subprocess +from dataclasses import dataclass, field +from enum import Enum +from typing import Any + +from rich.console import Console +from rich.panel import Panel +from rich.table import Table + +from cortex.ask import CommandValidator + +console = Console() + + +class InfoCategory(str, Enum): + """Categories of system information.""" + HARDWARE = "hardware" + SOFTWARE = "software" + NETWORK = "network" + SECURITY = "security" + SERVICES = "services" + PACKAGES = "packages" + PROCESSES = "processes" + STORAGE = "storage" + PERFORMANCE = "performance" + CONFIGURATION = "configuration" + LOGS = "logs" + USERS = "users" + APPLICATION = "application" + CUSTOM = "custom" + + +@dataclass +class InfoCommand: + """A single read-only command for gathering information.""" + command: str + purpose: str + category: InfoCategory = InfoCategory.CUSTOM + timeout: int = 30 + + +@dataclass +class InfoResult: + """Result of executing an info command.""" + command: str + success: bool + output: str + error: str = "" + execution_time: float = 0.0 + + +@dataclass +class SystemInfoResult: + """Complete result of a system info query.""" + query: str + answer: str + commands_executed: list[InfoResult] = field(default_factory=list) + raw_data: dict[str, Any] = field(default_factory=dict) + category: InfoCategory = InfoCategory.CUSTOM + + +# Common info command templates for quick lookups +# Note: Commands are simplified to avoid || patterns which are blocked by CommandValidator +COMMON_INFO_COMMANDS: dict[str, list[InfoCommand]] = { + # Hardware Information + "cpu": [ + InfoCommand("lscpu", "Get CPU architecture and details", InfoCategory.HARDWARE), + InfoCommand("head -30 /proc/cpuinfo", "Get CPU model and cores", InfoCategory.HARDWARE), + InfoCommand("nproc", "Get number of processing units", InfoCategory.HARDWARE), + ], + "memory": [ + InfoCommand("free -h", "Get memory usage in human-readable format", InfoCategory.HARDWARE), + InfoCommand("head -20 /proc/meminfo", "Get detailed memory information", InfoCategory.HARDWARE), + ], + "disk": [ + InfoCommand("df -h", "Get disk space usage", InfoCategory.STORAGE), + InfoCommand("lsblk", "List block devices", InfoCategory.STORAGE), + ], + "gpu": [ + InfoCommand("nvidia-smi --query-gpu=name,memory.total,driver_version --format=csv,noheader", "Get NVIDIA GPU info", InfoCategory.HARDWARE), + InfoCommand("lspci", "List PCI devices including VGA", InfoCategory.HARDWARE), + ], + + # OS Information + "os": [ + InfoCommand("cat /etc/os-release", "Get OS release information", InfoCategory.SOFTWARE), + InfoCommand("uname -a", "Get kernel and system info", InfoCategory.SOFTWARE), + InfoCommand("lsb_release -a", "Get LSB release info", InfoCategory.SOFTWARE), + ], + "kernel": [ + InfoCommand("uname -r", "Get kernel version", InfoCategory.SOFTWARE), + InfoCommand("cat /proc/version", "Get detailed kernel version", InfoCategory.SOFTWARE), + ], + + # Network Information + "network": [ + InfoCommand("ip addr show", "List network interfaces", InfoCategory.NETWORK), + InfoCommand("ip route show", "Show routing table", InfoCategory.NETWORK), + InfoCommand("ss -tuln", "List listening ports", InfoCategory.NETWORK), + ], + "dns": [ + InfoCommand("cat /etc/resolv.conf", "Get DNS configuration", InfoCategory.NETWORK), + InfoCommand("host google.com", "Test DNS resolution", InfoCategory.NETWORK), + ], + + # Services + "services": [ + InfoCommand("systemctl list-units --type=service --state=running --no-pager", "List running services", InfoCategory.SERVICES), + InfoCommand("systemctl list-units --type=service --state=failed --no-pager", "List failed services", InfoCategory.SERVICES), + ], + + # Security + "security": [ + InfoCommand("ufw status", "Check firewall status", InfoCategory.SECURITY), + InfoCommand("aa-status", "Check AppArmor status", InfoCategory.SECURITY), + InfoCommand("wc -l /etc/passwd", "Count system users", InfoCategory.SECURITY), + ], + + # Processes + "processes": [ + InfoCommand("ps aux --sort=-%mem", "Top memory-consuming processes", InfoCategory.PROCESSES), + InfoCommand("ps aux --sort=-%cpu", "Top CPU-consuming processes", InfoCategory.PROCESSES), + ], + + # Environment + "environment": [ + InfoCommand("env", "List environment variables", InfoCategory.CONFIGURATION), + InfoCommand("echo $PATH", "Show PATH", InfoCategory.CONFIGURATION), + InfoCommand("echo $SHELL", "Show current shell", InfoCategory.CONFIGURATION), + ], +} + +# Application-specific info templates +# Note: Commands are simplified to avoid || patterns which are blocked by CommandValidator +APP_INFO_TEMPLATES: dict[str, dict[str, list[InfoCommand]]] = { + "nginx": { + "status": [ + InfoCommand("systemctl status nginx --no-pager", "Check nginx service status", InfoCategory.SERVICES), + InfoCommand("nginx -v", "Get nginx version", InfoCategory.SOFTWARE), + ], + "config": [ + InfoCommand("cat /etc/nginx/nginx.conf", "Get nginx configuration", InfoCategory.CONFIGURATION), + InfoCommand("ls -la /etc/nginx/sites-enabled/", "List enabled sites", InfoCategory.CONFIGURATION), + ], + "logs": [ + InfoCommand("tail -50 /var/log/nginx/access.log", "Recent access logs", InfoCategory.LOGS), + InfoCommand("tail -50 /var/log/nginx/error.log", "Recent error logs", InfoCategory.LOGS), + ], + }, + "docker": { + "status": [ + InfoCommand("docker --version", "Get Docker version", InfoCategory.SOFTWARE), + InfoCommand("docker info", "Get Docker info", InfoCategory.SOFTWARE), + ], + "containers": [ + InfoCommand("docker ps -a", "List containers", InfoCategory.APPLICATION), + InfoCommand("docker images", "List images", InfoCategory.APPLICATION), + ], + "resources": [ + InfoCommand("docker stats --no-stream", "Container resource usage", InfoCategory.PERFORMANCE), + ], + }, + "postgresql": { + "status": [ + InfoCommand("systemctl status postgresql --no-pager", "Check PostgreSQL service", InfoCategory.SERVICES), + InfoCommand("psql --version", "Get PostgreSQL version", InfoCategory.SOFTWARE), + ], + "config": [ + InfoCommand("head -50 /etc/postgresql/14/main/postgresql.conf", "PostgreSQL config", InfoCategory.CONFIGURATION), + ], + }, + "mysql": { + "status": [ + InfoCommand("systemctl status mysql --no-pager", "Check MySQL status", InfoCategory.SERVICES), + InfoCommand("mysql --version", "Get MySQL version", InfoCategory.SOFTWARE), + ], + }, + "redis": { + "status": [ + InfoCommand("systemctl status redis-server --no-pager", "Check Redis status", InfoCategory.SERVICES), + InfoCommand("redis-cli --version", "Get Redis version", InfoCategory.SOFTWARE), + ], + "info": [ + InfoCommand("redis-cli info", "Redis server info", InfoCategory.APPLICATION), + ], + }, + "python": { + "version": [ + InfoCommand("python3 --version", "Get Python version", InfoCategory.SOFTWARE), + InfoCommand("which python3", "Find Python executable", InfoCategory.SOFTWARE), + ], + "packages": [ + InfoCommand("pip3 list --format=freeze", "List installed packages", InfoCategory.PACKAGES), + ], + "venv": [ + InfoCommand("echo $VIRTUAL_ENV", "Check active virtual environment", InfoCategory.CONFIGURATION), + ], + }, + "nodejs": { + "version": [ + InfoCommand("node --version", "Get Node.js version", InfoCategory.SOFTWARE), + InfoCommand("npm --version", "Get npm version", InfoCategory.SOFTWARE), + ], + "packages": [ + InfoCommand("npm list -g --depth=0", "List global npm packages", InfoCategory.PACKAGES), + ], + }, + "git": { + "version": [ + InfoCommand("git --version", "Get Git version", InfoCategory.SOFTWARE), + ], + "config": [ + InfoCommand("git config --global --list", "Git global config", InfoCategory.CONFIGURATION), + ], + }, + "ssh": { + "status": [ + InfoCommand("systemctl status ssh --no-pager", "Check SSH service", InfoCategory.SERVICES), + ], + "config": [ + InfoCommand("head -50 /etc/ssh/sshd_config", "SSH server config", InfoCategory.CONFIGURATION), + ], + }, + "systemd": { + "status": [ + InfoCommand("systemctl --version", "Get systemd version", InfoCategory.SOFTWARE), + InfoCommand("systemctl list-units --state=failed --no-pager", "Failed units", InfoCategory.SERVICES), + ], + "timers": [ + InfoCommand("systemctl list-timers --no-pager", "List active timers", InfoCategory.SERVICES), + ], + }, +} + + +class SystemInfoGenerator: + """ + Generates read-only commands to retrieve system and application information. + + Uses LLM to generate appropriate commands based on natural language queries, + while enforcing read-only access through CommandValidator. + """ + + MAX_ITERATIONS = 5 + MAX_OUTPUT_CHARS = 4000 + + def __init__( + self, + api_key: str | None = None, + provider: str = "claude", + model: str | None = None, + debug: bool = False, + ): + """ + Initialize the system info generator. + + Args: + api_key: API key for LLM provider (defaults to env var) + provider: LLM provider ("claude", "openai", "ollama") + model: Optional model override + debug: Enable debug output + """ + self.api_key = api_key or os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("OPENAI_API_KEY") + self.provider = provider.lower() + self.model = model or self._default_model() + self.debug = debug + + self._initialize_client() + + def _default_model(self) -> str: + if self.provider == "openai": + return "gpt-4o" + elif self.provider == "claude": + return "claude-sonnet-4-20250514" + elif self.provider == "ollama": + return "llama3.2" + return "gpt-4o" + + def _initialize_client(self): + """Initialize the LLM client.""" + if self.provider == "openai": + try: + from openai import OpenAI + self.client = OpenAI(api_key=self.api_key) + except ImportError: + raise ImportError("OpenAI package not installed. Run: pip install openai") + elif self.provider == "claude": + try: + from anthropic import Anthropic + self.client = Anthropic(api_key=self.api_key) + except ImportError: + raise ImportError("Anthropic package not installed. Run: pip install anthropic") + elif self.provider == "ollama": + self.ollama_url = os.environ.get("OLLAMA_HOST", "http://localhost:11434") + self.client = None + else: + raise ValueError(f"Unsupported provider: {self.provider}") + + def _get_system_prompt(self, context: str = "") -> str: + """Get the system prompt for info command generation.""" + app_list = ", ".join(sorted(APP_INFO_TEMPLATES.keys())) + category_list = ", ".join([c.value for c in InfoCategory]) + + prompt = f"""You are a Linux system information assistant that generates READ-ONLY shell commands. + +Your task is to generate shell commands that gather system information to answer the user's query. +You can ONLY generate commands that READ information - no modifications allowed. + +IMPORTANT RULES: +- Generate ONLY read-only commands (cat, ls, grep, find, ps, etc.) +- NEVER generate commands that modify the system (rm, mv, cp, apt install, etc.) +- NEVER use sudo (commands must work as regular user where possible) +- NEVER use output redirection (>, >>) +- NEVER use dangerous command chaining (;, &&, ||) except for fallback patterns +- Commands should handle missing files/tools gracefully using || echo fallbacks + +ALLOWED COMMAND PATTERNS: +- Reading files: cat, head, tail, less (without writing) +- Listing: ls, find, locate, which, whereis, type +- System info: uname, hostname, uptime, whoami, id, lscpu, lsmem, lsblk +- Process info: ps, top, pgrep, pidof, pstree, free, vmstat +- Package queries: dpkg-query, dpkg -l, apt-cache, pip list/show/freeze +- Network info: ip addr, ip route, ss, netstat (read operations) +- Service status: systemctl status (NOT start/stop/restart) +- Text processing: grep, awk, sed (for filtering, NOT modifying files) + +BLOCKED PATTERNS (NEVER USE): +- sudo, su +- apt install/remove, pip install/uninstall +- rm, mv, cp, mkdir, touch, chmod, chown +- Output redirection: > or >> +- systemctl start/stop/restart/enable/disable + +RESPONSE FORMAT: +You must respond with a JSON object in one of these formats: + +For generating a command to gather info: +{{ + "response_type": "command", + "command": "", + "category": "<{category_list}>", + "reasoning": "" +}} + +For providing the final answer: +{{ + "response_type": "answer", + "answer": "", + "reasoning": "" +}} + +KNOWN APPLICATIONS with pre-defined info commands: {app_list} + +{context}""" + return prompt + + def _truncate_output(self, output: str) -> str: + """Truncate output to avoid context overflow.""" + if len(output) <= self.MAX_OUTPUT_CHARS: + return output + half = self.MAX_OUTPUT_CHARS // 2 + return f"{output[:half]}\n\n... [truncated {len(output) - self.MAX_OUTPUT_CHARS} chars] ...\n\n{output[-half:]}" + + def _execute_command(self, command: str, timeout: int = 30) -> InfoResult: + """Execute a validated read-only command.""" + import time + start_time = time.time() + + # Validate command first + is_valid, error = CommandValidator.validate_command(command) + if not is_valid: + return InfoResult( + command=command, + success=False, + output="", + error=f"Command blocked: {error}", + execution_time=time.time() - start_time, + ) + + try: + result = subprocess.run( + command, + shell=True, + capture_output=True, + text=True, + timeout=timeout, + ) + return InfoResult( + command=command, + success=result.returncode == 0, + output=result.stdout.strip(), + error=result.stderr.strip() if result.returncode != 0 else "", + execution_time=time.time() - start_time, + ) + except subprocess.TimeoutExpired: + return InfoResult( + command=command, + success=False, + output="", + error=f"Command timed out after {timeout}s", + execution_time=timeout, + ) + except Exception as e: + return InfoResult( + command=command, + success=False, + output="", + error=str(e), + execution_time=time.time() - start_time, + ) + + def _call_llm(self, system_prompt: str, user_prompt: str) -> dict[str, Any]: + """Call the LLM and parse the response.""" + try: + if self.provider == "claude": + response = self.client.messages.create( + model=self.model, + max_tokens=2048, + system=system_prompt, + messages=[{"role": "user", "content": user_prompt}], + ) + content = response.content[0].text + elif self.provider == "openai": + response = self.client.chat.completions.create( + model=self.model, + max_tokens=2048, + messages=[ + {"role": "system", "content": system_prompt}, + {"role": "user", "content": user_prompt}, + ], + ) + content = response.choices[0].message.content + elif self.provider == "ollama": + import httpx + response = httpx.post( + f"{self.ollama_url}/api/chat", + json={ + "model": self.model, + "messages": [ + {"role": "system", "content": system_prompt}, + {"role": "user", "content": user_prompt}, + ], + "stream": False, + }, + timeout=60.0, + ) + response.raise_for_status() + content = response.json()["message"]["content"] + else: + raise ValueError(f"Unsupported provider: {self.provider}") + + # Parse JSON from response + json_match = re.search(r"\{[\s\S]*\}", content) + if json_match: + return json.loads(json_match.group()) + raise ValueError("No JSON found in response") + + except json.JSONDecodeError as e: + if self.debug: + console.print(f"[red]JSON parse error: {e}[/red]") + return {"response_type": "answer", "answer": f"Error parsing LLM response: {e}", "reasoning": ""} + except Exception as e: + if self.debug: + console.print(f"[red]LLM error: {e}[/red]") + return {"response_type": "answer", "answer": f"Error calling LLM: {e}", "reasoning": ""} + + def get_info(self, query: str, context: str = "") -> SystemInfoResult: + """ + Get system information based on a natural language query. + + Uses an agentic loop to: + 1. Generate commands to gather information + 2. Execute commands (read-only only) + 3. Analyze results + 4. Either generate more commands or provide final answer + + Args: + query: Natural language question about the system + context: Optional additional context for the LLM + + Returns: + SystemInfoResult with answer and command execution details + """ + system_prompt = self._get_system_prompt(context) + commands_executed: list[InfoResult] = [] + history: list[dict[str, str]] = [] + + user_prompt = f"Query: {query}" + + for iteration in range(self.MAX_ITERATIONS): + if self.debug: + console.print(f"[dim]Iteration {iteration + 1}/{self.MAX_ITERATIONS}[/dim]") + + # Build prompt with history + full_prompt = user_prompt + if history: + full_prompt += "\n\nPrevious commands and results:\n" + for i, entry in enumerate(history, 1): + full_prompt += f"\n--- Command {i} ---\n" + full_prompt += f"Command: {entry['command']}\n" + if entry['success']: + full_prompt += f"Output:\n{self._truncate_output(entry['output'])}\n" + else: + full_prompt += f"Error: {entry['error']}\n" + full_prompt += "\nBased on these results, either run another command or provide the final answer.\n" + + # Call LLM + response = self._call_llm(system_prompt, full_prompt) + + if response.get("response_type") == "answer": + # Final answer + return SystemInfoResult( + query=query, + answer=response.get("answer", "No answer provided"), + commands_executed=commands_executed, + raw_data={h["command"]: h["output"] for h in history if h.get("success")}, + ) + + elif response.get("response_type") == "command": + command = response.get("command", "") + if not command: + continue + + if self.debug: + console.print(f"[cyan]Executing:[/cyan] {command}") + + result = self._execute_command(command) + commands_executed.append(result) + + history.append({ + "command": command, + "success": result.success, + "output": result.output, + "error": result.error, + }) + + if self.debug: + if result.success: + console.print(f"[green]โœ“ Success[/green]") + else: + console.print(f"[red]โœ— Failed: {result.error}[/red]") + + # Max iterations reached + return SystemInfoResult( + query=query, + answer="Could not complete the query within iteration limit.", + commands_executed=commands_executed, + raw_data={h["command"]: h["output"] for h in history if h.get("success")}, + ) + + def get_app_info( + self, + app_name: str, + query: str | None = None, + aspects: list[str] | None = None, + ) -> SystemInfoResult: + """ + Get information about a specific application. + + Args: + app_name: Application name (nginx, docker, postgresql, etc.) + query: Optional natural language query about the app + aspects: Optional list of aspects to check (status, config, logs, etc.) + + Returns: + SystemInfoResult with application information + """ + app_lower = app_name.lower() + commands_executed: list[InfoResult] = [] + raw_data: dict[str, Any] = {} + + # Check if we have predefined commands for this app + if app_lower in APP_INFO_TEMPLATES: + templates = APP_INFO_TEMPLATES[app_lower] + aspects_to_check = aspects or list(templates.keys()) + + for aspect in aspects_to_check: + if aspect in templates: + for cmd_info in templates[aspect]: + result = self._execute_command(cmd_info.command, cmd_info.timeout) + commands_executed.append(result) + if result.success and result.output: + raw_data[f"{aspect}:{cmd_info.purpose}"] = result.output + + # If there's a specific query, use LLM to analyze + if query: + context = f"""Application: {app_name} +Already gathered data: +{json.dumps(raw_data, indent=2)[:2000]} + +Now answer the specific question about this application.""" + + result = self.get_info(query, context) + result.commands_executed = commands_executed + result.commands_executed + result.raw_data.update(raw_data) + return result + + # Generate summary answer from raw data + answer_parts = [f"**{app_name.title()} Information**\n"] + for key, value in raw_data.items(): + aspect, desc = key.split(":", 1) + answer_parts.append(f"\n**{aspect.title()}** ({desc}):\n```\n{value[:500]}{'...' if len(value) > 500 else ''}\n```") + + return SystemInfoResult( + query=query or f"Get information about {app_name}", + answer="\n".join(answer_parts) if raw_data else f"No information found for {app_name}", + commands_executed=commands_executed, + raw_data=raw_data, + category=InfoCategory.APPLICATION, + ) + + def get_structured_info( + self, + category: str | InfoCategory, + aspects: list[str] | None = None, + ) -> SystemInfoResult: + """ + Get structured system information for a category. + + Args: + category: Info category (hardware, network, services, etc.) + aspects: Optional specific aspects (cpu, memory, disk for hardware, etc.) + + Returns: + SystemInfoResult with structured information + """ + if isinstance(category, str): + category = category.lower() + else: + category = category.value + + commands_executed: list[InfoResult] = [] + raw_data: dict[str, Any] = {} + + # Map categories to common commands + category_mapping = { + "hardware": ["cpu", "memory", "disk", "gpu"], + "software": ["os", "kernel"], + "network": ["network", "dns"], + "services": ["services"], + "security": ["security"], + "processes": ["processes"], + "storage": ["disk"], + "performance": ["cpu", "memory", "processes"], + "configuration": ["environment"], + } + + aspects_to_check = aspects or category_mapping.get(category, []) + + for aspect in aspects_to_check: + if aspect in COMMON_INFO_COMMANDS: + for cmd_info in COMMON_INFO_COMMANDS[aspect]: + result = self._execute_command(cmd_info.command, cmd_info.timeout) + commands_executed.append(result) + if result.success and result.output: + raw_data[f"{aspect}:{cmd_info.purpose}"] = result.output + + # Generate structured answer + answer_parts = [f"**{category.title()} Information**\n"] + for key, value in raw_data.items(): + aspect, desc = key.split(":", 1) + answer_parts.append(f"\n**{aspect.upper()}** ({desc}):\n```\n{value[:800]}{'...' if len(value) > 800 else ''}\n```") + + return SystemInfoResult( + query=f"Get {category} information", + answer="\n".join(answer_parts) if raw_data else f"No {category} information found", + commands_executed=commands_executed, + raw_data=raw_data, + category=InfoCategory(category) if category in [c.value for c in InfoCategory] else InfoCategory.CUSTOM, + ) + + def quick_info(self, info_type: str) -> str: + """ + Quick lookup for common system information. + + Args: + info_type: Type of info (cpu, memory, disk, os, network, etc.) + + Returns: + String with the requested information + """ + info_lower = info_type.lower() + + if info_lower in COMMON_INFO_COMMANDS: + outputs = [] + for cmd_info in COMMON_INFO_COMMANDS[info_lower]: + result = self._execute_command(cmd_info.command) + if result.success and result.output: + outputs.append(result.output) + return "\n\n".join(outputs) if outputs else f"No {info_type} information available" + + # Try as app info + if info_lower in APP_INFO_TEMPLATES: + result = self.get_app_info(info_lower, aspects=["status", "version"]) + return result.answer + + return f"Unknown info type: {info_type}. Available: {', '.join(COMMON_INFO_COMMANDS.keys())}" + + def list_available_info(self) -> dict[str, list[str]]: + """List all available pre-defined info types and applications.""" + return { + "system_info": list(COMMON_INFO_COMMANDS.keys()), + "applications": list(APP_INFO_TEMPLATES.keys()), + "categories": [c.value for c in InfoCategory], + } + + +def get_system_info_generator( + provider: str = "claude", + debug: bool = False, +) -> SystemInfoGenerator: + """ + Factory function to create a SystemInfoGenerator with default configuration. + + Args: + provider: LLM provider to use + debug: Enable debug output + + Returns: + Configured SystemInfoGenerator instance + """ + api_key = os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("OPENAI_API_KEY") + if not api_key: + raise ValueError("No API key found. Set ANTHROPIC_API_KEY or OPENAI_API_KEY") + + return SystemInfoGenerator(api_key=api_key, provider=provider, debug=debug) + + +# CLI helper for quick testing +if __name__ == "__main__": + import sys + + if len(sys.argv) < 2: + print("Usage: python system_info_generator.py ") + print(" python system_info_generator.py --quick ") + print(" python system_info_generator.py --app [query]") + print(" python system_info_generator.py --list") + sys.exit(1) + + try: + generator = get_system_info_generator(debug=True) + + if sys.argv[1] == "--list": + available = generator.list_available_info() + console.print("\n[bold]Available Information Types:[/bold]") + console.print(f"System: {', '.join(available['system_info'])}") + console.print(f"Apps: {', '.join(available['applications'])}") + console.print(f"Categories: {', '.join(available['categories'])}") + + elif sys.argv[1] == "--quick" and len(sys.argv) > 2: + info = generator.quick_info(sys.argv[2]) + console.print(Panel(info, title=f"{sys.argv[2].title()} Info")) + + elif sys.argv[1] == "--app" and len(sys.argv) > 2: + app_name = sys.argv[2] + query = " ".join(sys.argv[3:]) if len(sys.argv) > 3 else None + result = generator.get_app_info(app_name, query) + console.print(Panel(result.answer, title=f"{app_name.title()} Info")) + + else: + query = " ".join(sys.argv[1:]) + result = generator.get_info(query) + console.print(Panel(result.answer, title="System Info")) + + if result.commands_executed: + table = Table(title="Commands Executed") + table.add_column("Command", style="cyan") + table.add_column("Status", style="green") + table.add_column("Time", style="dim") + for cmd in result.commands_executed: + status = "โœ“" if cmd.success else "โœ—" + table.add_row(cmd.command[:60], status, f"{cmd.execution_time:.2f}s") + console.print(table) + + except ValueError as e: + console.print(f"[red]Error: {e}[/red]") + sys.exit(1) + diff --git a/cortex/test.py b/cortex/test.py new file mode 100644 index 000000000..e69de29bb diff --git a/requirements.txt b/requirements.txt index 166a777ef..20d8c552b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,4 +22,6 @@ pyyaml>=6.0.0 # Type hints for older Python versions typing-extensions>=4.0.0 -PyYAML==6.0.3 + +# Pydantic for data validation +pydantic>=2.0.0 From b684dfaa6a4f620f67c4653f5b966d45711fc7ee Mon Sep 17 00:00:00 2001 From: Dhruv-89 Date: Tue, 13 Jan 2026 01:10:07 +0530 Subject: [PATCH 4/6] added some features to do-ask --- cortex/cli.py | 125 +++++++++++++++++++++++-------- cortex/do_runner/database.py | 123 ++++++++++++++++++++++++++++-- cortex/do_runner/handler.py | 47 ++++++++++++ cortex/do_runner/models.py | 2 + cortex/do_runner/verification.py | 73 ++++++++++++++++++ 5 files changed, 332 insertions(+), 38 deletions(-) diff --git a/cortex/cli.py b/cortex/cli.py index b0ebcd4ae..b2b3f18d0 100644 --- a/cortex/cli.py +++ b/cortex/cli.py @@ -566,9 +566,19 @@ def _run_interactive_do_session(self, handler: AskHandler) -> int: from rich.panel import Panel from rich.prompt import Prompt + # Create a session + from cortex.do_runner import DoRunDatabase + db = DoRunDatabase() + session_id = db.create_session() + + # Pass session_id to handler + if handler._do_handler: + handler._do_handler.current_session_id = session_id + console.print() console.print(Panel( "[bold cyan]๐Ÿš€ Cortex Interactive Session[/bold cyan]\n\n" + f"[dim]Session ID: {session_id[:30]}...[/dim]\n\n" "Type what you want to do and Cortex will help you.\n" "Commands will be shown for approval before execution.\n\n" "[dim]Examples:[/dim]\n" @@ -583,12 +593,13 @@ def _run_interactive_do_session(self, handler: AskHandler) -> int: console.print() session_history = [] # Track what was done in this session + run_count = 0 while True: try: # Show session context if we have history if session_history: - console.print(f"[dim]Session: {len(session_history)} task(s) completed[/dim]") + console.print(f"[dim]Session: {len(session_history)} task(s) | {run_count} run(s)[/dim]") # Get user input query = Prompt.ask("[bold cyan]What would you like to do?[/bold cyan]") @@ -598,8 +609,9 @@ def _run_interactive_do_session(self, handler: AskHandler) -> int: # Check for exit if query.lower().strip() in ["exit", "quit", "bye", "q"]: + db.end_session(session_id) console.print() - console.print("[cyan]๐Ÿ‘‹ Session ended. Run 'cortex do history' to see past runs.[/cyan]") + console.print(f"[cyan]๐Ÿ‘‹ Session ended ({run_count} runs). Run 'cortex do history' to see past runs.[/cyan]") break # Check for help @@ -620,7 +632,8 @@ def _run_interactive_do_session(self, handler: AskHandler) -> int: console.print("[bold]Session history:[/bold]") for i, item in enumerate(session_history, 1): status = "โœ“" if item.get("success") else "โœ—" - console.print(f" {i}. [{status}] {item['query'][:50]}...") + run_info = f" (run: {item.get('run_id', 'N/A')[:15]})" if item.get("run_id") else "" + console.print(f" {i}. [{status}] {item['query'][:50]}...{run_info}") console.print() else: console.print("[dim]No tasks completed yet.[/dim]") @@ -632,16 +645,27 @@ def _run_interactive_do_session(self, handler: AskHandler) -> int: console.print("[dim]Session history cleared.[/dim]") continue + # Update session with query + db.update_session(session_id, query=query) + # Process the query console.print() try: answer = handler.ask(query) + # Get the run_id if one was created + run_id = None + if handler._do_handler and handler._do_handler.current_run: + run_id = handler._do_handler.current_run.run_id + run_count += 1 + db.update_session(session_id, increment_runs=True) + # Track in session history session_history.append({ "query": query, "success": True, "answer": answer[:100] if answer else "", + "run_id": run_id, }) # Print response if it's informational @@ -659,10 +683,12 @@ def _run_interactive_do_session(self, handler: AskHandler) -> int: console.print() except KeyboardInterrupt: + db.end_session(session_id) console.print() console.print("[cyan]๐Ÿ‘‹ Session ended.[/cyan]") break except EOFError: + db.end_session(session_id) console.print() console.print("[cyan]๐Ÿ‘‹ Session ended.[/cyan]") break @@ -1467,6 +1493,12 @@ def _do_history(self, args: argparse.Namespace) -> int: console.print(f"\n[bold]Do Run: {run.run_id}[/bold]") console.print("=" * 70) + + # Show session ID if available + session_id = getattr(run, "session_id", None) + if session_id: + console.print(f"[bold]Session:[/bold] [magenta]{session_id}[/magenta]") + console.print(f"[bold]Query:[/bold] {run.user_query}") console.print(f"[bold]Mode:[/bold] {run.mode.value}") console.print(f"[bold]Started:[/bold] {run.started_at}") @@ -1534,44 +1566,73 @@ def _do_history(self, args: argparse.Namespace) -> int: cx_print("No do-mode runs found", "info") return 0 - console.print(f"\n[bold]๐Ÿ“œ Recent Do Runs:[/bold]\n") - - import json as json_module + # Group runs by session + sessions = {} + standalone_runs = [] for run in runs: - # Get stats from database if available - stats = handler.db.get_run_stats(run.run_id) - if stats: - total = stats.get("total_commands", 0) - success = stats.get("successful_commands", 0) - failed = stats.get("failed_commands", 0) - status_str = f"[green]โœ“{success}[/green]/[red]โœ—{failed}[/red]/{total}" + session_id = getattr(run, "session_id", None) + if session_id: + if session_id not in sessions: + sessions[session_id] = [] + sessions[session_id].append(run) else: - cmd_count = len(run.commands) - success_count = sum(1 for c in run.commands if c.status.value == "success") - failed_count = sum(1 for c in run.commands if c.status.value == "failed") - status_str = f"[green]โœ“{success_count}[/green]/[red]โœ—{failed_count}[/red]/{cmd_count}" - - # Get commands list from database - commands_list = handler.db.get_commands_list(run.run_id) - - console.print(f"[bold cyan]{'โ”€' * 70}[/bold cyan]") - console.print(f"[bold]Run ID:[/bold] {run.run_id}") - console.print(f"[bold]Query:[/bold] {run.user_query}") - console.print(f"[bold]Mode:[/bold] {run.mode.value} | [bold]Status:[/bold] {status_str} | [bold]Started:[/bold] {run.started_at[:19] if run.started_at else '-'}") - console.print(f"[bold]Summary:[/bold] {run.summary}") + standalone_runs.append(run) + + console.print(f"\n[bold]๐Ÿ“œ Recent Do Runs:[/bold]") + console.print(f"[dim]Sessions: {len(sessions)} | Standalone runs: {len(standalone_runs)}[/dim]\n") + + import json as json_module + + # Show sessions first + for session_id, session_runs in sessions.items(): + console.print(f"[bold magenta]โ•ญ{'โ”€' * 68}โ•ฎ[/bold magenta]") + console.print(f"[bold magenta]โ”‚ ๐Ÿ“‚ Session: {session_id[:40]}...{' ' * 15}โ”‚[/bold magenta]") + console.print(f"[bold magenta]โ”‚ Runs: {len(session_runs)}{' ' * 57}โ”‚[/bold magenta]") + console.print(f"[bold magenta]โ•ฐ{'โ”€' * 68}โ•ฏ[/bold magenta]") - # Show commands - if commands_list: - console.print(f"[bold]Commands:[/bold]") - for i, cmd in enumerate(commands_list, 1): - cmd_short = cmd[:60] + "..." if len(cmd) > 60 else cmd - console.print(f" {i}. [cyan]{cmd_short}[/cyan]") + for run in session_runs: + self._display_run_summary(handler, run, indent=" ") console.print() + # Show standalone runs + if standalone_runs: + if sessions: + console.print(f"[bold cyan]{'โ”€' * 70}[/bold cyan]") + console.print("[bold]๐Ÿ“‹ Standalone Runs (no session):[/bold]") + + for run in standalone_runs: + self._display_run_summary(handler, run) + console.print(f"[dim]Use 'cortex do history ' for full details[/dim]") return 0 + def _display_run_summary(self, handler, run, indent: str = "") -> None: + """Display a single run summary.""" + stats = handler.db.get_run_stats(run.run_id) + if stats: + total = stats.get("total_commands", 0) + success = stats.get("successful_commands", 0) + failed = stats.get("failed_commands", 0) + status_str = f"[green]โœ“{success}[/green]/[red]โœ—{failed}[/red]/{total}" + else: + cmd_count = len(run.commands) + success_count = sum(1 for c in run.commands if c.status.value == "success") + failed_count = sum(1 for c in run.commands if c.status.value == "failed") + status_str = f"[green]โœ“{success_count}[/green]/[red]โœ—{failed_count}[/red]/{cmd_count}" + + commands_list = handler.db.get_commands_list(run.run_id) + + console.print(f"{indent}[bold cyan]{'โ”€' * 60}[/bold cyan]") + console.print(f"{indent}[bold]Run ID:[/bold] {run.run_id}") + console.print(f"{indent}[bold]Query:[/bold] {run.user_query[:60]}{'...' if len(run.user_query) > 60 else ''}") + console.print(f"{indent}[bold]Status:[/bold] {status_str} | [bold]Started:[/bold] {run.started_at[:19] if run.started_at else '-'}") + + if commands_list and len(commands_list) <= 3: + console.print(f"{indent}[bold]Commands:[/bold] {', '.join(cmd[:30] for cmd in commands_list)}") + elif commands_list: + console.print(f"{indent}[bold]Commands:[/bold] {len(commands_list)} commands") + def _do_setup(self) -> int: """Setup cortex user for privilege management.""" from cortex.do_runner import CortexUserManager diff --git a/cortex/do_runner/database.py b/cortex/do_runner/database.py index 8e5775fab..b153fe1da 100644 --- a/cortex/do_runner/database.py +++ b/cortex/do_runner/database.py @@ -42,6 +42,7 @@ def _init_db(self): conn.execute(""" CREATE TABLE IF NOT EXISTS do_runs ( run_id TEXT PRIMARY KEY, + session_id TEXT, summary TEXT NOT NULL, commands_log TEXT NOT NULL, commands_list TEXT, @@ -59,6 +60,17 @@ def _init_db(self): ) """) + # Create sessions table + conn.execute(""" + CREATE TABLE IF NOT EXISTS do_sessions ( + session_id TEXT PRIMARY KEY, + started_at TEXT, + ended_at TEXT, + total_runs INTEGER DEFAULT 0, + total_queries TEXT + ) + """) + conn.execute(""" CREATE TABLE IF NOT EXISTS do_run_commands ( id INTEGER PRIMARY KEY AUTOINCREMENT, @@ -102,6 +114,7 @@ def _migrate_schema(self, conn: sqlite3.Connection): ("failed_commands", "INTEGER DEFAULT 0"), ("skipped_commands", "INTEGER DEFAULT 0"), ("commands_list", "TEXT"), + ("session_id", "TEXT"), ] for col_name, col_type in new_columns: @@ -198,12 +211,13 @@ def save_run(self, run: DoRun) -> str: with sqlite3.connect(str(self.db_path)) as conn: conn.execute(""" INSERT OR REPLACE INTO do_runs - (run_id, summary, commands_log, commands_list, mode, user_query, started_at, + (run_id, session_id, summary, commands_log, commands_list, mode, user_query, started_at, completed_at, files_accessed, privileges_granted, full_data, total_commands, successful_commands, failed_commands, skipped_commands) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) """, ( run.run_id, + run.session_id or None, run.summary, commands_log, commands_list, @@ -256,7 +270,7 @@ def get_run(self, run_id: str) -> DoRun | None: if row: full_data = json.loads(row["full_data"]) - return DoRun( + run = DoRun( run_id=full_data["run_id"], summary=full_data["summary"], mode=RunMode(full_data["mode"]), @@ -266,7 +280,9 @@ def get_run(self, run_id: str) -> DoRun | None: user_query=full_data.get("user_query", ""), files_accessed=full_data.get("files_accessed", []), privileges_granted=full_data.get("privileges_granted", []), + session_id=row["session_id"] if "session_id" in row.keys() else "", ) + return run return None def get_run_commands(self, run_id: str) -> list[dict[str, Any]]: @@ -346,13 +362,13 @@ def get_recent_runs(self, limit: int = 20) -> list[DoRun]: with sqlite3.connect(str(self.db_path)) as conn: conn.row_factory = sqlite3.Row cursor = conn.execute( - "SELECT full_data FROM do_runs ORDER BY started_at DESC LIMIT ?", + "SELECT full_data, session_id FROM do_runs ORDER BY started_at DESC LIMIT ?", (limit,) ) runs = [] for row in cursor: full_data = json.loads(row["full_data"]) - runs.append(DoRun( + run = DoRun( run_id=full_data["run_id"], summary=full_data["summary"], mode=RunMode(full_data["mode"]), @@ -362,6 +378,101 @@ def get_recent_runs(self, limit: int = 20) -> list[DoRun]: user_query=full_data.get("user_query", ""), files_accessed=full_data.get("files_accessed", []), privileges_granted=full_data.get("privileges_granted", []), - )) + ) + run.session_id = row["session_id"] + runs.append(run) return runs + + def create_session(self) -> str: + """Create a new session and return the session ID.""" + session_id = f"session_{datetime.datetime.now().strftime('%Y%m%d%H%M%S%f')}_{hashlib.md5(str(datetime.datetime.now().timestamp()).encode()).hexdigest()[:8]}" + + with sqlite3.connect(str(self.db_path)) as conn: + conn.execute( + """INSERT INTO do_sessions (session_id, started_at, total_runs, total_queries) + VALUES (?, ?, 0, '[]')""", + (session_id, datetime.datetime.now().isoformat()) + ) + conn.commit() + + return session_id + + def update_session(self, session_id: str, query: str | None = None, increment_runs: bool = False): + """Update a session with new query or run count.""" + with sqlite3.connect(str(self.db_path)) as conn: + if increment_runs: + conn.execute( + "UPDATE do_sessions SET total_runs = total_runs + 1 WHERE session_id = ?", + (session_id,) + ) + + if query: + # Get current queries + cursor = conn.execute( + "SELECT total_queries FROM do_sessions WHERE session_id = ?", + (session_id,) + ) + row = cursor.fetchone() + if row: + queries = json.loads(row[0]) if row[0] else [] + queries.append(query) + conn.execute( + "UPDATE do_sessions SET total_queries = ? WHERE session_id = ?", + (json.dumps(queries), session_id) + ) + + conn.commit() + + def end_session(self, session_id: str): + """Mark a session as ended.""" + with sqlite3.connect(str(self.db_path)) as conn: + conn.execute( + "UPDATE do_sessions SET ended_at = ? WHERE session_id = ?", + (datetime.datetime.now().isoformat(), session_id) + ) + conn.commit() + + def get_session_runs(self, session_id: str) -> list[DoRun]: + """Get all runs in a session.""" + with sqlite3.connect(str(self.db_path)) as conn: + conn.row_factory = sqlite3.Row + cursor = conn.execute( + "SELECT full_data FROM do_runs WHERE session_id = ? ORDER BY started_at ASC", + (session_id,) + ) + runs = [] + for row in cursor: + full_data = json.loads(row["full_data"]) + run = DoRun( + run_id=full_data["run_id"], + summary=full_data["summary"], + mode=RunMode(full_data["mode"]), + commands=[CommandLog.from_dict(c) for c in full_data["commands"]], + started_at=full_data.get("started_at", ""), + completed_at=full_data.get("completed_at", ""), + user_query=full_data.get("user_query", ""), + ) + run.session_id = session_id + runs.append(run) + return runs + + def get_recent_sessions(self, limit: int = 10) -> list[dict]: + """Get recent sessions with their run counts.""" + with sqlite3.connect(str(self.db_path)) as conn: + conn.row_factory = sqlite3.Row + cursor = conn.execute( + """SELECT session_id, started_at, ended_at, total_runs, total_queries + FROM do_sessions ORDER BY started_at DESC LIMIT ?""", + (limit,) + ) + sessions = [] + for row in cursor: + sessions.append({ + "session_id": row["session_id"], + "started_at": row["started_at"], + "ended_at": row["ended_at"], + "total_runs": row["total_runs"], + "queries": json.loads(row["total_queries"]) if row["total_queries"] else [], + }) + return sessions diff --git a/cortex/do_runner/handler.py b/cortex/do_runner/handler.py index 107ba4b42..2e27cb4ed 100644 --- a/cortex/do_runner/handler.py +++ b/cortex/do_runner/handler.py @@ -49,6 +49,9 @@ def __init__(self, llm_callback: Callable[[str], dict] | None = None): self._terminal_monitor: TerminalMonitor | None = None + # Session tracking + self.current_session_id: str | None = None + # Initialize helper classes self._diagnoser = ErrorDiagnoser() self._auto_fixer = AutoFixer(llm_callback=llm_callback) @@ -476,6 +479,7 @@ def execute_commands_as_cortex( mode=RunMode.CORTEX_EXEC, user_query=user_query, started_at=datetime.datetime.now().isoformat(), + session_id=self.current_session_id or "", ) self.current_run = run @@ -768,6 +772,47 @@ def _handle_resource_conflict( console.print(f"[cyan] Will modify existing {resource_type}[/cyan]") # Don't skip - let the original command run to modify return True + + elif action == "install_first": + # Install a missing tool/dependency first + console.print(f"[cyan] Installing required dependency '{resource_name}'...[/cyan]") + all_success = True + for action_cmd in action_commands: + needs_sudo = action_cmd.startswith("sudo") + success, stdout, stderr = self._execute_single_command(action_cmd, needs_sudo=needs_sudo) + if success: + console.print(f"[green] โœ“ {action_cmd}[/green]") + else: + console.print(f"[red] โœ— {action_cmd}: {stderr[:50]}[/red]") + all_success = False + + if all_success: + console.print(f"[green] โœ“ '{resource_name}' installed. Continuing with original command...[/green]") + # Don't skip - run the original command now that the tool is installed + return True + else: + console.print(f"[red] โœ— Failed to install '{resource_name}'[/red]") + commands_to_skip.add(idx) + return True + + elif action == "use_apt": + # User chose to use apt instead of snap + console.print(f"[cyan] Skipping snap command - use apt instead[/cyan]") + commands_to_skip.add(idx) + return True + + elif action == "refresh": + # Refresh snap package + console.print(f"[cyan] Refreshing snap package...[/cyan]") + for action_cmd in action_commands: + needs_sudo = action_cmd.startswith("sudo") + success, _, stderr = self._execute_single_command(action_cmd, needs_sudo=needs_sudo) + if success: + console.print(f"[green] โœ“ {action_cmd}[/green]") + else: + console.print(f"[red] โœ— {action_cmd}: {stderr[:50]}[/red]") + commands_to_skip.add(idx) + return True # No alternatives - use default behavior (add to cleanup if available) if conflict.get("cleanup_commands"): @@ -851,6 +896,7 @@ def execute_with_task_tree( mode=RunMode.CORTEX_EXEC, user_query=user_query, started_at=datetime.datetime.now().isoformat(), + session_id=self.current_session_id or "", ) self.current_run = run self._permission_requests_count = 0 @@ -2218,6 +2264,7 @@ def provide_manual_instructions( mode=RunMode.USER_MANUAL, user_query=user_query, started_at=datetime.datetime.now().isoformat(), + session_id=self.current_session_id or "", ) self.current_run = run diff --git a/cortex/do_runner/models.py b/cortex/do_runner/models.py index 97f271d8f..be98dddc6 100644 --- a/cortex/do_runner/models.py +++ b/cortex/do_runner/models.py @@ -319,6 +319,7 @@ class DoRun: user_query: str = "" files_accessed: list[str] = field(default_factory=list) privileges_granted: list[str] = field(default_factory=list) + session_id: str = "" def to_dict(self) -> dict[str, Any]: return { @@ -331,6 +332,7 @@ def to_dict(self) -> dict[str, Any]: "user_query": self.user_query, "files_accessed": self.files_accessed, "privileges_granted": self.privileges_granted, + "session_id": self.session_id, } def get_commands_log_string(self) -> str: diff --git a/cortex/do_runner/verification.py b/cortex/do_runner/verification.py index bc34c66c2..c13a3c040 100644 --- a/cortex/do_runner/verification.py +++ b/cortex/do_runner/verification.py @@ -377,8 +377,81 @@ def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: ] ) + # snap install - check if snap is available and package is installed + if "snap install" in cmd: + # First check if snap is available + snap_available = self._check_tool_available("snap") + if not snap_available: + return self._create_conflict_result( + resource_type="tool", + resource_name="snap", + conflict_type="tool_not_available", + suggestion="Snap package manager is not installed. Installing snap first.", + is_active=False, + alternative_actions=[ + {"action": "install_first", "description": "Install snapd first", "commands": ["sudo apt update", "sudo apt install -y snapd"]}, + {"action": "use_apt", "description": "Use apt instead of snap", "commands": []}, + ] + ) + + pkg_match = re.search(r'snap\s+install\s+(\S+)', cmd) + if pkg_match: + package = pkg_match.group(1) + success, version_out, _ = self._execute_command(f"snap list {package} 2>/dev/null | grep {package}", needs_sudo=False) + if success and version_out: + return self._create_conflict_result( + resource_type="snap_package", + resource_name=package, + conflict_type="snap_package_installed", + suggestion=f"Snap package '{package}' is already installed", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": "Keep current version", "commands": []}, + {"action": "refresh", "description": "Refresh to latest", "commands": [f"sudo snap refresh {package}"]}, + ] + ) + + # flatpak install - check if flatpak is available and package is installed + if "flatpak install" in cmd: + # First check if flatpak is available + flatpak_available = self._check_tool_available("flatpak") + if not flatpak_available: + return self._create_conflict_result( + resource_type="tool", + resource_name="flatpak", + conflict_type="tool_not_available", + suggestion="Flatpak is not installed. Installing flatpak first.", + is_active=False, + alternative_actions=[ + {"action": "install_first", "description": "Install flatpak first", "commands": ["sudo apt update", "sudo apt install -y flatpak"]}, + {"action": "use_apt", "description": "Use apt instead of flatpak", "commands": []}, + ] + ) + + pkg_match = re.search(r'flatpak\s+install\s+(?:-y\s+)?(\S+)', cmd) + if pkg_match: + package = pkg_match.group(1) + success, version_out, _ = self._execute_command(f"flatpak list | grep -i {package}", needs_sudo=False) + if success and version_out: + return self._create_conflict_result( + resource_type="flatpak_package", + resource_name=package, + conflict_type="flatpak_package_installed", + suggestion=f"Flatpak application '{package}' is already installed", + is_active=True, + alternative_actions=[ + {"action": "use_existing", "description": "Keep current version", "commands": []}, + {"action": "upgrade", "description": "Update to latest", "commands": [f"flatpak update -y {package}"]}, + ] + ) + return result + def _check_tool_available(self, tool: str) -> bool: + """Check if a command-line tool is available.""" + success, output, _ = self._execute_command(f"which {tool} 2>/dev/null", needs_sudo=False) + return success and bool(output.strip()) + def _check_port_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for port binding conflicts.""" result = {"has_conflict": False} From 5e846d3467078e26c0c95c9a2d72dd4504dfa9e5 Mon Sep 17 00:00:00 2001 From: Dhruv-89 Date: Sat, 17 Jan 2026 14:20:01 +0530 Subject: [PATCH 5/6] Added new diagnosis, ui and autofix --- README.md | 78 +- cortex/ask.py | 590 +- cortex/cli.py | 544 +- cortex/do_runner/diagnosis.py | 114 +- cortex/do_runner/handler.py | 1751 +- cortex/do_runner/models.py | 1 + cortex/do_runner/terminal.py | 2259 +- cortex/watch_service.py | 716 + data/apt_training_data.json | 168331 +++++++++++++++++++++++++++++++ docs/ASK_DO_ARCHITECTURE.md | 741 + scripts/setup_ask_do.py | 637 + scripts/setup_ask_do.sh | 435 + 12 files changed, 175744 insertions(+), 453 deletions(-) create mode 100644 cortex/watch_service.py create mode 100644 data/apt_training_data.json create mode 100644 docs/ASK_DO_ARCHITECTURE.md create mode 100755 scripts/setup_ask_do.py create mode 100755 scripts/setup_ask_do.sh diff --git a/README.md b/README.md index 835fcf0f1..bc8e12553 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,61 @@ cortex install nginx --dry-run cortex install nginx --execute ``` +### AI Command Execution Setup (`ask --do`) + +For the full AI-powered command execution experience, run the setup script: + +```bash +# Full setup (Ollama + Watch Service + Shell Hooks) +./scripts/setup_ask_do.sh + +# Or use Python directly +python scripts/setup_ask_do.py + +# Options: +# --no-docker Skip Docker/Ollama setup (use cloud LLM only) +# --model phi Use a smaller model (2GB instead of 4GB) +# --skip-watch Skip watch service installation +# --uninstall Remove all components +``` + +This script will: +1. **Set up Ollama** with a local LLM (Mistral by default) in Docker +2. **Install the Watch Service** for terminal monitoring +3. **Configure Shell Hooks** for command logging +4. **Verify everything works** + +#### Quick Start After Setup + +```bash +# Start an interactive AI session +cortex ask --do + +# Or with a specific task +cortex ask --do "install nginx and configure it for reverse proxy" + +# Check watch service status +cortex watch --status +``` + +#### Manual Setup (Alternative) + +If you prefer manual setup: + +```bash +# Install the Cortex Watch service (runs automatically on login) +cortex watch --install --service + +# Check status +cortex watch --status + +# For Ollama (optional - for local LLM) +docker run -d --name ollama -p 11434:11434 -v ollama:/root/.ollama ollama/ollama +docker exec ollama ollama pull mistral +``` + +This enables Cortex to monitor your terminal activity during manual intervention mode, providing real-time AI feedback and error detection. + --- ## Usage @@ -145,9 +200,13 @@ cortex rollback | `cortex install ` | Install packages matching natural language query | | `cortex install --dry-run` | Preview installation plan (default) | | `cortex install --execute` | Execute the installation | +| `cortex ask ` | Ask questions about your system | +| `cortex ask --do` | Interactive AI command execution mode | | `cortex sandbox ` | Test packages in Docker sandbox | | `cortex history` | View all past installations | | `cortex rollback ` | Undo a specific installation | +| `cortex watch --install --service` | Install terminal monitoring service | +| `cortex watch --status` | Check terminal monitoring status | | `cortex --version` | Show version information | | `cortex --help` | Display help message | @@ -157,9 +216,11 @@ Cortex stores configuration in `~/.cortex/`: ``` ~/.cortex/ -โ”œโ”€โ”€ config.yaml # User preferences -โ”œโ”€โ”€ history.db # Installation history (SQLite) -โ””โ”€โ”€ audit.log # Detailed audit trail +โ”œโ”€โ”€ config.yaml # User preferences +โ”œโ”€โ”€ history.db # Installation history (SQLite) +โ”œโ”€โ”€ audit.log # Detailed audit trail +โ”œโ”€โ”€ terminal_watch.log # Terminal monitoring log +โ””โ”€โ”€ watch_service.log # Watch service logs ``` --- @@ -216,16 +277,27 @@ Cortex stores configuration in `~/.cortex/`: cortex/ โ”œโ”€โ”€ cortex/ # Main package โ”‚ โ”œโ”€โ”€ cli.py # Command-line interface +โ”‚ โ”œโ”€โ”€ ask.py # AI Q&A and command execution โ”‚ โ”œโ”€โ”€ coordinator.py # Installation orchestration โ”‚ โ”œโ”€โ”€ llm_router.py # Multi-LLM routing โ”‚ โ”œโ”€โ”€ packages.py # Package manager wrapper โ”‚ โ”œโ”€โ”€ hardware_detection.py โ”‚ โ”œโ”€โ”€ installation_history.py +โ”‚ โ”œโ”€โ”€ watch_service.py # Terminal monitoring service +โ”‚ โ”œโ”€โ”€ do_runner/ # AI command execution +โ”‚ โ”‚ โ”œโ”€โ”€ handler.py # Main execution handler +โ”‚ โ”‚ โ”œโ”€โ”€ terminal.py # Terminal monitoring +โ”‚ โ”‚ โ”œโ”€โ”€ diagnosis.py # Error diagnosis & auto-fix +โ”‚ โ”‚ โ””โ”€โ”€ verification.py # Conflict detection โ”‚ โ””โ”€โ”€ utils/ # Utility modules โ”œโ”€โ”€ tests/ # Test suite โ”œโ”€โ”€ docs/ # Documentation +โ”‚ โ””โ”€โ”€ ASK_DO_ARCHITECTURE.md # ask --do deep dive โ”œโ”€โ”€ examples/ # Example scripts โ””โ”€โ”€ scripts/ # Utility scripts + โ”œโ”€โ”€ setup_ask_do.py # Full ask --do setup + โ”œโ”€โ”€ setup_ask_do.sh # Bash setup alternative + โ””โ”€โ”€ setup_ollama.py # Ollama-only setup ``` --- diff --git a/cortex/ask.py b/cortex/ask.py index c20458425..2f9954c72 100644 --- a/cortex/ask.py +++ b/cortex/ask.py @@ -228,19 +228,30 @@ class CommandValidator: "tee", # Writes to files } - # Patterns that indicate dangerous operations + # Patterns that indicate dangerous operations (NOT including safe chaining) DANGEROUS_PATTERNS: list[str] = [ r">\s*[^|]", # Output redirection (except pipes) r">>\s*", # Append redirection r"<\s*", # Input redirection r"\$\(", # Command substitution r"`[^`]+`", # Backtick command substitution - r";\s*", # Command chaining - r"&&\s*", # AND chaining - r"\|\|\s*", # OR chaining r"\|.*(?:sh|bash|zsh|exec|eval|xargs)", # Piping to shell ] + # Chaining patterns that we'll split instead of block + CHAINING_PATTERNS: list[str] = [ + r";\s*", # Command chaining + r"\s*&&\s*", # AND chaining + r"\s*\|\|\s*", # OR chaining + ] + + @classmethod + def split_chained_commands(cls, command: str) -> list[str]: + """Split a chained command into individual commands.""" + # Split by ;, &&, or || + parts = re.split(r'\s*(?:;|&&|\|\|)\s*', command) + return [p.strip() for p in parts if p.strip()] + @classmethod def validate_command(cls, command: str) -> tuple[bool, str]: """Validate a command for safety. @@ -256,10 +267,30 @@ def validate_command(cls, command: str) -> tuple[bool, str]: command = command.strip() - # Check for dangerous patterns + # Check for dangerous patterns (NOT chaining - we handle that separately) for pattern in cls.DANGEROUS_PATTERNS: if re.search(pattern, command): - return False, f"Command contains blocked pattern (redirections, chaining, or subshells)" + return False, f"Command contains blocked pattern (redirections or subshells)" + + # Check if command has chaining - if so, validate each part + has_chaining = any(re.search(p, command) for p in cls.CHAINING_PATTERNS) + if has_chaining: + subcommands = cls.split_chained_commands(command) + for subcmd in subcommands: + is_valid, error = cls._validate_single_command(subcmd) + if not is_valid: + return False, f"In chained command '{subcmd}': {error}" + return True, "" + + return cls._validate_single_command(command) + + @classmethod + def _validate_single_command(cls, command: str) -> tuple[bool, str]: + """Validate a single (non-chained) command.""" + if not command or not command.strip(): + return False, "Empty command" + + command = command.strip() # Parse the command try: @@ -398,6 +429,9 @@ def validate_command(cls, command: str) -> tuple[bool, str]: def execute_command(cls, command: str, timeout: int = 10) -> tuple[bool, str, str]: """Execute a validated command and return the result. + For chained commands (&&, ||, ;), executes each command separately + and combines the output. + Args: command: The shell command to execute timeout: Maximum execution time in seconds @@ -410,6 +444,53 @@ def execute_command(cls, command: str, timeout: int = 10) -> tuple[bool, str, st if not is_valid: return False, "", f"Command blocked: {error}" + # Check if this is a chained command + has_chaining = any(re.search(p, command) for p in cls.CHAINING_PATTERNS) + + if has_chaining: + # Split and execute each command separately + subcommands = cls.split_chained_commands(command) + all_stdout = [] + all_stderr = [] + overall_success = True + + for subcmd in subcommands: + try: + result = subprocess.run( + subcmd, + shell=True, + capture_output=True, + text=True, + timeout=timeout, + ) + + if result.stdout.strip(): + all_stdout.append(f"# {subcmd}\n{result.stdout.strip()}") + if result.stderr.strip(): + all_stderr.append(f"# {subcmd}\n{result.stderr.strip()}") + + if result.returncode != 0: + overall_success = False + # For && chaining, stop on first failure + if "&&" in command: + break + + except subprocess.TimeoutExpired: + all_stderr.append(f"# {subcmd}\nCommand timed out after {timeout} seconds") + overall_success = False + break + except Exception as e: + all_stderr.append(f"# {subcmd}\nExecution failed: {e}") + overall_success = False + break + + return ( + overall_success, + "\n\n".join(all_stdout), + "\n\n".join(all_stderr), + ) + + # Single command try: result = subprocess.run( command, @@ -477,6 +558,13 @@ def __init__( else: self._console = None + # For expandable output storage + self._last_output: str | None = None + self._last_output_command: str | None = None + + # Interrupt flag - can be set externally to stop execution + self._interrupted = False + # Initialize DoHandler for --do mode self._do_handler = None if self.do_mode: @@ -500,6 +588,19 @@ def __init__( self._initialize_client() + def interrupt(self): + """Interrupt the current operation. Call this from signal handlers.""" + self._interrupted = True + # Also interrupt the DoHandler if it exists + if self._do_handler: + self._do_handler._interrupted = True + + def reset_interrupt(self): + """Reset the interrupt flag before starting a new operation.""" + self._interrupted = False + if self._do_handler: + self._do_handler._interrupted = False + def _default_model(self) -> str: if self.provider == "openai": return "gpt-4o" # Use gpt-4o for 128K context @@ -516,6 +617,139 @@ def _debug_print(self, title: str, content: str, style: str = "dim") -> None: if self.debug and self._console: from rich.panel import Panel self._console.print(Panel(content, title=f"[bold]{title}[/bold]", style=style)) + + def _print_query_summary(self, question: str, commands_run: list[str], answer: str) -> None: + """Print a condensed summary for question queries with improved visual design.""" + if not self._console: + return + + from rich.panel import Panel + from rich.table import Table + from rich.text import Text + from rich import box + + # Clean the answer - remove any JSON/shell script that might have leaked + clean_answer = answer + import re + + # Check if answer looks like JSON or contains shell script fragments + if clean_answer.startswith('{') or '{"' in clean_answer[:100]: + # Try to extract just the answer field if present + answer_match = re.search(r'"answer"\s*:\s*"([^"]*)"', clean_answer, re.DOTALL) + if answer_match: + clean_answer = answer_match.group(1) + # Unescape common JSON escapes + clean_answer = clean_answer.replace('\\n', '\n').replace('\\"', '"') + + # Remove shell script-like content that shouldn't be in the answer + if re.search(r'^(if \[|while |for |echo \$|sed |awk |grep -)', clean_answer, re.MULTILINE): + # This looks like shell script leaked - try to extract readable parts + readable_lines = [] + for line in clean_answer.split('\n'): + # Keep lines that look like actual content, not script + if not re.match(r'^(if \[|fi$|done$|else$|then$|do$|while |for |echo \$|sed |awk )', line.strip()): + if line.strip() and not line.strip().startswith('#!'): + readable_lines.append(line) + if readable_lines: + clean_answer = '\n'.join(readable_lines[:20]) # Limit to 20 lines + + self._console.print() + + # Query section + q_display = question[:80] + "..." if len(question) > 80 else question + self._console.print(Panel( + f"[bold]{q_display}[/bold]", + title="[bold white on blue] ๐Ÿ” Query [/bold white on blue]", + title_align="left", + border_style="blue", + padding=(0, 1), + expand=False, + )) + + # Info gathered section + if commands_run: + info_table = Table( + show_header=False, + box=box.SIMPLE, + padding=(0, 1), + expand=True, + ) + info_table.add_column("", style="dim") + + for cmd in commands_run[:4]: + cmd_display = cmd[:60] + "..." if len(cmd) > 60 else cmd + info_table.add_row(f"$ {cmd_display}") + if len(commands_run) > 4: + info_table.add_row(f"[dim]... and {len(commands_run) - 4} more commands[/dim]") + + self._console.print(Panel( + info_table, + title=f"[bold] ๐Ÿ“Š Info Gathered ({len(commands_run)} commands) [/bold]", + title_align="left", + border_style="dim", + padding=(0, 0), + )) + + # Answer section - make it prominent + if clean_answer.strip(): + # Truncate very long answers + if len(clean_answer) > 800: + display_answer = clean_answer[:800] + "\n\n[dim]... (answer truncated)[/dim]" + else: + display_answer = clean_answer + + self._console.print(Panel( + display_answer, + title="[bold white on green] ๐Ÿ’ก Answer [/bold white on green]", + title_align="left", + border_style="green", + padding=(1, 2), + )) + + def _show_expandable_output(self, console, output: str, command: str) -> None: + """Show output with expand/collapse capability.""" + from rich.panel import Panel + from rich.text import Text + + lines = output.split('\n') + total_lines = len(lines) + + # Always show first 3 lines as preview + preview_count = 3 + + if total_lines <= preview_count + 2: + # Small output - just show it all + console.print(Panel( + output, + title=f"[dim]Output[/dim]", + title_align="left", + border_style="dim", + padding=(0, 1), + )) + return + + # Show collapsed preview with expand option + preview = '\n'.join(lines[:preview_count]) + remaining = total_lines - preview_count + + # Build the panel content + content = Text() + content.append(preview) + content.append(f"\n\n[dim]โ”€โ”€โ”€ {remaining} more lines hidden โ”€โ”€โ”€[/dim]", style="dim") + + console.print(Panel( + content, + title=f"[dim]Output ({total_lines} lines)[/dim]", + subtitle="[dim italic]Type 'e' to expand[/dim italic]", + subtitle_align="right", + title_align="left", + border_style="dim", + padding=(0, 1), + )) + + # Store for potential expansion + self._last_output = output + self._last_output_command = command def _initialize_client(self): if self.provider == "openai": @@ -528,7 +762,11 @@ def _initialize_client(self): elif self.provider == "claude": try: from anthropic import Anthropic - + import logging + # Suppress noisy retry logging from anthropic client + logging.getLogger("anthropic").setLevel(logging.WARNING) + logging.getLogger("anthropic._base_client").setLevel(logging.WARNING) + self.client = Anthropic(api_key=self.api_key) except ImportError: raise ImportError("Anthropic package not installed. Run: pip install anthropic") @@ -548,6 +786,24 @@ def _get_system_prompt(self) -> str: def _get_read_only_system_prompt(self) -> str: return """You are a Linux system assistant that answers questions by executing read-only shell commands. +SCOPE RESTRICTION - VERY IMPORTANT: +You are ONLY a Linux/system administration assistant. You can ONLY help with: +- Linux system administration, configuration, and troubleshooting +- Package management (apt, snap, flatpak, pip, npm, etc.) +- Service management (systemctl, docker, etc.) +- File system operations and permissions +- Networking and security +- Development environment setup +- Server configuration + +If the user asks about anything unrelated to Linux/technical topics (social chat, personal advice, +creative writing, general knowledge questions not related to their system, etc.), you MUST respond with: +{ + "response_type": "answer", + "answer": "I'm Cortex, a Linux system assistant. I can only help with Linux system administration, package management, and technical tasks on your machine. I can't help with non-technical topics. Is there something I can help you with on your system?", + "reasoning": "User query is outside my scope as a Linux system assistant" +} + Your task is to help answer the user's question about their system by: 1. Generating shell commands to gather the needed information 2. Analyzing the command output @@ -596,6 +852,24 @@ def _get_read_only_system_prompt(self) -> str: def _get_do_mode_system_prompt(self) -> str: return """You are a Linux system assistant that can READ, WRITE, and EXECUTE commands to solve problems. +SCOPE RESTRICTION - VERY IMPORTANT: +You are ONLY a Linux/system administration assistant. You can ONLY help with: +- Linux system administration, configuration, and troubleshooting +- Package management (apt, snap, flatpak, pip, npm, etc.) +- Service management (systemctl, docker, etc.) +- File system operations and permissions +- Networking and security +- Development environment setup +- Server configuration + +If the user asks about anything unrelated to Linux/technical topics (social chat, personal advice, +creative writing, general knowledge questions not related to their system, etc.), you MUST respond with: +{ + "response_type": "answer", + "answer": "I'm Cortex, a Linux system assistant. I can only help with Linux system administration, package management, and technical tasks on your machine. I can't help with non-technical topics. What would you like me to do on your system?", + "reasoning": "User query is outside my scope as a Linux system assistant" +} + You are in DO MODE - you have the ability to make changes to the system to solve the user's problem. Your task is to: @@ -806,6 +1080,73 @@ def _build_iteration_prompt( prompt += "\nRespond with a JSON object as specified in the system prompt." return prompt + def _clean_llm_response(self, text: str) -> str: + """Clean raw LLM response to prevent JSON from being displayed to user. + + Extracts meaningful content like reasoning or answer from raw JSON, + or returns a generic error message if the response is pure JSON. + + NOTE: This is only called as a fallback when JSON parsing fails. + We should NOT return placeholder messages for valid response types. + """ + import re + + # If it looks like pure JSON, don't show it to user + text = text.strip() + + # Check for partial JSON (starts with ], }, or other JSON fragments) + if text.startswith((']', '},', ',"', '"response_type"', '"do_commands"', '"command"', '"reasoning"')): + return "" # Return empty so loop continues + + if text.startswith('{') and text.endswith('}'): + # Try to extract useful fields + try: + data = json.loads(text) + # Try to get meaningful content in order of preference + if data.get("answer"): + return data["answer"] + if data.get("reasoning") and data.get("response_type") == "answer": + # Only use reasoning if it's an answer type + reasoning = data["reasoning"] + if not any(p in reasoning for p in ['"command":', '"do_commands":', '"requires_sudo":']): + return f"Analysis: {reasoning}" + # For do_commands or command types, return empty to let parsing retry + if data.get("do_commands") or data.get("command"): + return "" # Return empty so the proper parsing can happen + # Pure JSON with no useful fields + return "" + except json.JSONDecodeError: + pass + + # Check for JSON-like patterns in the text + json_patterns = [ + r'"response_type"\s*:\s*"', + r'"do_commands"\s*:\s*\[', + r'"command"\s*:\s*"', + r'"requires_sudo"\s*:\s*', + r'\[\s*\{', # Start of array of objects + r'\}\s*,\s*\{', # Object separator + r'\]\s*,\s*"', # End of array followed by key + ] + + # If text contains raw JSON patterns, try to extract non-JSON parts + has_json_patterns = any(re.search(p, text) for p in json_patterns) + if has_json_patterns: + # Try to find text before or after JSON + parts = re.split(r'\{[\s\S]*"response_type"[\s\S]*\}', text) + clean_parts = [p.strip() for p in parts if p.strip() and len(p.strip()) > 20] + if clean_parts: + # Filter out parts that still look like JSON + clean_parts = [p for p in clean_parts if not any(j in p for j in ['":', '",', '{}', '[]'])] + if clean_parts: + return " ".join(clean_parts) + + # No good text found, return generic message + return "I'm processing your request. Please wait for the proper output." + + # Text doesn't look like JSON, return as-is + return text + def _parse_llm_response(self, response_text: str) -> SystemCommand: """Parse the LLM response into a SystemCommand object.""" # Try to extract JSON from the response @@ -847,17 +1188,19 @@ def _parse_llm_response(self, response_text: str) -> SystemCommand: data = json.loads(json_str) except json.JSONDecodeError: - # If still fails, treat as direct answer + # If still fails, don't show raw JSON to user + clean_answer = self._clean_llm_response(original_text) return SystemCommand( response_type=LLMResponseType.ANSWER, - answer=original_text, + answer=clean_answer, reasoning="Could not parse structured response, treating as direct answer" ) else: - # No JSON found, treat as direct answer + # No JSON found, clean up before treating as direct answer + clean_answer = self._clean_llm_response(original_text) return SystemCommand( response_type=LLMResponseType.ANSWER, - answer=original_text, + answer=clean_answer, reasoning="No JSON structure found, treating as direct answer" ) @@ -871,15 +1214,20 @@ def _parse_llm_response(self, response_text: str) -> SystemCommand: return SystemCommand(**data) except Exception as e: - # If SystemCommand creation fails, treat it as a direct answer + # If SystemCommand creation fails, don't show raw JSON to user + clean_answer = self._clean_llm_response(original_text) return SystemCommand( response_type=LLMResponseType.ANSWER, - answer=original_text, + answer=clean_answer, reasoning=f"Failed to create SystemCommand: {e}" ) def _call_llm(self, system_prompt: str, user_prompt: str) -> str: """Call the LLM and return the response text.""" + # Check for interrupt before making API call + if self._interrupted: + raise InterruptedError("Operation interrupted by user") + if self.provider == "openai": response = self.client.chat.completions.create( model=self.model, @@ -965,6 +1313,15 @@ def _call_llm_for_do(self, user_request: str, context: dict | None = None) -> di system_prompt = """You are a Linux system assistant in an interactive session. The user has just completed some tasks and now wants to do something else. +SCOPE RESTRICTION: +You can ONLY help with Linux/technical topics. If the user asks about anything unrelated +(social chat, personal advice, general knowledge, etc.), respond with: +{ + "response_type": "answer", + "answer": "I'm Cortex, a Linux system assistant. I can only help with Linux system administration and technical tasks. What would you like me to do on your system?", + "reasoning": "User query is outside my scope" +} + Based on their request, decide what to do: 1. If they want to EXECUTE commands (install, configure, start, etc.), respond with do_commands 2. If they want INFORMATION (show, explain, how to), respond with an answer @@ -1088,6 +1445,11 @@ def ask(self, question: str) -> str: loop_console = Console() for iteration in range(max_iterations): + # Check for interrupt at start of each iteration + if self._interrupted: + self._interrupted = False # Reset for next request + return "Operation interrupted by user." + if self.debug: self._debug_print( f"Iteration {iteration + 1}/{max_iterations}", @@ -1097,7 +1459,14 @@ def ask(self, question: str) -> str: # Show progress to user (even without --debug) if self.do_mode and iteration > 0: - loop_console.print(f"[dim]๐Ÿ”„ Analyzing results... (step {iteration + 1}/{max_iterations})[/dim]") + from rich.panel import Panel + loop_console.print() + loop_console.print(Panel( + f"[bold cyan]Analyzing results...[/bold cyan] [dim]Step {iteration + 1}[/dim]", + border_style="dim cyan", + padding=(0, 1), + expand=False, + )) # Build prompt with history user_prompt = self._build_iteration_prompt(question, history) @@ -1105,7 +1474,18 @@ def ask(self, question: str) -> str: # Call LLM try: response_text = self._call_llm(system_prompt, user_prompt) + # Check for interrupt after LLM call + if self._interrupted: + self._interrupted = False + return "Operation interrupted by user." + except InterruptedError: + # Explicitly interrupted + self._interrupted = False + return "Operation interrupted by user." except Exception as e: + if self._interrupted: + self._interrupted = False + return "Operation interrupted by user." raise RuntimeError(f"LLM API call failed: {str(e)}") if self.debug: @@ -1127,14 +1507,36 @@ def ask(self, question: str) -> str: # Show what the LLM decided to do if self.do_mode and not self.debug: - if parsed.response_type == LLMResponseType.COMMAND: - loop_console.print(f"[cyan]๐Ÿ” Gathering info:[/cyan] {parsed.command}") - elif parsed.response_type == LLMResponseType.DO_COMMANDS: - loop_console.print(f"[cyan]๐Ÿ“‹ Ready to execute {len(parsed.do_commands or [])} command(s)[/cyan]") + from rich.panel import Panel + if parsed.response_type == LLMResponseType.COMMAND and parsed.command: + loop_console.print(Panel( + f"[bold]๐Ÿ” Gathering info[/bold]\n[cyan]{parsed.command}[/cyan]", + border_style="blue", + padding=(0, 1), + expand=False, + )) + elif parsed.response_type == LLMResponseType.DO_COMMANDS and parsed.do_commands: + loop_console.print(Panel( + f"[bold green]๐Ÿ“‹ Ready to execute[/bold green] [white]{len(parsed.do_commands)} command(s)[/white]", + border_style="green", + padding=(0, 1), + expand=False, + )) + elif parsed.response_type == LLMResponseType.ANSWER and parsed.answer: + pass # Will be handled below + else: + # LLM returned an unexpected or empty response + loop_console.print(f"[dim yellow]โณ Waiting for LLM to propose commands...[/dim yellow]") # If LLM provides a final answer, return it if parsed.response_type == LLMResponseType.ANSWER: - answer = parsed.answer or "Unable to determine an answer." + answer = parsed.answer or "" + + # Skip empty answers (parsing fallback that should continue loop) + if not answer.strip(): + if self.do_mode: + loop_console.print(f"[dim] (waiting for LLM to propose commands...)[/dim]") + continue if self.debug: self._debug_print("Final Answer", answer, style="green") @@ -1152,21 +1554,25 @@ def ask(self, question: str) -> str: except (OSError, sqlite3.Error): pass + # Print condensed summary for questions + self._print_query_summary(question, tried_commands, answer) + return answer # Handle do_commands in --do mode if parsed.response_type == LLMResponseType.DO_COMMANDS and self.do_mode: + if not parsed.do_commands: + # LLM said do_commands but provided none - ask it to try again + loop_console.print(f"[yellow]โš  LLM response incomplete, retrying...[/yellow]") + history.append({ + "type": "error", + "message": "Response contained no commands. Please provide specific commands to execute.", + }) + continue + result = self._handle_do_commands(parsed, question, history) if result is not None: - # If user declined, continue the loop to provide manual instructions - if result.startswith("USER_DECLINED:"): - # Add to history that user declined - history.append({ - "type": "do_commands_declined", - "commands": [(c.command, c.purpose) for c in (parsed.do_commands or [])], - "message": "User declined automatic execution. Manual instructions were provided.", - }) - continue + # Result is either a completion message or None (continue loop) return result # LLM wants to execute a read-only command @@ -1180,11 +1586,15 @@ def ask(self, question: str) -> str: # Validate and execute the command success, stdout, stderr = CommandValidator.execute_command(command) - # Show execution result to user + # Show execution result to user with expandable output if self.do_mode and not self.debug: if success: output_lines = len(stdout.split('\n')) if stdout else 0 loop_console.print(f"[green] โœ“ Got {output_lines} lines of output[/green]") + + # Show expandable output + if stdout and output_lines > 0: + self._show_expandable_output(loop_console, stdout, command) else: loop_console.print(f"[yellow] โš  Command failed: {stderr[:100]}[/yellow]") @@ -1201,10 +1611,27 @@ def ask(self, question: str) -> str: "output": stdout if success else "", "error": stderr if not success else "", }) + continue # Continue to next iteration with new info + + # If we get here, no valid action was taken + # This means LLM returned something we couldn't use + if self.do_mode and not self.debug: + if parsed.reasoning: + # Show reasoning if available + loop_console.print(f"[dim] LLM: {parsed.reasoning[:100]}{'...' if len(parsed.reasoning) > 100 else ''}[/dim]") # Max iterations reached - commands_list = "\n".join(f" - {cmd}" for cmd in tried_commands) - result = f"Could not find an answer after {max_iterations} attempts.\n\nTried commands:\n{commands_list}" + if self.do_mode: + if tried_commands: + commands_list = "\n".join(f" - {cmd}" for cmd in tried_commands) + result = f"The LLM gathered information but didn't propose any commands to execute.\n\nInfo gathered with:\n{commands_list}\n\nTry being more specific about what you want to do." + else: + result = "The LLM couldn't determine what commands to run. Try rephrasing your request with more specific details." + + loop_console.print(f"[yellow]โš  {result}[/yellow]") + else: + commands_list = "\n".join(f" - {cmd}" for cmd in tried_commands) + result = f"Could not find an answer after {max_iterations} attempts.\n\nTried commands:\n{commands_list}" if self.debug: self._debug_print("Max Iterations Reached", result, style="red") @@ -1268,7 +1695,16 @@ def _handle_do_commands( "output": cmd_log.output, "error": cmd_log.error, "purpose": cmd_log.purpose, - "executed_by": "cortex", + "executed_by": "cortex" if "Manual execution" not in (cmd_log.purpose or "") else "user_manual", + }) + + # Check if any commands were completed manually during execution + manual_completed = self._do_handler.get_completed_manual_commands() + if manual_completed: + history.append({ + "type": "commands_completed_manually", + "commands": manual_completed, + "message": f"User manually executed these commands successfully: {', '.join(manual_completed)}. Do NOT re-propose them.", }) # Check if there were failures that need LLM input @@ -1292,11 +1728,95 @@ def _handle_do_commands( # Continue loop so LLM can suggest next steps return None + # All commands succeeded (automatically or manually) + successes = [c for c in run.commands if c.status.value == "success"] + if successes and not failures: + # Everything worked - return success message + summary = run.summary or f"Successfully executed {len(successes)} command(s)" + return f"โœ… {summary}" + # Return summary for now - LLM will provide final answer in next iteration return None else: - # User declined - provide manual instructions with monitoring + # User declined automatic execution - provide manual instructions with monitoring run = self._do_handler.provide_manual_instructions(analyzed, question) - # Return special marker so we continue the loop - return f"USER_DECLINED: Manual instructions provided. Run ID: {run.run_id}" + # Check if any commands were completed manually + manual_completed = self._do_handler.get_completed_manual_commands() + + # Check success/failure status from the run + from cortex.do_runner.models import CommandStatus + successful_count = sum(1 for c in run.commands if c.status == CommandStatus.SUCCESS) + failed_count = sum(1 for c in run.commands if c.status == CommandStatus.FAILED) + total_expected = len(analyzed) + + if manual_completed and successful_count > 0: + # Commands were completed successfully - go to end + history.append({ + "type": "commands_completed_manually", + "commands": manual_completed, + "message": f"User manually executed {successful_count} commands successfully.", + }) + return f"โœ… Commands completed manually. {successful_count} succeeded." + + # Commands were NOT all successful - ask user what they want to do + console.print() + from rich.panel import Panel + from rich.prompt import Prompt + + status_msg = [] + if successful_count > 0: + status_msg.append(f"[green]โœ“ {successful_count} succeeded[/green]") + if failed_count > 0: + status_msg.append(f"[red]โœ— {failed_count} failed[/red]") + remaining = total_expected - successful_count - failed_count + if remaining > 0: + status_msg.append(f"[yellow]โ—‹ {remaining} not executed[/yellow]") + + console.print(Panel( + " | ".join(status_msg) if status_msg else "[yellow]No commands were executed[/yellow]", + title="[bold] Manual Intervention Result [/bold]", + border_style="yellow", + padding=(0, 1), + )) + + console.print() + console.print("[bold]What would you like to do?[/bold]") + console.print("[dim] โ€ข Type your request to retry or modify the approach[/dim]") + console.print("[dim] โ€ข Say 'done', 'no', or 'skip' to finish without retrying[/dim]") + console.print() + + try: + user_response = Prompt.ask("[cyan]Your response[/cyan]").strip() + except (EOFError, KeyboardInterrupt): + user_response = "done" + + # Check if user wants to end + end_keywords = ["done", "no", "skip", "exit", "quit", "stop", "cancel", "n", "finish", "end"] + if user_response.lower() in end_keywords or not user_response: + # User doesn't want to retry - go to end + history.append({ + "type": "manual_intervention_ended", + "message": f"User ended manual intervention. {successful_count} commands succeeded.", + }) + if successful_count > 0: + return f"โœ… Session ended. {successful_count} command(s) completed successfully." + else: + return f"Session ended. No commands were executed." + + # User wants to retry or modify - add their input to history + history.append({ + "type": "manual_intervention_feedback", + "user_input": user_response, + "previous_commands": [(cmd, purpose, []) for cmd, purpose, _ in analyzed], + "successful_count": successful_count, + "failed_count": failed_count, + "message": f"User requested: {user_response}. Previous attempt had {successful_count} successes and {failed_count} failures.", + }) + + console.print() + console.print(f"[cyan]๐Ÿ”„ Processing your request: {user_response[:50]}{'...' if len(user_response) > 50 else ''}[/cyan]") + + # Continue the loop with user's new input as additional context + # The LLM will see the history and the user's feedback + return None diff --git a/cortex/cli.py b/cortex/cli.py index b2b3f18d0..eac50e186 100644 --- a/cortex/cli.py +++ b/cortex/cli.py @@ -1,6 +1,7 @@ import argparse import logging import os +import subprocess import sys import time from datetime import datetime @@ -545,7 +546,11 @@ def ask(self, question: str | None, debug: bool = False, do_mode: bool = False) return 1 answer = handler.ask(question) - console.print(answer) + # Don't print raw JSON or processing messages + if answer and not (answer.strip().startswith('{') or + "I'm processing your request" in answer or + "I have a plan to execute" in answer): + console.print(answer) return 0 except ImportError as e: # Provide a helpful message if provider SDK is missing @@ -563,6 +568,7 @@ def ask(self, question: str | None, debug: bool = False, do_mode: bool = False) def _run_interactive_do_session(self, handler: AskHandler) -> int: """Run an interactive --do session where user can type queries.""" + import signal from rich.panel import Panel from rich.prompt import Prompt @@ -575,123 +581,267 @@ def _run_interactive_do_session(self, handler: AskHandler) -> int: if handler._do_handler: handler._do_handler.current_session_id = session_id - console.print() - console.print(Panel( - "[bold cyan]๐Ÿš€ Cortex Interactive Session[/bold cyan]\n\n" - f"[dim]Session ID: {session_id[:30]}...[/dim]\n\n" - "Type what you want to do and Cortex will help you.\n" - "Commands will be shown for approval before execution.\n\n" - "[dim]Examples:[/dim]\n" - " โ€ข install docker and run nginx\n" - " โ€ข setup a postgresql database\n" - " โ€ข configure nginx to proxy port 3000\n" - " โ€ข check system resources\n\n" - "[dim]Type 'exit' or 'quit' to end the session.[/dim]", - title="[bold green]Welcome[/bold green]", - border_style="cyan", - )) - console.print() + # Track if we're currently processing a request + processing_request = False + request_interrupted = False - session_history = [] # Track what was done in this session - run_count = 0 + class SessionInterrupt(Exception): + """Exception raised to interrupt the current request and return to prompt.""" + pass - while True: - try: - # Show session context if we have history - if session_history: - console.print(f"[dim]Session: {len(session_history)} task(s) | {run_count} run(s)[/dim]") - - # Get user input - query = Prompt.ask("[bold cyan]What would you like to do?[/bold cyan]") - - if not query.strip(): - continue - - # Check for exit - if query.lower().strip() in ["exit", "quit", "bye", "q"]: - db.end_session(session_id) - console.print() - console.print(f"[cyan]๐Ÿ‘‹ Session ended ({run_count} runs). Run 'cortex do history' to see past runs.[/cyan]") - break - - # Check for help - if query.lower().strip() in ["help", "?"]: - console.print() - console.print("[bold]Available commands:[/bold]") - console.print(" [green]exit[/green], [green]quit[/green] - End the session") - console.print(" [green]history[/green] - Show session history") - console.print(" [green]clear[/green] - Clear session history") - console.print(" Or type any request in natural language!") - console.print() - continue - - # Check for history - if query.lower().strip() == "history": + class SessionExit(Exception): + """Exception raised to exit the session immediately (Ctrl+C).""" + pass + + def handle_ctrl_z(signum, frame): + """Handle Ctrl+Z - stop current operation, return to prompt.""" + nonlocal request_interrupted + + # Set interrupt flag on the handler - this will be checked in the loop + handler.interrupt() + + # If DoHandler has an active process, stop it + if handler._do_handler and handler._do_handler._current_process: + try: + handler._do_handler._current_process.terminate() + handler._do_handler._current_process.wait(timeout=1) + except: + try: + handler._do_handler._current_process.kill() + except: + pass + handler._do_handler._current_process = None + + # If we're processing a request, interrupt it immediately + if processing_request: + request_interrupted = True + console.print() + console.print(f"[yellow]โš  Ctrl+Z - Stopping current operation...[/yellow]") + # Raise exception to break out and return to prompt + raise SessionInterrupt("Interrupted by Ctrl+Z") + else: + # Not processing anything, just inform the user + console.print() + console.print(f"[dim]Ctrl+Z - Type 'exit' to end the session[/dim]") + + def handle_ctrl_c(signum, frame): + """Handle Ctrl+C - exit the session immediately.""" + # Stop any active process first + if handler._do_handler and handler._do_handler._current_process: + try: + handler._do_handler._current_process.terminate() + handler._do_handler._current_process.wait(timeout=1) + except: + try: + handler._do_handler._current_process.kill() + except: + pass + handler._do_handler._current_process = None + + console.print() + console.print("[cyan]๐Ÿ‘‹ Session ended (Ctrl+C).[/cyan]") + raise SessionExit("Exited by Ctrl+C") + + # Set up signal handlers for the entire session + # Ctrl+Z (SIGTSTP) -> stop current operation, return to prompt + # Ctrl+C (SIGINT) -> exit session immediately + original_sigtstp = signal.signal(signal.SIGTSTP, handle_ctrl_z) + original_sigint = signal.signal(signal.SIGINT, handle_ctrl_c) + + try: + console.print() + console.print(Panel( + "[bold cyan]๐Ÿš€ Cortex Interactive Session[/bold cyan]\n\n" + f"[dim]Session ID: {session_id[:30]}...[/dim]\n\n" + "Type what you want to do and Cortex will help you.\n" + "Commands will be shown for approval before execution.\n\n" + "[dim]Examples:[/dim]\n" + " โ€ข install docker and run nginx\n" + " โ€ข setup a postgresql database\n" + " โ€ข configure nginx to proxy port 3000\n" + " โ€ข check system resources\n\n" + "[dim]Type 'exit' or 'quit' to end the session.[/dim]\n" + "[dim]Press Ctrl+Z to stop current operation | Ctrl+C to exit immediately[/dim]", + title="[bold green]Welcome[/bold green]", + border_style="cyan", + )) + console.print() + + session_history = [] # Track what was done in this session + run_count = 0 + + while True: + try: + # Show compact session status (not the full history panel) if session_history: + console.print(f"[dim]Session: {len(session_history)} task(s) | {run_count} run(s) | Type 'history' to see details[/dim]") + + # Get user input + query = Prompt.ask("[bold cyan]What would you like to do?[/bold cyan]") + + if not query.strip(): + continue + + # Check for exit + if query.lower().strip() in ["exit", "quit", "bye", "q"]: + db.end_session(session_id) console.print() - console.print("[bold]Session history:[/bold]") - for i, item in enumerate(session_history, 1): - status = "โœ“" if item.get("success") else "โœ—" - run_info = f" (run: {item.get('run_id', 'N/A')[:15]})" if item.get("run_id") else "" - console.print(f" {i}. [{status}] {item['query'][:50]}...{run_info}") + console.print(f"[cyan]๐Ÿ‘‹ Session ended ({run_count} runs). Run 'cortex do history' to see past runs.[/cyan]") + break + + # Check for help + if query.lower().strip() in ["help", "?"]: console.print() - else: - console.print("[dim]No tasks completed yet.[/dim]") - continue - - # Check for clear - if query.lower().strip() == "clear": - session_history.clear() - console.print("[dim]Session history cleared.[/dim]") - continue - - # Update session with query - db.update_session(session_id, query=query) - - # Process the query - console.print() - try: - answer = handler.ask(query) + console.print("[bold]Available commands:[/bold]") + console.print(" [green]exit[/green], [green]quit[/green] - End the session") + console.print(" [green]history[/green] - Show session history") + console.print(" [green]clear[/green] - Clear session history") + console.print(" Or type any request in natural language!") + console.print() + continue - # Get the run_id if one was created - run_id = None - if handler._do_handler and handler._do_handler.current_run: - run_id = handler._do_handler.current_run.run_id - run_count += 1 - db.update_session(session_id, increment_runs=True) + # Check for history + if query.lower().strip() == "history": + if session_history: + from rich.table import Table + from rich.panel import Panel + + console.print() + table = Table( + show_header=True, + header_style="bold cyan", + title=f"[bold]Session History[/bold]", + title_style="bold", + ) + table.add_column("#", style="dim", width=3) + table.add_column("Query", style="white", max_width=45) + table.add_column("Status", justify="center", width=8) + table.add_column("Commands", justify="center", width=10) + table.add_column("Run ID", style="dim", max_width=20) + + for i, item in enumerate(session_history, 1): + status = "[green]โœ“ Success[/green]" if item.get("success") else "[red]โœ— Failed[/red]" + query_short = item['query'][:42] + "..." if len(item['query']) > 42 else item['query'] + cmd_count = str(item.get('commands_count', 0)) if item.get('success') else "-" + run_id = item.get('run_id', '-')[:18] + "..." if item.get('run_id') and len(item.get('run_id', '')) > 18 else item.get('run_id', '-') + table.add_row(str(i), query_short, status, cmd_count, run_id) + + console.print(table) + console.print() + console.print(f"[dim]Total: {len(session_history)} tasks | {run_count} runs | Session: {session_id[:20]}...[/dim]") + console.print() + else: + console.print("[dim]No tasks completed yet.[/dim]") + continue - # Track in session history - session_history.append({ - "query": query, - "success": True, - "answer": answer[:100] if answer else "", - "run_id": run_id, - }) + # Check for clear + if query.lower().strip() == "clear": + session_history.clear() + console.print("[dim]Session history cleared.[/dim]") + continue - # Print response if it's informational - if answer and not answer.startswith("USER_DECLINED"): - console.print(answer) + # Update session with query + db.update_session(session_id, query=query) - except Exception as e: - console.print(f"[red]Error: {e}[/red]") - session_history.append({ - "query": query, - "success": False, - "error": str(e), - }) - - console.print() - - except KeyboardInterrupt: - db.end_session(session_id) - console.print() - console.print("[cyan]๐Ÿ‘‹ Session ended.[/cyan]") - break - except EOFError: - db.end_session(session_id) - console.print() - console.print("[cyan]๐Ÿ‘‹ Session ended.[/cyan]") - break + # Process the query + console.print() + processing_request = True + request_interrupted = False + handler.reset_interrupt() # Reset interrupt flag before new request + + try: + answer = handler.ask(query) + + # Check if request was interrupted + if request_interrupted: + console.print("[yellow]โš  Request was interrupted[/yellow]") + session_history.append({ + "query": query, + "success": False, + "error": "Interrupted by user", + }) + continue + + # Get the run_id and command count if one was created + run_id = None + commands_count = 0 + if handler._do_handler and handler._do_handler.current_run: + run_id = handler._do_handler.current_run.run_id + # Count commands from the run + if handler._do_handler.current_run.commands: + commands_count = len(handler._do_handler.current_run.commands) + run_count += 1 + db.update_session(session_id, increment_runs=True) + + # Track in session history + session_history.append({ + "query": query, + "success": True, + "answer": answer[:100] if answer else "", + "run_id": run_id, + "commands_count": commands_count, + }) + + # Print response if it's informational (filter out JSON) + if answer and not answer.startswith("USER_DECLINED"): + # Don't print raw JSON or processing messages + if not (answer.strip().startswith('{') or + "I'm processing your request" in answer or + "I have a plan to execute" in answer): + console.print(answer) + + except SessionInterrupt: + # Ctrl+Z/Ctrl+C pressed - return to prompt immediately + console.print() + session_history.append({ + "query": query, + "success": False, + "error": "Interrupted by user", + }) + continue # Go back to "What would you like to do?" prompt + except Exception as e: + if request_interrupted: + console.print("[yellow]โš  Request was interrupted[/yellow]") + else: + # Show user-friendly error without internal details + error_msg = str(e) + if isinstance(e, AttributeError): + console.print("[yellow]โš  Something went wrong. Please try again.[/yellow]") + # Log the actual error for debugging + import logging + logging.debug(f"Internal error: {e}") + else: + console.print(f"[red]โš  {error_msg}[/red]") + session_history.append({ + "query": query, + "success": False, + "error": "Interrupted" if request_interrupted else str(e), + }) + finally: + processing_request = False + request_interrupted = False + + console.print() + + except SessionInterrupt: + # Ctrl+Z - just return to prompt + console.print() + continue + except SessionExit: + # Ctrl+C - exit session immediately + db.end_session(session_id) + break + except (KeyboardInterrupt, EOFError): + # Fallback for any other interrupts + db.end_session(session_id) + console.print() + console.print("[cyan]๐Ÿ‘‹ Session ended.[/cyan]") + break + + finally: + # Always restore signal handlers when session ends + signal.signal(signal.SIGTSTP, original_sigtstp) + signal.signal(signal.SIGINT, original_sigint) return 0 @@ -1895,6 +2045,163 @@ def info_cmd(self, args: argparse.Namespace) -> int: console.print(" cortex info What Python packages are installed?") return 0 + # --- Watch Command --- + def watch_cmd(self, args: argparse.Namespace) -> int: + """Manage terminal watching for manual intervention mode.""" + from rich.panel import Panel + from cortex.do_runner.terminal import TerminalMonitor + + monitor = TerminalMonitor(use_llm=False) + system_wide = getattr(args, "system", False) + as_service = getattr(args, "service", False) + + if getattr(args, "install", False): + if as_service: + # Install as systemd service + console.print("\n[bold cyan]๐Ÿ”ง Installing Cortex Watch Service[/bold cyan]") + console.print("[dim]This will create a systemd user service that runs automatically[/dim]\n") + + from cortex.watch_service import install_service + success, msg = install_service() + console.print(msg) + return 0 if success else 1 + elif system_wide: + console.print("\n[bold cyan]๐Ÿ”ง Installing System-Wide Terminal Watch Hook[/bold cyan]") + console.print("[dim]This will install to /etc/profile.d/ (requires sudo)[/dim]\n") + success, msg = monitor.setup_system_wide_watch() + if success: + console.print(f"[green]{msg}[/green]") + console.print("\n[bold green]โœ“ All new terminals will automatically have Cortex watching![/bold green]") + else: + console.print(f"[red]โœ— {msg}[/red]") + return 1 + else: + console.print("\n[bold cyan]๐Ÿ”ง Installing Terminal Watch Hook[/bold cyan]\n") + success, msg = monitor.setup_auto_watch(permanent=True) + if success: + console.print(f"[green]โœ“ {msg}[/green]") + console.print("\n[yellow]Note: New terminals will have the hook automatically.[/yellow]") + console.print("[yellow]For existing terminals, run:[/yellow]") + console.print(f"[green]source ~/.cortex/watch_hook.sh[/green]") + console.print("\n[dim]Tip: For automatic activation in ALL terminals, run:[/dim]") + console.print("[cyan]cortex watch --install --system[/cyan]") + else: + console.print(f"[red]โœ— {msg}[/red]") + return 1 + return 0 + + if getattr(args, "uninstall", False): + if as_service: + console.print("\n[bold cyan]๐Ÿ”ง Removing Cortex Watch Service[/bold cyan]\n") + from cortex.watch_service import uninstall_service + success, msg = uninstall_service() + elif system_wide: + console.print("\n[bold cyan]๐Ÿ”ง Removing System-Wide Terminal Watch Hook[/bold cyan]\n") + success, msg = monitor.uninstall_system_wide_watch() + else: + console.print("\n[bold cyan]๐Ÿ”ง Removing Terminal Watch Hook[/bold cyan]\n") + success, msg = monitor.remove_auto_watch() + if success: + console.print(f"[green]{msg}[/green]") + else: + console.print(f"[red]โœ— {msg}[/red]") + return 1 + return 0 + + if getattr(args, "test", False): + console.print("\n[bold cyan]๐Ÿงช Testing Terminal Monitoring[/bold cyan]\n") + monitor.test_monitoring() + return 0 + + if getattr(args, "status", False): + console.print("\n[bold cyan]๐Ÿ“Š Terminal Watch Status[/bold cyan]\n") + + from pathlib import Path + bashrc = Path.home() / ".bashrc" + zshrc = Path.home() / ".zshrc" + source_file = Path.home() / ".cortex" / "watch_hook.sh" + watch_log = Path.home() / ".cortex" / "terminal_watch.log" + system_hook = Path("/etc/profile.d/cortex-watch.sh") + service_file = Path.home() / ".config" / "systemd" / "user" / "cortex-watch.service" + + console.print("[bold]Service Status:[/bold]") + + # Check systemd service + if service_file.exists(): + try: + result = subprocess.run( + ["systemctl", "--user", "is-active", "cortex-watch.service"], + capture_output=True, text=True, timeout=5 + ) + is_active = result.stdout.strip() == "active" + if is_active: + console.print(" [bold green]โœ“ SYSTEMD SERVICE RUNNING[/bold green]") + console.print(" [dim]Automatic terminal monitoring active[/dim]") + else: + console.print(" [yellow]โ—‹ Systemd service installed but not running[/yellow]") + console.print(" [dim]Run: systemctl --user start cortex-watch[/dim]") + except Exception: + console.print(" [yellow]โ—‹ Systemd service installed (status unknown)[/yellow]") + else: + console.print(" [dim]โ—‹ Systemd service not installed[/dim]") + console.print(" [dim]Run: cortex watch --install --service (recommended)[/dim]") + + console.print() + console.print("[bold]Hook Status:[/bold]") + + # System-wide check + if system_hook.exists(): + console.print(" [green]โœ“ System-wide hook installed[/green]") + else: + console.print(" [dim]โ—‹ System-wide hook not installed[/dim]") + + # User-level checks + if bashrc.exists() and "Cortex Terminal Watch Hook" in bashrc.read_text(): + console.print(" [green]โœ“ Hook installed in .bashrc[/green]") + else: + console.print(" [dim]โ—‹ Not installed in .bashrc[/dim]") + + if zshrc.exists() and "Cortex Terminal Watch Hook" in zshrc.read_text(): + console.print(" [green]โœ“ Hook installed in .zshrc[/green]") + else: + console.print(" [dim]โ—‹ Not installed in .zshrc[/dim]") + + console.print("\n[bold]Watch Log:[/bold]") + if watch_log.exists(): + size = watch_log.stat().st_size + lines = len(watch_log.read_text().strip().split('\n')) if size > 0 else 0 + console.print(f" [green]โœ“ Log file exists: {watch_log}[/green]") + console.print(f" [dim] Size: {size} bytes, {lines} commands logged[/dim]") + else: + console.print(f" [dim]โ—‹ No log file yet (created when commands are run)[/dim]") + + return 0 + + # Default: show help + console.print() + console.print(Panel( + "[bold cyan]Terminal Watch[/bold cyan] - Real-time monitoring for manual intervention mode\n\n" + "When Cortex enters manual intervention mode, it watches your other terminals\n" + "to provide real-time feedback and AI-powered suggestions.\n\n" + "[bold]Commands:[/bold]\n" + " [cyan]cortex watch --install --service[/cyan] Install as systemd service (RECOMMENDED)\n" + " [cyan]cortex watch --install --system[/cyan] Install system-wide hook (requires sudo)\n" + " [cyan]cortex watch --install[/cyan] Install hook to .bashrc/.zshrc\n" + " [cyan]cortex watch --uninstall --service[/cyan] Remove systemd service\n" + " [cyan]cortex watch --status[/cyan] Show installation status\n" + " [cyan]cortex watch --test[/cyan] Test monitoring setup\n\n" + "[bold green]Recommended Setup:[/bold green]\n" + " Run [green]cortex watch --install --service[/green]\n\n" + " This creates a background service that:\n" + " โ€ข Starts automatically on login\n" + " โ€ข Restarts if it crashes\n" + " โ€ข Monitors ALL terminal activity\n" + " โ€ข No manual setup in each terminal!", + title="[green]๐Ÿ” Cortex Watch[/green]", + border_style="cyan", + )) + return 0 + # --- Import Dependencies Command --- def import_deps(self, args: argparse.Namespace) -> int: """Import and install dependencies from package manager files. @@ -2526,6 +2833,16 @@ def main(): do_protected_parser.add_argument("--list", action="store_true", help="List all protected paths") # -------------------------- + # --- Watch Command (terminal monitoring setup) --- + watch_parser = subparsers.add_parser("watch", help="Manage terminal watching for manual intervention mode") + watch_parser.add_argument("--install", action="store_true", help="Install terminal watch hook to .bashrc/.zshrc") + watch_parser.add_argument("--uninstall", action="store_true", help="Remove terminal watch hook from shell configs") + watch_parser.add_argument("--system", action="store_true", help="Install/uninstall system-wide (requires sudo)") + watch_parser.add_argument("--service", action="store_true", help="Install/uninstall as systemd service (recommended)") + watch_parser.add_argument("--status", action="store_true", help="Show terminal watch status") + watch_parser.add_argument("--test", action="store_true", help="Test terminal monitoring") + # -------------------------- + args = parser.parse_args() if not args.command: @@ -2578,6 +2895,8 @@ def main(): return cli.do_cmd(args) elif args.command == "info": return cli.info_cmd(args) + elif args.command == "watch": + return cli.watch_cmd(args) else: parser.print_help() return 1 @@ -2587,6 +2906,13 @@ def main(): except (ValueError, ImportError, OSError) as e: print(f"โŒ Error: {e}", file=sys.stderr) return 1 + except AttributeError as e: + # Internal errors - show friendly message + print("โŒ Something went wrong. Please try again.", file=sys.stderr) + if "--verbose" in sys.argv or "-v" in sys.argv: + import traceback + traceback.print_exc() + return 1 except Exception as e: print(f"โŒ Unexpected error: {e}", file=sys.stderr) # Print traceback if verbose mode was requested diff --git a/cortex/do_runner/diagnosis.py b/cortex/do_runner/diagnosis.py index 416b49ba1..0a824611b 100644 --- a/cortex/do_runner/diagnosis.py +++ b/cortex/do_runner/diagnosis.py @@ -767,6 +767,13 @@ class LoginRequirement: "awk": "gawk", "sed": "sed", "grep": "grep", "setfacl": "acl", "getfacl": "acl", "lsof": "lsof", "strace": "strace", + # System monitoring tools + "sensors": "lm-sensors", "sensors-detect": "lm-sensors", + "htop": "htop", "iotop": "iotop", "iftop": "iftop", + "nmap": "nmap", "netstat": "net-tools", "ifconfig": "net-tools", + "smartctl": "smartmontools", "hdparm": "hdparm", + # Optional tools (may not be in all repos) + "snap": "snapd", "flatpak": "flatpak", } UBUNTU_SERVICE_MAP = { @@ -1106,10 +1113,35 @@ def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None elif strategy == "check_service_logs": service = extracted.get("service") if service: - diagnosis["fix_commands"] = [ - f"sudo journalctl -u {service} -n 50 --no-pager", - f"sudo systemctl status {service}" - ] + # For web servers, check for port conflicts and common issues + if service in ("apache2", "httpd", "nginx"): + diagnosis["fix_commands"] = [ + # First check what's using port 80 + "sudo lsof -i :80 -t | head -1", + # Stop conflicting services + "sudo systemctl stop nginx 2>/dev/null || true", + "sudo systemctl stop apache2 2>/dev/null || true", + # Test config + f"sudo {'apache2ctl' if service == 'apache2' else 'nginx'} -t 2>&1 || true", + # Now try starting + f"sudo systemctl start {service}", + ] + elif service in ("mysql", "mariadb", "postgresql", "postgres"): + diagnosis["fix_commands"] = [ + # Check disk space + "df -h /var/lib 2>/dev/null | tail -1", + # Check permissions + f"sudo chown -R {'mysql:mysql' if 'mysql' in service or 'mariadb' in service else 'postgres:postgres'} /var/lib/{'mysql' if 'mysql' in service or 'mariadb' in service else 'postgresql'} 2>/dev/null || true", + # Restart + f"sudo systemctl start {service}", + ] + else: + # Generic service - check logs and try restart + diagnosis["fix_commands"] = [ + f"sudo journalctl -u {service} -n 20 --no-pager 2>&1 | tail -10", + f"sudo systemctl reset-failed {service} 2>/dev/null || true", + f"sudo systemctl start {service}", + ] elif strategy == "unmask_service": service = extracted.get("service") @@ -2091,6 +2123,8 @@ def _get_llm_fix(self, cmd: str, stderr: str, diagnosis: dict) -> dict | None: def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 120) -> tuple[bool, str, str]: """Execute a single command.""" + import sys + try: if needs_sudo and not cmd.strip().startswith("sudo"): cmd = f"sudo {cmd}" @@ -2099,6 +2133,14 @@ def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 12 if cmd.strip().startswith("#"): return True, "", "" + # For sudo commands, we need to handle the password prompt specially + is_sudo = cmd.strip().startswith("sudo") + + if is_sudo: + # Flush output before sudo to ensure clean state + sys.stdout.flush() + sys.stderr.flush() + result = subprocess.run( cmd, shell=True, @@ -2106,6 +2148,13 @@ def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 12 text=True, timeout=timeout, ) + + if is_sudo: + # After sudo, ensure console is in clean state + # Print empty line to reset cursor position after potential password prompt + sys.stdout.write('\n') + sys.stdout.flush() + return result.returncode == 0, result.stdout.strip(), result.stderr.strip() except subprocess.TimeoutExpired: return False, "", f"Command timed out after {timeout} seconds" @@ -2181,10 +2230,34 @@ def auto_fix_error( skipped_attempts = 0 severity = current_diagnosis.get("severity", "error") + + # Visual grouping for auto-fix attempts + from rich.panel import Panel + from rich.text import Text + + fix_title = Text() + fix_title.append("๐Ÿ”ง AUTO-FIX ", style="bold yellow") + fix_title.append(f"Attempt {attempt}/{max_attempts}", style="dim") + + severity_color = "red" if severity == "critical" else "yellow" + fix_content = Text() if severity == "critical": - console.print(f"[red]โš ๏ธ Critical error: {error_type}[/red]") + fix_content.append("โš ๏ธ CRITICAL: ", style="bold red") + fix_content.append(f"[{category}] ", style="dim") + fix_content.append(error_type, style=f"bold {severity_color}") + + console.print() + console.print(Panel( + fix_content, + title=fix_title, + title_align="left", + border_style=severity_color, + padding=(0, 1), + )) - console.print(f"[cyan]๐Ÿ”ง Auto-fix attempt {attempt}/{max_attempts}: [{category}] {error_type}[/cyan]") + # Ensure output is flushed before executing fixes + import sys + sys.stdout.flush() fixed, message, commands = self.apply_single_fix(cmd, current_stderr, current_diagnosis) @@ -2209,7 +2282,12 @@ def auto_fix_error( all_commands_executed.append(sudo_cmd) if success: - console.print(f"[green] โœ“ Fixed with sudo[/green]") + console.print(Panel( + "[bold green]โœ“ Fixed with sudo[/bold green]", + border_style="green", + padding=(0, 1), + expand=False, + )) return True, f"Fixed with sudo after {attempt} attempt(s)", all_commands_executed else: current_stderr = new_stderr @@ -2217,28 +2295,38 @@ def auto_fix_error( continue # Verify the original command now works - console.print(f"[cyan] โœ“ Fix applied: {message}[/cyan]") - console.print(f"[cyan] Verifying original command...[/cyan]") + console.print(Panel( + f"[bold cyan]โœ“ Fix applied:[/bold cyan] {message}\n[dim]Verifying original command...[/dim]", + border_style="cyan", + padding=(0, 1), + expand=False, + )) verify_cmd = f"sudo {cmd}" if not cmd.startswith("sudo") else cmd success, stdout, new_stderr = self._execute_command(verify_cmd) all_commands_executed.append(verify_cmd) if success: - console.print(f"[green] โœ“ Verified! Command now succeeds[/green]") + console.print(Panel( + "[bold green]โœ“ Verified![/bold green] Command now succeeds", + border_style="green", + padding=(0, 1), + expand=False, + )) return True, f"Fixed after {attempt} attempt(s): {message}", all_commands_executed else: new_diagnosis = self.diagnoser.diagnose_error(cmd, new_stderr) if new_diagnosis["error_type"] == error_type: - console.print(f"[yellow] Same error persists, trying different approach...[/yellow]") + console.print(f" [dim yellow]Same error persists, trying different approach...[/dim yellow]") else: - console.print(f"[yellow] New error: {new_diagnosis['error_type']}[/yellow]") + console.print(f" [yellow]New error: {new_diagnosis['error_type']}[/yellow]") current_stderr = new_stderr current_diagnosis = new_diagnosis else: - console.print(f"[yellow] Fix attempt failed: {message}[/yellow]") + console.print(f" [dim red]Fix attempt failed: {message}[/dim red]") + console.print(f" [dim]Trying fallback...[/dim]") # Try with sudo as fallback sudo_fallback = f"sudo {cmd}" diff --git a/cortex/do_runner/handler.py b/cortex/do_runner/handler.py index 2e27cb4ed..fbf954b23 100644 --- a/cortex/do_runner/handler.py +++ b/cortex/do_runner/handler.py @@ -3,8 +3,11 @@ import datetime import os import shutil +import signal import subprocess +import sys import time +from pathlib import Path from typing import Any, Callable from rich.console import Console @@ -49,6 +52,10 @@ def __init__(self, llm_callback: Callable[[str], dict] | None = None): self._terminal_monitor: TerminalMonitor | None = None + # Manual intervention tracking + self._expected_manual_commands: list[str] = [] + self._completed_manual_commands: list[str] = [] + # Session tracking self.current_session_id: str | None = None @@ -60,6 +67,167 @@ def __init__(self, llm_callback: Callable[[str], dict] | None = None): self._verification_runner = VerificationRunner() self._file_analyzer = FileUsefulnessAnalyzer() + # Execution state tracking for interruption handling + self._current_process: subprocess.Popen | None = None + self._current_command: str | None = None + self._executed_commands: list[dict] = [] + self._interrupted = False + self._interrupted_command: str | None = None # Track which command was interrupted for retry + self._remaining_commands: list[tuple[str, str, list[str]]] = [] # Commands that weren't executed + self._original_sigtstp = None + self._original_sigint = None + + def cleanup(self) -> None: + """Clean up any running threads or resources.""" + if self._terminal_monitor: + self._terminal_monitor.stop() + self._terminal_monitor = None + + def _is_json_like(self, text: str) -> bool: + """Check if text looks like raw JSON that shouldn't be displayed.""" + if not text: + return False + text = text.strip() + # Check for obvious JSON patterns + json_indicators = [ + text.startswith(('{', '[', ']', '}')), + '"response_type"' in text, + '"do_commands"' in text, + '"command":' in text, + '"requires_sudo"' in text, + '{"' in text and '":' in text, + text.count('"') > 6 and ':' in text, # Multiple quoted keys + ] + return any(json_indicators) + + def _setup_signal_handlers(self): + """Set up signal handlers for Ctrl+Z and Ctrl+C.""" + self._original_sigtstp = signal.signal(signal.SIGTSTP, self._handle_interrupt) + self._original_sigint = signal.signal(signal.SIGINT, self._handle_interrupt) + + def _restore_signal_handlers(self): + """Restore original signal handlers.""" + if self._original_sigtstp is not None: + signal.signal(signal.SIGTSTP, self._original_sigtstp) + if self._original_sigint is not None: + signal.signal(signal.SIGINT, self._original_sigint) + + def _handle_interrupt(self, signum, frame): + """Handle Ctrl+Z (SIGTSTP) or Ctrl+C (SIGINT) to stop current command only. + + This does NOT exit the session - it only stops the currently executing command. + The session continues so the user can decide what to do next. + """ + self._interrupted = True + # Store the interrupted command for potential retry + self._interrupted_command = self._current_command + signal_name = "Ctrl+Z" if signum == signal.SIGTSTP else "Ctrl+C" + + console.print() + console.print(f"[yellow]โš  {signal_name} detected - Stopping current command...[/yellow]") + + # Kill current subprocess if running + if self._current_process and self._current_process.poll() is None: + try: + self._current_process.terminate() + # Give it a moment to terminate gracefully + try: + self._current_process.wait(timeout=2) + except subprocess.TimeoutExpired: + self._current_process.kill() + console.print(f"[yellow] Stopped: {self._current_command}[/yellow]") + except Exception as e: + console.print(f"[dim] Error stopping process: {e}[/dim]") + + # Note: We do NOT raise KeyboardInterrupt here + # The session continues - only the current command is stopped + + def _track_command_start(self, command: str, process: subprocess.Popen | None = None): + """Track when a command starts executing.""" + self._current_command = command + self._current_process = process + + def _track_command_complete(self, command: str, success: bool, output: str = "", error: str = ""): + """Track when a command completes.""" + self._executed_commands.append({ + "command": command, + "success": success, + "output": output[:500] if output else "", + "error": error[:200] if error else "", + "timestamp": datetime.datetime.now().isoformat(), + }) + self._current_command = None + self._current_process = None + + def _reset_execution_state(self): + """Reset execution tracking state for a new run.""" + self._current_process = None + self._current_command = None + self._executed_commands = [] + self._interrupted = False + self._interrupted_command = None + self._remaining_commands = [] + + def __del__(self): + """Destructor to ensure cleanup.""" + self.cleanup() + + def _show_expandable_output(self, output: str, command: str) -> None: + """Show output with expand/collapse capability.""" + from rich.panel import Panel + from rich.text import Text + from rich.prompt import Prompt + + lines = output.split('\n') + total_lines = len(lines) + + # Always show first 3 lines as preview + preview_count = 3 + + if total_lines <= preview_count + 2: + # Small output - just show it all + console.print(Panel( + output, + title=f"[dim]Output[/dim]", + title_align="left", + border_style="dim", + padding=(0, 1), + )) + return + + # Show collapsed preview + preview = '\n'.join(lines[:preview_count]) + remaining = total_lines - preview_count + + content = Text() + content.append(preview) + content.append(f"\n\n[dim]โ”€โ”€โ”€ {remaining} more lines hidden โ”€โ”€โ”€[/dim]", style="dim") + + console.print(Panel( + content, + title=f"[dim]Output ({total_lines} lines)[/dim]", + subtitle="[dim italic]Press Enter to continue, 'e' to expand[/dim italic]", + subtitle_align="right", + title_align="left", + border_style="dim", + padding=(0, 1), + )) + + # Quick check if user wants to expand + try: + response = input().strip().lower() + if response == 'e': + # Show full output + console.print(Panel( + output, + title=f"[dim]Full Output ({total_lines} lines)[/dim]", + title_align="left", + border_style="green", + padding=(0, 1), + )) + except (EOFError, KeyboardInterrupt): + pass + # Initialize notification manager try: from cortex.notification_manager import NotificationManager @@ -110,37 +278,70 @@ def request_user_confirmation( self, commands: list[tuple[str, str, list[str]]], ) -> bool: - """Show commands to user and request confirmation.""" - console.print() - console.print(Panel( - "[bold yellow]โš ๏ธ Cortex wants to execute the following commands[/bold yellow]", - expand=False, - )) + """Show commands to user and request confirmation with improved visual UI.""" + from rich.panel import Panel + from rich.table import Table + from rich.text import Text + from rich.columns import Columns + from rich import box + console.print() - table = Table(show_header=True, header_style="bold cyan") - table.add_column("#", style="dim", width=3) - table.add_column("Command", style="green") - table.add_column("Purpose", style="white") - table.add_column("Protected Paths", style="yellow") + # Create a table for commands + cmd_table = Table( + show_header=True, + header_style="bold cyan", + box=box.ROUNDED, + border_style="blue", + expand=True, + padding=(0, 1), + ) + cmd_table.add_column("#", style="bold cyan", width=3, justify="right") + cmd_table.add_column("Command", style="bold white") + cmd_table.add_column("Purpose", style="dim italic") + all_protected = [] for i, (cmd, purpose, protected) in enumerate(commands, 1): - protected_str = ", ".join(protected) if protected else "-" - table.add_row(str(i), cmd, purpose, protected_str) + # Truncate long commands for display + cmd_display = cmd if len(cmd) <= 60 else cmd[:57] + "..." + purpose_display = purpose if len(purpose) <= 50 else purpose[:47] + "..." + + # Add protected path indicator + if protected: + cmd_display = f"{cmd_display} [yellow]โš [/yellow]" + all_protected.extend(protected) + + cmd_table.add_row(str(i), cmd_display, purpose_display) - console.print(table) - console.print() + # Create header + header_text = Text() + header_text.append("๐Ÿ” ", style="bold") + header_text.append("Permission Required", style="bold white") + header_text.append(f" ({len(commands)} command{'s' if len(commands) > 1 else ''})", style="dim") - all_protected = [] - for _, _, protected in commands: - all_protected.extend(protected) + console.print(Panel( + cmd_table, + title=header_text, + title_align="left", + border_style="blue", + padding=(1, 1), + )) + # Show protected paths if any if all_protected: - console.print("[bold red]โš ๏ธ These commands will access protected system paths![/bold red]") - console.print(f"[dim]Protected paths: {', '.join(set(all_protected))}[/dim]") - console.print() + protected_set = set(all_protected) + protected_text = Text() + protected_text.append("โš  Protected paths: ", style="bold yellow") + protected_text.append(", ".join(protected_set), style="dim yellow") + console.print(Panel( + protected_text, + border_style="yellow", + padding=(0, 1), + expand=False, + )) - return Confirm.ask("[bold]Do you want to proceed?[/bold]", default=False) + console.print() + return Confirm.ask("[bold]Proceed?[/bold]", default=False) def _needs_sudo(self, cmd: str, protected_paths: list[str]) -> bool: """Determine if a command needs sudo to execute.""" @@ -373,7 +574,7 @@ def _execute_single_command( needs_sudo: bool, timeout: int = 120 ) -> tuple[bool, str, str]: - """Execute a single command with proper privilege handling.""" + """Execute a single command with proper privilege handling and interruption support.""" # Check for interactive commands that need a TTY if self._is_interactive_command(cmd): return self._handle_interactive_command(cmd, needs_sudo) @@ -382,30 +583,62 @@ def _execute_single_command( if self._should_stream_output(cmd): return self._execute_with_streaming(cmd, needs_sudo, timeout=300) + # Track command start + self._track_command_start(cmd) + try: + # Flush output before sudo to handle password prompts cleanly + if needs_sudo: + sys.stdout.flush() + sys.stderr.flush() + + # Use Popen for interruptibility if needs_sudo: - result = subprocess.run( + process = subprocess.Popen( ["sudo", "bash", "-c", cmd], - capture_output=True, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, text=True, - timeout=timeout, ) else: - result = subprocess.run( + process = subprocess.Popen( cmd, shell=True, - capture_output=True, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, text=True, - timeout=timeout, ) - return ( - result.returncode == 0, - result.stdout.strip(), - result.stderr.strip(), - ) - except subprocess.TimeoutExpired: - return False, "", f"Command timed out after {timeout} seconds" + + # Store process for interruption handling + self._current_process = process + + try: + stdout, stderr = process.communicate(timeout=timeout) + + # Check if interrupted during execution + if self._interrupted: + self._track_command_complete(cmd, False, stdout or "", "Command interrupted by user") + return False, stdout.strip() if stdout else "", "Command interrupted by user" + + success = process.returncode == 0 + + # Track completion + self._track_command_complete(cmd, success, stdout, stderr) + + # After sudo, reset console state + if needs_sudo: + sys.stdout.write('') # Force flush + sys.stdout.flush() + + return (success, stdout.strip(), stderr.strip()) + + except subprocess.TimeoutExpired: + process.kill() + stdout, stderr = process.communicate() + self._track_command_complete(cmd, False, stdout, f"Command timed out after {timeout} seconds") + return False, stdout.strip() if stdout else "", f"Command timed out after {timeout} seconds" except Exception as e: + self._track_command_complete(cmd, False, "", str(e)) return False, "", str(e) def _handle_interactive_command( @@ -514,9 +747,23 @@ def execute_commands_as_cortex( console.print() # Phase 2: Execute Commands + from rich.panel import Panel + from rich.text import Text + for i, (cmd, purpose, protected) in enumerate(commands, 1): - console.print(f"[bold][{i}/{len(commands)}][/bold] {cmd}") - console.print(f"[dim] โ””โ”€ {purpose}[/dim]") + # Create a visually distinct panel for each command + cmd_header = Text() + cmd_header.append(f"[{i}/{len(commands)}] ", style="bold white on blue") + cmd_header.append(f" {cmd}", style="bold cyan") + + console.print() + console.print(Panel( + f"[bold cyan]{cmd}[/bold cyan]\n[dim]โ””โ”€ {purpose}[/dim]", + title=f"[bold white] Command {i}/{len(commands)} [/bold white]", + title_align="left", + border_style="blue", + padding=(0, 1), + )) file_check = self._file_analyzer.check_file_exists_and_usefulness(cmd, purpose, user_query) @@ -538,36 +785,75 @@ def execute_commands_as_cortex( if not success: diagnosis = self._diagnoser.diagnose_error(cmd, stderr) - console.print(f"[yellow] โš  Error: {diagnosis['description']}[/yellow]") - console.print(f"[dim] Error type: {diagnosis['error_type']} | Category: {diagnosis.get('category', 'unknown')}[/dim]") + # Create error panel for visual grouping + error_info = ( + f"[bold red]โš  {diagnosis['description']}[/bold red]\n" + f"[dim]Type: {diagnosis['error_type']} | Category: {diagnosis.get('category', 'unknown')}[/dim]" + ) + console.print(Panel( + error_info, + title="[bold red] โŒ Error Detected [/bold red]", + title_align="left", + border_style="red", + padding=(0, 1), + )) # Check if this is a login/credential required error if diagnosis.get("category") == "login_required": - console.print(f"[cyan] ๐Ÿ” Authentication required for this command[/cyan]") + console.print(Panel( + "[bold cyan]๐Ÿ” Authentication required for this command[/bold cyan]", + border_style="cyan", + padding=(0, 1), + expand=False, + )) login_success, login_msg = self._login_handler.handle_login(cmd, stderr) if login_success: - console.print(f"[green] โœ“ {login_msg}[/green]") - console.print(f"[cyan] Retrying command...[/cyan]") + console.print(Panel( + f"[bold green]โœ“ {login_msg}[/bold green]\n[dim]Retrying command...[/dim]", + border_style="green", + padding=(0, 1), + expand=False, + )) # Retry the command after successful login success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) if success: - console.print(f"[green] โœ“ Command succeeded after authentication![/green]") + console.print(Panel( + "[bold green]โœ“ Command succeeded after authentication![/bold green]", + border_style="green", + padding=(0, 1), + expand=False, + )) else: - console.print(f"[yellow] Command still failed after login: {stderr[:100]}[/yellow]") + console.print(Panel( + f"[bold yellow]Command still failed after login[/bold yellow]\n[dim]{stderr[:100]}[/dim]", + border_style="yellow", + padding=(0, 1), + )) else: - console.print(f"[yellow] {login_msg}[/yellow]") + console.print(f"[yellow]{login_msg}[/yellow]") else: # Not a login error, proceed with regular error handling + extra_info = [] if diagnosis.get("extracted_path"): - console.print(f"[dim] Problematic path: {diagnosis['extracted_path']}[/dim]") + extra_info.append(f"[dim]Path:[/dim] {diagnosis['extracted_path']}") if diagnosis.get("extracted_info"): for key, value in diagnosis["extracted_info"].items(): if value: - console.print(f"[dim] {key}: {value}[/dim]") + extra_info.append(f"[dim]{key}:[/dim] {value}") + + if extra_info: + console.print(Panel( + "\n".join(extra_info), + title="[dim] Error Details [/dim]", + title_align="left", + border_style="dim", + padding=(0, 1), + expand=False, + )) fixed, fix_message, fix_commands = self._auto_fixer.auto_fix_error( cmd, stderr, diagnosis, max_attempts=3 @@ -575,12 +861,27 @@ def execute_commands_as_cortex( if fixed: success = True - console.print(f"[green] โœ“ Auto-fixed: {fix_message}[/green]") + console.print(Panel( + f"[bold green]โœ“ Auto-fixed:[/bold green] {fix_message}", + title="[bold green] Fix Successful [/bold green]", + title_align="left", + border_style="green", + padding=(0, 1), + expand=False, + )) _, stdout, stderr = self._execute_single_command(cmd, needs_sudo=True) else: + fix_info = [] if fix_commands: - console.print(f"[yellow] Attempted fixes: {len(fix_commands)} command(s)[/yellow]") - console.print(f"[yellow] Result: {fix_message}[/yellow]") + fix_info.append(f"[dim]Attempted:[/dim] {len(fix_commands)} fix command(s)") + fix_info.append(f"[bold yellow]Result:[/bold yellow] {fix_message}") + console.print(Panel( + "\n".join(fix_info), + title="[bold yellow] Fix Incomplete [/bold yellow]", + title_align="left", + border_style="yellow", + padding=(0, 1), + )) cmd_log.duration_seconds = time.time() - start_time cmd_log.output = stdout @@ -591,41 +892,67 @@ def execute_commands_as_cortex( run.files_accessed.extend(protected) if success: - console.print(f"[green] โœ“ Success ({cmd_log.duration_seconds:.2f}s)[/green]") + console.print(Panel( + f"[bold green]โœ“ Success[/bold green] [dim]({cmd_log.duration_seconds:.2f}s)[/dim]", + border_style="green", + padding=(0, 1), + expand=False, + )) if stdout: - output_lines = stdout.split('\n') - if len(output_lines) > 3: - display_output = '\n'.join(output_lines[:3]) + f"\n ... ({len(output_lines) - 3} more lines)" - else: - display_output = stdout[:200] + ('...' if len(stdout) > 200 else '') - console.print(f"[dim] {display_output}[/dim]") + self._show_expandable_output(stdout, cmd) else: - console.print(f"[red] โœ— Failed: {stderr[:200]}[/red]") + console.print(Panel( + f"[bold red]โœ— Failed[/bold red]\n[dim]{stderr[:200]}[/dim]", + border_style="red", + padding=(0, 1), + )) final_diagnosis = self._diagnoser.diagnose_error(cmd, stderr) if final_diagnosis["fix_commands"] and not final_diagnosis["can_auto_fix"]: - console.print(f"[yellow] ๐Ÿ’ก Manual intervention required:[/yellow]") - console.print(f"[yellow] Issue: {final_diagnosis['description']}[/yellow]") - - console.print(f"[yellow] Suggested commands to try:[/yellow]") + # Create a manual intervention panel + manual_content = [f"[bold yellow]Issue:[/bold yellow] {final_diagnosis['description']}", ""] + manual_content.append("[bold]Suggested commands:[/bold]") for fix_cmd in final_diagnosis["fix_commands"]: if not fix_cmd.startswith("#"): - console.print(f"[cyan] $ {fix_cmd}[/cyan]") + manual_content.append(f" [cyan]$ {fix_cmd}[/cyan]") else: - console.print(f"[dim] {fix_cmd}[/dim]") + manual_content.append(f" [dim]{fix_cmd}[/dim]") + + console.print(Panel( + "\n".join(manual_content), + title="[bold yellow] ๐Ÿ’ก Manual Intervention Required [/bold yellow]", + title_align="left", + border_style="yellow", + padding=(0, 1), + )) console.print() self._granted_privileges = [] # Phase 3: Verification Tests - console.print("[bold]Running verification tests...[/bold]") + console.print() + console.print(Panel( + "[bold]Running verification tests...[/bold]", + title="[bold cyan] ๐Ÿงช Verification Phase [/bold cyan]", + title_align="left", + border_style="cyan", + padding=(0, 1), + expand=False, + )) all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) # Phase 4: Auto-repair if tests failed if not all_tests_passed: console.print() - console.print("[bold yellow]๐Ÿ”ง Auto-repairing test failures...[/bold yellow]") + console.print(Panel( + "[bold yellow]Attempting to repair test failures...[/bold yellow]", + title="[bold yellow] ๐Ÿ”ง Auto-Repair Phase [/bold yellow]", + title_align="left", + border_style="yellow", + padding=(0, 1), + expand=False, + )) repair_success = self._handle_test_failures(test_results, run) @@ -642,12 +969,14 @@ def execute_commands_as_cortex( self.db.save_run(run) + # Generate LLM summary/answer + llm_answer = self._generate_llm_answer(run, user_query) + + # Print condensed execution summary with answer + self._print_execution_summary(run, answer=llm_answer) + console.print() - if all_tests_passed: - console.print(f"[bold green]โœ“ Run completed successfully[/bold green] (ID: {run.run_id})") - else: - console.print(f"[bold yellow]โš  Run completed with issues[/bold yellow] (ID: {run.run_id})") - console.print(f"[dim]Summary: {run.summary}[/dim]") + console.print(f"[dim]Run ID: {run.run_id}[/dim]") return run @@ -699,21 +1028,36 @@ def _handle_resource_conflict( } icon = icons.get(resource_type, "๐Ÿ“Œ") - # Display the conflict + # Display the conflict with visual grouping + from rich.panel import Panel + + status_text = "[bold cyan]Active[/bold cyan]" if is_active else "[dim yellow]Inactive[/dim yellow]" + conflict_content = ( + f"{icon} [bold]{resource_type.replace('_', ' ').title()}:[/bold] '{resource_name}'\n" + f"[dim]Status:[/dim] {status_text}\n" + f"[dim]{suggestion}[/dim]" + ) + console.print() - if is_active: - console.print(f"[cyan] {icon} {resource_type.replace('_', ' ').title()} '{resource_name}' already exists![/cyan]") - else: - console.print(f"[yellow] {icon} {resource_type.replace('_', ' ').title()} '{resource_name}' exists (inactive)[/yellow]") - console.print(f"[dim] {suggestion}[/dim]") + console.print(Panel( + conflict_content, + title="[bold yellow] โš ๏ธ Resource Conflict [/bold yellow]", + title_align="left", + border_style="yellow", + padding=(0, 1), + )) # If there are alternatives, show them if alternatives: - console.print() - console.print(" [bold]What would you like to do?[/bold]") + options_content = ["[bold]What would you like to do?[/bold]", ""] for j, alt in enumerate(alternatives, 1): - console.print(f" {j}. {alt['description']}") - console.print() + options_content.append(f" {j}. {alt['description']}") + + console.print(Panel( + "\n".join(options_content), + border_style="dim", + padding=(0, 1), + )) from rich.prompt import Prompt choice = Prompt.ask( @@ -890,6 +1234,9 @@ def execute_with_task_tree( user_query: str, ) -> DoRun: """Execute commands using the task tree system with advanced auto-repair.""" + # Reset execution state for new run + self._reset_execution_state() + run = DoRun( run_id=self.db._generate_run_id(), summary="", @@ -910,18 +1257,23 @@ def execute_with_task_tree( console.print(Panel( "[bold cyan]๐ŸŒณ Task Tree Execution Mode[/bold cyan]\n" "[dim]Commands will be executed with auto-repair capabilities.[/dim]\n" - "[dim]Conflict detection and verification tests enabled.[/dim]", + "[dim]Conflict detection and verification tests enabled.[/dim]\n" + "[dim yellow]Press Ctrl+Z or Ctrl+C to stop execution at any time.[/dim yellow]", expand=False, )) console.print() - # Phase 1: Conflict Detection - console.print("[bold]๐Ÿ“‹ Phase 1: Checking for conflicts...[/bold]") + # Set up signal handlers for Ctrl+Z and Ctrl+C + self._setup_signal_handlers() + + # Phase 1: Conflict Detection - Claude-like header + console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Checking for Conflicts[/bold]") conflicts_found = [] cleanup_commands = [] commands_to_skip = set() # Track commands that should be skipped (use existing) commands_to_replace = {} # Track commands that should be replaced + resource_decisions = {} # Track user decisions for each resource to avoid duplicate prompts for i, (cmd, purpose, protected) in enumerate(commands): conflict = self._conflict_detector.check_for_conflicts(cmd, purpose) @@ -929,11 +1281,29 @@ def execute_with_task_tree( conflicts_found.append((i, cmd, conflict)) if conflicts_found: - console.print(f"[yellow] Found {len(conflicts_found)} potential conflict(s)[/yellow]") - + # Deduplicate conflicts by resource name + unique_resources = {} for idx, cmd, conflict in conflicts_found: - # Handle any resource conflict with alternatives - handled = self._handle_resource_conflict(idx, cmd, conflict, commands_to_skip, cleanup_commands) + resource_name = conflict.get("resource_name", cmd) + if resource_name not in unique_resources: + unique_resources[resource_name] = [] + unique_resources[resource_name].append((idx, cmd, conflict)) + + console.print(f" [yellow]โ—[/yellow] Found [bold]{len(unique_resources)}[/bold] unique conflict(s)") + + for resource_name, resource_conflicts in unique_resources.items(): + # Only ask once per unique resource + first_idx, first_cmd, first_conflict = resource_conflicts[0] + + # Handle the first conflict to get user's decision + decision = self._handle_resource_conflict(first_idx, first_cmd, first_conflict, commands_to_skip, cleanup_commands) + resource_decisions[resource_name] = decision + + # Apply the same decision to all other commands affecting this resource + if len(resource_conflicts) > 1: + for idx, cmd, conflict in resource_conflicts[1:]: + if first_idx in commands_to_skip: + commands_to_skip.add(idx) # Run cleanup commands for non-Docker conflicts if cleanup_commands: @@ -960,7 +1330,7 @@ def execute_with_task_tree( task.output = "Using existing resource" commands = filtered_commands else: - console.print("[green] โœ“ No conflicts detected[/green]") + console.print(" [green]โ—[/green] No conflicts detected") console.print() @@ -972,96 +1342,165 @@ def execute_with_task_tree( console.print(f"[dim]๐Ÿ“ Protected paths: {', '.join(all_protected)}[/dim]") console.print() - # Phase 2: Execute Commands - console.print("[bold]๐Ÿš€ Phase 2: Executing commands...[/bold]") - console.print() - - for root_task in self._task_tree.root_tasks: - self._execute_task_node(root_task, run, commands) - - # Phase 3: Verification Tests - console.print() - console.print("[bold]๐Ÿงช Phase 3: Running verification tests...[/bold]") - - all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) - - # Phase 4: Auto-repair if tests failed - if not all_tests_passed: + try: + # Phase 2: Execute Commands - Claude-like header + console.print() + console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Executing Commands[/bold]") console.print() - console.print("[bold]๐Ÿ”ง Phase 4: Auto-repairing test failures...[/bold]") - repair_success = self._handle_test_failures(test_results, run) + # Track remaining commands for resume functionality + executed_tasks = set() + for i, root_task in enumerate(self._task_tree.root_tasks): + if self._interrupted: + # Store remaining tasks for potential continuation + remaining_tasks = self._task_tree.root_tasks[i:] + self._remaining_commands = [ + (t.command, t.purpose, []) + for t in remaining_tasks + if t.status not in (CommandStatus.SUCCESS, CommandStatus.SKIPPED) + ] + break + self._execute_task_node(root_task, run, commands) + executed_tasks.add(root_task.id) - if repair_success: + if not self._interrupted: + # Phase 3: Verification Tests - Claude-like header console.print() - console.print("[dim] Re-running verification tests...[/dim]") + console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Verification[/bold]") + all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) - - run.completed_at = datetime.datetime.now().isoformat() - run.summary = self._generate_tree_summary(run) - - if test_results: - passed = sum(1 for t in test_results if t["passed"]) - run.summary += f" | Tests: {passed}/{len(test_results)} passed" - - self.db.save_run(run) - - console.print() - console.print("[bold]Task Execution Tree:[/bold]") - self._task_tree.print_tree() - - console.print() - if all_tests_passed: - console.print(f"[bold green]โœ“ Run completed successfully[/bold green] (ID: {run.run_id})") - else: - console.print(f"[bold yellow]โš  Run completed with issues[/bold yellow] (ID: {run.run_id})") - console.print(f"[dim]Summary: {run.summary}[/dim]") - - if self._permission_requests_count > 1: - console.print(f"[dim]Permission requests made: {self._permission_requests_count}[/dim]") - - # Interactive session - suggest next steps - self._interactive_session(run, commands, user_query) - - return run + + # Phase 4: Auto-repair if tests failed + if not all_tests_passed: + console.print() + console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Auto-Repair[/bold]") + + repair_success = self._handle_test_failures(test_results, run) + + if repair_success: + console.print() + console.print("[dim] Re-running verification tests...[/dim]") + all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) + else: + all_tests_passed = False + test_results = [] + + run.completed_at = datetime.datetime.now().isoformat() + + if self._interrupted: + run.summary = f"INTERRUPTED after {len(self._executed_commands)} command(s)" + else: + run.summary = self._generate_tree_summary(run) + if test_results: + passed = sum(1 for t in test_results if t["passed"]) + run.summary += f" | Tests: {passed}/{len(test_results)} passed" + + self.db.save_run(run) + + console.print() + console.print("[bold]Task Execution Tree:[/bold]") + self._task_tree.print_tree() + + # Generate LLM summary/answer if available + llm_answer = None + if not self._interrupted: + llm_answer = self._generate_llm_answer(run, user_query) + + # Print condensed execution summary with answer + self._print_execution_summary(run, answer=llm_answer) + + console.print() + if self._interrupted: + console.print(f"[dim]Run ID: {run.run_id} (interrupted)[/dim]") + elif all_tests_passed: + console.print(f"[dim]Run ID: {run.run_id}[/dim]") + + if self._permission_requests_count > 1: + console.print(f"[dim]Permission requests made: {self._permission_requests_count}[/dim]") + + # Reset interrupted flag before interactive session + # This allows the user to continue the session even after stopping a command + was_interrupted = self._interrupted + self._interrupted = False + + # Always go to interactive session - even after interruption + # User can decide what to do next (retry, skip, exit) + self._interactive_session(run, commands, user_query, was_interrupted=was_interrupted) + + return run + + finally: + # Always restore signal handlers + self._restore_signal_handlers() def _interactive_session( self, run: DoRun, commands: list[tuple[str, str, list[str]]], user_query: str, + was_interrupted: bool = False, ) -> None: - """Interactive session after task completion - suggest next steps.""" + """Interactive session after task completion - suggest next steps. + + If was_interrupted is True, the previous command execution was stopped + by Ctrl+Z/Ctrl+C. We still continue the session so the user can decide + what to do next (retry, skip remaining, run different command, etc). + """ + import sys from rich.prompt import Prompt + # Flush any pending output to ensure clean display + sys.stdout.flush() + sys.stderr.flush() + # Generate context-aware suggestions based on what was done suggestions = self._generate_suggestions(run, commands, user_query) + # If interrupted, add special suggestions at the beginning + if was_interrupted: + interrupted_suggestions = [ + { + "label": "๐Ÿ”„ Retry interrupted command", + "description": "Try running the interrupted command again", + "type": "retry_interrupted", + }, + { + "label": "โญ๏ธ Skip and continue", + "description": "Skip the interrupted command and continue with remaining tasks", + "type": "skip_and_continue", + }, + ] + suggestions = interrupted_suggestions + suggestions + # Track context for natural language processing context = { "original_query": user_query, "executed_commands": [cmd for cmd, _, _ in commands], "session_actions": [], + "was_interrupted": was_interrupted, } console.print() - console.print("[bold cyan]โ”โ”โ” What would you like to do next? โ”โ”โ”[/bold cyan]") + if was_interrupted: + console.print("[bold yellow]โ”โ”โ”[/bold yellow] [bold]Execution Interrupted - What would you like to do?[/bold]") + else: + console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Next Steps[/bold]") console.print() # Display suggestions self._display_suggestions(suggestions) console.print() - console.print("[dim]๐Ÿ’ก Tip: You can type any request in natural language, like:[/dim]") - console.print("[dim] โ€ข 'run the container on port 3000'[/dim]") - console.print("[dim] โ€ข 'show me how to connect to it'[/dim]") - console.print("[dim] โ€ข 'install another package called redis'[/dim]") + console.print("[dim]You can type any request in natural language[/dim]") console.print() + # Ensure prompt is visible + sys.stdout.flush() + while True: try: response = Prompt.ask( - "[bold]What would you like to do?[/bold]", + "[bold cyan]>[/bold cyan]", default="exit" ) @@ -1081,9 +1520,13 @@ def _interactive_session( self._execute_suggestion(suggestion, run, user_query) context["session_actions"].append(suggestion.get("label", "")) - # Continue the session + # Update last query to the suggestion for context-aware follow-ups + suggestion_label = suggestion.get("label", "") + context["last_query"] = suggestion_label + + # Continue the session with suggestions based on what was just done console.print() - suggestions = self._generate_suggestions(run, commands, user_query) + suggestions = self._generate_suggestions_for_query(suggestion_label, context) self._display_suggestions(suggestions) console.print() continue @@ -1107,17 +1550,172 @@ def _interactive_session( # Update context with the new query for better suggestions context["last_query"] = response_stripped - # Refresh suggestions based on new context + # Refresh suggestions based on NEW query (not combined) + # This ensures suggestions are relevant to what user just asked console.print() - # Use the new query for generating suggestions - combined_query = f"{user_query}. Then: {response_stripped}" - suggestions = self._generate_suggestions(run, commands, combined_query) + suggestions = self._generate_suggestions_for_query(response_stripped, context) self._display_suggestions(suggestions) console.print() except (EOFError, KeyboardInterrupt): console.print("\n[dim]๐Ÿ‘‹ Session ended.[/dim]") break + + # Cleanup: ensure any terminal monitors are stopped + if self._terminal_monitor: + self._terminal_monitor.stop() + self._terminal_monitor = None + + def _generate_suggestions_for_query(self, query: str, context: dict) -> list[dict]: + """Generate suggestions based on the current query and context. + + This generates follow-up suggestions relevant to what the user just asked/did, + not tied to the original task. + """ + suggestions = [] + query_lower = query.lower() + + # User management related queries + if any(w in query_lower for w in ["user", "locked", "password", "account", "login"]): + suggestions.append({ + "type": "info", + "icon": "๐Ÿ‘ฅ", + "label": "List all users", + "description": "Show all system users", + "command": "cat /etc/passwd | cut -d: -f1", + "purpose": "List all users", + }) + suggestions.append({ + "type": "info", + "icon": "๐Ÿ”", + "label": "Check sudo users", + "description": "Show users with sudo access", + "command": "getent group sudo", + "purpose": "List sudo group members", + }) + suggestions.append({ + "type": "action", + "icon": "๐Ÿ”“", + "label": "Unlock a user", + "description": "Unlock a locked user account", + "demo_type": "unlock_user", + }) + + # Service/process related queries + elif any(w in query_lower for w in ["service", "systemctl", "running", "process", "status"]): + suggestions.append({ + "type": "info", + "icon": "๐Ÿ“Š", + "label": "List running services", + "description": "Show all active services", + "command": "systemctl list-units --type=service --state=running", + "purpose": "List running services", + }) + suggestions.append({ + "type": "info", + "icon": "๐Ÿ”", + "label": "Check failed services", + "description": "Show services that failed to start", + "command": "systemctl list-units --type=service --state=failed", + "purpose": "List failed services", + }) + + # Disk/storage related queries + elif any(w in query_lower for w in ["disk", "storage", "space", "mount", "partition"]): + suggestions.append({ + "type": "info", + "icon": "๐Ÿ’พ", + "label": "Check disk usage", + "description": "Show disk space by partition", + "command": "df -h", + "purpose": "Check disk usage", + }) + suggestions.append({ + "type": "info", + "icon": "๐Ÿ“", + "label": "Find large files", + "description": "Show largest files on disk", + "command": "sudo du -ah / 2>/dev/null | sort -rh | head -20", + "purpose": "Find large files", + }) + + # Network related queries + elif any(w in query_lower for w in ["network", "ip", "port", "connection", "firewall"]): + suggestions.append({ + "type": "info", + "icon": "๐ŸŒ", + "label": "Show network interfaces", + "description": "Display IP addresses and interfaces", + "command": "ip addr show", + "purpose": "Show network interfaces", + }) + suggestions.append({ + "type": "info", + "icon": "๐Ÿ”Œ", + "label": "List open ports", + "description": "Show listening ports", + "command": "sudo ss -tlnp", + "purpose": "List open ports", + }) + + # Security related queries + elif any(w in query_lower for w in ["security", "audit", "log", "auth", "fail"]): + suggestions.append({ + "type": "info", + "icon": "๐Ÿ”’", + "label": "Check auth logs", + "description": "Show recent authentication attempts", + "command": "sudo tail -50 /var/log/auth.log", + "purpose": "Check auth logs", + }) + suggestions.append({ + "type": "info", + "icon": "โš ๏ธ", + "label": "Check failed logins", + "description": "Show failed login attempts", + "command": "sudo lastb | head -20", + "purpose": "Check failed logins", + }) + + # Package/installation related queries + elif any(w in query_lower for w in ["install", "package", "apt", "update"]): + suggestions.append({ + "type": "action", + "icon": "๐Ÿ“ฆ", + "label": "Update system", + "description": "Update package lists and upgrade", + "command": "sudo apt update && sudo apt upgrade -y", + "purpose": "Update system packages", + }) + suggestions.append({ + "type": "info", + "icon": "๐Ÿ“‹", + "label": "List installed packages", + "description": "Show recently installed packages", + "command": "apt list --installed 2>/dev/null | tail -20", + "purpose": "List installed packages", + }) + + # Default: generic helpful suggestions + if not suggestions: + suggestions.append({ + "type": "info", + "icon": "๐Ÿ“Š", + "label": "System overview", + "description": "Show system info and resource usage", + "command": "uname -a && uptime && free -h", + "purpose": "System overview", + }) + suggestions.append({ + "type": "info", + "icon": "๐Ÿ”", + "label": "Check system logs", + "description": "View recent system messages", + "command": "sudo journalctl -n 20 --no-pager", + "purpose": "Check system logs", + }) + + return suggestions def _display_suggestions(self, suggestions: list[dict]) -> None: """Display numbered suggestions.""" @@ -1196,13 +1794,33 @@ def _handle_request_with_llm( response_type = llm_response.get("response_type") + # HARD CHECK: Filter out any raw JSON from reasoning field + reasoning = llm_response.get("reasoning", "") + if reasoning: + # Remove any JSON-like content from reasoning + import re + # If reasoning looks like JSON or contains JSON patterns, clean it + if (reasoning.strip().startswith(('{', '[', ']', '"response_type"')) or + re.search(r'"do_commands"\s*:', reasoning) or + re.search(r'"command"\s*:', reasoning) or + re.search(r'"requires_sudo"\s*:', reasoning)): + # Extract just the text explanation if possible + text_match = re.search(r'"reasoning"\s*:\s*"([^"]+)"', reasoning) + if text_match: + reasoning = text_match.group(1) + else: + reasoning = "Processing your request..." + llm_response["reasoning"] = reasoning + # Handle do_commands - execute with confirmation if response_type == "do_commands" and llm_response.get("do_commands"): do_commands = llm_response["do_commands"] reasoning = llm_response.get("reasoning", "") - console.print() - console.print(f"[cyan]๐Ÿค– {reasoning}[/cyan]") + # Final safety check: don't print JSON-looking reasoning + if reasoning and not self._is_json_like(reasoning): + console.print() + console.print(f"[cyan]๐Ÿค– {reasoning}[/cyan]") console.print() # Show commands and ask for confirmation @@ -1222,32 +1840,55 @@ def _handle_request_with_llm( # Execute the commands console.print() + from rich.panel import Panel + executed_in_session = [] - for cmd_info in do_commands: + for idx, cmd_info in enumerate(do_commands, 1): cmd = cmd_info.get("command", "") purpose = cmd_info.get("purpose", "Execute command") needs_sudo = cmd_info.get("requires_sudo", False) or self._needs_sudo(cmd, []) - console.print(f"[COMMAND] {cmd}") - console.print(f" โ””โ”€ {purpose}") + # Create visual grouping for each command + console.print() + console.print(Panel( + f"[bold cyan]{cmd}[/bold cyan]\n[dim]โ””โ”€ {purpose}[/dim]", + title=f"[bold] Command {idx}/{len(do_commands)} [/bold]", + title_align="left", + border_style="blue", + padding=(0, 1), + )) success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) if success: - console.print(f" [green]โœ“ Success[/green]") + console.print(Panel( + f"[bold green]โœ“ Success[/bold green]", + border_style="green", + padding=(0, 1), + expand=False, + )) if stdout: output_preview = stdout[:300] + ('...' if len(stdout) > 300 else '') - console.print(f" [dim]{output_preview}[/dim]") + console.print(f"[dim]{output_preview}[/dim]") executed_in_session.append(cmd) else: - console.print(f" [red]โœ— Failed: {stderr[:150]}[/red]") + console.print(Panel( + f"[bold red]โœ— Failed[/bold red]\n[dim]{stderr[:150]}[/dim]", + border_style="red", + padding=(0, 1), + )) # Offer to diagnose and fix - if Confirm.ask(" Try to auto-fix?", default=True): + if Confirm.ask("Try to auto-fix?", default=True): diagnosis = self._diagnoser.diagnose_error(cmd, stderr) fixed, msg, _ = self._auto_fixer.auto_fix_error(cmd, stderr, diagnosis) if fixed: - console.print(f" [green]โœ“ Fixed: {msg}[/green]") + console.print(Panel( + f"[bold green]โœ“ Fixed:[/bold green] {msg}", + border_style="green", + padding=(0, 1), + expand=False, + )) executed_in_session.append(cmd) # Track executed commands in context for suggestion generation @@ -1279,10 +1920,15 @@ def _handle_request_with_llm( return True - # Handle answer - just display it + # Handle answer - just display it (filter raw JSON) elif response_type == "answer" and llm_response.get("answer"): - console.print() - console.print(llm_response["answer"]) + answer = llm_response["answer"] + # Don't print raw JSON or internal processing messages + if not (self._is_json_like(answer) or + "I'm processing your request" in answer or + "I have a plan to execute" in answer): + console.print() + console.print(answer) return True else: @@ -1783,8 +2429,47 @@ def _execute_suggestion( """Execute a suggestion.""" suggestion_type = suggestion.get("type") - if suggestion_type == "demo": + if suggestion_type == "retry_interrupted": + # Retry the command that was interrupted + if self._interrupted_command: + console.print() + console.print(f"[cyan]๐Ÿ”„ Retrying:[/cyan] {self._interrupted_command}") + console.print() + + needs_sudo = "sudo" in self._interrupted_command or self._needs_sudo(self._interrupted_command, []) + success, stdout, stderr = self._execute_single_command( + self._interrupted_command, + needs_sudo=needs_sudo + ) + + if success: + console.print(f"[green]โœ“ Success[/green]") + if stdout: + console.print(f"[dim]{stdout[:500]}{'...' if len(stdout) > 500 else ''}[/dim]") + self._interrupted_command = None # Clear after successful retry + else: + console.print(f"[red]โœ— Failed: {stderr[:200]}[/red]") + else: + console.print("[yellow]No interrupted command to retry.[/yellow]") + elif suggestion_type == "skip_and_continue": + # Skip the interrupted command and continue with remaining + console.print() + console.print("[cyan]โญ๏ธ Skipping interrupted command and continuing...[/cyan]") + self._interrupted_command = None + + if self._remaining_commands: + console.print(f"[dim]Remaining commands: {len(self._remaining_commands)}[/dim]") + for cmd, purpose, protected in self._remaining_commands: + console.print(f"[dim] โ€ข {cmd[:60]}{'...' if len(cmd) > 60 else ''}[/dim]") + console.print() + console.print("[dim]Use 'continue all' to execute remaining commands, or type a new request.[/dim]") + else: + console.print("[dim]No remaining commands to execute.[/dim]") + elif suggestion_type == "demo": self._show_demo(suggestion.get("demo_type", "generic"), suggestion) + elif suggestion_type == "test": + # Show test commands based on what was installed + self._show_test_commands(run, user_query) elif "command" in suggestion: console.print() console.print(f"[cyan]Executing:[/cyan] {suggestion['command']}") @@ -1802,8 +2487,135 @@ def _execute_suggestion( console.print(f"[dim]{stdout[:500]}{'...' if len(stdout) > 500 else ''}[/dim]") else: console.print(f"[red]โœ— Failed: {stderr[:200]}[/red]") + elif "manual_commands" in suggestion: + # Show manual commands + console.print() + console.print("[bold cyan]๐Ÿ“‹ Manual Commands:[/bold cyan]") + for cmd in suggestion["manual_commands"]: + console.print(f" [green]$ {cmd}[/green]") + console.print() + console.print("[dim]Copy and run these commands in your terminal.[/dim]") else: - console.print("[yellow]This suggestion requires manual action.[/yellow]") + console.print("[yellow]No specific action available for this suggestion.[/yellow]") + + def _show_test_commands(self, run: DoRun, user_query: str) -> None: + """Show test commands based on what was installed/configured.""" + from rich.panel import Panel + + console.print() + console.print("[bold cyan]๐Ÿงช Quick Test Commands[/bold cyan]") + console.print() + + test_commands = [] + query_lower = user_query.lower() + + # Detect what was installed and suggest appropriate tests + executed_cmds = [c.command.lower() for c in run.commands if c.status.value == "success"] + all_cmds_str = " ".join(executed_cmds) + + # Web server tests + if "apache" in all_cmds_str or "apache2" in query_lower: + test_commands.extend([ + ("Check Apache status", "systemctl status apache2"), + ("Test Apache config", "sudo apache2ctl -t"), + ("View in browser", "curl -I http://localhost"), + ]) + + if "nginx" in all_cmds_str or "nginx" in query_lower: + test_commands.extend([ + ("Check Nginx status", "systemctl status nginx"), + ("Test Nginx config", "sudo nginx -t"), + ("View in browser", "curl -I http://localhost"), + ]) + + # Database tests + if "mysql" in all_cmds_str or "mysql" in query_lower: + test_commands.extend([ + ("Check MySQL status", "systemctl status mysql"), + ("Test MySQL connection", "sudo mysql -e 'SELECT VERSION();'"), + ]) + + if "postgresql" in all_cmds_str or "postgres" in query_lower: + test_commands.extend([ + ("Check PostgreSQL status", "systemctl status postgresql"), + ("Test PostgreSQL", "sudo -u postgres psql -c 'SELECT version();'"), + ]) + + # Docker tests + if "docker" in all_cmds_str or "docker" in query_lower: + test_commands.extend([ + ("Check Docker status", "systemctl status docker"), + ("List containers", "docker ps -a"), + ("Test Docker", "docker run hello-world"), + ]) + + # PHP tests + if "php" in all_cmds_str or "php" in query_lower or "lamp" in query_lower: + test_commands.extend([ + ("Check PHP version", "php -v"), + ("Test PHP info", "php -i | head -20"), + ]) + + # Node.js tests + if "node" in all_cmds_str or "nodejs" in query_lower: + test_commands.extend([ + ("Check Node version", "node -v"), + ("Check npm version", "npm -v"), + ]) + + # Python tests + if "python" in all_cmds_str or "python" in query_lower: + test_commands.extend([ + ("Check Python version", "python3 --version"), + ("Check pip version", "pip3 --version"), + ]) + + # Generic service tests + if not test_commands: + # Try to extract service names from commands + for cmd_log in run.commands: + if "systemctl" in cmd_log.command and cmd_log.status.value == "success": + import re + match = re.search(r'systemctl\s+(?:start|enable|restart)\s+(\S+)', cmd_log.command) + if match: + service = match.group(1) + test_commands.append((f"Check {service} status", f"systemctl status {service}")) + + if not test_commands: + test_commands = [ + ("Check system status", "systemctl --failed"), + ("View recent logs", "journalctl -n 20 --no-pager"), + ] + + # Display test commands + for i, (desc, cmd) in enumerate(test_commands[:6], 1): # Limit to 6 + console.print(f" [bold]{i}.[/bold] {desc}") + console.print(f" [green]$ {cmd}[/green]") + console.print() + + console.print("[dim]Copy and run these commands to verify your installation.[/dim]") + console.print() + + # Offer to run the first test + try: + response = input("[dim]Run first test? [y/N]: [/dim]").strip().lower() + if response in ['y', 'yes']: + if test_commands: + desc, cmd = test_commands[0] + console.print() + console.print(f"[cyan]Running:[/cyan] {cmd}") + needs_sudo = cmd.strip().startswith("sudo") + success, stdout, stderr = self._execute_single_command(cmd, needs_sudo=needs_sudo) + if success: + console.print(f"[green]โœ“ {desc} - Passed[/green]") + if stdout: + console.print(Panel(stdout[:500], title="[dim]Output[/dim]", border_style="dim")) + else: + console.print(f"[red]โœ— {desc} - Failed[/red]") + if stderr: + console.print(f"[dim red]{stderr[:200]}[/dim red]") + except (EOFError, KeyboardInterrupt): + pass def _show_demo(self, demo_type: str, suggestion: dict) -> None: """Show demo code/commands for a specific type.""" @@ -1949,8 +2761,9 @@ def _execute_task_node( # Check if task was marked as skipped (e.g., using existing resource) if task.status == CommandStatus.SKIPPED: - console.print(f"{indent}[cyan][SKIPPED] {task.command[:60]}{'...' if len(task.command) > 60 else ''}[/cyan]") - console.print(f"{indent}[green] โ””โ”€ โœ“ {task.output or 'Using existing resource'}[/green]") + # Claude-like skipped output + console.print(f"{indent}[dim]โ—‹[/dim] [cyan]{task.command[:65]}{'...' if len(task.command) > 65 else ''}[/cyan]") + console.print(f"{indent} [dim italic]โ†ณ Skipped: {task.output or 'Using existing resource'}[/dim italic]") # Log the skipped command cmd_log = CommandLog( @@ -1963,8 +2776,9 @@ def _execute_task_node( run.commands.append(cmd_log) return - console.print(f"{indent}[bold]{task_num}[/bold] {task.command[:60]}{'...' if len(task.command) > 60 else ''}") - console.print(f"{indent}[dim] โ””โ”€ {task.purpose}[/dim]") + # Claude-like command output + console.print(f"{indent}[bold cyan]โ—[/bold cyan] [bold]{task.command[:65]}{'...' if len(task.command) > 65 else ''}[/bold]") + console.print(f"{indent} [dim italic]โ†ณ {task.purpose}[/dim italic]") protected_paths = [] user_query = run.user_query if run else "" @@ -1988,6 +2802,22 @@ def _execute_task_node( task.error = stderr task.duration_seconds = time.time() - start_time + # Check if command was interrupted by Ctrl+Z/Ctrl+C + if self._interrupted: + task.status = CommandStatus.INTERRUPTED + cmd_log = CommandLog( + command=task.command, + purpose=task.purpose, + timestamp=datetime.datetime.now().isoformat(), + status=CommandStatus.INTERRUPTED, + output=stdout, + error="Command interrupted by user (Ctrl+Z/Ctrl+C)", + duration_seconds=task.duration_seconds, + ) + console.print(f"{indent} [yellow]โš [/yellow] [dim]Interrupted ({task.duration_seconds:.2f}s)[/dim]") + run.commands.append(cmd_log) + return + cmd_log = CommandLog( command=task.command, purpose=task.purpose, @@ -2000,10 +2830,12 @@ def _execute_task_node( if success: task.status = CommandStatus.SUCCESS - console.print(f"{indent}[green] โœ“ Success ({task.duration_seconds:.2f}s)[/green]") + # Claude-like success output + console.print(f"{indent} [green]โœ“[/green] [dim]Done ({task.duration_seconds:.2f}s)[/dim]") if stdout: output_preview = stdout[:100] + ('...' if len(stdout) > 100 else '') - console.print(f"{indent}[dim] {output_preview}[/dim]") + console.print(f"{indent} [dim]{output_preview}[/dim]") + console.print() run.commands.append(cmd_log) return @@ -2011,8 +2843,9 @@ def _execute_task_node( diagnosis = self._diagnoser.diagnose_error(task.command, stderr) task.failure_reason = diagnosis.get("description", "Unknown error") - console.print(f"{indent}[yellow] โš  Error: {diagnosis['error_type']}[/yellow]") - console.print(f"{indent}[dim] {diagnosis['description']}[/dim]") + # Claude-like error output + console.print(f"{indent} [red]โœ—[/red] [bold red]{diagnosis['error_type']}[/bold red]") + console.print(f"{indent} [dim]{diagnosis['description'][:80]}{'...' if len(diagnosis['description']) > 80 else ''}[/dim]") # Check if this is a login/credential required error if diagnosis.get("category") == "login_required": @@ -2072,9 +2905,13 @@ def _execute_task_node( return if task.repair_attempts < task.max_repair_attempts: + import sys task.repair_attempts += 1 console.print(f"{indent}[cyan] ๐Ÿ”ง Auto-fix attempt {task.repair_attempts}/{task.max_repair_attempts}[/cyan]") + # Flush output before auto-fix to ensure clean display after sudo prompts + sys.stdout.flush() + fixed, fix_message, fix_commands = self._auto_fixer.auto_fix_error( task.command, stderr, diagnosis, max_attempts=3 ) @@ -2100,25 +2937,68 @@ def _execute_task_node( task.status = CommandStatus.FAILED task.reasoning = self._generate_task_failure_reasoning(task, diagnosis) - console.print(f"{indent}[red] โœ— Failed: {diagnosis['description'][:100]}[/red]") - console.print(f"{indent}[dim] Reasoning: {task.reasoning}[/dim]") - if diagnosis.get("fix_commands") or stderr: - console.print(f"\n{indent}[yellow]๐Ÿ’ก Manual intervention available[/yellow]") + error_type = diagnosis.get("error_type", "unknown") + + # Check if this is a "soft failure" that shouldn't warrant manual intervention + # These are cases where a tool/command simply isn't available and that's OK + soft_failure_types = { + "command_not_found", # Tool not installed + "not_found", # File/command doesn't exist + "no_such_command", + "unable_to_locate_package", # Package doesn't exist in repos + } + + # Also check for patterns in the error message that indicate optional tools + optional_tool_patterns = [ + "sensors", # lm-sensors - optional hardware monitoring + "snap", # snapd - optional package manager + "flatpak", # optional package manager + "docker", # optional if not needed + "podman", # optional container runtime + "nmap", # optional network scanner + "htop", # optional system monitor + "iotop", # optional I/O monitor + "iftop", # optional network monitor + ] + + cmd_base = task.command.split()[0] if task.command else "" + is_optional_tool = any(pattern in cmd_base.lower() for pattern in optional_tool_patterns) + is_soft_failure = error_type in soft_failure_types and is_optional_tool + + if is_soft_failure: + # Mark as skipped instead of failed - this is an optional tool that's not available + task.status = CommandStatus.SKIPPED + task.reasoning = f"Tool '{cmd_base}' not available (optional)" + console.print(f"{indent}[yellow] โ—‹ Skipped: {cmd_base} not available (optional tool)[/yellow]") + console.print(f"{indent}[dim] This tool provides additional info but isn't required[/dim]") + cmd_log.status = CommandStatus.SKIPPED + else: + console.print(f"{indent}[red] โœ— Failed: {diagnosis['description'][:100]}[/red]") + console.print(f"{indent}[dim] Reasoning: {task.reasoning}[/dim]") - suggested_cmds = diagnosis.get("fix_commands", [f"sudo {task.command}"]) - console.print(f"{indent}[dim] Suggested commands:[/dim]") - for cmd in suggested_cmds[:3]: - console.print(f"{indent}[cyan] $ {cmd}[/cyan]") + # Only offer manual intervention for errors that could actually be fixed manually + # Don't offer for missing commands/packages that auto-fix couldn't resolve + should_offer_manual = ( + diagnosis.get("fix_commands") or stderr + ) and error_type not in {"command_not_found", "not_found", "unable_to_locate_package"} - if Confirm.ask(f"{indent}Run manually while Cortex monitors?", default=False): - manual_success = self._supervise_manual_intervention_for_task( - task, suggested_cmds, run - ) - if manual_success: - task.status = CommandStatus.SUCCESS - task.reasoning = "Completed via monitored manual intervention" - cmd_log.status = CommandStatus.SUCCESS + if should_offer_manual: + console.print(f"\n{indent}[yellow]๐Ÿ’ก Manual intervention available[/yellow]") + + suggested_cmds = diagnosis.get("fix_commands", [f"sudo {task.command}"]) + console.print(f"{indent}[dim] Suggested commands:[/dim]") + for cmd in suggested_cmds[:3]: + console.print(f"{indent}[cyan] $ {cmd}[/cyan]") + + if Confirm.ask(f"{indent}Run manually while Cortex monitors?", default=False): + manual_success = self._supervise_manual_intervention_for_task( + task, suggested_cmds, run + ) + if manual_success: + task.status = CommandStatus.SUCCESS + task.reasoning = "Completed via monitored manual intervention" + cmd_log.status = CommandStatus.SUCCESS cmd_log.status = task.status run.commands.append(cmd_log) @@ -2130,72 +3010,277 @@ def _supervise_manual_intervention_for_task( run: DoRun, ) -> bool: """Supervise manual intervention for a specific task with terminal monitoring.""" - console.print("\n[bold cyan]โ•โ•โ• Manual Intervention Mode โ•โ•โ•[/bold cyan]") - console.print("\n[yellow]Run these commands in another terminal:[/yellow]") + from rich.panel import Panel + from rich.prompt import Prompt + + # If no suggested commands provided, use the task command with sudo + if not suggested_commands: + if task and task.command: + # Add sudo if not already present + cmd = task.command + if not cmd.strip().startswith("sudo"): + cmd = f"sudo {cmd}" + suggested_commands = [cmd] + + # Claude-like manual intervention UI + console.print() + console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Manual Intervention[/bold]") + console.print() + + # Show the task context + if task and task.purpose: + console.print(f"[bold]Task:[/bold] {task.purpose}") + console.print() + + console.print("[dim]Run these commands in another terminal:[/dim]") + console.print() + + # Show commands in a clear box + if suggested_commands: + from rich.panel import Panel + cmd_text = "\n".join(f" {i}. {cmd}" for i, cmd in enumerate(suggested_commands, 1)) + console.print(Panel( + cmd_text, + title="[bold cyan]๐Ÿ“‹ Commands to Run[/bold cyan]", + border_style="cyan", + padding=(0, 1), + )) + else: + console.print(" [yellow]โš  No specific commands - check the task above[/yellow]") + + console.print() - for i, cmd in enumerate(suggested_commands, 1): - console.print(f"[bold]{i}. {cmd}[/bold]") + # Track expected commands for matching + self._expected_manual_commands = suggested_commands.copy() if suggested_commands else [] + self._completed_manual_commands: list[str] = [] + # Start terminal monitoring with detailed output self._terminal_monitor = TerminalMonitor( notification_callback=lambda title, msg: self._send_notification(title, msg) ) - self._terminal_monitor.start() + self._terminal_monitor.start(expected_commands=suggested_commands) - console.print("\n[dim]๐Ÿ” Cortex is now monitoring your terminal for issues...[/dim]") + console.print() + console.print("[dim]Type 'done' when finished, 'help' for tips, or 'cancel' to abort[/dim]") + console.print() try: while True: - console.print() - action = Confirm.ask("Have you completed the manual step?", default=True) + try: + user_input = Prompt.ask("[cyan]Status[/cyan]", default="done").strip().lower() + except (EOFError, KeyboardInterrupt): + console.print("\n[yellow]Manual intervention cancelled[/yellow]") + return False - if action: - success = Confirm.ask("Was it successful?", default=True) + # Handle natural language responses + if user_input in ["done", "finished", "complete", "completed", "success", "worked", "yes", "y"]: + # Show observed commands and check for matches + observed = self._terminal_monitor.get_observed_commands() + matched_commands = [] + unmatched_commands = [] - if success: - console.print("[green]โœ“ Manual step completed successfully[/green]") + if observed: + console.print(f"\n[cyan]๐Ÿ“Š Observed {len(observed)} command(s):[/cyan]") + for obs in observed[-5:]: + obs_cmd = obs['command'] + is_matched = False + + # Check if this matches any expected command + for expected in self._expected_manual_commands: + if self._commands_match(obs_cmd, expected): + matched_commands.append(obs_cmd) + self._completed_manual_commands.append(expected) + console.print(f" โ€ข {obs_cmd[:60]}... [green]โœ“[/green]") + is_matched = True + break + + if not is_matched: + unmatched_commands.append(obs_cmd) + console.print(f" โ€ข {obs_cmd[:60]}... [yellow]?[/yellow]") + + # Check if expected commands were actually run + if self._expected_manual_commands and not matched_commands: + console.print() + console.print("[yellow]โš  None of the expected commands were detected.[/yellow]") + console.print("[dim]Expected:[/dim]") + for cmd in self._expected_manual_commands[:3]: + console.print(f" [cyan]$ {cmd}[/cyan]") + console.print() + + # Send notification with correct commands + self._send_notification( + "โš ๏ธ Cortex: Expected Commands", + f"Run: {self._expected_manual_commands[0][:50]}..." + ) + console.print("[dim]Type 'done' again to confirm, or run the expected commands first.[/dim]") + continue # Don't mark as success yet - let user try again + + # Check if any observed commands had errors (check last few) + has_errors = False + if observed: + for obs in observed[-3:]: + if obs.get('has_error') or obs.get('status') == 'failed': + has_errors = True + console.print("[yellow]โš  Some commands may have failed. Please verify.[/yellow]") + break + + if has_errors and not user_input in ["yes", "y", "worked", "success"]: + console.print("[dim]Type 'success' to confirm it worked anyway.[/dim]") + continue + + console.print("[green]โœ“ Manual step completed successfully[/green]") + + if self._task_tree: verify_task = self._task_tree.add_verify_task( parent=task, command="# Manual verification", purpose="User confirmed manual intervention success", ) verify_task.status = CommandStatus.SUCCESS - - return True + + # Mark matched commands as completed so they're not re-executed + if matched_commands: + task.manual_commands_completed = matched_commands + + return True + + elif user_input in ["help", "?", "hint", "tips"]: + console.print() + console.print("[bold]๐Ÿ’ก Manual Intervention Tips:[/bold]") + console.print(" โ€ข Use [cyan]sudo[/cyan] if you see 'Permission denied'") + console.print(" โ€ข Use [cyan]sudo su -[/cyan] to become root") + console.print(" โ€ข Check paths with [cyan]ls -la [/cyan]") + console.print(" โ€ข Check services: [cyan]systemctl status [/cyan]") + console.print(" โ€ข View logs: [cyan]journalctl -u -n 50[/cyan]") + console.print() + + elif user_input in ["cancel", "abort", "quit", "exit", "no", "n"]: + console.print("[yellow]Manual intervention cancelled[/yellow]") + return False + + elif user_input in ["failed", "error", "problem", "issue"]: + console.print() + error_desc = Prompt.ask("[yellow]What error did you encounter?[/yellow]") + error_lower = error_desc.lower() + + # Provide contextual help based on error description + if "permission" in error_lower or "denied" in error_lower: + console.print("\n[cyan]๐Ÿ’ก Try running with sudo:[/cyan]") + for cmd in suggested_commands[:2]: + if not cmd.startswith("sudo"): + console.print(f" [green]sudo {cmd}[/green]") + elif "not found" in error_lower or "no such" in error_lower: + console.print("\n[cyan]๐Ÿ’ก Check if path/command exists:[/cyan]") + console.print(" [green]which [/green]") + console.print(" [green]ls -la [/green]") + elif "service" in error_lower or "systemctl" in error_lower: + console.print("\n[cyan]๐Ÿ’ก Service troubleshooting:[/cyan]") + console.print(" [green]sudo systemctl status [/green]") + console.print(" [green]sudo journalctl -u -n 50[/green]") else: - console.print("\n[yellow]What happened?[/yellow]") - console.print(" 1. Still permission denied") - console.print(" 2. File/path not found") - console.print(" 3. Service error") - console.print(" 4. Other error") - - try: - choice = input("Enter choice (1-4): ").strip() - except (EOFError, KeyboardInterrupt): - return False - - if choice == "1": - console.print("\n[cyan]Try: sudo su - then run the command[/cyan]") - elif choice == "2": - console.print("\n[cyan]Verify the path exists: ls -la [/cyan]") - elif choice == "3": - console.print("\n[cyan]Check service status: systemctl status [/cyan]") - else: - console.print("\n[cyan]Please describe the error and try again[/cyan]") - - retry = Confirm.ask("Continue trying?", default=True) - if not retry: - return False + console.print("\n[cyan]๐Ÿ’ก General debugging:[/cyan]") + console.print(" โ€ข Check the error message carefully") + console.print(" โ€ข Try running with sudo") + console.print(" โ€ข Check if all required packages are installed") + + console.print() + console.print("[dim]Type 'done' when fixed, or 'cancel' to abort[/dim]") + else: - console.print("[dim]Take your time. Cortex is still monitoring...[/dim]") + # Any other input - show status + observed = self._terminal_monitor.get_observed_commands() + console.print(f"[dim]Still monitoring... ({len(observed)} commands observed)[/dim]") + console.print("[dim]Type 'done' when finished, 'help' for tips[/dim]") except KeyboardInterrupt: console.print("\n[yellow]Manual intervention cancelled[/yellow]") return False finally: if self._terminal_monitor: - self._terminal_monitor.stop() + observed = self._terminal_monitor.stop() + # Log observed commands to run + for obs in observed: + run.commands.append(CommandLog( + command=obs["command"], + purpose=f"Manual execution ({obs['source']})", + timestamp=obs["timestamp"], + status=CommandStatus.SUCCESS, + )) self._terminal_monitor = None + + # Clear tracking + self._expected_manual_commands = [] + + def _commands_match(self, observed: str, expected: str) -> bool: + """Check if an observed command matches an expected command. + + Handles variations like: + - With/without sudo + - Different whitespace + - Same command with different args still counts + """ + # Normalize commands + obs_normalized = observed.strip().lower() + exp_normalized = expected.strip().lower() + + # Remove sudo prefix for comparison + if obs_normalized.startswith("sudo "): + obs_normalized = obs_normalized[5:].strip() + if exp_normalized.startswith("sudo "): + exp_normalized = exp_normalized[5:].strip() + + # Exact match + if obs_normalized == exp_normalized: + return True + + obs_parts = obs_normalized.split() + exp_parts = exp_normalized.split() + + # Check for service management commands first (need full match including service name) + service_commands = ["systemctl", "service"] + for svc_cmd in service_commands: + if svc_cmd in obs_normalized and svc_cmd in exp_normalized: + # Extract action and service name + obs_action = None + exp_action = None + obs_service = None + exp_service = None + + for i, part in enumerate(obs_parts): + if part in ["restart", "start", "stop", "reload", "status", "enable", "disable"]: + obs_action = part + # Service name is usually the next word + if i + 1 < len(obs_parts): + obs_service = obs_parts[i + 1] + break + + for i, part in enumerate(exp_parts): + if part in ["restart", "start", "stop", "reload", "status", "enable", "disable"]: + exp_action = part + if i + 1 < len(exp_parts): + exp_service = exp_parts[i + 1] + break + + if obs_action and exp_action and obs_service and exp_service: + if obs_action == exp_action and obs_service == exp_service: + return True + else: + return False # Different action or service + + # For non-service commands, check if first 2-3 words match + if len(obs_parts) >= 2 and len(exp_parts) >= 2: + # Skip if either is a service command (handled above) + if obs_parts[0] not in ["systemctl", "service"] and exp_parts[0] not in ["systemctl", "service"]: + # Compare first two words (command and subcommand) + if obs_parts[:2] == exp_parts[:2]: + return True + + return False + + def get_completed_manual_commands(self) -> list[str]: + """Get list of commands completed during manual intervention.""" + return getattr(self, '_completed_manual_commands', []) def _generate_task_failure_reasoning( self, @@ -2322,16 +3407,7 @@ def provide_manual_instructions( observed = monitor.stop_monitoring() - console.print() - console.print("[bold]๐Ÿ“Š Execution Summary:[/bold]") - - if observed: - console.print(f"[green]Observed {len(observed)} commands in terminal[/green]") - for obs in observed[-10:]: - console.print(f"[dim] โ€ข {obs['command']}[/dim]") - else: - console.print("[yellow]No commands observed (this is normal if bash history sync is disabled)[/yellow]") - + # Add observed commands to the run for obs in observed: run.commands.append(CommandLog( command=obs["command"], @@ -2345,9 +3421,14 @@ def provide_manual_instructions( self.db.save_run(run) + # Generate LLM summary/answer + llm_answer = self._generate_llm_answer(run, user_query) + + # Print condensed execution summary with answer + self._print_execution_summary(run, answer=llm_answer) + console.print() - console.print(f"[bold green]โœ“ Session recorded[/bold green] (ID: {run.run_id})") - console.print(f"[dim]Summary: {run.summary}[/dim]") + console.print(f"[dim]Run ID: {run.run_id}[/dim]") return run @@ -2363,6 +3444,196 @@ def _generate_summary(self, run: DoRun) -> str: else: return f"Executed {successful} commands with {failed} failures ({mode_str}) for: {run.user_query[:50]}" + def _generate_llm_answer(self, run: DoRun, user_query: str) -> str | None: + """Generate an LLM-based answer/summary after command execution.""" + if not self.llm_callback: + return None + + # Collect command outputs + command_results = [] + for cmd in run.commands: + status = "โœ“" if cmd.status == CommandStatus.SUCCESS else "โœ—" if cmd.status == CommandStatus.FAILED else "โ—‹" + result = { + "command": cmd.command, + "purpose": cmd.purpose, + "status": status, + "output": (cmd.output[:500] if cmd.output else "")[:500], # Limit output size + } + if cmd.error: + result["error"] = cmd.error[:200] + command_results.append(result) + + # Build prompt for LLM + prompt = f"""The user asked: "{user_query}" + +The following commands were executed: +""" + for i, result in enumerate(command_results, 1): + prompt += f"\n{i}. [{result['status']}] {result['command']}" + prompt += f"\n Purpose: {result['purpose']}" + if result.get('output'): + # Only include meaningful output, not empty or whitespace-only + output_preview = result['output'].strip()[:200] + if output_preview: + prompt += f"\n Output: {output_preview}" + if result.get('error'): + prompt += f"\n Error: {result['error']}" + + prompt += """ + +Based on the above execution results, provide a helpful summary/answer for the user. +Focus on: +1. What was accomplished +2. Any issues encountered and their impact +3. Key findings or results from the commands +4. Any recommendations for next steps + +Keep the response concise (2-4 paragraphs max). Do NOT include JSON in your response. +Respond directly with the answer text only.""" + + try: + from rich.console import Console + from rich.status import Status + + console = Console() + with Status("[cyan]Generating summary...[/cyan]", spinner="dots"): + result = self.llm_callback(prompt) + + if result: + # Handle different response formats + if isinstance(result, dict): + # Extract answer from various possible keys + answer = result.get("answer") or result.get("response") or result.get("text") or "" + if not answer and "reasoning" in result: + answer = result.get("reasoning", "") + elif isinstance(result, str): + answer = result + else: + return None + + # Clean the answer + answer = answer.strip() + + # Filter out JSON-like responses + if answer.startswith('{') or answer.startswith('['): + return None + + return answer if answer else None + except Exception as e: + # Silently fail - summary is optional + import logging + logging.debug(f"LLM summary generation failed: {e}") + return None + + return None + + def _print_execution_summary(self, run: DoRun, answer: str | None = None): + """Print a condensed execution summary with improved visual design.""" + from rich.panel import Panel + from rich.table import Table + from rich.text import Text + from rich import box + + # Count statuses + successful = [c for c in run.commands if c.status == CommandStatus.SUCCESS] + failed = [c for c in run.commands if c.status == CommandStatus.FAILED] + skipped = [c for c in run.commands if c.status == CommandStatus.SKIPPED] + interrupted = [c for c in run.commands if c.status == CommandStatus.INTERRUPTED] + + total = len(run.commands) + + # Build status header + console.print() + + # Create a status bar + if total > 0: + status_text = Text() + status_text.append(" ") + if successful: + status_text.append(f"โœ“ {len(successful)} ", style="bold green") + if failed: + status_text.append(f"โœ— {len(failed)} ", style="bold red") + if skipped: + status_text.append(f"โ—‹ {len(skipped)} ", style="bold yellow") + if interrupted: + status_text.append(f"โš  {len(interrupted)} ", style="bold yellow") + + # Calculate success rate + success_rate = (len(successful) / total * 100) if total > 0 else 0 + status_text.append(f" ({success_rate:.0f}% success)", style="dim") + + console.print(Panel( + status_text, + title="[bold white on blue] ๐Ÿ“Š Execution Status [/bold white on blue]", + title_align="left", + border_style="blue", + padding=(0, 1), + expand=False, + )) + + # Create a table for detailed results + if successful or failed or skipped: + result_table = Table( + show_header=True, + header_style="bold", + box=box.SIMPLE, + padding=(0, 1), + expand=True, + ) + result_table.add_column("Status", width=8, justify="center") + result_table.add_column("Action", style="white") + + # Add successful commands + for cmd in successful[:4]: + purpose = cmd.purpose[:60] + "..." if len(cmd.purpose) > 60 else cmd.purpose + result_table.add_row("[green]โœ“ Done[/green]", purpose) + if len(successful) > 4: + result_table.add_row("[dim]...[/dim]", f"[dim]and {len(successful) - 4} more completed[/dim]") + + # Add failed commands + for cmd in failed[:2]: + error_short = (cmd.error[:40] + "...") if cmd.error and len(cmd.error) > 40 else (cmd.error or "Unknown") + result_table.add_row("[red]โœ— Failed[/red]", f"{cmd.command[:30]}... - {error_short}") + + # Add skipped commands + for cmd in skipped[:2]: + purpose = cmd.purpose[:50] + "..." if len(cmd.purpose) > 50 else cmd.purpose + result_table.add_row("[yellow]โ—‹ Skip[/yellow]", purpose) + + console.print(Panel( + result_table, + title="[bold] ๐Ÿ“‹ Details [/bold]", + title_align="left", + border_style="dim", + padding=(0, 0), + )) + + # Answer section (for questions) - make it prominent + if answer: + # Clean the answer - remove any JSON-like content that might have leaked + clean_answer = answer + if clean_answer.startswith('{') or '{"' in clean_answer[:50]: + # Looks like JSON leaked through, try to extract readable parts + import re + # Try to extract just the answer field if present + answer_match = re.search(r'"answer"\s*:\s*"([^"]*)"', clean_answer) + if answer_match: + clean_answer = answer_match.group(1) + + # Truncate very long answers + if len(clean_answer) > 500: + display_answer = clean_answer[:500] + "\n\n[dim]... (truncated)[/dim]" + else: + display_answer = clean_answer + + console.print(Panel( + display_answer, + title="[bold white on green] ๐Ÿ’ก Answer [/bold white on green]", + title_align="left", + border_style="green", + padding=(1, 2), + )) + def get_run_history(self, limit: int = 20) -> list[DoRun]: """Get recent do run history.""" return self.db.get_recent_runs(limit) diff --git a/cortex/do_runner/models.py b/cortex/do_runner/models.py index be98dddc6..6f1081b75 100644 --- a/cortex/do_runner/models.py +++ b/cortex/do_runner/models.py @@ -17,6 +17,7 @@ class CommandStatus(str, Enum): FAILED = "failed" SKIPPED = "skipped" NEEDS_REPAIR = "needs_repair" + INTERRUPTED = "interrupted" # Command stopped by Ctrl+Z/Ctrl+C class RunMode(str, Enum): diff --git a/cortex/do_runner/terminal.py b/cortex/do_runner/terminal.py index 187a7da33..47593f6eb 100644 --- a/cortex/do_runner/terminal.py +++ b/cortex/do_runner/terminal.py @@ -1,7 +1,10 @@ """Terminal monitoring for the manual execution flow.""" import datetime +import json +import os import re +import subprocess import threading import time from pathlib import Path @@ -12,46 +15,425 @@ console = Console() +class ClaudeLLM: + """Claude LLM client using the LLMRouter for intelligent error analysis.""" + + def __init__(self): + self._router = None + self._available: bool | None = None + + def _get_router(self): + """Lazy initialize the router.""" + if self._router is None: + try: + from cortex.llm_router import LLMRouter, TaskType + self._router = LLMRouter() + self._task_type = TaskType + except Exception: + self._router = False # Mark as failed + return self._router if self._router else None + + def is_available(self) -> bool: + """Check if Claude API is available.""" + if self._available is not None: + return self._available + + router = self._get_router() + self._available = router is not None and router.claude_client is not None + return self._available + + def analyze_error(self, command: str, error_output: str, max_tokens: int = 300) -> dict | None: + """Analyze an error using Claude and return diagnosis with solution.""" + router = self._get_router() + if not router: + return None + + try: + messages = [ + { + "role": "system", + "content": """You are a Linux system debugging expert. Analyze the command error and provide: +1. Root cause (1 sentence) +2. Solution (1-2 specific commands to fix it) + +IMPORTANT: Do NOT suggest commands that require sudo/root privileges, as they cannot be auto-executed. +Only suggest commands that can run as a regular user, such as: +- Checking status (docker ps, systemctl status --user, etc.) +- User-level config fixes +- Environment variable exports +- File operations in user directories + +If the ONLY fix requires sudo, explain what needs to be done but prefix the command with "# MANUAL: " + +Be concise. Output format: +CAUSE: +FIX: +FIX: """ + }, + { + "role": "user", + "content": f"Command: {command}\n\nError:\n{error_output[:500]}" + } + ] + + response = router.complete( + messages=messages, + task_type=self._task_type.ERROR_DEBUGGING, + max_tokens=max_tokens, + temperature=0.3, + ) + + # Parse response + content = response.content + result = { + "cause": "", + "fixes": [], + "raw": content + } + + for line in content.split("\n"): + line = line.strip() + if line.upper().startswith("CAUSE:"): + result["cause"] = line[6:].strip() + elif line.upper().startswith("FIX:"): + fix = line[4:].strip() + if fix and not fix.startswith("#"): + result["fixes"].append(fix) + + return result + + except Exception as e: + console.print(f"[dim]Claude analysis error: {e}[/dim]") + return None + + +class LocalLLM: + """Local LLM client using Ollama with Mistral (fallback).""" + + def __init__(self, model: str = "mistral"): + self.model = model + self._available: bool | None = None + + def is_available(self) -> bool: + """Check if Ollama with the model is available.""" + if self._available is not None: + return self._available + + try: + result = subprocess.run( + ["ollama", "list"], + capture_output=True, text=True, timeout=5 + ) + self._available = result.returncode == 0 and self.model in result.stdout + if not self._available: + # Try to check if ollama is running at least + result = subprocess.run( + ["curl", "-s", "http://localhost:11434/api/tags"], + capture_output=True, text=True, timeout=5 + ) + if result.returncode == 0: + self._available = self.model in result.stdout + except (subprocess.TimeoutExpired, FileNotFoundError, Exception): + self._available = False + + return self._available + + def analyze(self, prompt: str, max_tokens: int = 200, timeout: int = 10) -> str | None: + """Call the local LLM for analysis.""" + if not self.is_available(): + return None + + try: + import urllib.request + import urllib.error + + # Use Ollama API directly via urllib (faster than curl subprocess) + data = json.dumps({ + "model": self.model, + "prompt": prompt, + "stream": False, + "options": { + "num_predict": max_tokens, + "temperature": 0.3, + } + }).encode('utf-8') + + req = urllib.request.Request( + "http://localhost:11434/api/generate", + data=data, + headers={"Content-Type": "application/json"} + ) + + with urllib.request.urlopen(req, timeout=timeout) as response: + result = json.loads(response.read().decode('utf-8')) + return result.get("response", "").strip() + + except (urllib.error.URLError, json.JSONDecodeError, TimeoutError, Exception): + pass + + return None + + class TerminalMonitor: """ Monitors terminal commands for the manual execution flow. - Monitors multiple sources: - - Bash history file - - Cursor terminal files (if available) - - External terminal output + Monitors ALL terminal sources by default: + - Bash history file (~/.bash_history) + - Zsh history file (~/.zsh_history) + - Fish history file (~/.local/share/fish/fish_history) + - ALL Cursor terminal files (all projects) + - External terminal output files """ - def __init__(self, notification_callback: Callable[[str, str], None] | None = None): + def __init__(self, notification_callback: Callable[[str, str], None] | None = None, use_llm: bool = True): self.notification_callback = notification_callback self._monitoring = False self._monitor_thread: threading.Thread | None = None self._commands_observed: list[dict[str, Any]] = [] self._lock = threading.Lock() - self._cursor_terminals_dir: Path | None = None + self._cursor_terminals_dirs: list[Path] = [] self._expected_commands: list[str] = [] + self._shell_history_files: list[Path] = [] + self._output_buffer: list[dict[str, Any]] = [] # Buffer for terminal output + self._show_live_output = True # Whether to print live output + + # Claude LLM for intelligent error analysis (primary) + self._use_llm = use_llm + self._claude: ClaudeLLM | None = None + self._llm: LocalLLM | None = None # Fallback + if use_llm: + self._claude = ClaudeLLM() + self._llm = LocalLLM(model="mistral") # Keep as fallback + + # Context for LLM + self._session_context: list[str] = [] # Recent commands for context - # Try to find Cursor terminals directory - cursor_base = Path.home() / ".cursor" / "projects" + # Use existing auto-fix architecture + from cortex.do_runner.diagnosis import ErrorDiagnoser, AutoFixer + self._diagnoser = ErrorDiagnoser() + self._auto_fixer = AutoFixer(llm_callback=self._llm_for_autofix if use_llm else None) + + # Notification manager for desktop notifications + self.notifier = self._create_notifier() + + # Discover all terminal sources + self._discover_terminal_sources() + + def _create_notifier(self): + """Create notification manager for desktop notifications.""" + try: + from cortex.notification_manager import NotificationManager + return NotificationManager() + except ImportError: + return None + + def _llm_for_autofix(self, prompt: str) -> dict: + """LLM callback for the AutoFixer.""" + if not self._llm or not self._llm.is_available(): + return {} + + result = self._llm.analyze(prompt, max_tokens=200, timeout=15) + if result: + return {"response": result, "fix_commands": []} + return {} + + def _discover_terminal_sources(self, verbose: bool = False): + """Discover all available terminal sources to monitor.""" + home = Path.home() + + # Reset lists + self._shell_history_files = [] + self._cursor_terminals_dirs = [] + + # Shell history files + shell_histories = [ + home / ".bash_history", # Bash + home / ".zsh_history", # Zsh + home / ".history", # Generic + home / ".sh_history", # Sh + home / ".local" / "share" / "fish" / "fish_history", # Fish + home / ".ksh_history", # Korn shell + home / ".tcsh_history", # Tcsh + ] + + for hist_file in shell_histories: + if hist_file.exists(): + self._shell_history_files.append(hist_file) + if verbose: + console.print(f"[dim]๐Ÿ“ Monitoring: {hist_file}[/dim]") + + # Find ALL Cursor terminal directories (all projects) + cursor_base = home / ".cursor" / "projects" if cursor_base.exists(): for project_dir in cursor_base.iterdir(): - terminals_path = project_dir / "terminals" - if terminals_path.exists(): - self._cursor_terminals_dir = terminals_path - break + if project_dir.is_dir(): + terminals_path = project_dir / "terminals" + if terminals_path.exists(): + self._cursor_terminals_dirs.append(terminals_path) + if verbose: + console.print(f"[dim]๐Ÿ–ฅ๏ธ Monitoring Cursor terminals: {terminals_path.parent.name}[/dim]") + + # Also check for tmux/screen panes + self._tmux_available = self._check_command_exists("tmux") + self._screen_available = self._check_command_exists("screen") + + if verbose: + if self._tmux_available: + console.print("[dim]๐Ÿ“บ Tmux detected - will monitor tmux panes[/dim]") + if self._screen_available: + console.print("[dim]๐Ÿ“บ Screen detected - will monitor screen sessions[/dim]") + + def _check_command_exists(self, cmd: str) -> bool: + """Check if a command exists in PATH.""" + import shutil + return shutil.which(cmd) is not None - def start(self): + def start(self, verbose: bool = True, show_live: bool = True, expected_commands: list[str] | None = None): """Start monitoring terminal for commands.""" - self.start_monitoring() + self.start_monitoring(expected_commands=expected_commands, verbose=verbose, show_live=show_live) - def stop(self): - """Stop monitoring terminal.""" - self.stop_monitoring() + def _is_service_running(self) -> bool: + """Check if the Cortex Watch systemd service is running.""" + try: + result = subprocess.run( + ["systemctl", "--user", "is-active", "cortex-watch.service"], + capture_output=True, text=True, timeout=3 + ) + return result.stdout.strip() == "active" + except Exception: + return False - def start_monitoring(self, expected_commands: list[str] | None = None): - """Start monitoring terminal for commands.""" + def start_monitoring(self, expected_commands: list[str] | None = None, verbose: bool = True, show_live: bool = True, clear_old_logs: bool = True): + """Start monitoring ALL terminal sources for commands.""" self._monitoring = True self._expected_commands = expected_commands or [] + self._show_live_output = show_live + self._output_buffer = [] + self._session_context = [] + + # Mark this terminal as the Cortex terminal so watch hook won't log its commands + os.environ["CORTEX_TERMINAL"] = "1" + + # Record the monitoring start time to filter out old commands + self._monitoring_start_time = datetime.datetime.now() + + # Always clear old watch log to start fresh - this prevents reading old session commands + watch_file = self.get_watch_file_path() + if watch_file.exists(): + # Truncate the file to clear old commands from previous sessions + watch_file.write_text("") + + # Also record starting positions for bash/zsh history files + self._history_start_positions: dict[str, int] = {} + for hist_file in [Path.home() / ".bash_history", Path.home() / ".zsh_history"]: + if hist_file.exists(): + self._history_start_positions[str(hist_file)] = hist_file.stat().st_size + + # Re-discover sources in case new terminals opened + self._discover_terminal_sources(verbose=verbose) + + # Check LLM availability + llm_status = "" + if self._llm and self._use_llm: + if self._llm.is_available(): + llm_status = "\n[green]๐Ÿค– AI Analysis: Mistral (local) - Active[/green]" + else: + llm_status = "\n[yellow]๐Ÿค– AI Analysis: Mistral not available (install with: ollama pull mistral)[/yellow]" + + if verbose: + from rich.panel import Panel + + watch_file = self.get_watch_file_path() + source_file = Path.home() / ".cortex" / "watch_hook.sh" + + # Check if systemd service is running (best option) + service_running = self._is_service_running() + + # Check if auto-watch is already set up + bashrc = Path.home() / ".bashrc" + hook_installed = False + if bashrc.exists() and "Cortex Terminal Watch Hook" in bashrc.read_text(): + hook_installed = True + + # If service is running, we don't need the hook + if service_running: + setup_info = "[bold green]โœ“ Cortex Watch Service is running[/bold green]\n" \ + "[dim]All terminal activity is being monitored automatically![/dim]" + else: + # Not using the service, need to set up hooks + if not hook_installed: + # Auto-install the hook to .bashrc + self.setup_auto_watch(permanent=True) + hook_installed = True # Now installed + + # Ensure source file exists + self.setup_auto_watch(permanent=False) + + # Create a super short activation command + short_cmd = f"source {source_file}" + + # Try to copy to clipboard + clipboard_copied = False + try: + # Try xclip first, then xsel + for clip_cmd in [["xclip", "-selection", "clipboard"], ["xsel", "--clipboard", "--input"]]: + try: + proc = subprocess.run(clip_cmd, input=short_cmd.encode(), capture_output=True, timeout=2) + if proc.returncode == 0: + clipboard_copied = True + break + except (FileNotFoundError, subprocess.TimeoutExpired): + continue + except Exception: + pass + + if hook_installed: + clipboard_msg = "[green]๐Ÿ“‹ Copied to clipboard![/green] " if clipboard_copied else "" + setup_info = "[green]โœ“ Terminal watch hook is installed in .bashrc[/green]\n" \ + "[dim](New terminals will auto-activate)[/dim]\n\n" \ + f"[bold yellow]For EXISTING terminals, paste this:[/bold yellow]\n" \ + f"[bold cyan]{short_cmd}[/bold cyan]\n" \ + f"{clipboard_msg}\n" \ + "[dim]Or type [/dim][green]cortex watch --install --service[/green][dim] for automatic monitoring![/dim]" + + # Send desktop notification with the command + try: + msg = f"Paste in your OTHER terminal:\n\n{short_cmd}" + if clipboard_copied: + msg += "\n\n(Already copied to clipboard!)" + subprocess.run([ + "notify-send", + "--urgency=critical", + "--icon=dialog-warning", + "--expire-time=15000", + "โš ๏ธ Cortex: Activate Terminal Watching", + msg + ], capture_output=True, timeout=2) + except Exception: + pass + else: + setup_info = f"[bold yellow]โš  For real-time monitoring in OTHER terminals:[/bold yellow]\n\n" \ + f"[bold cyan]{short_cmd}[/bold cyan]\n\n" \ + "[dim]Or install the watch service: [/dim][green]cortex watch --install --service[/green]" + + console.print() + console.print(Panel( + "[bold cyan]๐Ÿ” Terminal Monitoring Active[/bold cyan]\n\n" + f"Watching {len(self._shell_history_files)} shell history files\n" + f"Watching {len(self._cursor_terminals_dirs)} Cursor terminal directories\n" + + ("Watching Tmux panes\n" if self._tmux_available else "") + + llm_status + + "\n\n" + setup_info, + title="[bold green]Live Terminal Monitor[/bold green]", + border_style="green", + )) + console.print() + console.print("[dim]โ”€" * 60 + "[/dim]") + console.print("[bold]๐Ÿ“ก Live Terminal Feed:[/bold]") + console.print("[dim]โ”€" * 60 + "[/dim]") + console.print("[dim]Waiting for commands from other terminals...[/dim]") + console.print() self._monitor_thread = threading.Thread(target=self._monitor_loop, daemon=True) self._monitor_thread.start() @@ -61,47 +443,588 @@ def stop_monitoring(self) -> list[dict[str, Any]]: self._monitoring = False if self._monitor_thread: self._monitor_thread.join(timeout=2) + self._monitor_thread = None with self._lock: - return list(self._commands_observed) + result = list(self._commands_observed) + return result + + def stop(self) -> list[dict[str, Any]]: + """Stop monitoring terminal.""" + return self.stop_monitoring() def get_observed_commands(self) -> list[dict[str, Any]]: """Get all observed commands so far.""" with self._lock: return list(self._commands_observed) - def _monitor_loop(self): - """Monitor loop that watches for terminal activity from multiple sources.""" - history_file = Path.home() / ".bash_history" + def test_monitoring(self): + """Test that monitoring is working by showing what files are being watched.""" + console.print("\n[bold cyan]๐Ÿ” Terminal Monitoring Test[/bold cyan]\n") + + # Check shell history files + console.print("[bold]Shell History Files:[/bold]") + for hist_file in self._shell_history_files: + exists = hist_file.exists() + size = hist_file.stat().st_size if exists else 0 + status = "[green]โœ“[/green]" if exists else "[red]โœ—[/red]" + console.print(f" {status} {hist_file} ({size} bytes)") + + # Check Cursor terminal directories + console.print("\n[bold]Cursor Terminal Directories:[/bold]") + for terminals_dir in self._cursor_terminals_dirs: + if terminals_dir.exists(): + files = list(terminals_dir.glob("*.txt")) + console.print(f" [green]โœ“[/green] {terminals_dir} ({len(files)} files)") + for f in files[:5]: # Show first 5 + size = f.stat().st_size + console.print(f" - {f.name} ({size} bytes)") + if len(files) > 5: + console.print(f" ... and {len(files) - 5} more") + else: + console.print(f" [red]โœ—[/red] {terminals_dir} (not found)") + # Check tmux + console.print("\n[bold]Other Sources:[/bold]") + console.print(f" Tmux: {'[green]โœ“ available[/green]' if self._tmux_available else '[dim]not available[/dim]'}") + console.print(f" Screen: {'[green]โœ“ available[/green]' if self._screen_available else '[dim]not available[/dim]'}") + + console.print("\n[yellow]Tip: For bash history to update in real-time, run in your terminal:[/yellow]") + console.print("[green]export PROMPT_COMMAND='history -a'[/green]") + console.print() + + def inject_test_command(self, command: str, source: str = "test"): + """Inject a test command to verify the display is working.""" + self._process_observed_command(command, source) + + def get_watch_file_path(self) -> Path: + """Get the path to the cortex watch file.""" + return Path.home() / ".cortex" / "terminal_watch.log" + + def setup_terminal_hook(self) -> str: + """Generate a bash command to set up real-time terminal watching. + + Returns the command the user should run in their terminal. + """ + watch_file = self.get_watch_file_path() + watch_file.parent.mkdir(parents=True, exist_ok=True) + + # Create a bash function that logs commands + hook_command = f''' +# Cortex Terminal Hook - paste this in your terminal: +export CORTEX_WATCH_FILE="{watch_file}" +export PROMPT_COMMAND='history -a; echo "$(date +%H:%M:%S) $(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" >> "$CORTEX_WATCH_FILE"' +echo "โœ“ Cortex is now watching this terminal" +''' + return hook_command.strip() + + def print_setup_instructions(self): + """Print instructions for setting up real-time terminal watching.""" + from rich.panel import Panel + + watch_file = self.get_watch_file_path() + + console.print() + console.print(Panel( + "[bold yellow]โš  For real-time terminal monitoring, run this in your OTHER terminal:[/bold yellow]\n\n" + f"[green]export PROMPT_COMMAND='history -a; echo \"$(date +%H:%M:%S) $(history 1 | sed \"s/^[ ]*[0-9]*[ ]*//\")\" >> {watch_file}'[/green]\n\n" + "[dim]This makes bash write commands immediately so Cortex can see them.[/dim]", + title="[cyan]Setup Required[/cyan]", + border_style="yellow", + )) + console.print() + + def setup_system_wide_watch(self) -> tuple[bool, str]: + """ + Install the terminal watch hook system-wide in /etc/profile.d/. + + This makes the hook active for ALL users and ALL new terminals automatically. + Requires sudo. + + Returns: + Tuple of (success, message) + """ + import subprocess + + watch_file = self.get_watch_file_path() + profile_script = "/etc/profile.d/cortex-watch.sh" + + # The system-wide hook script + hook_content = f'''#!/bin/bash +# Cortex Terminal Watch Hook - System Wide +# Installed by: cortex do watch --system +# This enables real-time terminal command monitoring for Cortex AI + +# Only run in interactive shells +[[ $- != *i* ]] && return + +# Skip if already set up or if this is the Cortex terminal +[[ -n "$CORTEX_TERMINAL" ]] && return +[[ -n "$__CORTEX_WATCH_ACTIVE" ]] && return +export __CORTEX_WATCH_ACTIVE=1 + +# Watch file location (user-specific) +CORTEX_WATCH_FILE="$HOME/.cortex/terminal_watch.log" +mkdir -p "$HOME/.cortex" 2>/dev/null + +__cortex_last_histnum="" +__cortex_log_cmd() {{ + local histnum="$(history 1 2>/dev/null | awk '{{print $1}}')" + [[ "$histnum" == "$__cortex_last_histnum" ]] && return + __cortex_last_histnum="$histnum" + + local cmd="$(history 1 2>/dev/null | sed "s/^[ ]*[0-9]*[ ]*//")" + [[ -z "${{cmd// /}}" ]] && return + [[ "$cmd" == cortex* ]] && return + [[ "$cmd" == *"watch_hook"* ]] && return + + echo "$cmd" >> "$CORTEX_WATCH_FILE" 2>/dev/null +}} + +# Add to PROMPT_COMMAND (preserve existing) +if [[ -z "$PROMPT_COMMAND" ]]; then + export PROMPT_COMMAND='history -a; __cortex_log_cmd' +else + export PROMPT_COMMAND="${{PROMPT_COMMAND}}; __cortex_log_cmd" +fi +''' + + try: + # Write to a temp file first + import tempfile + with tempfile.NamedTemporaryFile(mode='w', suffix='.sh', delete=False) as f: + f.write(hook_content) + temp_file = f.name + + # Use sudo to copy to /etc/profile.d/ + result = subprocess.run( + ["sudo", "cp", temp_file, profile_script], + capture_output=True, + text=True, + timeout=30 + ) + + if result.returncode != 0: + return False, f"Failed to install: {result.stderr}" + + # Make it executable + subprocess.run( + ["sudo", "chmod", "+x", profile_script], + capture_output=True, + timeout=10 + ) + + # Clean up temp file + Path(temp_file).unlink(missing_ok=True) + + return True, f"โœ“ Installed system-wide to {profile_script}\n" \ + "All NEW terminals will automatically have Cortex watching enabled.\n" \ + "For current terminals, run: source /etc/profile.d/cortex-watch.sh" + + except subprocess.TimeoutExpired: + return False, "Timeout waiting for sudo" + except Exception as e: + return False, f"Error: {e}" + + def uninstall_system_wide_watch(self) -> tuple[bool, str]: + """Remove the system-wide terminal watch hook.""" + import subprocess + + profile_script = "/etc/profile.d/cortex-watch.sh" + + try: + if not Path(profile_script).exists(): + return True, "System-wide hook not installed" + + result = subprocess.run( + ["sudo", "rm", profile_script], + capture_output=True, + text=True, + timeout=30 + ) + + if result.returncode != 0: + return False, f"Failed to remove: {result.stderr}" + + return True, f"โœ“ Removed {profile_script}" + + except Exception as e: + return False, f"Error: {e}" + + def is_system_wide_installed(self) -> bool: + """Check if system-wide hook is installed.""" + return Path("/etc/profile.d/cortex-watch.sh").exists() + + def setup_auto_watch(self, permanent: bool = True) -> tuple[bool, str]: + """ + Set up automatic terminal watching for new and existing terminals. + + Args: + permanent: If True, adds the hook to ~/.bashrc for future terminals + + Returns: + Tuple of (success, message) + """ + watch_file = self.get_watch_file_path() + watch_file.parent.mkdir(parents=True, exist_ok=True) + + # The hook command - excludes cortex commands and source commands + # Uses a function to filter out Cortex terminal commands + # Added: tracks last logged command and history number to avoid duplicates + hook_line = f''' +__cortex_last_histnum="" +__cortex_log_cmd() {{ + # Get current history number + local histnum="$(history 1 | awk '{{print $1}}')" + # Skip if same as last logged (prevents duplicate on terminal init) + [[ "$histnum" == "$__cortex_last_histnum" ]] && return + __cortex_last_histnum="$histnum" + + local cmd="$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" + # Skip empty or whitespace-only commands + [[ -z "${{cmd// /}}" ]] && return + # Skip if this is the cortex terminal or cortex-related commands + [[ "$cmd" == cortex* ]] && return + [[ "$cmd" == *"source"*".cortex"* ]] && return + [[ "$cmd" == *"watch_hook"* ]] && return + [[ -n "$CORTEX_TERMINAL" ]] && return + # Include terminal ID (TTY) in the log - format: TTY|COMMAND + local tty_name="$(tty 2>/dev/null | sed 's|/dev/||' | tr '/' '_')" + echo "${{tty_name:-unknown}}|$cmd" >> {watch_file} +}} +export PROMPT_COMMAND='history -a; __cortex_log_cmd' +''' + marker = "# Cortex Terminal Watch Hook" + + bashrc = Path.home() / ".bashrc" + zshrc = Path.home() / ".zshrc" + + added_to = [] + + if permanent: + # Add to .bashrc if it exists and doesn't already have the hook + if bashrc.exists(): + content = bashrc.read_text() + if marker not in content: + # Add hook AND a short alias for easy activation + alias_line = f'\nalias cw="source {watch_file.parent}/watch_hook.sh" # Quick Cortex watch activation\n' + with open(bashrc, "a") as f: + f.write(f"\n{marker}\n{hook_line}\n{alias_line}") + added_to.append(".bashrc") + else: + added_to.append(".bashrc (already configured)") + + # Add to .zshrc if it exists + if zshrc.exists(): + content = zshrc.read_text() + if marker not in content: + # Zsh uses precmd instead of PROMPT_COMMAND + # Added tracking to avoid duplicates + zsh_hook = f''' +{marker} +typeset -g __cortex_last_cmd="" +cortex_watch_hook() {{ + local cmd="$(fc -ln -1 | sed 's/^[[:space:]]*//')" + [[ -z "$cmd" ]] && return + [[ "$cmd" == "$__cortex_last_cmd" ]] && return + __cortex_last_cmd="$cmd" + [[ "$cmd" == cortex* ]] && return + [[ "$cmd" == *".cortex"* ]] && return + [[ -n "$CORTEX_TERMINAL" ]] && return + # Include terminal ID (TTY) in the log - format: TTY|COMMAND + local tty_name="$(tty 2>/dev/null | sed 's|/dev/||' | tr '/' '_')" + echo "${{tty_name:-unknown}}|$cmd" >> {watch_file} +}} +precmd_functions+=(cortex_watch_hook) +''' + with open(zshrc, "a") as f: + f.write(zsh_hook) + added_to.append(".zshrc") + else: + added_to.append(".zshrc (already configured)") + + # Create a source file for existing terminals + source_file = Path.home() / ".cortex" / "watch_hook.sh" + source_file.write_text(f'''#!/bin/bash +{marker} +{hook_line} +echo "โœ“ Cortex is now watching this terminal" +''') + source_file.chmod(0o755) + source_file.chmod(0o755) + + if added_to: + msg = f"Added to: {', '.join(added_to)}\n" + msg += f"For existing terminals, run: source {source_file}" + return True, msg + else: + return True, f"Source file created: {source_file}\nRun: source {source_file}" + + def remove_auto_watch(self) -> tuple[bool, str]: + """Remove the automatic terminal watching hook from shell configs.""" + marker = "# Cortex Terminal Watch Hook" + removed_from = [] + + for rc_file in [Path.home() / ".bashrc", Path.home() / ".zshrc"]: + if rc_file.exists(): + content = rc_file.read_text() + if marker in content: + # Remove the hook section + lines = content.split("\n") + new_lines = [] + skip_until_blank = False + + for line in lines: + if marker in line: + skip_until_blank = True + continue + if skip_until_blank: + if line.strip() == "" or line.startswith("export PROMPT") or line.startswith("cortex_watch") or line.startswith("precmd_functions"): + continue + if line.startswith("}"): + continue + skip_until_blank = False + new_lines.append(line) + + rc_file.write_text("\n".join(new_lines)) + removed_from.append(rc_file.name) + + # Remove source file + source_file = Path.home() / ".cortex" / "watch_hook.sh" + if source_file.exists(): + source_file.unlink() + removed_from.append("watch_hook.sh") + + if removed_from: + return True, f"Removed from: {', '.join(removed_from)}" + return True, "No hooks found to remove" + + def broadcast_hook_to_terminals(self) -> int: + """ + Attempt to set up the hook in all running bash terminals. + Uses various methods to inject the hook. + + Returns the number of terminals that were set up. + """ + watch_file = self.get_watch_file_path() + hook_cmd = f'export PROMPT_COMMAND=\'history -a; echo "$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" >> {watch_file}\'' + + count = 0 + + # Method 1: Write to all pts devices (requires proper permissions) + try: + pts_dir = Path("/dev/pts") + if pts_dir.exists(): + for pts in pts_dir.iterdir(): + if pts.name.isdigit(): + try: + # This usually requires the same user + with open(pts, "w") as f: + f.write(f"\n# Cortex: Setting up terminal watch...\n") + f.write(f"source ~/.cortex/watch_hook.sh\n") + count += 1 + except (PermissionError, OSError): + pass + except Exception: + pass + + return count + + def _monitor_loop(self): + """Monitor loop that watches ALL terminal sources for activity.""" file_positions: dict[str, int] = {} + last_check_time: dict[str, float] = {} - if history_file.exists(): - try: - file_positions[str(history_file)] = history_file.stat().st_size - except OSError: - pass + # Cortex watch file (real-time if user sets up the hook) + watch_file = self.get_watch_file_path() - if self._cursor_terminals_dir and self._cursor_terminals_dir.exists(): - for term_file in self._cursor_terminals_dir.glob("*.txt"): + # Ensure watch file directory exists + watch_file.parent.mkdir(parents=True, exist_ok=True) + + # Initialize positions for all shell history files - start at END to only see NEW commands + for hist_file in self._shell_history_files: + if hist_file.exists(): try: - file_positions[str(term_file)] = term_file.stat().st_size + file_positions[str(hist_file)] = hist_file.stat().st_size + last_check_time[str(hist_file)] = time.time() except OSError: pass + # Initialize watch file position - ALWAYS start from END of existing content + # This ensures we only see commands written AFTER monitoring starts + if watch_file.exists(): + try: + # Start from current end position (skip ALL existing content) + file_positions[str(watch_file)] = watch_file.stat().st_size + except OSError: + file_positions[str(watch_file)] = 0 + else: + # File doesn't exist yet - will be created, start from 0 + file_positions[str(watch_file)] = 0 + + # Initialize positions for all Cursor terminal files + for terminals_dir in self._cursor_terminals_dirs: + if terminals_dir.exists(): + for term_file in terminals_dir.glob("*.txt"): + try: + file_positions[str(term_file)] = term_file.stat().st_size + except OSError: + pass + # Also check for ext-*.txt files (external terminals) + for term_file in terminals_dir.glob("ext-*.txt"): + try: + file_positions[str(term_file)] = term_file.stat().st_size + except OSError: + pass + + check_count = 0 while self._monitoring: - time.sleep(0.5) + time.sleep(0.2) # Check very frequently (5 times per second) + check_count += 1 - if history_file.exists(): - self._check_file_for_new_commands( - history_file, file_positions, source="bash_history" - ) + # Check Cortex watch file FIRST (this is the real-time one) + if watch_file.exists(): + self._check_watch_file(watch_file, file_positions) - if self._cursor_terminals_dir and self._cursor_terminals_dir.exists(): - for term_file in self._cursor_terminals_dir.glob("*.txt"): + # Check all shell history files + for hist_file in self._shell_history_files: + if hist_file.exists(): + shell_name = hist_file.stem.replace("_history", "").replace(".", "") self._check_file_for_new_commands( - term_file, file_positions, source=f"cursor_terminal:{term_file.stem}" + hist_file, file_positions, source=f"{shell_name}_history" ) + + # Check ALL Cursor terminal directories (these update in real-time!) + for terminals_dir in self._cursor_terminals_dirs: + if terminals_dir.exists(): + project_name = terminals_dir.parent.name + + # IDE terminals - check ALL txt files + for term_file in terminals_dir.glob("*.txt"): + if not term_file.name.startswith("ext-"): + self._check_file_for_new_commands( + term_file, file_positions, + source=f"cursor:{project_name}:{term_file.stem}" + ) + + # External terminals (iTerm, gnome-terminal, etc.) + for term_file in terminals_dir.glob("ext-*.txt"): + self._check_file_for_new_commands( + term_file, file_positions, + source=f"external:{project_name}:{term_file.stem}" + ) + + # Check tmux panes if available (every 5 checks = 1 second) + if self._tmux_available and check_count % 5 == 0: + self._check_tmux_panes() + + # Periodically show we're still monitoring (every 30 seconds) + if check_count % 150 == 0 and self._show_live_output: + console.print(f"[dim]... still monitoring ({len(self._commands_observed)} commands observed so far)[/dim]") + + def _is_cortex_terminal_command(self, command: str) -> bool: + """Check if a command is from the Cortex terminal itself (should be ignored). + + This should be very conservative - only filter out commands that are + DEFINITELY from Cortex's own terminal, not user commands. + """ + cmd_lower = command.lower().strip() + + # Only filter out commands that are clearly from Cortex terminal + cortex_patterns = [ + "cortex ask", + "cortex watch", + "cortex do ", + "cortex info", + "source ~/.cortex/watch_hook", # Setting up the watch hook + ".cortex/watch_hook", + ] + + for pattern in cortex_patterns: + if pattern in cmd_lower: + return True + + # Check if command starts with "cortex " (the CLI) + if cmd_lower.startswith("cortex "): + return True + + # Don't filter out general commands - let them through! + return False + + def _check_watch_file(self, watch_file: Path, positions: dict[str, int]): + """Check the Cortex watch file for new commands (real-time).""" + try: + current_size = watch_file.stat().st_size + key = str(watch_file) + + # Initialize position if not set + # Start from 0 because we clear the file when monitoring starts + # This ensures we capture all commands written after monitoring begins + if key not in positions: + positions[key] = 0 # Start from beginning since file was cleared + + # If file is smaller than our position (was truncated), reset + if current_size < positions[key]: + positions[key] = 0 + + if current_size > positions[key]: + with open(watch_file) as f: + f.seek(positions[key]) + new_content = f.read() + + # Parse watch file - each line is a command + for line in new_content.split("\n"): + line = line.strip() + if not line: + continue + + # Skip very short lines or common noise + if len(line) < 2: + continue + + # Skip if we've already seen this exact command recently + if hasattr(self, '_recent_watch_commands'): + if line in self._recent_watch_commands: + continue + else: + self._recent_watch_commands = [] + + # Keep track of recent commands to avoid duplicates + self._recent_watch_commands.append(line) + if len(self._recent_watch_commands) > 20: + self._recent_watch_commands.pop(0) + + # Handle format with timestamp: "HH:MM:SS command" + if re.match(r'^\d{2}:\d{2}:\d{2}\s+', line): + parts = line.split(" ", 1) + if len(parts) == 2 and parts[1].strip(): + self._process_observed_command(parts[1].strip(), "live_terminal") + else: + # Plain command + self._process_observed_command(line, "live_terminal") + + positions[key] = current_size + + except OSError: + pass + + def _check_tmux_panes(self): + """Check tmux panes for recent commands.""" + import subprocess + try: + # Get list of tmux sessions + result = subprocess.run( + ["tmux", "list-panes", "-a", "-F", "#{pane_id}:#{pane_current_command}"], + capture_output=True, text=True, timeout=1 + ) + if result.returncode == 0: + for line in result.stdout.strip().split("\n"): + if ":" in line: + pane_id, cmd = line.split(":", 1) + if cmd and cmd not in ["bash", "zsh", "fish", "sh"]: + self._process_observed_command(cmd, source=f"tmux:{pane_id}") + except (subprocess.TimeoutExpired, FileNotFoundError, subprocess.SubprocessError): + pass def _check_file_for_new_commands( self, @@ -123,54 +1046,1284 @@ def _check_file_for_new_commands( f.seek(positions[key]) new_content = f.read() - new_commands = self._extract_commands_from_content(new_content, source) - - for cmd in new_commands: - self._process_observed_command(cmd, source) + # For Cursor terminals, also extract output + if "cursor" in source or "external" in source: + self._process_terminal_content(new_content, source) + else: + new_commands = self._extract_commands_from_content(new_content, source) + for cmd in new_commands: + self._process_observed_command(cmd, source) positions[key] = current_size except OSError: pass + def _process_terminal_content(self, content: str, source: str): + """Process terminal content including commands and their output.""" + lines = content.split("\n") + current_command = None + output_lines = [] + + for line in lines: + line_stripped = line.strip() + if not line_stripped: + continue + + # Check if this is a command line (has prompt) + is_command = False + for pattern in [ + r"^\$ (.+)$", + r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+\$ (.+)$", + r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+# (.+)$", + r"^\(.*\)\s*\$ (.+)$", + ]: + match = re.match(pattern, line_stripped) + if match: + # Save previous command with its output + if current_command: + self._process_observed_command_with_output( + current_command, "\n".join(output_lines), source + ) + + current_command = match.group(1).strip() + output_lines = [] + is_command = True + break + + if not is_command and current_command: + # This is output from the current command + output_lines.append(line_stripped) + + # Process the last command + if current_command: + self._process_observed_command_with_output( + current_command, "\n".join(output_lines), source + ) + + def _process_observed_command_with_output(self, command: str, output: str, source: str): + """Process a command with its output for better feedback.""" + # First process the command normally + self._process_observed_command(command, source) + + if not self._show_live_output: + return + + # Then show relevant output if there is any + if output and len(output) > 5: + # Check for errors in output + error_patterns = [ + (r"error:", "Error detected"), + (r"Error:", "Error detected"), + (r"ERROR", "Error detected"), + (r"failed", "Operation failed"), + (r"Failed", "Operation failed"), + (r"permission denied", "Permission denied"), + (r"Permission denied", "Permission denied"), + (r"not found", "Not found"), + (r"No such file", "File not found"), + (r"command not found", "Command not found"), + (r"Cannot connect", "Connection failed"), + (r"Connection refused", "Connection refused"), + (r"Unable to", "Operation failed"), + (r"denied", "Access denied"), + (r"Denied", "Access denied"), + (r"timed out", "Timeout"), + (r"timeout", "Timeout"), + (r"fatal:", "Fatal error"), + (r"FATAL", "Fatal error"), + (r"panic", "Panic"), + (r"segfault", "Crash"), + (r"Segmentation fault", "Crash"), + (r"killed", "Process killed"), + (r"Killed", "Process killed"), + (r"cannot", "Cannot complete"), + (r"Could not", "Could not complete"), + (r"Invalid", "Invalid input"), + (r"Conflict", "Conflict detected"), + (r"\[emerg\]", "Config error"), + (r"\[error\]", "Error"), + (r"\[crit\]", "Critical error"), + (r"\[alert\]", "Alert"), + (r"syntax error", "Syntax error"), + (r"unknown directive", "Unknown directive"), + (r"unexpected", "Unexpected error"), + ] + + for pattern, msg in error_patterns: + if re.search(pattern, output, re.IGNORECASE): + # Show error in bordered panel + from rich.panel import Panel + from rich.text import Text + + output_preview = output[:200] + "..." if len(output) > 200 else output + + error_text = Text() + error_text.append(f"โœ— {msg}\n\n", style="bold red") + for line in output_preview.split('\n')[:3]: + if line.strip(): + error_text.append(f" {line.strip()[:80]}\n", style="dim") + + console.print() + console.print(Panel( + error_text, + title="[red bold]Error[/red bold]", + border_style="red", + padding=(0, 1), + )) + + # Get AI-powered help + self._provide_error_help(command, output) + break + else: + # Show success indicator for commands that completed + if "โœ“" in output or "success" in output.lower() or "complete" in output.lower(): + console.print(f"[green] โœ“ Command completed successfully[/green]") + elif len(output.strip()) > 0: + # Show a preview of the output + output_lines = [l for l in output.split("\n") if l.strip()][:3] + if output_lines: + console.print(f"[dim] Output: {output_lines[0][:60]}{'...' if len(output_lines[0]) > 60 else ''}[/dim]") + + def _provide_error_help(self, command: str, output: str): + """Provide contextual help for errors using Claude LLM and send solutions via notifications.""" + from rich.panel import Panel + from rich.table import Table + import subprocess + + console.print() + + # First, try Claude for intelligent analysis + claude_analysis = None + if self._claude and self._use_llm and self._claude.is_available(): + claude_analysis = self._claude.analyze_error(command, output) + + # Also use the existing ErrorDiagnoser for pattern-based analysis + diagnosis = self._diagnoser.diagnose_error(command, output) + + error_type = diagnosis.get("error_type", "unknown") + category = diagnosis.get("category", "unknown") + description = diagnosis.get("description", output[:200]) + fix_commands = diagnosis.get("fix_commands", []) + can_auto_fix = diagnosis.get("can_auto_fix", False) + fix_strategy = diagnosis.get("fix_strategy", "") + extracted_info = diagnosis.get("extracted_info", {}) + + # If Claude provided analysis, use it to enhance diagnosis + if claude_analysis: + cause = claude_analysis.get("cause", "") + claude_fixes = claude_analysis.get("fixes", []) + + # Show Claude's analysis in bordered panel + if cause or claude_fixes: + from rich.panel import Panel + from rich.text import Text + + analysis_text = Text() + if cause: + analysis_text.append("Cause: ", style="bold cyan") + analysis_text.append(f"{cause}\n\n", style="white") + if claude_fixes: + analysis_text.append("Solution:\n", style="bold green") + for fix in claude_fixes[:3]: + analysis_text.append(f" $ {fix}\n", style="green") + + console.print() + console.print(Panel( + analysis_text, + title="[cyan bold]๐Ÿค– Claude Analysis[/cyan bold]", + border_style="cyan", + padding=(0, 1), + )) + + # Send notification with Claude's solution + if cause or claude_fixes: + notif_title = f"๐Ÿ”ง Cortex: {error_type if error_type != 'unknown' else 'Error'}" + notif_body = cause[:100] if cause else description[:100] + if claude_fixes: + notif_body += f"\n\nFix: {claude_fixes[0]}" + self._send_solution_notification(notif_title, notif_body) + + # Use Claude's fixes if pattern-based analysis didn't find any + if not fix_commands and claude_fixes: + fix_commands = claude_fixes + can_auto_fix = True + + # Show diagnosis in panel (only if no Claude analysis) + if not claude_analysis: + from rich.panel import Panel + from rich.text import Text + from rich.table import Table + + diag_table = Table(show_header=False, box=None, padding=(0, 1)) + diag_table.add_column("Key", style="dim") + diag_table.add_column("Value", style="bold") + + diag_table.add_row("Type", error_type) + diag_table.add_row("Category", category) + if can_auto_fix: + diag_table.add_row("Auto-Fix", f"[green]โ— Yes[/green] [dim]({fix_strategy})[/dim]" if fix_strategy else "[green]โ— Yes[/green]") + else: + diag_table.add_row("Auto-Fix", "[red]โ—‹ No[/red]") + + console.print() + console.print(Panel( + diag_table, + title="[yellow bold]Diagnosis[/yellow bold]", + border_style="yellow", + padding=(0, 1), + )) + + # If auto-fix is possible, attempt to run the fix commands + if can_auto_fix and fix_commands: + actionable_commands = [c for c in fix_commands if not c.startswith("#")] + + if actionable_commands: + # Auto-fix with progress bar + from rich.panel import Panel + from rich.progress import Progress, SpinnerColumn, TextColumn, BarColumn + + console.print() + console.print(Panel( + f"[bold]Running {len(actionable_commands)} fix command(s)...[/bold]", + title="[green bold]๐Ÿ”ง Auto-Fix[/green bold]", + border_style="green", + padding=(0, 1), + )) + + # Send notification that we're fixing the command + self._notify_fixing_command(command, actionable_commands[0]) + + # Run the fix commands + fix_success = self._run_auto_fix_commands(actionable_commands, command, error_type) + + if fix_success: + # Success in bordered panel + from rich.panel import Panel + console.print() + console.print(Panel( + f"[green]โœ“[/green] Auto-fix completed!\n\n[dim]Retry:[/dim] [cyan]{command}[/cyan]", + title="[green bold]Success[/green bold]", + border_style="green", + padding=(0, 1), + )) + + # Send success notification + self._send_fix_success_notification(command, error_type) + else: + pass # Sudo commands shown separately + + console.print() + return + + # Show fix commands in bordered panel if we can't auto-fix + if fix_commands and not claude_analysis: + from rich.panel import Panel + from rich.text import Text + + fix_text = Text() + for cmd in fix_commands[:3]: + if not cmd.startswith("#"): + fix_text.append(f" $ {cmd}\n", style="green") + + console.print() + console.print(Panel( + fix_text, + title="[bold]Manual Fix[/bold]", + border_style="blue", + padding=(0, 1), + )) + + # If error is unknown and no Claude, use local LLM + if error_type == "unknown" and not claude_analysis and self._llm and self._use_llm and self._llm.is_available(): + llm_help = self._llm_analyze_error(command, output) + if llm_help: + console.print() + console.print(f"[dim]{llm_help}[/dim]") + + # Try to extract fix command from LLM response + llm_fix = self._extract_fix_from_llm(llm_help) + if llm_fix: + console.print() + console.print(f"[bold green]๐Ÿ’ก AI Suggested Fix:[/bold green] [cyan]{llm_fix}[/cyan]") + + # Attempt to run the LLM suggested fix + if self._is_safe_fix_command(llm_fix): + console.print("[dim]Attempting AI-suggested fix...[/dim]") + self._run_auto_fix_commands([llm_fix], command, "ai_suggested") + + # Build notification message + notification_msg = "" + if fix_commands: + actionable = [c for c in fix_commands if not c.startswith("#")] + if actionable: + notification_msg = f"Manual fix needed: {actionable[0][:50]}" + else: + notification_msg = description[:100] + else: + notification_msg = description[:100] + + # Send desktop notification + self._send_error_notification(command, notification_msg, error_type, can_auto_fix) + + console.print() + + def _run_auto_fix_commands(self, commands: list[str], original_command: str, error_type: str) -> bool: + """Run auto-fix commands with progress bar and return True if successful.""" + import subprocess + from rich.progress import Progress, SpinnerColumn, TextColumn, BarColumn, TaskProgressColumn + from rich.panel import Panel + from rich.table import Table + + all_success = True + sudo_commands_pending = [] + results = [] + + # Break down && commands into individual commands + expanded_commands = [] + for cmd in commands[:3]: + if cmd.startswith("#"): + continue + # Split by && but preserve the individual commands + if " && " in cmd: + parts = [p.strip() for p in cmd.split(" && ") if p.strip()] + expanded_commands.extend(parts) + else: + expanded_commands.append(cmd) + + actionable = expanded_commands + + # Show each command being run with Rich Status (no raw ANSI codes) + from rich.status import Status + + for i, fix_cmd in enumerate(actionable, 1): + # Check if this needs sudo + needs_sudo = fix_cmd.strip().startswith("sudo ") + + if needs_sudo: + try: + check_sudo = subprocess.run( + ["sudo", "-n", "true"], + capture_output=True, + timeout=5 + ) + + if check_sudo.returncode != 0: + sudo_commands_pending.append(fix_cmd) + results.append((fix_cmd, "sudo", None)) + console.print(f" [dim][{i}/{len(actionable)}][/dim] [yellow]![/yellow] {fix_cmd[:55]}... [dim](needs sudo)[/dim]") + continue + except Exception: + sudo_commands_pending.append(fix_cmd) + results.append((fix_cmd, "sudo", None)) + console.print(f" [dim][{i}/{len(actionable)}][/dim] [yellow]![/yellow] {fix_cmd[:55]}... [dim](needs sudo)[/dim]") + continue + + # Run command with status spinner + cmd_display = fix_cmd[:55] + "..." if len(fix_cmd) > 55 else fix_cmd + + try: + with Status(f"[cyan]{cmd_display}[/cyan]", console=console, spinner="dots"): + result = subprocess.run( + fix_cmd, + shell=True, + capture_output=True, + text=True, + timeout=60 + ) + + if result.returncode == 0: + results.append((fix_cmd, "success", None)) + console.print(f" [dim][{i}/{len(actionable)}][/dim] [green]โœ“[/green] {cmd_display}") + else: + if "password" in (result.stderr or "").lower() or "terminal is required" in (result.stderr or "").lower(): + sudo_commands_pending.append(fix_cmd) + results.append((fix_cmd, "sudo", None)) + console.print(f" [dim][{i}/{len(actionable)}][/dim] [yellow]![/yellow] {cmd_display} [dim](needs sudo)[/dim]") + else: + results.append((fix_cmd, "failed", result.stderr[:60] if result.stderr else "failed")) + all_success = False + console.print(f" [dim][{i}/{len(actionable)}][/dim] [red]โœ—[/red] {cmd_display}") + console.print(f" [dim red]{result.stderr[:80] if result.stderr else 'Command failed'}[/dim red]") + break + + except subprocess.TimeoutExpired: + results.append((fix_cmd, "timeout", None)) + all_success = False + console.print(f" [dim][{i}/{len(actionable)}][/dim] [yellow]โฑ[/yellow] {cmd_display} [dim](timeout)[/dim]") + break + except Exception as e: + results.append((fix_cmd, "error", str(e)[:50])) + all_success = False + console.print(f" [dim][{i}/{len(actionable)}][/dim] [red]โœ—[/red] {cmd_display}") + break + + # Show summary line + success_count = sum(1 for _, s, _ in results if s == "success") + if success_count > 0 and success_count == len([r for r in results if r[1] != "sudo"]): + console.print(f"\n [green]โœ“ All {success_count} command(s) completed[/green]") + + # Show sudo commands in bordered panel + if sudo_commands_pending: + from rich.panel import Panel + from rich.text import Text + + sudo_text = Text() + sudo_text.append("Run these commands manually:\n\n", style="dim") + for cmd in sudo_commands_pending: + sudo_text.append(f" $ {cmd}\n", style="green") + + console.print() + console.print(Panel( + sudo_text, + title="[yellow bold]๐Ÿ” Sudo Required[/yellow bold]", + border_style="yellow", + padding=(0, 1), + )) + + # Send notification about pending sudo commands + self._send_sudo_pending_notification(sudo_commands_pending) + + # Still consider it a partial success if we need manual sudo + return len(sudo_commands_pending) < len([c for c in commands if not c.startswith("#")]) + + return all_success + + def _send_sudo_pending_notification(self, commands: list[str]): + """Send notification about pending sudo commands.""" + try: + import subprocess + + cmd_preview = commands[0][:40] + "..." if len(commands[0]) > 40 else commands[0] + + subprocess.run([ + "notify-send", + "--urgency=normal", + "--icon=dialog-password", + "๐Ÿ” Cortex: Sudo required", + f"Run in your terminal:\n{cmd_preview}" + ], capture_output=True, timeout=2) + + except Exception: + pass + + def _extract_fix_from_llm(self, llm_response: str) -> str | None: + """Extract a fix command from LLM response.""" + import re + + # Look for commands in common formats + patterns = [ + r'`([^`]+)`', # Backtick enclosed + r'^\$ (.+)$', # Shell prompt format + r'^sudo (.+)$', # Sudo commands + r'run[:\s]+([^\n]+)', # "run: command" format + r'try[:\s]+([^\n]+)', # "try: command" format + ] + + for pattern in patterns: + matches = re.findall(pattern, llm_response, re.MULTILINE | re.IGNORECASE) + for match in matches: + cmd = match.strip() + if cmd and len(cmd) > 3 and self._is_safe_fix_command(cmd): + return cmd + + return None + + def _is_safe_fix_command(self, command: str) -> bool: + """Check if a fix command is safe to run automatically.""" + cmd_lower = command.lower().strip() + + # Dangerous commands we should never auto-run + dangerous_patterns = [ + "rm -rf /", + "rm -rf ~", + "rm -rf *", + "> /dev/", + "mkfs", + "dd if=", + "chmod -R 777 /", + "chmod 777 /", + ":(){:|:&};:", # Fork bomb + "wget|sh", + "curl|sh", + "curl|bash", + "wget|bash", + ] + + for pattern in dangerous_patterns: + if pattern in cmd_lower: + return False + + # Safe fix command patterns + safe_patterns = [ + "sudo systemctl", + "sudo service", + "sudo apt", + "sudo apt-get", + "apt-cache", + "systemctl status", + "sudo nginx -t", + "sudo nginx -s reload", + "docker start", + "docker restart", + "pip install", + "npm install", + "sudo chmod", + "sudo chown", + "mkdir -p", + "touch", + ] + + for pattern in safe_patterns: + if cmd_lower.startswith(pattern): + return True + + # Allow sudo commands for common safe operations + if cmd_lower.startswith("sudo "): + rest = cmd_lower[5:].strip() + safe_sudo = ["systemctl", "service", "apt", "apt-get", "nginx", "chmod", "chown", "mkdir"] + if any(rest.startswith(s) for s in safe_sudo): + return True + + return False + + def _send_fix_success_notification(self, command: str, error_type: str): + """Send a desktop notification that the fix was successful.""" + try: + import subprocess + + cmd_short = command[:30] + "..." if len(command) > 30 else command + + subprocess.run([ + "notify-send", + "--urgency=normal", + "--icon=dialog-information", + f"โœ… Cortex: Fixed {error_type}", + f"Auto-fix successful! You can now retry:\n{cmd_short}" + ], capture_output=True, timeout=2) + + except Exception: + pass + + def _send_solution_notification(self, title: str, body: str): + """Send a desktop notification with the solution from Claude.""" + try: + import subprocess + + # Use notify-send with high priority + subprocess.run([ + "notify-send", + "--urgency=critical", + "--icon=dialog-information", + "--expire-time=15000", # 15 seconds + title, + body + ], capture_output=True, timeout=2) + + except Exception: + pass + + def _send_error_notification(self, command: str, solution: str, error_type: str = "", can_auto_fix: bool = False): + """Send a desktop notification with the error solution.""" + try: + # Try to use notify-send (standard on Ubuntu) + import subprocess + + # Truncate for notification + cmd_short = command[:30] + "..." if len(command) > 30 else command + solution_short = solution[:150] + "..." if len(solution) > 150 else solution + + # Build title with error type + if error_type and error_type != "unknown": + title = f"๐Ÿ”ง Cortex: {error_type}" + else: + title = f"๐Ÿ”ง Cortex: Error detected" + + # Add auto-fix indicator + if can_auto_fix: + body = f"โœ“ Auto-fixable\n\n{solution_short}" + icon = "dialog-information" + else: + body = solution_short + icon = "dialog-warning" + + # Send notification + subprocess.run([ + "notify-send", + "--urgency=normal", + f"--icon={icon}", + title, + body + ], capture_output=True, timeout=2) + + except (FileNotFoundError, subprocess.TimeoutExpired, Exception): + # notify-send not available or failed, try callback + if self.notification_callback: + self.notification_callback(f"Error in: {command[:30]}", solution[:100]) + + def _llm_analyze_error(self, command: str, error_output: str) -> str | None: + """Use local LLM to analyze an error and provide a fix.""" + if not self._llm: + return None + + # Build context from recent commands + context = "" + if self._session_context: + context = "Recent commands:\n" + "\n".join(self._session_context[-5:]) + "\n\n" + + prompt = f"""You are a Linux expert. A user ran a command and got an error. +Provide a brief, actionable fix (2-3 sentences max). + +IMPORTANT: Do NOT suggest sudo commands - they cannot be auto-executed. +Only suggest non-sudo commands. If sudo is required, say "requires manual sudo" instead. + +{context}Command: {command} + +Error output: +{error_output[:500]} + +Fix (be specific, give the exact non-sudo command to run):""" + + try: + result = self._llm.analyze(prompt, max_tokens=150, timeout=10) + if result: + return result.strip() + except Exception: + pass + + return None + + def analyze_session_intent(self) -> str | None: + """Use LLM to analyze what the user is trying to accomplish based on their commands.""" + if not self._llm or not self._llm.is_available(): + return None + + if len(self._session_context) < 2: + return None + + prompt = f"""Based on these terminal commands, what is the user trying to accomplish? +Give a brief summary (1 sentence max). + +Commands: +{chr(10).join(self._session_context[-5:])} + +The user is trying to:""" + + try: + result = self._llm.analyze(prompt, max_tokens=50, timeout=15) + if result: + result = result.strip() + # Take only first sentence + if ". " in result: + result = result.split(". ")[0] + "." + return result + except Exception: + pass + + return None + + def get_next_step_suggestion(self) -> str | None: + """Use LLM to suggest the next logical step based on recent commands.""" + if not self._llm or not self._llm.is_available(): + return None + + if len(self._session_context) < 1: + return None + + prompt = f"""Based on these terminal commands, what single command should the user run next? +Respond with ONLY the command, nothing else. + +Recent commands: +{chr(10).join(self._session_context[-5:])} + +Next command:""" + + try: + result = self._llm.analyze(prompt, max_tokens=30, timeout=15) + if result: + # Clean up - extract just the command + result = result.strip() + # Remove common prefixes + for prefix in ["$", "Run:", "Try:", "Next:", "Command:", "`"]: + if result.lower().startswith(prefix.lower()): + result = result[len(prefix):].strip() + result = result.rstrip("`") + return result.split("\n")[0].strip() + except Exception: + pass + + return None + + def get_collected_context(self) -> str: + """Get a formatted summary of all collected terminal context.""" + with self._lock: + if not self._commands_observed: + return "No commands observed yet." + + lines = ["[bold]๐Ÿ“‹ Collected Terminal Context:[/bold]", ""] + + for i, obs in enumerate(self._commands_observed, 1): + timestamp = obs.get("timestamp", "")[:19] + source = obs.get("source", "unknown") + command = obs.get("command", "") + + lines.append(f"{i}. [{timestamp}] ({source})") + lines.append(f" $ {command}") + lines.append("") + + return "\n".join(lines) + + def print_collected_context(self): + """Print a summary of all collected terminal context with AI analysis.""" + from rich.panel import Panel + + with self._lock: + if not self._commands_observed: + console.print("[dim]No commands observed yet.[/dim]") + return + + console.print() + console.print(Panel( + f"[bold]Collected {len(self._commands_observed)} command(s) from other terminals[/bold]", + title="[cyan]๐Ÿ“‹ Terminal Context Summary[/cyan]", + border_style="cyan", + )) + + for i, obs in enumerate(self._commands_observed[-10:], 1): # Show last 10 + timestamp = obs.get("timestamp", "")[:19].split("T")[-1] if "T" in obs.get("timestamp", "") else obs.get("timestamp", "")[:8] + source = obs.get("source", "unknown") + command = obs.get("command", "") + + # Shorten source name + if ":" in source: + source = source.split(":")[-1] + + console.print(f" [dim]{timestamp}[/dim] [cyan]{source:12}[/cyan] [white]{command[:50]}{'...' if len(command) > 50 else ''}[/white]") + + if len(self._commands_observed) > 10: + console.print(f" [dim]... and {len(self._commands_observed) - 10} more commands[/dim]") + + # Add AI analysis if available + if self._llm and self._use_llm and self._llm.is_available() and len(self._session_context) >= 2: + console.print() + console.print("[bold magenta]๐Ÿค– AI Analysis:[/bold magenta]") + + # Analyze intent + intent = self.analyze_session_intent() + if intent: + console.print(f"[white] Intent: {intent}[/white]") + + # Suggest next step + next_step = self.get_next_step_suggestion() + if next_step: + console.print(f"[green] Suggested next: {next_step}[/green]") + + console.print() + def _extract_commands_from_content(self, content: str, source: str) -> list[str]: - """Extract commands from terminal content.""" + """Extract commands from terminal content based on source type.""" commands = [] - if source == "bash_history": - commands = [c.strip() for c in content.strip().split("\n") if c.strip()] + # Shell history files - each line is a command + if "_history" in source or "history" in source: + for line in content.strip().split("\n"): + line = line.strip() + if not line: + continue + # Skip timestamps in zsh extended history format + if line.startswith(":"): + # Format: : timestamp:0;command + if ";" in line: + cmd = line.split(";", 1)[1] + if cmd: + commands.append(cmd) + # Skip fish history format markers + elif line.startswith("- cmd:"): + cmd = line[6:].strip() + if cmd: + commands.append(cmd) + elif not line.startswith("when:"): + commands.append(line) else: + # Terminal output - look for command prompts for line in content.split("\n"): line = line.strip() if not line: continue + # Various prompt patterns prompt_patterns = [ - r"^\$ (.+)$", - r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+\$ (.+)$", - r"^>>> (.+)$", + r"^\$ (.+)$", # Simple $ prompt + r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+\$ (.+)$", # user@host:path$ cmd + r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+# (.+)$", # root prompt + r"^>>> (.+)$", # Python REPL + r"^\(.*\)\s*\$ (.+)$", # (venv) $ cmd + r"^โžœ\s+.+\s+(.+)$", # Oh-my-zsh prompt + r"^โฏ (.+)$", # Starship prompt + r"^โ–ถ (.+)$", # Another prompt style + r"^\[.*\]\$ (.+)$", # [dir]$ cmd + r"^% (.+)$", # % prompt (zsh default) ] for pattern in prompt_patterns: match = re.match(pattern, line) if match: - commands.append(match.group(1)) + cmd = match.group(1).strip() + if cmd: + commands.append(cmd) break return commands def _process_observed_command(self, command: str, source: str = "unknown"): - """Process an observed command.""" + """Process an observed command and notify about issues with real-time feedback.""" + # Skip empty or very short commands + if not command or len(command.strip()) < 2: + return + + command = command.strip() + + # Skip commands from the Cortex terminal itself + if self._is_cortex_terminal_command(command): + return + + # Skip common shell built-ins that aren't interesting (only if standalone) + skip_commands = ["cd", "ls", "pwd", "clear", "exit", "history", "fg", "bg", "jobs", "alias"] + parts = command.split() + cmd_base = parts[0] if parts else "" + + # Also handle sudo prefix + if cmd_base == "sudo" and len(parts) > 1: + cmd_base = parts[1] + + # Only skip if it's JUST the command with no args + if cmd_base in skip_commands and len(parts) == 1: + return + + # Skip if it looks like a partial command or just an argument + if not any(c.isalpha() for c in cmd_base): + return + + # Avoid duplicates within short time window with self._lock: + recent = [c for c in self._commands_observed + if c["command"] == command + and (datetime.datetime.now() - datetime.datetime.fromisoformat(c["timestamp"])).seconds < 5] + if recent: + return + self._commands_observed.append({ "command": command, "timestamp": datetime.datetime.now().isoformat(), "source": source, + "has_error": False, # Will be updated if error is detected + "status": "pending", # pending, success, failed }) + + # Add to session context for LLM + self._session_context.append(f"$ {command}") + # Keep only last 10 commands for context + if len(self._session_context) > 10: + self._session_context = self._session_context[-10:] + + # Real-time feedback with visual emphasis + self._show_realtime_feedback(command, source) + # For live terminal commands, proactively check the result + if source == "live_terminal": + self._check_command_result(command) + + # Check for issues and provide help issues = self._check_command_issues(command) - if issues and self.notification_callback: - self.notification_callback(f"Cortex: Issue in {source}", issues) + if issues: + from rich.panel import Panel + console.print(Panel( + f"[bold yellow]โš  Issue:[/bold yellow] {issues}", + border_style="yellow", + padding=(0, 1), + expand=False, + )) + if self.notification_callback: + self.notification_callback(f"Cortex: Issue detected", issues) + + # Check if command matches expected commands + if self._expected_commands: + matched = self._check_command_match(command) + from rich.panel import Panel + if matched: + console.print(Panel( + "[bold green]โœ“ Matches expected command[/bold green]", + border_style="green", + padding=(0, 1), + expand=False, + )) + else: + # User ran a DIFFERENT command than expected + console.print(Panel( + "[bold yellow]โš  Not in expected commands[/bold yellow]", + border_style="yellow", + padding=(0, 1), + expand=False, + )) + # Send notification with the correct command(s) + self._notify_wrong_command(command) + + def _check_command_match(self, command: str) -> bool: + """Check if a command matches any expected command.""" + if not self._expected_commands: + return True # No expected commands means anything goes + + cmd_normalized = command.strip().lower() + # Remove sudo prefix for comparison + if cmd_normalized.startswith("sudo "): + cmd_normalized = cmd_normalized[5:].strip() + + for expected in self._expected_commands: + exp_normalized = expected.strip().lower() + if exp_normalized.startswith("sudo "): + exp_normalized = exp_normalized[5:].strip() + + # Check for exact match or if command contains the expected command + if cmd_normalized == exp_normalized: + return True + if exp_normalized in cmd_normalized: + return True + if cmd_normalized in exp_normalized: + return True + + # Check if first words match (e.g., "systemctl restart nginx" vs "systemctl restart nginx.service") + cmd_parts = cmd_normalized.split() + exp_parts = exp_normalized.split() + if len(cmd_parts) >= 2 and len(exp_parts) >= 2: + if cmd_parts[0] == exp_parts[0] and cmd_parts[1] == exp_parts[1]: + return True + + return False + + def _notify_wrong_command(self, wrong_command: str): + """Send desktop notification when user runs wrong command.""" + if not self._expected_commands: + return + + # Find the most relevant expected command + correct_cmd = self._expected_commands[0] if self._expected_commands else None + + if correct_cmd: + title = "โš ๏ธ Cortex: Wrong Command" + body = f"You ran: {wrong_command[:40]}...\n\nExpected: {correct_cmd}" + + try: + import subprocess + subprocess.run([ + "notify-send", + "--urgency=critical", + "--icon=dialog-warning", + "--expire-time=10000", + title, + body + ], capture_output=True, timeout=2) + except Exception: + pass + + # Also show in console + console.print(f" [bold yellow]๐Ÿ“ข Expected command:[/bold yellow] [cyan]{correct_cmd}[/cyan]") + + def _notify_fixing_command(self, original_cmd: str, fix_cmd: str): + """Send notification that Cortex is fixing a command error.""" + title = "๐Ÿ”ง Cortex: Fixing Error" + body = f"Command failed: {original_cmd[:30]}...\n\nFix: {fix_cmd}" + + try: + import subprocess + subprocess.run([ + "notify-send", + "--urgency=normal", + "--icon=dialog-information", + "--expire-time=8000", + title, + body + ], capture_output=True, timeout=2) + except Exception: + pass + + def _check_command_result(self, command: str): + """Proactively check if a command succeeded by running verification commands.""" + import subprocess + import time + + # Wait a moment for the command to complete + time.sleep(0.5) + + cmd_lower = command.lower().strip() + check_cmd = None + error_output = None + + # Determine what check to run based on the command + if "systemctl" in cmd_lower: + # Extract service name + parts = command.split() + service_name = None + for i, p in enumerate(parts): + if p in ["start", "stop", "restart", "reload", "enable", "disable"]: + if i + 1 < len(parts): + service_name = parts[i + 1] + break + + if service_name: + check_cmd = f"systemctl status {service_name} 2>&1 | head -5" + + elif "service" in cmd_lower and "status" not in cmd_lower: + # Extract service name for service command + parts = command.split() + if len(parts) >= 3: + service_name = parts[1] if parts[0] != "sudo" else parts[2] + check_cmd = f"service {service_name} status 2>&1 | head -5" + + elif "docker" in cmd_lower: + if "run" in cmd_lower or "start" in cmd_lower: + # Get container name if present + parts = command.split() + container_name = None + for i, p in enumerate(parts): + if p == "--name" and i + 1 < len(parts): + container_name = parts[i + 1] + break + + if container_name: + check_cmd = f"docker ps -f name={container_name} --format '{{{{.Status}}}}' 2>&1" + else: + check_cmd = "docker ps -l --format '{{.Status}} {{.Names}}' 2>&1" + elif "stop" in cmd_lower or "rm" in cmd_lower: + check_cmd = "docker ps -a -l --format '{{.Status}} {{.Names}}' 2>&1" + + elif "nginx" in cmd_lower and "-t" in cmd_lower: + check_cmd = "nginx -t 2>&1" + + elif "apt" in cmd_lower or "apt-get" in cmd_lower: + # Check for recent apt errors + check_cmd = "tail -3 /var/log/apt/term.log 2>/dev/null || echo 'ok'" + + # Run the check command if we have one + if check_cmd: + try: + result = subprocess.run( + check_cmd, + shell=True, + capture_output=True, + text=True, + timeout=5 + ) + + output = result.stdout + result.stderr + + # Check for error indicators in the output + error_indicators = [ + "failed", "error", "not found", "inactive", "dead", + "could not", "unable", "denied", "cannot", "exited", + "not running", "not loaded" + ] + + has_error = any(ind in output.lower() for ind in error_indicators) + + if has_error or result.returncode != 0: + error_output = output + + except (subprocess.TimeoutExpired, Exception): + pass + + # If we found an error, mark the command and process it with auto-fix + if error_output: + console.print(f" [dim]checking...[/dim]") + # Mark this command as having an error + with self._lock: + for obs in self._commands_observed: + if obs["command"] == command: + obs["has_error"] = True + obs["status"] = "failed" + break + self._process_observed_command_with_output(command, error_output, "live_terminal_check") + else: + # Mark as success if check passed + with self._lock: + for obs in self._commands_observed: + if obs["command"] == command and obs["status"] == "pending": + obs["status"] = "success" + break + + def _show_realtime_feedback(self, command: str, source: str): + """Show real-time visual feedback for detected commands.""" + if not self._show_live_output: + return + + from rich.panel import Panel + from rich.text import Text + + # Source icons and labels + source_info = { + "cursor": ("๐Ÿ–ฅ๏ธ", "Cursor IDE", "cyan"), + "external": ("๐ŸŒ", "External Terminal", "blue"), + "tmux": ("๐Ÿ“บ", "Tmux", "magenta"), + "bash": ("๐Ÿ“", "Bash", "green"), + "zsh": ("๐Ÿ“", "Zsh", "green"), + "fish": ("๐ŸŸ", "Fish", "yellow"), + } + + # Determine source type + icon, label, color = "๐Ÿ“", "Terminal", "white" + for key, (i, l, c) in source_info.items(): + if key in source.lower(): + icon, label, color = i, l, c + break + + # Categorize command + cmd_category = self._categorize_command(command) + category_icons = { + "docker": "๐Ÿณ", + "git": "๐Ÿ“ฆ", + "apt": "๐Ÿ“ฆ", + "pip": "๐Ÿ", + "npm": "๐Ÿ“ฆ", + "systemctl": "โš™๏ธ", + "service": "โš™๏ธ", + "sudo": "๐Ÿ”", + "ssh": "๐Ÿ”—", + "curl": "๐ŸŒ", + "wget": "โฌ‡๏ธ", + "mkdir": "๐Ÿ“", + "rm": "๐Ÿ—‘๏ธ", + "cp": "๐Ÿ“‹", + "mv": "๐Ÿ“‹", + "cat": "๐Ÿ“„", + "vim": "๐Ÿ“", + "nano": "๐Ÿ“", + "nginx": "๐ŸŒ", + "python": "๐Ÿ", + "node": "๐Ÿ“—", + } + cmd_icon = category_icons.get(cmd_category, "โ–ถ") + + # Format timestamp + timestamp = datetime.datetime.now().strftime("%H:%M:%S") + + # Store in buffer for later reference + self._output_buffer.append({ + "timestamp": timestamp, + "source": source, + "label": label, + "icon": icon, + "color": color, + "command": command, + "cmd_icon": cmd_icon, + }) + + # Print real-time feedback with bordered section + analysis = self._analyze_command(command) + + from rich.panel import Panel + from rich.text import Text + + # Build command display + cmd_text = Text() + cmd_text.append(f"{cmd_icon} ", style="bold") + cmd_text.append(command, style="bold white") + if analysis: + cmd_text.append(f"\n {analysis}", style="dim italic") + + console.print() + console.print(Panel( + cmd_text, + title=f"[dim]{timestamp}[/dim]", + title_align="right", + border_style="blue", + padding=(0, 1), + )) + + def _categorize_command(self, command: str) -> str: + """Categorize a command by its base command.""" + cmd_parts = command.split() + if not cmd_parts: + return "unknown" + + base = cmd_parts[0] + if base == "sudo" and len(cmd_parts) > 1: + base = cmd_parts[1] + + return base.lower() + + def _analyze_command(self, command: str) -> str | None: + """Analyze a command and return a brief description using LLM or patterns.""" + cmd_lower = command.lower() + + # First try pattern matching for speed + patterns = [ + (r"docker run", "Starting a Docker container"), + (r"docker pull", "Pulling a Docker image"), + (r"docker ps", "Listing Docker containers"), + (r"docker exec", "Executing command in container"), + (r"docker build", "Building Docker image"), + (r"docker stop", "Stopping container"), + (r"docker rm", "Removing container"), + (r"git clone", "Cloning a repository"), + (r"git pull", "Pulling latest changes"), + (r"git push", "Pushing changes"), + (r"git commit", "Committing changes"), + (r"git status", "Checking repository status"), + (r"apt install", "Installing package via apt"), + (r"apt update", "Updating package list"), + (r"pip install", "Installing Python package"), + (r"npm install", "Installing Node.js package"), + (r"systemctl start", "Starting a service"), + (r"systemctl stop", "Stopping a service"), + (r"systemctl restart", "Restarting a service"), + (r"systemctl status", "Checking service status"), + (r"nginx -t", "Testing Nginx configuration"), + (r"curl", "Making HTTP request"), + (r"wget", "Downloading file"), + (r"ssh", "SSH connection"), + (r"mkdir", "Creating directory"), + (r"rm -rf", "Removing files/directories recursively"), + (r"cp ", "Copying files"), + (r"mv ", "Moving/renaming files"), + (r"chmod", "Changing file permissions"), + (r"chown", "Changing file ownership"), + ] + + for pattern, description in patterns: + if re.search(pattern, cmd_lower): + return description + + # Use LLM for unknown commands + if self._llm and self._use_llm and self._llm.is_available(): + return self._llm_analyze_command(command) + + return None + + def _llm_analyze_command(self, command: str) -> str | None: + """Use local LLM to analyze a command.""" + if not self._llm: + return None + + prompt = f"""Analyze this Linux command and respond with ONLY a brief description (max 10 words) of what it does: + +Command: {command} + +Brief description:""" + + try: + result = self._llm.analyze(prompt, max_tokens=30, timeout=5) + if result: + # Clean up the response + result = result.strip().strip('"').strip("'") + # Take only first line + result = result.split("\n")[0].strip() + # Limit length + if len(result) > 60: + result = result[:57] + "..." + return result + except Exception: + pass + + return None def _check_command_issues(self, command: str) -> str | None: """Check if a command has potential issues and return a warning.""" diff --git a/cortex/watch_service.py b/cortex/watch_service.py new file mode 100644 index 000000000..83681a6cf --- /dev/null +++ b/cortex/watch_service.py @@ -0,0 +1,716 @@ +#!/usr/bin/env python3 +""" +Cortex Watch Service - Background terminal monitoring daemon. + +This service runs in the background and monitors all terminal activity, +logging commands for Cortex to use during manual intervention. + +Features: +- Runs as a systemd user service +- Auto-starts on login +- Auto-restarts on crash +- Assigns unique IDs to each terminal +- Excludes Cortex's own terminal from logging +""" + +import datetime +import fcntl +import hashlib +import json +import os +import signal +import subprocess +import sys +import threading +import time +from pathlib import Path +from typing import Any + + +class CortexWatchDaemon: + """Background daemon that monitors terminal activity.""" + + def __init__(self): + self.running = False + self.cortex_dir = Path.home() / ".cortex" + self.watch_log = self.cortex_dir / "terminal_watch.log" + self.terminals_dir = self.cortex_dir / "terminals" + self.pid_file = self.cortex_dir / "watch_service.pid" + self.state_file = self.cortex_dir / "watch_state.json" + + # Terminal tracking + self.terminals: dict[str, dict[str, Any]] = {} + self.terminal_counter = 0 + + # Track commands seen from watch_hook to avoid duplicates with bash_history + self._watch_hook_commands: set[str] = set() + self._recent_commands: list[str] = [] # Last 100 commands for dedup + + # Ensure directories exist + self.cortex_dir.mkdir(parents=True, exist_ok=True) + self.terminals_dir.mkdir(parents=True, exist_ok=True) + + # Setup signal handlers + signal.signal(signal.SIGTERM, self._handle_signal) + signal.signal(signal.SIGINT, self._handle_signal) + signal.signal(signal.SIGHUP, self._handle_reload) + + def _handle_signal(self, signum, frame): + """Handle shutdown signals.""" + self.log(f"Received signal {signum}, shutting down...") + self.running = False + + def _handle_reload(self, signum, frame): + """Handle reload signal (SIGHUP).""" + self.log("Received SIGHUP, reloading configuration...") + self._load_state() + + def log(self, message: str): + """Log a message to the service log.""" + log_file = self.cortex_dir / "watch_service.log" + timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") + with open(log_file, "a") as f: + f.write(f"[{timestamp}] {message}\n") + + def _load_state(self): + """Load saved state from file.""" + if self.state_file.exists(): + try: + with open(self.state_file) as f: + state = json.load(f) + self.terminal_counter = state.get("terminal_counter", 0) + self.terminals = state.get("terminals", {}) + except Exception as e: + self.log(f"Error loading state: {e}") + + def _save_state(self): + """Save current state to file.""" + try: + state = { + "terminal_counter": self.terminal_counter, + "terminals": self.terminals, + "last_update": datetime.datetime.now().isoformat(), + } + with open(self.state_file, "w") as f: + json.dump(state, f, indent=2) + except Exception as e: + self.log(f"Error saving state: {e}") + + def _get_terminal_id(self, pts: str) -> str: + """Generate or retrieve a unique terminal ID.""" + if pts in self.terminals: + return self.terminals[pts]["id"] + + self.terminal_counter += 1 + terminal_id = f"term_{self.terminal_counter:04d}" + + self.terminals[pts] = { + "id": terminal_id, + "pts": pts, + "created": datetime.datetime.now().isoformat(), + "is_cortex": False, + "command_count": 0, + } + + self._save_state() + return terminal_id + + def _is_cortex_terminal(self, pid: int) -> bool: + """Check if a process is a Cortex terminal.""" + try: + # Check environment variables + environ_file = Path(f"/proc/{pid}/environ") + if environ_file.exists(): + environ = environ_file.read_bytes() + if b"CORTEX_TERMINAL=1" in environ: + return True + + # Check command line + cmdline_file = Path(f"/proc/{pid}/cmdline") + if cmdline_file.exists(): + cmdline = cmdline_file.read_bytes().decode("utf-8", errors="ignore") + if "cortex" in cmdline.lower(): + return True + except (PermissionError, FileNotFoundError, ProcessLookupError): + pass + + return False + + def _get_active_terminals(self) -> list[dict]: + """Get list of active terminal processes.""" + terminals = [] + + try: + # Find all pts (pseudo-terminal) devices + pts_dir = Path("/dev/pts") + if pts_dir.exists(): + for pts_file in pts_dir.iterdir(): + if pts_file.name.isdigit(): + pts_path = str(pts_file) + + # Find process using this pts + result = subprocess.run( + ["fuser", pts_path], + capture_output=True, + text=True, + timeout=2 + ) + + if result.stdout.strip(): + pids = result.stdout.strip().split() + for pid_str in pids: + try: + pid = int(pid_str) + is_cortex = self._is_cortex_terminal(pid) + terminal_id = self._get_terminal_id(pts_path) + + # Update cortex flag + if pts_path in self.terminals: + self.terminals[pts_path]["is_cortex"] = is_cortex + + terminals.append({ + "pts": pts_path, + "pid": pid, + "id": terminal_id, + "is_cortex": is_cortex, + }) + except ValueError: + continue + + except Exception as e: + self.log(f"Error getting terminals: {e}") + + return terminals + + def _monitor_bash_history(self): + """Monitor bash history for new commands using inotify if available.""" + history_files = [ + Path.home() / ".bash_history", + Path.home() / ".zsh_history", + ] + + positions: dict[str, int] = {} + last_commands: dict[str, str] = {} # Track last command per file to avoid duplicates + + # Initialize positions to current end of file + for hist_file in history_files: + if hist_file.exists(): + positions[str(hist_file)] = hist_file.stat().st_size + # Read last line to track for dedup + try: + content = hist_file.read_text() + lines = content.strip().split("\n") + if lines: + last_commands[str(hist_file)] = lines[-1].strip() + except Exception: + pass + + # Try to use inotify for more efficient monitoring + try: + import select + import struct + import ctypes + + # Check if inotify is available + libc = ctypes.CDLL("libc.so.6") + inotify_init = libc.inotify_init + inotify_add_watch = libc.inotify_add_watch + + IN_MODIFY = 0x00000002 + IN_CLOSE_WRITE = 0x00000008 + + fd = inotify_init() + if fd < 0: + raise OSError("Failed to initialize inotify") + + watches = {} + for hist_file in history_files: + if hist_file.exists(): + wd = inotify_add_watch(fd, str(hist_file).encode(), IN_MODIFY | IN_CLOSE_WRITE) + if wd >= 0: + watches[wd] = hist_file + + self.log(f"Using inotify to monitor {len(watches)} history files") + + while self.running: + # Wait for inotify event with timeout + r, _, _ = select.select([fd], [], [], 1.0) + if not r: + continue + + data = os.read(fd, 4096) + # Process inotify events + for hist_file in history_files: + key = str(hist_file) + if not hist_file.exists(): + continue + + try: + current_size = hist_file.stat().st_size + + if key not in positions: + positions[key] = current_size + continue + + if current_size < positions[key]: + positions[key] = current_size + continue + + if current_size > positions[key]: + with open(hist_file) as f: + f.seek(positions[key]) + new_content = f.read() + + for line in new_content.split("\n"): + line = line.strip() + # Skip empty, short, or duplicate commands + if line and len(line) > 1: + if last_commands.get(key) != line: + self._log_command(line, "history") + last_commands[key] = line + + positions[key] = current_size + except Exception as e: + self.log(f"Error reading {hist_file}: {e}") + + os.close(fd) + return + + except Exception as e: + self.log(f"Inotify not available, using polling: {e}") + + # Fallback to polling + while self.running: + for hist_file in history_files: + if not hist_file.exists(): + continue + + key = str(hist_file) + try: + current_size = hist_file.stat().st_size + + if key not in positions: + positions[key] = current_size + continue + + if current_size < positions[key]: + # File was truncated + positions[key] = current_size + continue + + if current_size > positions[key]: + with open(hist_file) as f: + f.seek(positions[key]) + new_content = f.read() + + for line in new_content.split("\n"): + line = line.strip() + if line and len(line) > 1: + if last_commands.get(key) != line: + self._log_command(line, "history") + last_commands[key] = line + + positions[key] = current_size + + except Exception as e: + self.log(f"Error reading {hist_file}: {e}") + + time.sleep(0.3) + + def _monitor_watch_hook(self): + """Monitor the watch hook log file and sync to terminal_commands.json.""" + position = 0 + + while self.running: + try: + if not self.watch_log.exists(): + time.sleep(0.5) + continue + + current_size = self.watch_log.stat().st_size + + if current_size < position: + position = 0 + + if current_size > position: + with open(self.watch_log) as f: + f.seek(position) + new_content = f.read() + + for line in new_content.split("\n"): + line = line.strip() + if not line or len(line) < 2: + continue + + # Parse format: TTY|COMMAND (new format from updated hook) + # Skip lines that don't have the TTY| prefix or have "shared|" + if "|" not in line: + continue + + parts = line.split("|", 1) + terminal_id = parts[0] + + # Skip "shared" entries (those come from bash_history monitor) + if terminal_id == "shared": + continue + + # Must have valid TTY format (pts_X, tty_X, etc.) + if not terminal_id or terminal_id == "unknown": + continue + + command = parts[1] if len(parts) > 1 else "" + if not command: + continue + + # Skip duplicates + if self._is_duplicate(command): + continue + + # Mark this command as seen from watch_hook + self._watch_hook_commands.add(command) + + # Log to terminal_commands.json only + self._log_to_json(command, "watch_hook", terminal_id) + + position = current_size + + except Exception as e: + self.log(f"Error monitoring watch hook: {e}") + + time.sleep(0.2) + + def _log_to_json(self, command: str, source: str, terminal_id: str): + """Log a command only to terminal_commands.json.""" + try: + detailed_log = self.cortex_dir / "terminal_commands.json" + entry = { + "timestamp": datetime.datetime.now().isoformat(), + "command": command, + "source": source, + "terminal_id": terminal_id, + } + + with open(detailed_log, "a") as f: + f.write(json.dumps(entry) + "\n") + except Exception as e: + self.log(f"Error logging to JSON: {e}") + + def _is_duplicate(self, command: str) -> bool: + """Check if command was recently logged to avoid duplicates.""" + if command in self._recent_commands: + return True + + # Keep last 100 commands + self._recent_commands.append(command) + if len(self._recent_commands) > 100: + self._recent_commands.pop(0) + + return False + + def _log_command(self, command: str, source: str = "unknown", terminal_id: str | None = None): + """Log a command from bash_history (watch_hook uses _log_to_json directly).""" + # Skip cortex commands + if command.lower().startswith("cortex "): + return + if "watch_hook" in command: + return + if command.startswith("source ") and ".cortex" in command: + return + + # Skip if this command was already logged by watch_hook + if command in self._watch_hook_commands: + self._watch_hook_commands.discard(command) # Clear it for next time + return + + # Skip duplicates + if self._is_duplicate(command): + return + + # For bash_history source, we can't know which terminal - use "shared" + if terminal_id is None: + terminal_id = "shared" + + try: + # Write to watch_log with format TTY|COMMAND + with open(self.watch_log, "a") as f: + f.write(f"{terminal_id}|{command}\n") + + # Log to JSON + self._log_to_json(command, source, terminal_id) + + except Exception as e: + self.log(f"Error logging command: {e}") + + def _cleanup_stale_terminals(self): + """Remove stale terminal entries.""" + while self.running: + try: + active_pts = set() + pts_dir = Path("/dev/pts") + if pts_dir.exists(): + for pts_file in pts_dir.iterdir(): + if pts_file.name.isdigit(): + active_pts.add(str(pts_file)) + + # Remove stale entries + stale = [pts for pts in self.terminals if pts not in active_pts] + for pts in stale: + del self.terminals[pts] + + if stale: + self._save_state() + + except Exception as e: + self.log(f"Error cleaning up terminals: {e}") + + time.sleep(30) # Check every 30 seconds + + def start(self): + """Start the watch daemon.""" + # Check if already running + if self.pid_file.exists(): + try: + pid = int(self.pid_file.read_text().strip()) + os.kill(pid, 0) # Check if process exists + self.log(f"Daemon already running with PID {pid}") + return False + except (ProcessLookupError, ValueError): + # Stale PID file + self.pid_file.unlink() + + # Write PID file + self.pid_file.write_text(str(os.getpid())) + + self.running = True + self._load_state() + + self.log("Cortex Watch Service starting...") + + # Start monitor threads + threads = [ + threading.Thread(target=self._monitor_bash_history, daemon=True), + threading.Thread(target=self._monitor_watch_hook, daemon=True), + threading.Thread(target=self._cleanup_stale_terminals, daemon=True), + ] + + for t in threads: + t.start() + + self.log(f"Cortex Watch Service started (PID: {os.getpid()})") + + # Main loop - just keep alive and handle signals + try: + while self.running: + time.sleep(1) + finally: + self._shutdown() + + return True + + def _shutdown(self): + """Clean shutdown.""" + self.log("Shutting down...") + self._save_state() + + if self.pid_file.exists(): + self.pid_file.unlink() + + self.log("Cortex Watch Service stopped") + + def stop(self): + """Stop the running daemon.""" + if not self.pid_file.exists(): + return False, "Service not running" + + try: + pid = int(self.pid_file.read_text().strip()) + os.kill(pid, signal.SIGTERM) + + # Wait for process to exit + for _ in range(10): + try: + os.kill(pid, 0) + time.sleep(0.5) + except ProcessLookupError: + break + + return True, f"Service stopped (PID: {pid})" + + except ProcessLookupError: + self.pid_file.unlink() + return True, "Service was not running" + except Exception as e: + return False, f"Error stopping service: {e}" + + def status(self) -> dict: + """Get service status.""" + status = { + "running": False, + "pid": None, + "terminals": 0, + "commands_logged": 0, + } + + if self.pid_file.exists(): + try: + pid = int(self.pid_file.read_text().strip()) + os.kill(pid, 0) + status["running"] = True + status["pid"] = pid + except (ProcessLookupError, ValueError): + pass + + if self.watch_log.exists(): + try: + content = self.watch_log.read_text() + status["commands_logged"] = len([l for l in content.split("\n") if l.strip()]) + except Exception: + pass + + self._load_state() + status["terminals"] = len(self.terminals) + + return status + + +def get_systemd_service_content() -> str: + """Generate systemd service file content.""" + python_path = sys.executable + service_script = Path(__file__).resolve() + + return f"""[Unit] +Description=Cortex Terminal Watch Service +Documentation=https://github.com/cortexlinux/cortex +After=default.target + +[Service] +Type=simple +ExecStart={python_path} {service_script} --daemon +ExecStop={python_path} {service_script} --stop +ExecReload=/bin/kill -HUP $MAINPID +Restart=always +RestartSec=5 +StandardOutput=journal +StandardError=journal + +# Security +NoNewPrivileges=true +PrivateTmp=true + +[Install] +WantedBy=default.target +""" + + +def install_service() -> tuple[bool, str]: + """Install the systemd user service.""" + service_dir = Path.home() / ".config" / "systemd" / "user" + service_file = service_dir / "cortex-watch.service" + + try: + # Create directory + service_dir.mkdir(parents=True, exist_ok=True) + + # Write service file + service_file.write_text(get_systemd_service_content()) + + # Reload systemd + subprocess.run(["systemctl", "--user", "daemon-reload"], check=True) + + # Enable and start service + subprocess.run(["systemctl", "--user", "enable", "cortex-watch.service"], check=True) + subprocess.run(["systemctl", "--user", "start", "cortex-watch.service"], check=True) + + # Enable lingering so service runs even when not logged in + subprocess.run(["loginctl", "enable-linger", os.getenv("USER", "")], capture_output=True) + + return True, f"""โœ“ Cortex Watch Service installed and started! + +Service file: {service_file} + +The service will: + โ€ข Start automatically on login + โ€ข Restart automatically if it crashes + โ€ข Monitor all terminal activity + +Commands: + systemctl --user status cortex-watch # Check status + systemctl --user restart cortex-watch # Restart + systemctl --user stop cortex-watch # Stop + journalctl --user -u cortex-watch # View logs +""" + except subprocess.CalledProcessError as e: + return False, f"Failed to install service: {e}" + except Exception as e: + return False, f"Error: {e}" + + +def uninstall_service() -> tuple[bool, str]: + """Uninstall the systemd user service.""" + service_file = Path.home() / ".config" / "systemd" / "user" / "cortex-watch.service" + + try: + # Stop and disable service + subprocess.run(["systemctl", "--user", "stop", "cortex-watch.service"], capture_output=True) + subprocess.run(["systemctl", "--user", "disable", "cortex-watch.service"], capture_output=True) + + # Remove service file + if service_file.exists(): + service_file.unlink() + + # Reload systemd + subprocess.run(["systemctl", "--user", "daemon-reload"], check=True) + + return True, "โœ“ Cortex Watch Service uninstalled" + except Exception as e: + return False, f"Error: {e}" + + +def main(): + """Main entry point.""" + import argparse + + parser = argparse.ArgumentParser(description="Cortex Watch Service") + parser.add_argument("--daemon", action="store_true", help="Run as daemon") + parser.add_argument("--stop", action="store_true", help="Stop the daemon") + parser.add_argument("--status", action="store_true", help="Show status") + parser.add_argument("--install", action="store_true", help="Install systemd service") + parser.add_argument("--uninstall", action="store_true", help="Uninstall systemd service") + + args = parser.parse_args() + + daemon = CortexWatchDaemon() + + if args.install: + success, msg = install_service() + print(msg) + sys.exit(0 if success else 1) + + if args.uninstall: + success, msg = uninstall_service() + print(msg) + sys.exit(0 if success else 1) + + if args.status: + status = daemon.status() + print(f"Running: {status['running']}") + if status['pid']: + print(f"PID: {status['pid']}") + print(f"Terminals tracked: {status['terminals']}") + print(f"Commands logged: {status['commands_logged']}") + sys.exit(0) + + if args.stop: + success, msg = daemon.stop() + print(msg) + sys.exit(0 if success else 1) + + if args.daemon: + daemon.start() + else: + parser.print_help() + + +if __name__ == "__main__": + main() + diff --git a/data/apt_training_data.json b/data/apt_training_data.json new file mode 100644 index 000000000..38124c6a5 --- /dev/null +++ b/data/apt_training_data.json @@ -0,0 +1,168331 @@ +[ + { + "query": "system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "i'd like to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "gz files", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ready to need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "machine learning environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "PODCAST RECORDING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I'm trying to can you install neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "looking to firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "profiling tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "i want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "download with curl asap", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I'd like to ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "please system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I'd like to antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up server monitoring setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "install htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "i want to share files on my network quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "HOPING TO GO RIGHT NOW", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "put mariadb-server on my system", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "GIVE ME DOCKER.IO QUICKLY", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "gotta want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "Z shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "give me gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "get podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I'm trying to podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "get php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "unzip files", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I want ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "configure 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "performance monitoring now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "rust language for me", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "give me golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "set up tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "please new to ubuntu, want to start programming quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to learn Rust for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "okular viewer quickly", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "please llvm compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "how do I 'm worried about hackers quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "full stack developement setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "make my computer a server right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I WANT TO EDIT PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Mysql server installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "deep learning setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "set up everything for full stack already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "JAVA ANT", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "bzip compress now", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I'D LIKE TO VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Samba server!", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "get mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I need calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "give me fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "desktop virtualization now", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "gotta samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'm trying to my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "HELP ME TERMINAL SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "time to want to record audio quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "PROFILING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "need to want gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I NEED IN-MEMORY CACHING ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "terminal info", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "TIME TO MAKE MY COMPUTER READY FOR PYTHON!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "looking to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "can you install virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "add virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "how do I protect my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need to write research papers thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "give me virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "i'm trying to nstall p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I need mysql-server thanks", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "mysql", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "could you my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "WANNA NEED OBS-STUDIO", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "okular please", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "can you set up fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "how do I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Java development kit", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "get mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "hoping to want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want to set up lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "virus scanning tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "vagrant tool", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Wanna need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "java build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I need rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "Network analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "add audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Give me unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "time to need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "ready to audio convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "set up jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "get maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "put bat on my system", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "GNUPG PLEASE", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Looking to want to do penetration testing quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "install nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "i need a file servr right now", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I WANT TO DO PENETRATION TESTING", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "i need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "vagrant tool", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "configure update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "can you install openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "can you want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "resource monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "get clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "how do i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "crypto tool on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "vim editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "GETTING READY TO GO LIVE?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "about to academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "How do i developer tools please on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I need tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "add gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "gcc compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "time to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "ADD FFMPEG FOR ME", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ssh daemon", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "gotta video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "7z please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "CS homework setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "could you add gzip thanks", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "looking to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "sqlite", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "get wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I need vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "Slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "Can you install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you install vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I need python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "orchestration", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "let's python development environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "wanna add okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Get redis-server?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "set up neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "gotta need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "could you 'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "gotta netcat please", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I'M TRYING TO EMBEDDED DB RIGHT NOW", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "profiling tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I need vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "run VMs with VirtualBox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "directory tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "exa please", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "llvm compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "can you install unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "put code on my system", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "prepare for database work on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "network diagnostics on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "get docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "give me apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "REDIS SERVER PLEASE THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "ready to spreadsheet", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up bat right now", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "docker engine", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I'm starting a YouTube channel on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "can you install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "developer tools please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "vlc player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "SET UP A DATABASE SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "VISUAL STUDIO CODE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I WANT FAST CACHING FOR MY APP", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "redis", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "let's ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I NEED DEFAULT-JDK", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I need zip asap", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "mongo", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I want qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "sound editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "about to download manager!", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "C DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "give me gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "configure file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "TIME TO PREPARE MY SYSTEM FOR WEB PROJECTS", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "fail2ban tool", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "add net-tools asap", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "TLS", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "can you need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to find bugs in my code asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "LOOKING TO BZ2 FILES", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "install ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "I'M DOING A DATA PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "let's fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "WORD PROCESSING AND SPREADSHEETS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "emacs please?", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I need yarn?", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "help me want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "key-value store", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "KID-FRIENDLY CODING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ABOUT TO NEED RUST COMPILER", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I want fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "configure bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "default-jdk please", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "install default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "educational programming setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "please 'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "roboto font now", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "get python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "CAN YOU INSTALL NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "remote connect", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I NEED TO WORK WITH PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ready to zip files up", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "can you npm please", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "scan network", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "i want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do i embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "COULD YOU WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "put nginx on my system", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I want to use MySQL", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "can you 'm worried about hackers on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "HG", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "i need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I WANT TO EDIT PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Ready to want to self-host my apps on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'd like to nodejs runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "install evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I need nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "memory leaks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "help me 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "BASIC TEXT EDITING", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ABOUT TO VAGRANT PLEASE ON MY COMPUTER", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "visual studio code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'm trying to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "calibre please", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to secure my server on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Make my computer ready for frontend work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "docker", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "Javascript runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I'm trying to caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "make my computer ready for frontend work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "let's cross-platform make", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "set up nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "configure cat with syntax", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "My professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need nodejs on this machine", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "time to samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "HELP ME WANT EXA", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I want to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "system administration tools?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "need to gnu emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I want to record audio now", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "create zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "i want remote access to my servr now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "scientific document preparation?", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "ltrace please", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "could you network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "prepare for data science?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I NEED UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I want to nstall code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "media tool", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "databse environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "add virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "gotta set up mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want to record audio now", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "let's vagrant vms asap", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "add pyton3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "let's upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "HELP ME LIVE STREAMING SOFTWARE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "i want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want a cool system display?", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Can you want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "get qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "set up mysql databse", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "need to get bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "help me can you install curl on this machine", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you install mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "BACKUP SOLUTION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "file sharing setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Ready to want to self-host my apps please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "looking to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "install htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I want to code in Java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "put obs-studio on my system", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "put clamav on my system", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "redis", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "need to nstall gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "MICROCONTROLLER PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "can you install nmap already", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I'd like to python3 interpreter", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "gdb debugger already", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Redis server please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "install fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I WANT FAST CACHING FOR MY APP", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I want npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "Ready to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "put golang-go on my system", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "can you install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "Backup tools on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "configure prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I WANT TO CODE IN PYTHON FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "could you want ruby thanks", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want to can you install zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "ip tool", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "please 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "hoping to network diagnostics asap", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ZIP FILES UP", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "svn", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "programming font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "please add default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "GAME ENGINE SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "i need to 'm learning go language on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I need to debug my programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "add tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "wanna prepare my system for web projects asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "time to streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "HOPING TO 'M LEARNING JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "ready to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I want curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "default-jdk please", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I want unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "add neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want to graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "screen please", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "ip command", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "NEED IN-MEMORY CACHING", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need subversion!", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "give me python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "could you want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "ip tool", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "need to lightweight database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "terminal editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "get ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up Docker on my machine!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "LOOKING TO SET UP A DATABASE SERVER ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "spreadsheet", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "put postgresql on my system", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "malware protection thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Music production environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "REPAIR PACKAGE SYSTEM", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "servr automation environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "please need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "run Windows on Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "set up redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "HOPING TO C/C++ SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "give me screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "Could you devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "give me unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "mariadb database", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I want tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "install neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "give me docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "fancy htop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "ready to put lua5.4 on my system", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I want gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I need jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "let's redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Profiling tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "i want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "add ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "nano please", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Need to add screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "redis-server please", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "ABOUT TO OPTIMIZE MY MACHINE THANKS", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "time to network debugging tools!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "put curl on my system", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "wanna want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "extract rar on my system", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I want to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "set up Python on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "install unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "could you streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "can you want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "looking to notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "i need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "virtual machine", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "COULD YOU ADD FISH", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "add vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "READY TO WANT TO SCAN FOR VIRUSES", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want to track my code changes!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "about to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "certificates", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "vbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "install mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "curl tool", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I need to fetch things from the web on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I need to want to host a website quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "fd", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I NEED TO TEST DIFFERENT OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "give me fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "qemu emulator thanks", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "preparing for deployment already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "give me calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "neovim please quickly", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "can you install imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "WANNA NEED TO CREATE A WEBSITE", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I WANT TO RUN A WEBSITE LOCALLY ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "help me set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "fish please on this machine", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "can you install p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Need to source code management asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "PUT EVINCE ON MY SYSTEM", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "ABOUT TO 'M STARTING A YOUTUBE CHANNEL", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'm worried about hackers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "looking to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "get mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "better terminal setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "configure network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "give me nano?", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "time to want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "tcpdump tool", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Gotta need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "GIVE ME NETCAT", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "SET UP GOLANG-GO", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "update everything on my system please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "javascript packages now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "let's mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "install fzf quickly", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "BASIC DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "wanna get gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "install calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "CAN YOU DOCKER COMPOSE ENVIRONMENT!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "help me 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "document db", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "google font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "add curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "can you want to watch videos please", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "time to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "clean up my computer on my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "postgresql database", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "LET'S ANTIVIRUS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "production server setup!", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "put redis-server on my system thanks", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "get gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "get ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "get maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "add zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "set up want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "about to word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'm trying to download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "looking to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "put netcat on my system", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "could you want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "please media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to video editing setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "get make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "indie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "time to orchestration for me", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "streaming setup for twitch please", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "SET UP FOR AI DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GET FFMPEG ON MY SYSTEM", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "help me apache", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "java", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "sound editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "preparing for deployment thanks", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ebook management thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "can you install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "oh my zsh now", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "vm software", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I want to modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I need to connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "add calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "how do i postgres db", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Trace syscalls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "about to can you install valgrind thanks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "can you install fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I'd like to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "i'm trying to docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "how do I 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "looking to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "about to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "How do i set up gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "apache ant thanks", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "i want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "How do i set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "wireshark please", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I WANT THE SIMPLEST EDITOR", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "looking to want neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "add wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "help me add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I NEED SCREENFETCH", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "PUT VAGRANT ON MY SYSTEM", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "SET UP A DATABASE SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "about to give me net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "hoping to want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "need to put tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "please want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "get jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "looking to want to extract archives already", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "put cmake on my system", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "how do I set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "put redis-server on my system", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "wanna want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I need rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "I need to check resource usage", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "set up wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "set up Python on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I WANT TO VIDEO PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "can you install gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "set up better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "show specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "gotta need fonts-firacode!", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "add ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I want to prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "HOSTING ENVIRONMENT SETUP ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "how do I need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "qemu please", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I'm trying to want to automate server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "add ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "put okular on my system", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I need to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "WANNA EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you install docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "embedded db", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "add vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "get audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "system maintenance", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "GET INKSCAPE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need to can you install perl now", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "data backup environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need to add apache2!", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "system calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "install rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "reverse proxy", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "gotta add strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "can you install iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "GNU DEBUGGER ASAP", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "wanna need to check resource usage", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "put php on my system", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "how do I cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "put python3-pip on my system", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "tcpdump please", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "NETWORK FILE SHARING", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "install obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "golang", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "set up compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "performance monitoring please", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want to orchestrate containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "wanna n-memory database", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "SSH server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Managing multiple servers quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'd like to 'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I'd like to want emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "help me nfrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "add fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "need to want ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "SET UP TERMINAL SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "terminal editor right now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "set up Redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "put strace on my system", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I'm worried about hackers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "could you encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "help me remote login capability on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I need mysql for my project for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "give me subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I want htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "i need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "help me want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "give me net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "about to ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "i want git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "ready to gz files on this machine", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "source code management?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "can you install tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "image editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "please better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "can you graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "i'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "python venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "PDF TOOLS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "give me emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "give me fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "python environments", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "can you install code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I'm trying to network security analysis please", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "photo editing setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Memory leaks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "need to streaming setup for twitch for me", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "jdk insatllation now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Improve my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "looking to network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "ifconfig", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Please open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "gnupg please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "friendly shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "GET NANO", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "how do i lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Get gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "ethical hacking setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "i need valgrind!", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need Ansible for automation", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "MAVEN BUILD", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "better python shell", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I'D LIKE TO PREPARE FOR FULL STACK WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "CAN YOU NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "DATA BACKUP ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "hoping to web development environment please now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Give me mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want to system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "hoping to get yarn quickly", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want to use containers now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "ripgrep search now", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "Help me want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "install xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I'm trying to add gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "improve my command line asap", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Add btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "put openssl on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "looking to 'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "clamav scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "network tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "gzip please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "docker", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "configure set up subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "configure virus scanning tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "wanna coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to write code for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "virtual machine", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "give me unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "need to protect my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "can you curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "want g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "trace syscalls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "gotta ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I WANT TO WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I'd like to streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Audio convert already", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "json tool asap", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "mysql db", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "looking to nstall screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "lzma", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "prepare for ML work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "rootless containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "Gnu c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "about to server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "gnu make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "PDF MANIPULATION", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "time to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "wanna add gradle quickly", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Put imagemagick on my system!", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "how do I power user terminal on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "hoping to want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "hardware project with sensors thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "text editing software already", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "can you install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "i need gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "production server setup?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "productivity software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up everything for full stack quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "help me game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "help me php language", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "need to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "put perl on my system please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "configure live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i'm learning python programming thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "hoping to office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "interactive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "add ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "how do I jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "help me want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "wanna want to program arduino on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "GOTTA CAN YOU INSTALL WIRESHARK", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Podcast recording tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "gotta managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "MICROCONTROLLER PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "microsoft code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "can you install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "time to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "NOSQL DATABASE", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "hoping to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "put subversion on my system", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I want a cool system display", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "hoping to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "install fish quickly", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "fzf tool", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "How do i virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "screen sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "http client", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "audio production setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "please python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to docker with compose setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "SECURITY HARDENING", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "INDIE GAME DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "GOTTA SERVER AUTOMATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "port scanner quickly", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "CAN YOU INSTALL APACHE2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "give me openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "terminal system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "put subversion on my system", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "pdf viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "could you need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want to system monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "get code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "get python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "need to llvm compiler on my system", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "wanna fast grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I want to hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "install wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "add subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "wanna set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "could you cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "how do i get git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I want to have a raspberry pi project please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "time to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "add yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "i need emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I need to work with images quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "give me wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "could you virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "get lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "add nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "HELP ME WANT TO CODE IN PYTHON", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "put neovim on my system", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "need to my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "put nodejs on my system", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need to check resource usage?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "please remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Ready to give me wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "file download tools!", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "install ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "gotta packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "LET'S OPEN WEBSITES", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "My apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "gotta upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "convert images", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "put fonts-roboto on my system", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Can you network debugging tools", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "configure ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "need to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "how do I mvn", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "hoping to golang", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "Please easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want to run virtual machines right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I need mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "ready to need a text editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "please nfrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "malware protection", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "give me openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I'm trying to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "install exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "get tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "set up code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "add unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "put tmux on my system", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "can you install vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "let's give me imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "prepare for coding please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "CAN YOU SQLITE DATABASE FOR ME", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I need screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'm trying to set up tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "HOW DO I GRAPHIC DESIGN TOOLS!", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "get gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "help me working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "node", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I want wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "make my computer ready for frontend work!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Set up net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'm trying to database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "time to want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ready to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "docker compose environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "subversion vcs", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I need to video playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "network security analysis on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "let's set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want the simplest editor!", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "audio editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "set up ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "SET UP EVERYTHING FOR FULL STACK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "get git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "install curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "put vim on my system", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Set up for microservices on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I need valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "javascript runtime!", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "set up homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "give me tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "SET UP RUN WINDOWS ON LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "let's just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to java", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "MAVEN BUILD RIGHT NOW", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "iot developmnt environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "hoping to audio production setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "could you database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "wanna file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "PLEASE BAT TOOL", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Zip files up right now", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I want to want nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I need to troubleshoot network issues!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "please fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "p7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "set up calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "about to add code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "file sharing setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "add openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "virtualenv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "add qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "help me need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "need to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "put libreoffice on my system", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you install python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "i need to play video files on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "get zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "set up MySQL database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I need to test different OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "can you just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "package manager issues on my computer", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "CONTAINERIZATION", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I need Git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "looking to team communication tool", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "looking to nstall nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "help me network diagnostics thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "can you set up docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "need to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want to use containers on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Prepare for ml work right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to read ebooks quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "screen fetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "get postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "lua language on my computer", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "ABOUT TO MY PROFESSOR WANTS US TO USE LINUX ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "looking to prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I NEED TO WANT TO SEE SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please add ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "fix insatllation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "give me screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "i'm starting to program!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "configure want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "please 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "WANNA NEED TO TEST DIFFERENT OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "gotta basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "install postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Help me need ansible for automation!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "please need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "configure show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "nstall netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "Prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "LATEX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "rar files", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set me up for web developement", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to use containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'd like to give me unzip for me", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "ready to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "get fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I need xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "i want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Add imagemagick for me", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "could you hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "apache ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "about to multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "javascript packages", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "get ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "better cat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "my friend said I should try Linux development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I just switched from Windows and want to code asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "GET SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "database environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to word processor", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "fancy htop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "Need to java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "install python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "time to get tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "i want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "let's want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "get mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "add nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "set up vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "'m learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "about to want to orchestrate containers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ssh client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "JAVA SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I want vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "hoping to library calls on my computer", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "gotta running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I WANT TO CODE IN JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "set up gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "JDK INSTALLATION ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "i want to chat with my team asap", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Redis server please now", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "add clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "i want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want to backup my files!", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "video player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "set up prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "evince please", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "java build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "SET UP FRESH INSTALL, NEED DEV TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Give me screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "New to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "download manager now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "PUT GNUPG ON MY SYSTEM", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "configure need btop thanks", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "FILE SHARING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "'m starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "get tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "i need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "BTOP MONITOR", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "docker", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "CAN YOU INSTALL XZ-UTILS", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "about to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "system monitoring tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "put wireshark on my system", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "tcpdump tool on my computer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "MySQL server installation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "configuration management tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "get perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "wget tool", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "could you video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Hoping to coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to spreadsheet", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ban hackers", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "need to need to debug my programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "nginx servre asap", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "get sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "SYSTEM UPDATE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Obs setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm trying to backup solution setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "give me npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "go development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "could you file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "upgrade all packages asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "hoping to nstall openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "ready to web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I need to gnu c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I'd like to add vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "PDF TOOLS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "can you teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Help me cmake please", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "hoping to want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "tree command", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "give me php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I'M STARTING A YOUTUBE CHANNEL", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Hoping to word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Need to compile code on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "could you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "put p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I'm trying to 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "LOOKING TO ADD OBS-STUDIO", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "TERMINAL SESSIONS", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I WANT TO SHARE FILES ON MY NETWORK", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "let's debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "MySQL server installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'd like to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to virtualization", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "add fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "can you install wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "set up can you install mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "OPTIMIZE MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Ready to prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Power user terminal right now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Better ls for me", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "BACKUP TOOLS!", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "need to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Postgres", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "gotta audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you install sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "give me inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "about to go development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "install docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "could you text editing software for me", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "get okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "'m making a podcast on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "class assignment needs shell!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to need to debug my programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Please have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I need clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "php please", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "gotta pdf manipulation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "unrar tool", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "DOCKER COMPOSE ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to need apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "set up system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need to can you install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "music production environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I need xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "gotta 'm learning java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I WANT TO WRITE PAPERS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Zip files", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "how do I c/c++ setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "7Z ASAP", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need to compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I need gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "time to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "could you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Set up redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i'd like to want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "Virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need gcc?", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "set up want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "can you embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "READY TO FREE UP DISK SPACE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "JAVA BUILD", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I'm deploying to production please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do I give me virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "get wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "help me python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I need to want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Set up ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you profiling tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "'m starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "need to fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "set up inkscape quickly", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "install nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "about to want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ready to modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "security testing tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Time to security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "about to want to run virtual machines on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want to share files on my network?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "network scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "ready to want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Let's virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want to watch videos now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "php language", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "Configuration management tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I'M TRYING TO ADD EVINCE", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "put clang on my system", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "nosql databse", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "hoping to 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "xz files", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "gotta data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "TERMINAL PRODUCTIVITY TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "install bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "can you install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "set up bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "ADD UNRAR", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "remote connect?", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "python3-venv please", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "okular viewer on my computer", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "source control", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "LET'S 'M STARTING TO PROGRAM", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gzip compress", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "system calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "looking to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I want to make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "put apache2 on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "can you vlc player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "add gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I'm trying to virtualbox please already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "get subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I'd like to ethical hacking setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "help me put inkscape on my system", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "give me gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I'd like to streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "ready to cmake build", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "set up gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "google font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "i want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "about to gcc compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I need inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "PLEASE GCC PLEASE FOR ME", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "Educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "gotta need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "HELP ME WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "please want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "clang compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "put jq on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "get iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "mercurial please", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "can you install fzf!", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "add ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "I'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "gdb debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "help me want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I want podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "how do I new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT FAST CACHING FOR MY APP", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "rar files", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "mariadb-server please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "set up wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "get clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "hoping to prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Let's want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "SYSTEM MONITORING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "install fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "want to analyze network traffic on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "kid-friendly coding environment asap", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "INDIE GAME DEVELOPMENT ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "get openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "ready to add neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I'D LIKE TO JUPYTER LAB", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "can you can you install fonts-hack thanks", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "install gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "wanna can you install docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "nstall ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "put exa on my system", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "about to set up valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "wanna podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I want to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "prepare for database work please", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "install neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "can you install gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "give me netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "embedded db", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I need nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Machine learning environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "imagemagick please", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I have epub files to read asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Ready to want default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "put sqlite3 on my system", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "virtualization setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Go development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "set up redis-server!", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "i need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm starting to learn web dev asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "get apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I want to backup my files on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "set up bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "mariadb-server please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I need to nstall jq on my computer", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "make tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "put bat on my system?", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I want to code in Java on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "need to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do I obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "about to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "set up neofetch quickly", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "getting ready to go live now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "gotta 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "about to virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "could you 'm learning mern stack quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "please mvn", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "could you want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "VIRUS SCANNING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "configure want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "give me lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "hoping to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "get gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "about to optimize my machine please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "open compressed files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "openssh-server please", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "put btop on my system", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "certificates", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "i want a cool system display", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "configure fix installation errors!", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "vscode", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I WANT TO SCAN FOR VIRUSES", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need to get apache2 on my computer", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "need to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want to backup my files already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "JAVA SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "let's need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "need to need lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "docker compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "can you install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "docker.io please", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "could you my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "rustc please", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "help me fast grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "get calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "please want to automate server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "wanna system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "can you obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I need to redis server please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "let's cs homework setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "source control on this machine", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set me up for web development please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need to check resource usage for me", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want calibre for me", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "mysql db?", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Make my computer ready for frontend work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "dev environments", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I'd like to set up python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "postgres db", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "terminal multiplexer", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "let's want to do penetration testing?", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "install qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "ready to want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Let's need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "set up unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "READY TO KDE PDF", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I need to nstall make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I want to read ebooks on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Give me htop quickly", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I just switched from Windows and want to code?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "SET UP A WEB SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "crypto tool", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "xz compress", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "game development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "can you install gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "please extract zip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I need p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I'd like to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "help me something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "put mercurial on my system", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I need libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "set up okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to work with datasets on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I want to watch videos on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i'm trying to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "put fail2ban on my system", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "set up scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "can you prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "i want fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "virtual env", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "mysql database", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I HAVE A RASPBERRY PI PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "wanna video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Database environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "let's can you install rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "can you 'm learning pyton programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "let's ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "How do i give me code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "profiling tools!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I need to train neural networks on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Wanna want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "can you install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "set up docker on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "looking to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need to jdk installation already", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "let's developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do I give me fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "install mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "help me want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I'm trying to rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO CODE IN JAVA?", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "wanna parse json", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "packet capture", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I need to gpg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "record audio", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "About to want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "hoping to need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "help me optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "collaborate on code for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "can you install perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "set up emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "add g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "perl interpreter", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "NEED TO PDF MANIPULATION", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "cat with syntax", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "get exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "put wireshark on my system", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "My friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do I add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "i want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want remote access to my server on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "help me need to connect remotely on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "protect my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "i want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "install ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "get php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "c++ compiler asap", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I want to be a full stack developer now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I NEED TO FAIL2BAN TOOL", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I want subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "put gdb on my system", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I'm trying to vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "help me vm software", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "gotta team communication tool for me", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "bring my system up to date quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "devops engineer setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ready to prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "give me libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "configure nteractive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I want nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "put apache2 on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "add openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "looking to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "can you install screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "sqlite", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "php please", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "i want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "i want to need strace for me", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "LaTeX setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "please docker setup please please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "tls", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "rust language", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "looking to clamav scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "set up Python on my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "video player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "i'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "get valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I'm learning Docker please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you golang setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "run VMs with VirtualBox quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "can you install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "how do I 'm making a podcast on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I need bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "set up mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "wanna video production environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "SET ME UP FOR WEB DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "show folders", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I want maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Hoping to need to check resource usage on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "friendly shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "PUT AUDACITY ON MY SYSTEM!", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "need to port scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I need clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "hoping to need fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "word processor", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I NEED TO WORK WITH PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "about to data backup environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "please want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "tree please", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I want to run virtual machines on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "alternative to Microsoft Office please", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "screen fetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I want perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "give me qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "ufw please", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "add cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I'm trying to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "time to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ready to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "looking to put npm on my system", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "SERVER MONITORING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Microsoft code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "modern network", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "install nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "configure ndie game developement", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "READY TO REPAIR PACKAGE SYSTEM RIGHT NOW", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "configure ot development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "get default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "set up openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "add unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "let's want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I need docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you install ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "Gotta web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I need podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "set up need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "strace tool", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "set up python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I want fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Can you install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I want docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "add gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I want to use containers thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "LET'S NEED TO SERVE WEB PAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "protect my machine right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "make my server secure right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "looking to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "COULD YOU WANT A NICE TERMINAL EXPERIENCE RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "set up xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "set up ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "set up lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "install clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "wireshark tool", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "give me zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "time to want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "DIGITAL LIBRARY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "xz compress!", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "vim editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "SET UP EDUCATIONAL PROGRAMMING SETUP NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "can you install emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I need to visual studio code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "backup tools already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "put gimp on my system", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I WANT TO BE A FULL STACK DEVELOPER", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "add libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "LaTeX setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "i'd like to connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "netcat tool", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "looking to prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I'm trying to want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "let's want to track my code changes on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "help me want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'M STARTING A YOUTUBE CHANNEL", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "set up gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "better find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "set up python3-pip asap", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "install virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "let's microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Set up multimedia editing tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "wanna need to write research papers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "help me can you install netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I need to compile c now", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "add docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "netcat tool", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "ready to need nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I want lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I want to program Arduino thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "prepare system for Python coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "educational programming setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "LOOKING TO PRODUCTIVITY SOFTWARE RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'm starting to program quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to connect remotely please", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "containerization environment quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "can you install curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "Download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "C/C++ setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "how do I fresh install, need dev tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ABOUT TO NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Can you install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i need to set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "give me python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "better top", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "gnu debugger for me", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "could you desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "ruby please", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "add nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you install fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "need to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "put python3-pip on my system", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Gotta emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "gotta want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "illustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "package manager issues already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "set up nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "apache server on my computer", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "image tool", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I want to need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want a modern editor now", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Roboto font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "about to add python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "i want to server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "fonts-firacode please", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "can you install gnupg asap", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Hosting environment setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "clamav please", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "i need to write research papers already", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "btop please", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I'd like to media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "SET UP MONGODB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I WANT TO DO PENETRATION TESTING", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Wanna want okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "set up tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "Put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "perl interpreter", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "COLLABORATE ON CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "let's connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "can you install evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I need gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "Machine learning environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "openssh-client please right now", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "nano editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "give me curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I'd like to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "gotta want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I WANT TO OPEN COMPRESSED FILES", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "I want clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "configure academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I need virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I'd like to xz files", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "get tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "hoping to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I have epub files to read on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Terminal info", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "photo editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "HOW DO I MAKE MY COMPUTER READY FOR FRONTEND WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to code in java right now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "put inkscape on my system", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I'd like to set up yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "set up vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "can you install yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "get virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "could you my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I need python for a project quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "give me g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I want to run virtual machines right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "mongodb database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "HOPING TO TEACHING PROGRAMMING TO BEGINNERS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "friendly shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "please want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "VIRTUALBOX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "wanna teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "postgres db", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "get emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "install docker-compose on my computer", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "C DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "gotta server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "get libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "give me git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "let's full stack development setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "let's set up audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hosting environment setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "i'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "put nmap on my system", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "gotta need to check resource usage asap", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "set up git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "give me subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "add fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "GIVE ME SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "directory tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "wanna video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I WANT TO BE A FULL STACK DEVELOPER", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "google font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "set up version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I NEED TO 'M LEARNING GAME DEV", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "streaming setup for twitch on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "ready to certificates", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I'd like to give me okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "INSTALL GZIP", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "add gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "can you install clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "please want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I want to collaborate on code thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Image manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "gotta 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "VM ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "add gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "give me apache2!", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "ready to want virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "CAN YOU INSTALL VIRTUALBOX FOR ME", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I'M TRYING TO NSTALL UNRAR", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "gzip compress", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "can you install maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "about to want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "VIRTUALIZATION SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "protect my machine thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "system monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need Python for a project!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "wanna bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "need to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "give me podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "wanna 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "put htop on my system", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "about to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "fonts-firacode please", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "install netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "ripgrep please", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I'm learning MERN stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "put gimp on my system", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I want to pip3 quickly", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "install postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "add openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "put maven on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "can you install make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "add docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "ready to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "docker engine", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "could you audio editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "need to document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "about to want to program in go asap", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "emacs editor", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "let's teaching programming to beginners on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'd like to nstall cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "can you install bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "unzip files on this machine", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "time to need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "coding font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I want fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "let's hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "devops engineer setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "About to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you install neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "help me prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "add openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "add mongodb on this machine", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "please mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "could you connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "prepare for coding right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to want valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "put ufw on my system", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I want to code in Python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Gotta want to host a website for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "power user terminal for me", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "can you install zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "HOW DO I TEACHING PROGRAMMING TO BEGINNERS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "set up network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "need to 'm learning mern stack on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "fzf tool", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "set up clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "give me nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "put make on my system", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "i want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "gotta want btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "BETTER PYTHON SHELL QUICKLY", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please basic development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "audio convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "ready to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "put git on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I'M DEPLOYING TO PRODUCTION", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "hoping to productivity software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "System maintenance please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I have a raspberry pi project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "give me code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "get vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "sqlite database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "ABOUT TO EMBEDDED DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "word processing and spreadsheets already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "about to neovim editor", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "hoping to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I WANT TO NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "hoping to protect my machine right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "looking to server monitoring setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "openssl please", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "wanna live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Please set up imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "can you install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "gotta full stack development setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "put screen on my system already", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'm learning Python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need to add cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "makefile support", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "'M BUILDING AN APP THAT NEEDS A DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "gzip please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "HOPING TO WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "how do i json processor!", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "gotta fast find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "hoping to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "looking to desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "PLEASE LIVE STREAMING SOFTWARE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i want to do machine learning quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "put iproute2 on my system", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "MySQL server installation on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "docker-compose please", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I'M DOING A DATA PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "wanna educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to work with images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "how do I coding font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "install screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "folder structure", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "need to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "gotta ltrace please", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "LET'S WANT A NICE TERMINAL EXPERIENCE", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "set up a web server for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "npm please", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "please 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "easy text editor already", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "give me audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "help me put ltrace on my system on my system", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "give me evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "could you antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Set up fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "please want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "time to set me up for web development already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "process monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I want to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you install fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "please network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ready to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Configure security hardening on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "put netcat on my system", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "need to want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "add wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "could you need to run containers please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Performance monitoring?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Get rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "install gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "set up ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "set up set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "please secure remote access", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I WANT TO BROWSE THE INTERNET PLEASE", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "java gradle now", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "i'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Put python3-venv on my system", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "get bat thanks", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I WANT TO WRITE CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "COULD YOU BASIC TEXT EDITING", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "get htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I want the latest software on my computer", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "wanna full stack development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I need to 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "hoping to memory debugging environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "get screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "hoping to need a database for my app on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "gotta set up btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "can you install openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "get virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "virus scanning tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "add python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "let's get okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "give me ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ADD FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "hoping to want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "set up exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "better python shell", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "HOW DO I ADD PHP", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "In-memory database", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need to work with images already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "bat tool", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "REVERSE PROXY", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I want podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "mvn", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "add jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I WANT REMOTE ACCESS TO MY SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "help me set up postgresql on this machine", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "i just switched from windows and want to code on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "please 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "CONFIGURE ADD GIMP PLEASE", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I want fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "add screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "gotta prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "cmake build", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "get fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "set up nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "set up bzip2 now", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "get neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I NEED GDB", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "get fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I want fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "please need to write research papers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "add fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I need exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "help me give me fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "wireshark tool", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "need to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need to add postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "set up zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "hoping to run windows on linux asap", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "CAN YOU WANT TO MAKE GAMES QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "install btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "please firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "image tool", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "i need multi-container apps thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Terminal system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "add jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "java gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "fetch system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'M TRYING TO HAVE A RASPBERRY PI PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "configure new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to troubleshoot network issues right now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'm trying to collaborate on code!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "g++ please", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Give me jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "get vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "install perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "Nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "add p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "get gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I need sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Java setup please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I want to need to test network security on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "NEED TO DATA ANALYSIS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "add valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "set up for data work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "i want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "gotta make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "how do I htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "redis cache", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "install screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "Managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "give me tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "can you install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I'd like to sound editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I'm trying to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "get gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "i'm building an app that needs a datbase", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "download with curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "ready to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "could you video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "i'd like to can you instal iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "VIRTUALIZATION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "how do I set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'D LIKE TO JAVA ANT", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "nmap please now", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "can you install tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "configure ebook reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "need to embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "about to production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "put zip on my system", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "add docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "give me docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "PDF MANIPULATION", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ready to want to compile c programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "set up make my computer ready for python on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Set up openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "get rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "could you need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "add nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "COULD YOU SUBVERSION VCS", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "My system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ready to something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "could you need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I NEED TO TEST DIFFERENT OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "put evince on my system", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I'd like to put docker-compose on my system", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I want mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up mysql database quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "JUST INSTALLED UBUNTU, NOW WHAT FOR CODING?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "code please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "i want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "time to want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Go development environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I'd like to digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Give me ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "tcpdump please", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "how do I photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I want a nice terminal experience!", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "READY TO NETWORK ANALYZER", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I need to collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Give me yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I need to set up for data work please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I NEED TO TROUBLESHOOT NETWORK ISSUES RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "containerization environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "add yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I need neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "get zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "wanna need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "containers", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "can you want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "give me fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "can you install openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I'M MAKING A PODCAST", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Bz2 files?", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "ssh", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "package manager issues on my computer", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "help me desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Cmake build", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "can you install btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "can you need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want to want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I want to build websites?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "hoping to obs", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "get nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "looking to memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I'm learning MERN stack!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "ready to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "vscode", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "set up fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "code please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "perl language on this machine", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "set up mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "set up my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "put xz-utils on my system", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "alternative to Microsoft Office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'm trying to multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm trying to ethical hacking setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "set up can you install obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "make my computer ready for frontend work asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "gotta rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Just installed ubuntu, now what for coding already", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "time to ebook reader setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "add net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure ot development environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "can you c/c++ setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "set up maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "add jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "need to game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "fresh instll, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ready to need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "My friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "put docker-compose on my system", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "put podman on my system", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "please btop monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "set up want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "gotta pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "COMPILE CODE ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "wanna clang compiler?", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "set up 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want to scan for viruses quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "fancy htop!", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "File download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "screen please right now", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "system maintenance on my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "install vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "about to prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "preparing for deployment asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "let's debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "help me want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "rg", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "HELP ME SCAN NETWORK ALREADY", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I'm trying to cmake tool", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "Could you want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "let's give me wget thanks", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "i need to working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "gpg right now", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "can you cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "could you better bash", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "let's want p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "can you graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "put perl on my system", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "can you install podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "dev environments for me", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "could you set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "get fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "give me clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I'd like to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "EXA TOOL", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "hoping to want to edit images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want to microcontroller programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I need to academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "backup solution setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "gotta vm software already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "set up python3 quickly", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "node", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "web development environment please!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "ABOUT TO SET UP REDIS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "about to give me podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "add zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "i'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "put valgrind on my system", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "hosting environment setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "openssh-client please", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "can you install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "put gradle on my system", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "Ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I want to automate server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Looking to video convert quickly", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to want to program arduino on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "give me tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "add jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "PUT ZSH ON MY SYSTEM", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "gnu screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "add ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "How do i graphical code editor on my system", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "PRODUCTION SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I'm trying to run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "get fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "help me nstall iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "HELP ME CAN YOU INSTALL EMACS", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "MAKE MY COMPUTER READY FOR PYTHON", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want to compile C programs already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "configure prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "configure get make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "SYSTEM MAINTENANCE THANKS", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "let's security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'd like to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Can you secure remote access thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "DESKTOP VIRTUALIZATION", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "SHOW OFF MY TERMINAL", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "DOWNLOAD MANAGER", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "EBOOK MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "lzma", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "get vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you python notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "about to need openssh-servr", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want to download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "put audacity on my system", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "how do I 'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to analyze network traffic thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I need fish quickly", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "office suite", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "microcontroller programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "install obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I need p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "unrar tool", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I want to want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "HARDWARE PROJECT WITH SENSORS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "podman please", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I HAVE A RASPBERRY PI PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "can you insatll p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "need to make my computer a server now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "gotta music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "CAN YOU WANT TO EDIT VIDEOS", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "add mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "java", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Help me add fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "configure want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "install vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "configure need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "install python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Looking to java setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Run windows on linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "wanna prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I'M LEARNING JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "need to server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "COULD YOU WHAT ARE MY COMPUTER SPECS FOR ME", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "svn client", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "prepare for containerized devlopment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "set up cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "python on this machine", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "p7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "need to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "please video player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "add tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I NEED TO WORK WITH DATASETS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "zip files", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "set up Docker on my machine quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "run VMs with VirtualBox already", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Put bzip2 on my system", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "getting ready to go live now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "port scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "how do I trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "z shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "rust compiler", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "I need to debug my programs on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I'd like to can you install vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I need fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I want strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "add tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "PREPARE FOR CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "could you want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "i need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "get p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I want libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "looking to packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "put jq on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "i want to secure my sever", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "how do I need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need to serve web pages now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "compose?", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I'd like to give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I NEED ANSIBLE FOR AUTOMATION", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "give me gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "put valgrind on my system", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "set up strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I'd like to can you install libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "WANT TO BUILD WEBSITES ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to rust programming setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "apache server right now", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "could you redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "install yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "compile c", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "add xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "microsoft code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "GIVE ME EXA", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "bring my system up to date on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "put ffmpeg on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I'd like to need to check resource usage quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want to watch videos please", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "configure pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "REPAIR PACKAGE SYSTEM", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "how do I make tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Python notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "ruby language", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "something like vs code!", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "SSH SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "let's preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "looking to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "python3 interpreter", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I'm trying to set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "PDF manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "wanna fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "need to want to learn rust please", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to file sharing setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "MUSIC PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "set up evince for me", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "wanna want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "preparing for deployment thanks", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "install jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "GO DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "install p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "hoping to want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "put fonts-firacode on my system", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "add mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "subversion please", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "help me sqlite3 please!", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "prepare for containerized development thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "docker compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "PDF tools setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "nodejs please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "add maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "CACHING LAYER FOR MY APPLICATION", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "MUSIC PRODUCTION ENVIRONMENT ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "give me ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "i'm trying to run windows on linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I need to run containers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "add neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "could you embedded development setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "put unrar on my system", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I want python3-venv for me", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I want to multimedia playback asap", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to python pip on my computer", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "c compiler!", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "get bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "gotta 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "nosql database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "put imagemagick on my system", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "wanna redis", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need to train neural networks thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "coding environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "hoping to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "version control setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "vbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "LOOKING TO BACKUP TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'd like to fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me gcc!", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "give me perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "WANNA JAVA DEVELOPMENT ENVIRONMENT FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "give me screenfetch!", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "wanna nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "go language?", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "configure set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "add npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I need clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I'M BUILDING AN APP THAT NEEDS A DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need perl on my computer", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "about to put emacs on my system", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I want to fd-find please!", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "need to 'm learning java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "unzip files", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I need code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Wanna want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "IMAGE EDITOR", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I want openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Prepare mysql environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "give me jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I want to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "Repair package system already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "bzip tool", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I need Rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "can you graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "how do I system monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "time to screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "terminal sessions quickly", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "gotta system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "give me openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I want to secure my server!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "curl tool", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "Give me mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "apache server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "install zip thanks", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "install fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "get tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "please get nginx thanks", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "HOW DO I CAN YOU INSTALL VIM ALREADY", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "could you network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need to create a website please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "SSH server setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "vi improved", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'M DEPLOYING TO PRODUCTION ALREADY", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "orchestration", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "nvim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "virus scanning tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I'm learning Docker on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "maven please on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "ebook manager", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "time to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "add lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "gotta my kid wants to learn coding thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need ltrace?", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm trying to add exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "give me gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Hoping to vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I NEED TO TEACHING PROGRAMMING TO BEGINNERS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'm trying to want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "prepare for containerized development", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "ready to malware protection", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Virtualization", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "put nmap on my system", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "let's better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "ready to put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "About to add bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "g++ please", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "i need to make my computer a servr?", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "put docker.io on my system", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "add wireshark right now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "get fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "prepare MySQL environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "i want ipyhton3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "network debugging tools", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "wanna web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "CONFIGURE NEED HTOP", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ!", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "can you install apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "looking to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "about to my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "could you photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "KID-FRIENDLY CODING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "About to need rust compiler quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I NEED TO TEST NETWORK SECURITY", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "configure want to edit pdfs please", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "in-memory database", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "rg", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "install screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "put fish on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "add gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "how do i want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "LOOKING TO MUSIC PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "can you install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "set up want to compile c programs please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "wanna 'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "Time to need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I need nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "reverse proxy", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "can you need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "CONNECTED DEVICES PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I'd like to source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Ready to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "ipython", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "ready to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "VIRTUALIZATION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "p7zip-full please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "let's rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "LET'S SVN CLIENT", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "unzip files for me", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "looking to document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "give me btop quickly", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "wanna remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to ot development environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "can you mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "add strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I need vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "set up wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "ready to 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "let's want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I'M TRYING TO PREPARE SYSTEM FOR PYTHON CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "wanna want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "get ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "READY TO GO DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "get fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "looking to database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "update everything on my system thanks", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "could you live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "kvm", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do I want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I have epub files to read on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "hg on this machine", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "can you install default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "about to want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "source control on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "can you install gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "how do i gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "help me get imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "Need to ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I WANT TO BACKUP MY FILES ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "looking to bat please", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "game development setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I'm trying to postgresql database", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Gotta mage convert right now", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "get cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I want to analyze network traffic on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Samba server now", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "gcc please", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "record audio", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "give me vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you npm please", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "set up yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "clamav please", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "how do I want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "put tmux on my system", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "Set up mysql database please", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "give me postgresql quickly", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "time to network diagnostics!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "NEED TO HOMEWORK REQUIRES TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "get ufw thanks", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "wanna homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "What are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "time to want to secure my server right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "hoping to data backup environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "jupyter-notebook please", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "looking to set up ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "need to graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "my kid wants to learn coding for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "python3 please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "need to pythn development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want to browse the internet thanks", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "how do I virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "i want to set up zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "python package manager", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "can you install mercurial now", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "nano editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Streaming", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "tcpdump tool", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "put htop on my system", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "put gnupg on my system", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Looking to p tool", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "TIME TO HTTP CLIENT", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "please vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I'd like to prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "add python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I'd like to kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I need to 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure nstall fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "could you rust developmnt environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Ready to prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i need ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "put net-tools on my system", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to scan for viruses please", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up apache2 please on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you ethical hacking setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "vim please quickly", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "secure remote access asap", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "set up postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "obs", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'm trying to want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to photoshop alternative", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "preparing for deployment for me", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "ready to lightweight database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "looking to 'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "give me bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "qemu please", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I need openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I want to obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to get wireshark already", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "jdk asap", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I need to run containers now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ready to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "add screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "System monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'm learning Java thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "hoping to pdf manipulation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "READY TO GIVE ME NEOFETCH", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "ready to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "get audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "alternative to Microsoft Office on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "put nano on my system", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Can you install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "need to network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "hoping to put openssh-server on my system", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "libreoffice please", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "need to gcc compiler right now", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "INSTALL TMUX", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "rust language", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "remote login capability on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "containerization", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "give me npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "can you install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "desktop virtualization asap", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want to podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "COLLABORATE ON CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I'm trying to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "data analysis setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "Package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "make please", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i'm trying to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "can you install php quickly", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "need to latex setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "cmake tool", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "add zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "ready to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'd like to get btop thanks", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "better ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "add libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ready to multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "configure nstall vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "how do I pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "put gcc on my system", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "zip please", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "set up a database server for me", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "zip files up", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I want to data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "gotta need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "wanna prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "Hoping to need mysql for my project for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "about to need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "time to zip files up!", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "wanna need vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I'm trying to need ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I WANT TO PUT GRADLE ON MY SYSTEM", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "parse json", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "set up perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "help me 'm building an app that needs a database", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "system display", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "could you ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "please jdk installation now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "valgrind please", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "can you need docker.io already", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "i need a database for my app?", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "perl language", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "put bzip2 on my system", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "web downloading setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "install vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "set up htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "configure preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "HTOP PLEASE", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "seven zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "MAGE MANIPULATION SOFTWARE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "ready to educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "put yarn on my system asap", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "get curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I'm trying to hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "CAN YOU INSTALL DEFAULT-JDK THANKS", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "audio editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "ABOUT TO NEED TO CHECK FOR MALWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Source code management for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Samba server asap", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "could you media player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I want to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I want code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "i'm learning go language?", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "audio production setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "looking to give me docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "just installed Ubuntu, now what for coding asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "server monitoring setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "i want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I need to database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Backup solution setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "add git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "put unrar on my system", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "set up a web server!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "please live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "jq please on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "please want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "easy text editor asap", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "terminal info", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "web downloading setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "add qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "terminal productivity tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "can you install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "mariadb database already", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "HOW DO I WANT TO HOST A WEBSITE", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Can you educational programming setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "ip command", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "libre office", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ruby please", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "nmap tool please", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "mysql database", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "how do I ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "install tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "install docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I want nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "vagrant please", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I need to want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "how do I node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "UPDATE EVERYTHING ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "i'd like to want a cool system display", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "help me live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i'm trying to developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "help me want iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "ssh server!", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "library calls", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "can you install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I want php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "collaborate on code on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "hoping to need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "GET UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "could you prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "let's netcat tool right now", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "hoping to can you install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "make please", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I need tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I want screenfetch quickly", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "i want to want docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I want gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "install neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I WANT TO PYTHON3 PLEASE", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "need to need to serve web pages please", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "fira code", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I need to debug my programs already", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "OBS setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Improve my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "configure system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I want emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "i want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "packet analysis setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to mage manipulation software right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "photo editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "give me postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I'M TRYING TO WANT TO DO PENETRATION TESTING", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "cmake please", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "gotta need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up mysql database on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "i want to scan for viruses!", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "Ready to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "let's put fish on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I WANT TO BE A FULL STACK DEVELOPER", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "media player setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "let's something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "need to podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want to edit text files already", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "give me mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I need perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "run Windows on Linux right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "text editing software", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "python pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "put g++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "set up okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "System update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "mysql fork", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "let's running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to put openssh-client on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "looking to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "can you nstall sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "READY TO RUST PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "can you install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you install python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Docker Compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I'M DOING A DATA PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I want to getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you install mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Run windows on linux!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I need ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "give me sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I want to do machine learning asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "RUNNING MY OWN SERVICES NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gotta remote connect", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I'm learning Python programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "need to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "put code on my system", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "basic text editing on this machine", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "gnu c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "get xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "get neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "compile c++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "help me managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "about to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "RUST DEVELOPMENT ENVIRONMENT PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "seven zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "can you install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "how do I multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "install apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "streaming", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "Team communication tool", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "can you want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "POWER USER TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "TERMINAL SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "subversion please", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "let's want to find bugs in my code on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "about to pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "network security analysis on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "DOCKER COMPOSE ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Need to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta new to ubuntu, want to start programming quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "put sqlite3 on my system", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Hoping to pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "java ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "let's docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ready to track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "c/c++ setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I'm trying to want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "prepare system for Python coding now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "looking to want to use virtualbox on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "File sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "cmake tool", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "need to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "give me mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "ssh client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "datbase environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "can you give me vagrant!", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "time to ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "put screen on my system", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "GOTTA DOCUMENT DB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "wanna ssh servr setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "can you install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "put docker.io on my system", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "COULD YOU CLEAN UP MY COMPUTER!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "configure want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "CAN YOU INSTALL JUPYTER-NOTEBOOK ALREADY", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "inkscape please", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "how do i put maven on my system!", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "java development kit", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Get openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I'd like to obs setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you install jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "add rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "streaming", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "could you python3 interpreter", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "how do I track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "perl please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "set up vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "install imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "productivity software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "gotta want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "configure 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "put fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "unzip files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "i'd like to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "configure modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "give me default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "looking to document reader", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "VIRUS SCANNING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "ready to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "image manipulation software on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Can you can you install fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "configure want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "can you install gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "set up perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "ebook reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'm learning Go language?", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "get nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "p7zip-full please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "get jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "hoping to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "set up get podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I want ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Let's want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "add mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "run windows on linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "i want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "packet capture", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "give me clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "install make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "i want to orchestrate containers thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "wanna teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "perl language", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "COMPILE CODE ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "can you terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "install podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "create zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Malware protection on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "hoping to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "how do I want to write documents right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "VM environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "VirtualBox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do I digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I need to write research papers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "can you install code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "extract zip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "HOME SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "homework requires terminal please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "wanna want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want to do machine learning thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "get golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "java gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "version control setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "nstall ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "put iproute2 on my system", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I need jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "help me archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I'd like to deep learning setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "add htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to use VirtualBox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "C/C++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "TIME TO LATEX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "configure clang compiler asap", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "add golang-go asap", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "get evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "folder structure", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "Redis-server please", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "emacs editor", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "let's have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "digital library software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Uncomplicated firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "GIVE ME MYSQL-SERVER!", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "convert images", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "looking to extract zip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "time to 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "coding font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "prepare for ML work already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "add emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "set up vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to c development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "profiling tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "office suite", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "give me golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "can you prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "version control", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "IMPROVE MY COMMAND LINE", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to want redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "nmap tool", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "get ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "time to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Ready to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "wanna prepare for database work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "about to 'm doing a data project already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "give me mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "put openssl on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "time to desktop virtualization?", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "ready to hack font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "can you install make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "help me prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "how do I simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "set up set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Backup solution setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "i need to rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ltrace tool thanks", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "xz compress", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "put p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I want to download files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I need a text editor now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Ssh server quickly", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "install gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "gotta jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "obs-studio please", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "give me python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I'M LEARNING MERN STACK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "put vim on my system", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "how do I set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "add ant for me", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "I want ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "install mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "graphical code editor please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "please want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "set up want ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "help me containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need to set up libreoffice on this machine", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "STREAMING SETUP FOR TWITCH", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "about to samba server thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "please get subversion right now", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "file download tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Samba server already", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "set up default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "SET UP NEED GRADLE", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I want zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "containers", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "can you install htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "about to put screenfetch on my system", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "set up fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "i want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "put fd-find on my system", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "media player setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I want htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "could you prepare for data science now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "DEEP LEARNING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "easy text editor for me", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "DATA ANALYSIS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "about to need inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "i want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "about to convert images", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "wanna just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "HOW DO I C DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Configure dev environments", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "put ripgrep on my system", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "get openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "add fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I'd like to need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'd like to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "install maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I NEED MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "ant please", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "please want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "need to what are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Ebook manager", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I WANT TO USE VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "embedded development setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I need to set up docker on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "PREPARE FOR ML WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "network analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "JDK installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "i want to program arduino!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I need qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "install perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "new to Ubuntu, want to start programming please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "virtualbox please", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I need to basic development setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me rustc thanks", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "I'd like to want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Java setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "get openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "SERVER AUTOMATION ENVIRONMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I'd like to need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "add redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "how do I get postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "could you get jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "let's rust compiler", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "Open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "INSTALL G++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "install gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "WHAT ARE MY COMPUTER SPECS", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "need to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "how do I ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "please scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "PUT PYTHON3 ON MY SYSTEM", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I need yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want to need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "time to curl tool", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "i want to system display", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I want to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Could you give me tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "hoping to c development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "wanna running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "how do I graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "neovim editor", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "please system maintenance!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "install btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "hoping to get fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I want to use virtualbox right now", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "PLEASE WORKING ON AN IOT THING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "can you install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "need to docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "CONTAINERIZATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'M LEARNING C PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "can you install calibre on this machine", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need to ban hackers", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "Can you install qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "install mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "set up nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "libre office", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "configure get perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i need pyton3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "GIVE ME MONGODB ON THIS MACHINE", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "give me htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "CLEAN UP MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I NEED TO SET UP REDIS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "add audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "can you want a nice terminal experience on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "obs", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I need to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Please my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "please nstall bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "put calibre on my system", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Could you pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "could you mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want to program in Go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "system monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "CONFIGURE NSTALL FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "photo editing setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "make my computer ready for frontend work please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "set up docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I'm learning Docker on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you want fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Looking to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "ripgrep please on my computer", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "LOOKING TO NETWORK DIAGNOSTICS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want fail2ban now", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need to need mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I'd like to ot development environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "about to want qemu right now", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "compile c++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "virtualization setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "My professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "trace syscalls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "add sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "TIME TO MAKE MY SERVER SECURE", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "configure set up nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "nvim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "hoping to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "netcat please", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "get curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "PERFORMANCE MONITORING", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "How do i prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "image tool", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "multimedia editing tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "give me rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "I need Rust compiler right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "INSTALL MARIADB-SERVER ON MY COMPUTER", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I need to document management on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "prepare MySQL environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "image convert", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "AUDIO PRODUCTION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "can you install sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "set up vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I want nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "REPAIR PACKAGE SYSTEM", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "can you install postgresql!", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "System monitoring tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "can you install xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "WORKING ON AN IOT THING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Can you get ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "npm please", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "CAN YOU NEED TO CREATE A WEBSITE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "better find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "put python3 on my system", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I need netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "install mysql-server!", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "vim editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "give me nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "add obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "Packet analysis setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "CONFIGURE GET CLANG NOW", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ready to make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "python3-pip please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I'm trying to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "configure make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "please python development environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I want gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "something like VS Code on my computer", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "ssh on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "can you install fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I'M TRYING TO CLASS ASSIGNMENT NEEDS SHELL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need to train neural networks?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I'M TRYING TO HOMEWORK REQUIRES TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "resource monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I need to work with PDFs right now", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "get openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "help me update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I NEED GZIP", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "get python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "need to need to test different os on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Team communication tool asap", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "set up zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "subversion vcs", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "can you install nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "gotta streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "virtualization", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "ssh daemon", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "give me obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "set up run windows on linux now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "qemu emulator", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "rootless containers!", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need to debug my programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "could you can you install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "jupyter-notebook please", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "hoping to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "improve my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "put neofetch on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "version control asap", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i want to mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "fonts-hack please", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "help me want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "OBS setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "put lua5.4 on my system", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "could you get mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want the latest software on my computer", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "can you install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "give me btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "Java setup please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "BACKUP SOLUTION SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "need to set up a web server for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I'd like to go language", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I need to play video files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gotta makefile support", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "give me ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "fzf tool", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "gnu c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "give me bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "get ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "How do i nstall qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "gotta basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I need to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up kvm", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "MEDIA PLAYER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "wget tool", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I want to open compressed files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "how do I need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "upgrade all packages please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "EBOOK MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "get npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "yarn please now", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "TEACHING PROGRAMMING TO BEGINNERS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "looking to video playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to fetch system on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "COMPILE CODE ON MY MACHINE?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "give me xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "hoping to want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "time to music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "POWER USER TERMINAL FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "apache", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "give me ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "add postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "give me ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "give me openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "help me personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "bat please", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "get net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want a modern editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "add nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I want to need rust compiler on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "photoshop alternative", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "i have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "network file sharing?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "put php on my system thanks", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "install fonts-roboto for me", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I need zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "Microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "time to docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "give me fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I want mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "set up tree?", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "get python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "add screen thanks", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "LOOKING TO PUT FONTS-ROBOTO ON MY SYSTEM", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "get emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "gotta game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "VM environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "apache", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "COULD YOU RUN WINDOWS ON LINUX ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I need to docker compose environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "about to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "i have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "IFCONFIG", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Can you set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i want to do penetration testing now", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "MYSQL SERVER INSTALLATION", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "give me imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I want docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "ready to get clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "media player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "gnu debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "install emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "mongodb please", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "set up p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "qemu emulator", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "protect my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "configure upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "add mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Need to give me inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "terminal multiplexer", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to add emacs right now", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "get code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "CS homework setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "configure need to work with images right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "looking to put fail2ban on my system", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I NEED TO PREPARE FOR FULL STACK WORK ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "add perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "can you install jq thanks", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "ready to can you install ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I need to wget please on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "how do i want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "get unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "Can you install gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "ifconfig", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "wanna parse json?", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "file sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I want to be a full stack developer quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "give me cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "json processor", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I want to write documents now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "what are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "maven build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I need ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "could you text editing software", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "game engine setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "get net-tools now", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "set up screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "exa tool", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "help me fetch system already", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "put zsh on my system", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "give me bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "better bash", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I NEED VLC", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I'm learning Docker thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "IoT development environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "get zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "time to need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "install tcpdump asap", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "i want to write papers on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "can you optimize my machine on my system", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "please build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "let's want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "set up rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "redis cache", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "gotta make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Can you nstall lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "install clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "hoping to game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "media player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "give me vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "can you secure remote access", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Media tool?", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "set up need to check resource usage?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I need to need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Help me nstall imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "configure want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "can you containerization!", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I want tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "put neovim on my system", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "i'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "give me fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "set up set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "VIDEO PLAYBACK", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you install fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "set up need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "network security analysis on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "i want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "FOLDER STRUCTURE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "NETWORK DIAGNOSTICS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "key-value store", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "put neofetch on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "ADD TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "looking to secure remote access now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "add default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "give me redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "lua", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "MySQL server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "make my computer ready for frontend work now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "install gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "configure perl interpreter?", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "system maintenance now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "looking to python3-pip please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I HAVE A RASPBERRY PI PROJECT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "'m making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "set up for AI development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "help me terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "can you install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I WANT TO NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "let's put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "please need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "put ruby on my system", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "JSON TOOL", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "How do i pip3", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "how do I want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "bz2 files", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "IoT development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I WANT TO MAKE GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "could you need ansible for automation", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "can you install neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "can you want inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "get cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "time to need ansible for automation", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "CAN YOU INSTALL SCREEN", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "add zip already", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "put qemu on my system", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "ready to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "VirtualBox setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta gzip compress please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "can you need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "get default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I need to play video files?", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "let's set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "DATABASE ENVIRONMENT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to edit videos now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "looking to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "i need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I'm trying to terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "give me nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "set up mysql databas", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I WANT TO SEE SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "need to ot development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "file sharing setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "PUT XZ-UTILS ON MY SYSTEM", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I need audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Can you install podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "give me strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "MANAGING MULTIPLE SERVERS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "install gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "install php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to orchestrate containers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "working on an iot thing!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need to basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "insatll virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "bring my system up to date on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I'm learning Java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "time to configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up for data work quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want to learn Rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Could you office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Help me virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "set up fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "power user terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "need to system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "PRODUCTIVITY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up need sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "DIRECTORY TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "production servr setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "hoping to want to make games on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up Python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "add iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "add neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'D LIKE TO NANO PLEASE", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "how do I developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need to work with images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'm trying to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CAN YOU INSTALL NANO", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "configure my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i want nmap now", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "can you prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to serve web pages thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ltrace tool", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "Put gcc on my system", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "tree please", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "get p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "i need to check resource usage on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want to jupyter lab", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I'm a sysadmin on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need to production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "terminal multiplexer", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "CAN YOU SET UP FOR MICROSERVICES ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "podman please", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "my professor wants us to use Linux for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "how do I set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "READY TO BETTER BASH", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "let's connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Wanna productivity software quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "packet capture quickly", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "set up fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "wanna network debugging tools", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "game developement setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "put btop on my system", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "show off my terminal for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'M LEARNING GO LANGUAGE", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "configure pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "can you install qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "get gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "set up gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "looking to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "configure want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "please get ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "MULTIMEDIA EDITING TOOLS QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I NEED TO CONNECT REMOTELY", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "rust compiler", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "LOOKING TO LIBREOFFICE PLEASE ON MY SYSTEM", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "BETTER CAT", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "docker with compose setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gnu c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "ssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "media tool", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "can you install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "put tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to edit images already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Could you set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "GIVE ME FFMPEG", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "help me add bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I need zsh right now", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I NEED TO WANT TO RUN VIRTUAL MACHINES RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "set up audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need to sync files quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "wanna ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up Docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "let's my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "NEED TO MAKE MY SERVER SECURE", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "python3-venv please", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "backup solution setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I want xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "ssh client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "COULD YOU POWER USER TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "gotta network diagnostics now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "can you install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "put python3-venv on my system", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "LaTeX setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "wanna academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I WANT TO PROFILING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "can you install docker.io asap", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "set up need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "configure set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "add unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "can you instal ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "TIME TO WANT TO EXTRACT ARCHIVES", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "looking to set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "add btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "put ipython3 on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "gotta want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "data analysis setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'm a sysadmin?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "looking to system maintenance right now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "how do i containerization environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "openssl please", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "prepare for data science on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "could you 7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "how do I system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ready to cross-platform make quickly", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "bzip2 please", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "prepare MySQL environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "let's nstall evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "python", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "let's teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "fast find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "interactive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "could you python environments", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "looking to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Add valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "give me evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "time to need ansible for automation", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "modern network", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "LOOKING TO FRESH INSTALL, NEED DEV TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Configure remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "go language", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "put clamav on my system", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "memory leaks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want a modern editor for me", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "install openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "get docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "containers", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "Samba server on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "could you personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gnu emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "add python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "SET UP DEVOPS ENGINEER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "give me gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I need openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "ADD TMUX RIGHT NOW", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'm trying to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "set up for data work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "hoping to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "mysql fork", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "add calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "make my computer a server!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "z shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I WANT TO RUN A WEBSITE LOCALLY", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "i want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "put ffmpeg on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "HOPING TO SET UP FOR DATA WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "PUT NODEJS ON MY SYSTEM", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "caching layer for my application right now", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "PLEASE WANT TO RECORD AUDIO ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "secure remote access", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "add sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "wanna lua", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "kde pdf", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "please tls", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "BZIP COMPRESS", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Document reader", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Configure system update?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to run containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "SET UP PYTHON ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "INDIE GAME DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "mariadb alternative", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "set up qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I need audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "get jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "gradle please", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I NEED TO RUN CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "let's 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "let's samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "put g++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "UPGRADE ALL PACKAGES", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "please set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "gotta zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "please new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "System update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "show specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up Python on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "virtual machine", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "can you install nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "ip command", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Looking to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "let's mprove my command line quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "update everything on my system right now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "BZIP TOOL", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "about to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "give me gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "hoping to office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Configure source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "give me bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "how do I python development environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need Ansible for automation quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "wanna need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "ipython3 please", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "wanna music production environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "programming font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "roboto font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "multimedia playback on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "give me openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "gotta preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "let's prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "help me golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "vi improved", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "can you net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "emacs editor", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "system maintenance on this machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "put rustc on my system", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "wanna add docker-compose now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "set up curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "SET UP MYSQL DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "give me openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "About to machine learning environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "can you obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "python notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "JDK installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "zsh please thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "set up python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "gotta ebook reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "set up btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "can you install ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I NEED A WEB BROWSER", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "ready to need to work with pdfs on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "get obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "Terminal system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "looking to video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "i'd like to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "redis cache", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need to need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "clamav scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Hoping to network diagnostics already", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "add clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "get screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "put virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "could you want neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want gzip right now", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I need python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "hoping to devops engineer setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "about to download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "mysql", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "get evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I'm trying to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "i need bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "svn", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "install python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "WANNA UPDATE EVERYTHING ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "system administration tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "get nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I want openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "give me python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "DOCUMENT MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "could you remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I want to edit PDFs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "i need to ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "7z", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want to host a website now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "screen sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "ruby language", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "Hoping to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "set up for microservices on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "podcast recording tools!", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Go development environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "can you need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "add mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Please streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "version control setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "wanna remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "ban hackers", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "looking to system administration tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Python development environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "set up exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "can you install gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I'd like to nstall calibre quickly", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I'M TRYING TO SCREEN SESSIONS", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "VIDEO PRODUCTION ENVIRONMENT ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "i'd like to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "add vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Let's 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "calibre please", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "hoping to multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "add code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "install exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to watch videos quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "configure server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "rar files quickly", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "configure 'm learning game dev on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "SHOW OFF MY TERMINAL", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "gnu emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "virus scanning tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "please set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ready to need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "put cmake on my system", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "install emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "zip please", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "add git!", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Vbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "let's need tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "pip3", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "GZ FILES", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "about to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "set up a web server now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "backup solution setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need to rootless containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "basic security setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm trying to coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "Redis server please quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "put libreoffice on my system", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "get docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I'd like to can you install mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i'm trying to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "put ipython3 on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "let's llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "get yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "add nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "PUT PODMAN ON MY SYSTEM", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "uncomplicated firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "devops engineer setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "wireshark please", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Set up need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "nmap tool", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "could you want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I WANT TO CHAT WITH MY TEAM", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "Time to working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "MYSQL FOR ME", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "i need to run containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "python package manager", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "productivity software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Set up ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "give me yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "add apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "TIME TO DATA BACKUP ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "get vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "how do I put rustc on my system quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "time to backup solution setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need to troubleshoot network issues on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'd like to want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "multimedia playback right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "please optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "could you need office software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "add fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "give me tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "video convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you install htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "need to docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "help me running my own services now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Image convert", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "streaming setup for twitch for me", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "CONFIGURATION MANAGEMENT TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I want p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Python language now", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "can you install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Developer tools please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "give me p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I'D LIKE TO 'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "put make on my system", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "get ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "give me fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "CLANG PLEASE", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "give me make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I need strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "help me production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want to automate server setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "give me gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "about to python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "install python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "i want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "teaching programming to beginners now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "configure docker compose already", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I need fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I'm trying to give me tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "get neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "configure backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "can you install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "instll docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "set up prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I NEED VIRTUALBOX", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "can you install clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "want to program arduino asap", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "gotta podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "VM ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Please prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "looking to mysql server installation please", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "install curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "configure office suite", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "add ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "need to terminal sessions asap", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "install gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I WANT A COOL SYSTEM DISPLAY PLEASE", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "hoping to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Ready to fira code", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "about to debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "get btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "about to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "Cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "ebook manager", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I want obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "let's put gdb on my system for me", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Python venv on my system", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I'd like to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "need to server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "need to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "put net-tools on my system", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I NEED MYSQL FOR MY PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "protect my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "install gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "set up production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "streaming setup for twitch now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I WANT CLANG", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I need Git for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "tree command", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "malware protection on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Help me deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "configure want to watch videos thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm learning Docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "hoping to can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up get unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "time to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "my kid wants to learn coding!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "STREAMING SETUP FOR TWITCH", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I want to remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I need to get gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "please something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "time to machine learning environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "looking to legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I need iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I'm trying to get strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "set up go devlopment environment", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I want to find bugs in my code please", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to compile C programs please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "please golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I need redis-server already", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "ebook reader setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to track my code changes already", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "process monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "can you add mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "MY KID WANTS TO LEARN CODING THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Production server setup quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "add clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I need MySQL for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I need to mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ABOUT TO SET UP IPROUTE2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "set up iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'd like to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need git quickly", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "WANNA SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "could you trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I'D LIKE TO RUBY LANGUAGE", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "protect my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "unrar tool please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "Containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "could you put git on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I want to program Arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "network sniffer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "give me valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "could you want to do penetration testing already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "can you install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "hoping to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I want jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "compile c++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "rust programming setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Install jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "wanna set up strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "about to need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I want exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I need to record audio asap", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I'd like to want bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "give me strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "add podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "put openssh-server on my system", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "show folders", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "wanna neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'm trying to better ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "team communication tool", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "about to 'm starting a youtube channel already", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Word processing and spreadsheets on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Infrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "COULD YOU DOCKER WITH COMPOSE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "virtualenv on this machine", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "LOOKING TO ADD NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I want to compile C programs right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "valgrind please", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "let's make tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "i need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I'm trying to node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "get inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you install screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "need to set up maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "gotta java setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "c devlopment environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "btop please", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "can you install php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "add ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "sqlite", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "install php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "LOOKING TO GNU SCREEN", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "gdb debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I'm starting a YouTube channel now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I need a text editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "time to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "need to set up pyton on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ABOUT TO HOMEWORK REQUIRES TERMINAL FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "give me default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "i want to want to code in pyhton already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "'M LEARNING C PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "please need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "install fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I want openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want to edit images quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "READY TO 'M STARTING TO LEARN WEB DEV NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "give me fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "put calibre on my system", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "CLEAN UP MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "set up source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "looking to want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "set up fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "need to audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "how do I vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "wanna get nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I'd like to 'm starting a youtube channel right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "need to fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I'm trying to set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "vagrant tool", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you install imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "MALWARE PROTECTION ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "let's mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "time to slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "Wanna download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I want vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "put fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "need to managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ethical hacking setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "system administration tools right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "i need python3-venv?", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "virtualenv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "let's collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "how do I data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I'm trying to unzip files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "can you install cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "nginx please thanks", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I need to test network security on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I need to give me libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "CONFIGURE EBOOK READER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "add ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "set up emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "rg", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "give me gnupg please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT?", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "need to set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I need a database for my app asap", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "hoping to 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Can you install cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "CAN YOU INSTALL YARN", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "CONFIGURE CACHING LAYER FOR MY APPLICATION", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "java setup please for me", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "iproute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Set up for ai development?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "C development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "help me need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Give me p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I want to edit videos on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "can you install jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "set up need mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want to http client", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "configure antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "gotta managing multiple servers already", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Put curl on my system asap", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "INSTALL XZ-UTILS", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I'm making a podcast quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "install fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I want postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "wanna want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "let's personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "put ufw on my system", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "get redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "embedded developement setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "PDF MANIPULATION", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I need docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "ABOUT TO SHOW FOLDERS", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Let's managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "give me audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "LET'S WANT TO RUN VIRTUAL MACHINES", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "backup tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "could you unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "fresh install, need dev tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "graphic design tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "give me lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "add openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "help me 'm doing a data project already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "add python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "configure 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "security testing tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "audio production setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "need to game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "fonts-hack please", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "JAVA DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "gotta teaching programming to beginners on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "golang", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I'm trying to my friend said i should try linux development on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Docker engine", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "help me database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want to be a full stack developer right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "please want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "can you install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "prepare system for Python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "can you instal maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Can you need wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Ready to give me neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "need to optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "add okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "give me redis-server right now", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "nano please", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "give me nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "game development setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "can you install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GIVE ME PYTHON3-PIP", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ebook management asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "could you my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "postgresql database", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "add subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I WANT TO PROGRAM ARDUINO", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I need npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "indie game devlopment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "put npm on my system", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "TIME TO MY SYSTEM IS RUNNING SLOW!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "HELP ME MEDIA PLAYER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "GET DOCKER.IO", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "about to zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "configuration management tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "how do I server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Wanna llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I need qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Fix broken packages already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "please need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "vi improved", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to use MySQL for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "vagrant vms please", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "python environments", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I want ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "put vagrant on my system", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "how do I antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "can you install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CAN YOU FREE UP DISK SPACE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "i need to run containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "need to need to work with datasets for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "How do i put ripgrep on my system", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "nginx server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "preparing for deployment already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "i want lua5.4?", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Hoping to json processor", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "infrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "wget tool", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "mysql db", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "i need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "compile c", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "video playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "need to give me nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "gnu screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "ethical hacking setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "install python3-pip?", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "add fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "docker-compose please", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "get ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "help me set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "gotta alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "put nano on my system", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "give me neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "install default-jdk asap", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ready to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "could you clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "i want libreoffice!", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "HOPING TO WANT THE LATEST SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "configure network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "about to set up vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "could you fzf please", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Bzip2 please", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "live streaming software on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "mongo", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "ripgrep search", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I'm trying to python on this machine", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "get nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "openssh-server please", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "ufw please quickly", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I need to have a raspberry pi project right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm trying to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "hack font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "something like VS Code quickly", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "better top", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "imagemagick please for me", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "could you 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "time to ssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "please want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "nano please on my system", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "let's video playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up can you install exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "set up nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "ready to fix broken packages already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "add redis-server?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "set up g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I need to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "get htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "docker.io please", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "i want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up profiling tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I need to debug my programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Ready to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Give me cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "better find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "help me want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "give me exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "help me ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "about to want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "unzip please", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "please need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "okular viewer", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "mongodb database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "put mercurial on my system", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "my friend said I should try Linux development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Exa tool", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "add lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "set up need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "set up docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "TIME TO 'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "screen fetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "Help me samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Need to gnu c++ compiler please", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "yarn please!", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "get fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "about to set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "please memory debugging environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "let's homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "let's 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "getting ready to go live quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "nodejs runtime please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "help me set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "add exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "give me wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ready to want apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "oh my zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "i want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "PDF tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ready to 'm starting to program?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "HOPING TO MY PROFESSOR WANTS US TO USE LINUX ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "give me fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Mariadb alternative", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I'm trying to malware protection", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "can you install mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "uncomplicated firewall thanks", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "can you need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "get gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "can you install calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "system display now", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "get mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "backup tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I need default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I'm trying to want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "help me need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "set up ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "GET NETCAT?", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "MALWARE PROTECTION", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up for AI development on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "give me maven asap", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "photoshop alternative", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "how do I ltrace tool", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I want zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "set up gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Infrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "give me python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I need apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "set up ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "About to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "gnu make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "hardware project with sensors for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "PUT POSTGRESQL ON MY SYSTEM", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "SET UP WANT TO EDIT VIDEOS", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "python pip asap", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "HOPING TO JUST SWITCHED FROM WINDOWS AND WANT TO CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "oh my zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "set up virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "i want to add rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "I want to monitor my system on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "set up Redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "get lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "i want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need a text editor asap", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "put fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "want to find bugs in my code quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "put fonts-firacode on my system", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I need to need to troubleshoot network issues!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "get fail2ban asap", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "can you install bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "CLEAN UP MY COMPUTER ASAP", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "how do I prepare for containerized development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "node", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "GOTTA SYSTEM INFORMATION", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "looking to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "mariadb alternative", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Add clamav now", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I'd like to lzma", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I want cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "need to 'm starting to learn web dev on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "about to have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Wanna need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "fd", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "about to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "NEED TO UPGRADE ALL PACKAGES", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I WANT TO EDIT TEXT FILES", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "perl please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I WANT TO USE VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "About to need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "can you install unzip thanks", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I NEED IN-MEMORY CACHING", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "put gzip on my system", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "add tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Time to hardware project with sensors on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "looking to brute force protection", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "set up just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you virtual env", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "how do I notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "install libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "hoping to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "about to nstall maven on my computer", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "set up imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "gotta give me fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I want g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "set up net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to want a nice terminal experience!", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "can you fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "protect my machine on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "programming font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "network scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "set up office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Productivity software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "looking to set up mysql datbase", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I need multi-container apps for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm trying to put nginx on my system", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ready to debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "install sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "i'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "hoping to 'm building an app that needs a database", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "hoping to streaming setup for twitch thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GET PYTHON3-PIP", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "sqlite3 please", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "mysql database right now", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "show off my terminal on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "help me 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "basic development setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "let's mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "i need a databse for my app thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "gotta want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "wanna 'm starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "obs-studio please", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I'M TRYING TO WANT TO CODE IN PYTHON!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "working on an iot thing on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "install zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Need to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I'm trying to nstall fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "how do I want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "MONGO ON MY SYSTEM", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "give me vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "need to file sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "better terminal setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Give me perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "i need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "terminal productivity tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Rust development environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm trying to basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want to put jupyter-notebook on my system", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "my kid wants to learn coding now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to self-host my apps please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gradle please", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "get valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "set up want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I need fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "set up calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "need to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ssh", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "hoping to connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "give me obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "JAVA SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I NEED TO CHECK FOR MALWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "help me 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i need ipython3 quickly", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "Set up nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "put mariadb-server on my system", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I'd like to upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "time to put fd-find on my system", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "hg", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "zsh please", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "System update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "about to nstall rustc already", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "FILE DOWNLOAD TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I need neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "network tools on this machine", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "ready to slack alternative right now", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "configure unzip files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "streaming setup for twitch on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Iot development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'm trying to run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I WANT MONGODB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I'd like to need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "hack font now", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "HOME SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "give me qemu on this machine", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I want tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "document reader", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "FIX BROKEN PACKAGES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "jupyter lab", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "ready to want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "security hardening?", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "wanna graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "python language", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "postgres", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "configure can you install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I want to need unrar now", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "EASY TEXT EDITOR", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "put screenfetch on my system", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "About to backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "python language", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Add npm?", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "put vlc on my system", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "SET UP DEVELOPER TOOLS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "let's need libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "Streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to svn client asap", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "wanna docker setup please please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I want php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "wanna can you install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I NEED TO SERVE WEB PAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "can you install nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "crypto tool", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need to basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need to set up xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Packet analysis setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Give me curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "terminal editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "configure nstall libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'd like to production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "SET UP FOR AI DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "ssh daemon", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "configure pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I want ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "unzip files", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "give me zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "wanna system monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "wanna devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "embedded development setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I want calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "can you want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "scan network", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "debugging tools setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "mysql fork please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "please 'm starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "alternative to Microsoft Office!", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "bzip compress", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I need Python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "NETWORK DIAGNOSTICS ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "evince please", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "please want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I need to serve web pages thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "DOCKER SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "HELP ME GOLANG SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'd like to need mysql for my project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "Python development environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "How do i server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "could you 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "archive my files?", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "set up personal cloud setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "hoping to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "nodejs runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Cs homework setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I WANT TO WRITE PAPERS", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "configure need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want to record audio?", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "strace tool", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I want gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'M STARTING A DATA SCIENCE PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to nstall nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "download with curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "'m starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "About to lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "bzip tool", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "video production environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Can you rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "give me make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "time to home servre setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "give me emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "Configure need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "put qemu on my system", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I need a web browser on this machine", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "hoping to java development environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "nginx server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I'M LEARNING JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "zip files", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "get bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I want to better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "set up clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "could you vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "configure have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "lightweight database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I need neovim thanks", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Add netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "make my computer ready for Python on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "put emacs on my system", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "put clang on my system", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "how do I want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Redis server please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "give me g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "time to get fzf thanks", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "set up cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "time to need g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "gotta want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm trying to version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "productivity software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "give me php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "infrastructure as code setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "wanna set up ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "can you my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "configure free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "SET UP FOR MICROSERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Python package manager", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "ready to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I'm trying to want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "add xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "MONGODB DATABASE", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "can you install screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "i need to zip files up", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "add imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I'd like to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "let's microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "add mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "PLEASE DIGITAL LIBRARY SOFTWARE?", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "need to can you install python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "give me valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "CONFIGURE NSTALL PODMAN", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "add p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "virtual env", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I want to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gpg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want net-tools!", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "get tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "put yarn on my system", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "image manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "NODEJS PLEASE", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "improve my command line on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want to make games on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I need net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "prepare for database work on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Could you want yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "ready to backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need to java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "COULD YOU VALGRIND TOOL", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "prepare for coding for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "WEB DEVELOPMENT ENVIRONMENT PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "configure get libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need to need office software now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "how do I fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "get nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "add netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "install nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "DOCKER WITH COMPOSE SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need to p7zip?", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Set up mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "about to set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "TIME TO NEED OFFICE SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "network diagnostics", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "get golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "About to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "time to virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "could you home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "get gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "vlc player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "configure okular please", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "show specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "looking to want a cool system display quickly", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "hoping to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "pdf viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "looking to need to check resource usage?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "mariadb database", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "resource monitor for me", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "version control setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I want python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "add fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "gotta postgres", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to word processor on this machine", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "put golang-go on my system", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "set up openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "strace please", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "about to desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to build websites now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "cross-platform make", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "need to set up tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "get unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I NEED TO SYNC FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "put okular on my system", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "video production environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "give me fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Let's makefile support asap", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "wanna class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "give me zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "process monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "CAN YOU HAVE A RASPBERRY PI PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "ready to video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Lua", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "add bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "give me okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I'M LEARNING DOCKER ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "library calls", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "wanna system administration tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "add fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "ripgrep search", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "get screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "wanna set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "PYTHON PLEASE", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I'm trying to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "looking to game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "i want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "can you install netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "give me nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want to find bugs in my code right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "btop monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I want zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "ready to nstall python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "kvm", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "about to live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "put ltrace on my system", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "need to c development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "could you need a text editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "how do i can you instll openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "gotta want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Time to latex setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "SET UP WANT TO FIND BUGS IN MY CODE ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "prepare for ML work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "configure want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "maven please", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "add wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "add htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "add gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "wanna want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "I need to docker setup please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "can you download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "add evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "gotta want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "configure jdk installation on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I need to want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hardware project with sensors on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up npm asap", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I want to network diagnostics right now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'M TRYING TO JDK INSTALLATION", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "ready to get mysql-server thanks", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to nano editor on this machine", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want to compile C programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "digital library software quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "Fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "i'm trying to set up gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "wanna ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "can you set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "time to data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "configure want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "SET UP EBOOK READER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "ready to can you install gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "vagrant vms", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "modern network", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need calibre on this machine", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "looking to want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "wanna desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "configure set up a web server right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "let's connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "please make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to video production environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "strace please", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "could you word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "fast find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "bat tool", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "Office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "HOPING TO NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "rustc please", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "please set up everything for full stack for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I need iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "system calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "Put exa on my system thanks", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "can you install python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "can you want rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "academic writing environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "get imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "Photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'd like to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "make my computer ready for frontend work quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to run a website locally already", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "how do i jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "i need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "i'm building an app that needs a databse", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "GAME DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up rustc quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "add podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "let's scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "add vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "about to need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I'd like to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I need zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "what are my computer specs thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I WANT TO BROWSE THE INTERNET", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "put ruby on my system", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want to compile C programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I'd like to want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "give me maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "NEED TO MAGE MANIPULATION SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "HOPING TO CODING ENVIRONMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to need okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "set up have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "can you install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "give me calibre on my system", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I want screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "put obs-studio on my system", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "seven zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "gotta working on an iot thing please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "fzf please", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I want python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "About to ebook management thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "terminal system info thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "help me devops engineer setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "fix broken packages on my system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "about to docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "set up podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "configure want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "fast grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "ready to docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "NETWORK SCANNER ASAP", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "set up put gzip on my system already", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "npm please now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "Set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "Docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do I can you install nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "inkscape please", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "can you photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "add curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "help me need a text editor on my system", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "SET UP WANT THE LATEST SOFTWARE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Latex setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "nmap please", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Set up openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "can you install libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "give me clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "server automation environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "give me clamav already", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Install openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Please package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "can you install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "BETTER TERMINAL SETUP ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to add make on this machine", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "SYSTEM MAINTENANCE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "put fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I NEED TO RUN CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need a file server on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need Ansible for automation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "system monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "can you install docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "set up sqlite database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "can you install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "Looking to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "help me prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'd like to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "get openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "set up Redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I NEED TO JUST INSTALLED UBUNTU, NOW WHAT FOR CODING?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "NEED TO WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "ebook reader setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "mongodb please on this machine", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "kde pdf", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "network tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "please put virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "set up gdb on my computer", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Terminal system info thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "javascript runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "HOPING TO WANT TO EDIT TEXT FILES", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "vscode", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "i'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "neovim editor", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "set up Redis on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up want wget on my computer", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "time to version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "key-value store", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "instll mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "install cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I'd like to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need to optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "time to get obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I'm building an app that needs a database", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "exa please", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "ABOUT TO PYTHON VENV", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "WANNA NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "INSTALL YARN", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "set up default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "i want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "apache ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "Set up 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "IPYTHON3 PLEASE", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "could you want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "FILE DOWNLOAD TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "fix installation errors right now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I'm learning C programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I NEED TO GNU MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "CAN YOU INSTALL INKSCAPE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you install obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want to get fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "MySQL server installation already", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I need postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "add gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "can you install gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "put strace on my system", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "pdf viewer thanks", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want to virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "i want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "i need cmake?", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "SET UP NETCAT ON THIS MACHINE", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "wireshark tool", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "i'm trying to need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "VERSION CONTROL SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "document db", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "fira code", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I want to archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "update everything on my system asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "Prepare for containerized development", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "need to containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "PREPARE FOR CONTAINERIZED DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "PREPARE MY SYSTEM FOR WEB PROJECTS", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I'm learning java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "BRUTE FORCE PROTECTION", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need to rust development environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "fd-find please", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "brute force protection", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need to need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'm trying to want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm learning Go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "could you terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "install jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "give me neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "can you install python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "give me git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "can you install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "production server setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "let's want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "wanna svn", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I need ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "let's run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "give me gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I'm trying to put zip on my system thanks", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I need screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I WANT TO EDIT TEXT FILES", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "get exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "give me mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I need evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'm starting a YouTube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "can you install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I WANT TO DOCKER SETUP PLEASE RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "configure protect my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I need maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "set up network sniffer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "let's system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want fast caching for my app!", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Let's connected devices project already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "make my computer ready for Python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "gotta want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "TREE COMMAND", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I need ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "PDF TOOLS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I want git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "add php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "packet analysis setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "unzip please", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "install ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want imagemagick now", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "looking to xz files", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "PREPARE FOR CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "better top right now", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I WANT REMOTE ACCESS TO MY SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I'd like to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "MAKE MY COMPUTER READY FOR FRONTEND WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "put jupyter-notebook on my system", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "ebook management on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "python", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "fresh instll, need dev tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "INSTALL GIMP", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "i want a modern editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "looking to want jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "ready to give me zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "can you nstall zsh thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "let's 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "help me get fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I'M LEARNING GAME DEV FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I want screen quickly", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "can you install postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "how do I encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "hoping to can you install neovim asap", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "NANO PLEASE", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you caching layer for my application right now", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I need gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "get zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "help me need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ready to give me xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I want to alternative to microsoft office right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "ready to want to store data quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "wanna antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "instll apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I'd like to java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "get wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "set up openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "strace tool", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "put openssh-client on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I'd like to need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "get ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "iproute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "get ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "please want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "HELP ME MEDIA PLAYER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "javascript packages", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I want gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "i need curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I want docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "libre office for me", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "wanna want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "php language", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "network sniffer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "set up run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "looking to something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do I data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "looking to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "fish please", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Java development environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "mercurial please", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "photo editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "looking to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I'm trying to my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "json tool", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "SERVER MONITORING SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I NEED TO GIVE ME VLC QUICKLY", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "help me set up unzip please", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "help me prepare for containerized development", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I need vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "something like VS Code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Get fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "educational programming setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "version control", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "ABOUT TO WANT TO EDIT PDFS ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "put vlc on my system", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I want jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "get neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I WANT TO WRITE CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I need Ansible for automation right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I JUST SWITCHED FROM WINDOWS AND WANT TO CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "want evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "i need to docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "java development kit", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I need to fetch things from the web for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "ssh server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "i'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "configure video convert on this machine", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to fd", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "Configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need to nvim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "TIME TO VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "SET UP JQ", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I need npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "add maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "can you hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "About to want to edit text files?", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "create zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm trying to kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "security testing tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "install neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "let's need to check for malware?", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "home sever setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "please need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "how do I ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "ZIP FILES UP ALREADY", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "set up streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "get qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I need to work with PDFs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "let's web development environment please already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "archive my files right now", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "ready to fail2ban tool for me", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "hoping to give me ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "Ready to 'm learning java right now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "can you install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "better cat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I want audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I need ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want to packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "time to add iproute2 on this machine", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "hoping to machine learning environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "time to need podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "CLEAN UP MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "let's virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "get gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "security hardening!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up cat with syntax", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I need fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "basic development setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ABOUT TO MUSIC PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "JDK INSTALLATION PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "could you my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "team communication tool on my computer", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "help me set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "C/C++ SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "image editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "could you get gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Get rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "set up emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "need to mprove my command line on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to nstall strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "need to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i want to backup my files on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "JDK", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "need to want virtualbox thanks", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "ready to configure upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "ready to slack alternative right now", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "data analysis setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS?", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "hoping to getting ready to go live quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'd like to want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "about to need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "exa please now", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "can you install ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "let's 'd like to need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "READY TO FD-FIND PLEASE", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I WANT TO OFFICE SUITE", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Put virtualbox on my system?", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "about to optimize my machine please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "need to audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "clang compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "give me python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "version control setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Gotta 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "calibre please", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "help me devops engineer setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "please 'm trying to node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "HOW DO I NEED A DATABASE FOR MY APP ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "TERMINAL SYSTEM INFO THANKS", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "SCIENTIFIC DOCUMENT PREPARATION?", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Hoping to vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "gotta want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GNU PRIVACY GUARD", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "better ls for me", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "about to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "LOOKING TO GIVE ME VIM ASAP", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I need subversion!", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "i'd like to need to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ready to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "process monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "set up web development environment please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want to want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "ready to let's redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "let's need to create a website please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you install htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "gotta video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "ready to have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "about to get code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "configure can you install python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "ready to prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gotta video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "please get gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Configure bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "about to basic security setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "can you virtual env", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "get p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "give me calibre on my system", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "upgrade all packages asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "i need bat asap", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "configure bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I WANT TO NEED TO DEBUG MY PROGRAMS THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "time to get netcat?", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "i'm trying to python on this machine", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I want to network debugging tools", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "gotta need clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I need to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "library calls", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "Please streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "virtualization", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Let's 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gotta want to chat with my team on this machine", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "make my computer ready for frontend work asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "set up for data work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "time to live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to 'm learning game dev on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "install lua5.4 asap", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "add gnupg please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I'm worried about hackers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to watch videos now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i need git quickly", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up can you install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I'D LIKE TO GOTTA GIVE ME FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I want to set up lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "time to add make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's put gdb on my system for me", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "please can you npm please", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "hoping to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "GIVE ME BTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I WANT TO MULTIMEDIA PLAYBACK ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to need python3!", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "prepare for ML work already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I NEED TO NVIM", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "time to 'd like to need to check resource usage quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "SET UP GIVE ME EXA", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Set up just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "Add golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "JQ PLEASE", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "About to want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "let's cross-platform make", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "set up exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "extract rar on my system", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "time to go development environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I'D LIKE TO NEW TO UBUNTU, WANT TO START PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want g++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "SVN CLIENT", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "Put gcc on my system", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "GIVE ME GDB ALREADY", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "set up make on this machine", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "can you install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "get perl on my computer", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "looking to photo editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "CAN YOU INSTALL NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "set up get screenfetch already", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "set up docker compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "HELP ME 'M TRYING TO SET UP TMUX", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "let's looking to fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "could you photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "i want to use virtualbox for me", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "orchestration", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "COULD YOU RUN WINDOWS ON LINUX ON THIS MACHINE already", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "BACKUP SOLUTION SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ready to clamav please", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I need to p7zip?", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I need to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "gcc please please", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "terminal system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Add rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "install gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "time to cross-platform make", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "give me gcc!", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "ready to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "WANNA WANT TO SHARE FILES ON MY NETWORK", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "GIVE ME RIPGREP", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "OPTIMIZE MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I want to run virtual machines on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "unrar tool", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "need to streaming setup for twitch for me", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "LET'S 'D LIKE TO GETTING READY TO GO LIVE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Set up looking to 'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "streaming", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "set up ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "ready to just installed ubuntu, now what for coding right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need cmake on this machine", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "about to get sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "i need to run containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Help me production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Samba server!", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'D LIKE TO DEEP LEARNING SETUP ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I HAVE A RASPBERRY PI PROJECT NOW on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "add maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "GOTTA WANT TO CHAT WITH MY TEAM", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "svg editor asap", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "help me want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "please need to academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "about to can you add mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "Jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "how do I wanna ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "could you debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "wanna please need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "could you file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "LOOKING TO NEED OFFICE SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "gotta 'm trying to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "looking to mysql", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "gotta java development kit", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "let's looking to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "nginx server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "ready to video editing setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "compose?", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "lzma", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "NEED TO ADD CMAKE", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "about to 'm trying to python on this machine", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "set up docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "COULD YOU SUBVERSION VCS", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "CAN YOU NSTALL REDIS-SERVER", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "how do I have a raspberry pi project please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "mongodb database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "about to please scientific document preparation on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "HOW DO I HOW DO I 'M LEARNING GAME DEV", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "bzip tool", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "KEY-VALUE STORE", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Can you install podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "GET FFMPEG ON MY SYSTEM!", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you want to do penetration testing already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "REDIS-SERVER PLEASE", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Gotta looking to music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Looking to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CAN YOU INSTALL APACHE2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "please need fonts-roboto!", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "let's let's running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "RESOURCE MONITOR ASAP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "gdb debugger already", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "configure jdk installation on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I'D LIKE TO HOW DO I POSTGRES DB", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "about to give me python3 thanks", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "JSON TOOL ASAP ON MY SYSTEM", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Put fonts-roboto on my system", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "get git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "backup tools already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'm trying to fix broken packages asap", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "could you hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "need to need to fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "strace tool", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "set up rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "HELP ME FOLDER STRUCTURE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "VIDEO EDITING SETUP right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "rust language for me on my computer", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "please set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'd like to give me screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "Please how do i obs setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "HOME SERVER SETUP ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Devops engineer setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "hoping to hoping to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "get unzip for me", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "i'm trying to want the latest software on my computer!", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I'D LIKE TO WORKING ON AN IOT THING ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Live streaming software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm deploying to production please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want curl right now", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "Help me can you install netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "C/C++ SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "need to optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "need to configure prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Team communication tool", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "can you install make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "ABOUT TO NEED TO PHOTOSHOP ALTERNATIVE", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "could you get mercurial!", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "SET UP HTOP", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "YARN PLEASE", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "CONFIGURE ACADEMIC WRITING ENVIRONMENT ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I want zip for me", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "nginx please thanks", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "help me sqlite3 please!", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "tcpdump tool", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "add perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "put fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "gotta document db for me", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "how do I my kid wants to learn coding thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "SET UP PYTHON ON MY MACHINE for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "instal postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need to configure network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "put fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Looking to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "how do I redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up add tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "multimedia editing tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "ABOUT TO FREE UP DISK SPACE PLEASE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "okular viewer on my computer", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "hoping to nstall openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "screen please right now", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "insatll openssh-client on my computer", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "how do I programming font please", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "LOOKING TO ADD OBS-STUDIO", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "READY TO GO DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I need Ansible for automation right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "put apache2 on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "i want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Configure source code management on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "wanna want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "rust programming setup on my computer thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "want to see system info quickly", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up could you text editing software", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "how do I want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "set up rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "i need tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "help me preparing for deployment asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "could you 'm trying to put nginx on my system", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I want to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "let's want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'd like to gzip compress", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "install gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gotta nstall tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "set up getting ready to go live right now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "ABOUT TO CONVERT IMAGES", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "could you please scientific document preparation?", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "mysql-server please quickly", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'd like to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Gotta mage convert right now", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I NEED TO WANT TO RUN VIRTUAL MACHINES RIGHT NOW on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "set up want remote access to my server already", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "mongodb please on this machine", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "could you 'd like to can you install libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "put docker-compose on my system asap", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "give me bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "can you install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "LET'S WANT TO MONITOR MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "gotta lua", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "subversion please", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I want to set up wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Hoping to let's just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need to 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta time to want to record audio quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "please add imagemagick for me", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "open compressed files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "want g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Need to have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "ADD GIT!", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "set up production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "get p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "add imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "can you embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Set up ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I'm trying to want to be a full stack developer right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "install strace asap", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "install unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "SET UP HOPING TO CODING ENVIRONMENT THANKS THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Get redis-server?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "i want to getting ready to go live asap on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "help me nstall iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Need to put tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I'm starting a YouTube channel now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "configure time to slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "can you ebook manager", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "how do I graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "samba servre on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "about to ready to get clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "PLEASE WORKING ON AN IOT THING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'd like to want to need rust compiler on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I NEED MAVEN", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Set up emacs editor", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I'd like to get python3-venv now", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "How do i pip3", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "let's virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "put bat on my system!", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "SSH SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "can you install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "time to new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to give me libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "need to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "How do i give me openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "i need audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "rust language", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "please better top", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need to want to run a website locally already", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "RUST DEVELOPMENT ENVIRONMENT PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "help me please want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "CRYPTO TOOL RIGHT NOW", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "working on an iot thing!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i need gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "gotta alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "developer tools please on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "SET UP CAN YOU INSTALL JUPYTER-NOTEBOOK", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I need openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I WANT TO PROGRAM ARDUINO", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "help me set up cat with syntax", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I'm trying to bring my system up to date quickly for me", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "set up mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I'm trying to network security analysis please!", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I WANT ZSH", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "wanna could you want to do penetration testing already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "need to set up nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I'M STARTING A YOUTUBE CHANNEL", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Virtualbox setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "hoping to productivity software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "LATEX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Fira code", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I need to nstall mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "give me fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "MySQL server installation on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Help me need ansible for automation!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "put tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "production server setup on this machine please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "can you need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up for data work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "could you text editing software for me", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I need to set up fonts-hack on this machine", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "need to clean up my computer asap", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "set up kvm", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "set up put openssl on my system thanks", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "ebook reader setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I need ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gzip please?", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "looking to give me docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "data backup environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Please get postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "EBOOK MANAGEMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I WANT TO PIP3 QUICKLY", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "please production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "need to kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'D LIKE TO RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "hoping to can you install htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "wanna 'd like to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "add podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "hoping to ssh server setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Looking to nstall nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you need to record audio asap", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "time to uncomplicated firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "gotta remote access thanks", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "can you please extract zip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "indie game development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "give me vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I'm trying to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "could you pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "about to add net-tools asap now", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "set up want to watch videos quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Can you install vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "basic text editing on this machine right now", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "how do I developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "put qemu on my system", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "please connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "about to gotta need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ZSH SHELL", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "can you install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I'd like to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "add fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "ADD UNRAR", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "help me want nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "POWER USER TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "get htop right now", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "i want npm now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'd like to about to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I want a cool system display", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "interactive python please", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "please want remote access to my server quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "terminal multiplexer?", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "MAVEN BUILD RIGHT NOW", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "get fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "get okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "give me rustc thanks", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "system administration tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "wget please asap", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "please set up gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want to track my code changes!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "add zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "GET ANT", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "emacs editor for me", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "PLEASE WANT TO ANALYZE DATA QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "i need obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "wanna looking to memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Let's get calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "DOCKER ALTERNATIVE", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "SET UP CALIBRE", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "configure okular please", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "add fonts-hack on my computer", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "ready to want to monitor my system for me", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "PUT EVINCE ON MY SYSTEM now", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "give me nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "let's put mysql-server on my system!", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "need to nstall openssh-server thanks", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "i'm trying to database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "help me can you install curl on this machine quickly", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I'd like to want to make games on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "set up homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "could you trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I'd like to something like vs code quickly", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "configure need to train neural networks on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I WANT YARN", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "need to set up maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "wanna can you install tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Infrastructure as code setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "MARIADB", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "subversion please right now", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "need to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Need to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "HOPING TO LOOKING TO NETWORK SWISS ARMY", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "PLEASE DOCKER WITH COMPOSE SETUP NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "could you coding environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to learn Rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "GIVE ME SQLITE3 on my computer", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "about to put python3 on my system", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "zip please", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "VM ENVIRONMENT on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Video production environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "help me simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "DOCKER COMPOSE ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "wanna give me vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "LET'S SVN CLIENT", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "NODEJS PLEASE", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "resource monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "TIME TO MAKE MY COMPUTER READY FOR PYTHON!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "help me managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "easy text editor asap", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "production server setup asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gotta want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "ready to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to system update on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "about to set up need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to productivity software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "time to need in-memory caching please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Terminal info", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "set up bat right now", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "configure want to watch videos thanks for me", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "configure neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "how do I proute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "can you gnu c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "CAN YOU INSTALL EVINCE", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I'D LIKE TO ETHICAL HACKING SETUP?", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "SET UP A DATABASE SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "get code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "GIVE ME UNRAR", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "help me 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "can you install p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Please google font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "looking to server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "put perl on my system please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "give me jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Packet capture on my computer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "looking to easy text editor thanks", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "add tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "give me btop quickly", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "about to want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Need to pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "set up scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "get tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "gotta need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "get podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ABOUT TO DATA BACKUP ENVIRONMENT FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "could you obs on this machine", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "php interpreter quickly", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "let's pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "package manager issues?", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "audio editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "PLEASE WORKING ON AN IOT THING thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "looking to want fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "please need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I'D LIKE TO GETTING READY TO GO LIVE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "get zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "put g++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I'm trying to set up tree?", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "looking to network debugging tools", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to microsoft code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "can you give me p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "set up libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you instll code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "CAN YOU DIRECTORY TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "my kid wants to learn coding quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "hoping to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "mariadb right now", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "set up need to 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I WANT FFMPEG", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "OPTIMIZE MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "GIVE ME SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "i'm a sysadmin right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "NEED TO WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I WANT TO CHAT WITH MY TEAM ASAP!", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "put htop on my system", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "SET UP PODMAN", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "configure valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Time to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "add vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to need to connect remotely please", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "SEVEN ZIP NOW", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "SET UP LOOKING TO MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "configure hoping to set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "HOPING TO TIME TO WANT TO WRITE PAPERS", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I want to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "about to want to run virtual machines on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "COULD YOU CLEAN UP MY COMPUTER!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "MANAGING MULTIPLE SERVERS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "mariadb-server please on my system", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "time to set up for microservices!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "about to set up inkscape quickly", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I'm trying to want curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "about to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "OPENJDK", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "time to get tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "set up htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I'd like to digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I NEED TO TROUBLESHOOT NETWORK ISSUES!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Gotta cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "ABOUT TO LIVE STREAMING SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gotta zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "SVN CLIENT", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "Video player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need unrar right now", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "wanna put jq on my system asap", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "let's need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i want to use virtualbox for me", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Set up educational programming setup now right now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to put golang-go on my system", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "interactive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I need to add cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "gotta want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I'd like to want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "Remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want to want nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "need to need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ready to prepare for data science?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ABOUT TO GET FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "VERSION CONTROL", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "PLEASE GET NGINX THANKS", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Hoping to productivity software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "SET UP QEMU", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "please media player setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I have epub files to read asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up python on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to could you prepare for data science now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "need to rust language asap", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "configure set up nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "LOOKING TO MYSQL SERVER INSTALLATION", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "jq please!", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "java", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I WANT TO COMPRESS FILES NOW", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "About to want to edit text files?", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "let's vagrant vms asap on my system", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "LET'S WANT A NICE TERMINAL EXPERIENCE", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "need to jdk installation please right now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I need to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I need to vagrant vms", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you virus scanning tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "wanna want to find bugs in my code now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "set up put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "wanna want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "time to 'm trying to network security analysis please", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Can you install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "can you server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "put podman on my system asap", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "could you 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "how do i digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "looking to add ruby please", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I NEED TO NEED A FILE SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'D LIKE TO VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'D LIKE TO VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I WANT TO MAKE GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "wanna remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Could you jdk installation on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "GIVE ME MYSQL-SERVER?", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "gotta want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "wanna set up ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "FRESH INSTLL, NEED DEV TOOLS FOR ME ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I want gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "MONGODB DATABASE!", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I need clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "gotta make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "terminal productivity tools on this machine!", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "put calibre on my system", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "can you want a nice terminal experience on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "memory leaks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "add ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "i'd like to ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "media player setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "configure fix installation errors right now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Fira code", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Configure web downloading setup for me!", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up tmux right now", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I need vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "SLACK ALTERNATIVE", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I need to give me libreoffice!", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "need to 'm trying to set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "get exa!", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I'm trying to 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "about to my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "looking to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "About to lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "looking to network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "POSTGRESQL PLEASE PLEASE", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "set up openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "could you give me fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "SET UP GOLANG-GO", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I want to want nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "preparing for deployment already on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I WANT TO READ EBOOKS QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "could you make my computer ready for frontend work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you insatll htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "please need to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Set up clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I want to use containers on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "INSTALL MYSQL-SERVER", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "CONFIGURE DEV ENVIRONMENTS NOW", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "jq please asap", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "install wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Terminal sessions", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "let's add clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I need ltrace already", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "set up need tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to want to host a website already", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "put virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "wanna set up ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I want jupyter-notebook!", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "give me code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I need tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "hoping to can you install neovim asap", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "CAN YOU WANT TO EDIT VIDEOS", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "CAN YOU SET UP JQ", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "set up for data work quickly for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "install python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "need to want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "TREE COMMAND", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "CONFIGURE NSTALL PODMAN", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "gotta better find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "set up Python on my machine for me asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "let's set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to looking to python3-pip please?", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "podman please", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "SVG EDITOR", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Give me htop quickly for me", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "go language", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "Need to give me g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "i need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'M TRYING TO SET UP DOCKER-COMPOSE", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "i want to fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "please get nginx thanks now", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "need to need to want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "could you my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "i'd like to 'd like to want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Hoping to golang", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "help me vm software", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "time to set up need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want to how do i track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "hoping to gotta server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'm trying to nstall obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "INSTALL P7ZIP-FULL", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "how do i give me zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "insatll php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Python notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "can you insatll tmux!", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "GOTTA SYSTEM INFORMATION", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "give me btop quickly", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I want to music production environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "hoping to can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "hoping to need pyton3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want to containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gotta fresh install, need dev tools already", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "prepare system for Python coding already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Get wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I need to want to automate server setup thanks now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "set up fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "MONGO ON MY SYSTEM", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I'd like to mage convert", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "Could you add fish asap", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "set up neofetch quickly", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Looking to proute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Live streaming software on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "TIME TO VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up about to fd thanks", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "gradle build please", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "antivirus on my computer", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "HOW DO I NEED IN-MEMORY CACHING", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "CRYPTO TOOL ALREADY", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "SET UP OFFICE SUITE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Redis server please quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "FOLDER STRUCTURE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Please nstall openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "i need gimp quickly", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to home server setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "looking to want gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "could you server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "looking to want to extract archives already please", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "configure want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "Hoping to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I'd like to add netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "hardware project with sensors for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "how do i lua5.4 please already", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I want htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "performance monitoring please", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "VIM PLEASE", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "how do i developer tools please on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "clamav please", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "let's security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I'd like to want to do penetration testing!", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "CONFIGURE FILE DOWNLOAD TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "READY TO NETWORK SECURITY ANALYSIS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "want to prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "help me fast grep on my computer", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "configure clang compiler asap", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "about to help me want to code in python already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "let's docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "put netcat on my system", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "can you 'm deploying to production please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "wireshark tool for me", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "set up tcpdump!", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "ABOUT TO BACKUP TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "could you easy text editor for me asap", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "HELP ME NEW TO UBUNTU, WANT TO START PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO PYTHON ON THIS MACHINE", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Word processing and spreadsheets on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up set up redis-server asap", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "looking to wanna network debugging tools", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "json tool asap", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "looking to gotta audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "GOTTA FUZZY SEARCH?", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "set up gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "configure want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "fuzzy finder quickly", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "looking to need to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "instll ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "time to backup solution setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "put lua5.4 on my system", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "give me npm!", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Zip files up right now", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "can you install code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "can you install unzip thanks", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "ADD FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "i need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "help me how do i virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want a modern editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "help me hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "configure please system maintenance asap", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "SET UP 'M MAKING A PODCAST ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I WANT TO RUBY INTERPRETER", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I'm trying to ssh server!", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "install clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I'D LIKE TO FIX BROKEN PACKAGES FOR ME", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "hoping to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "clamav please", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "can you install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "MY KID WANTS TO LEARN CODING!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "configure need default-jdk on this machine", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "hoping to 'd like to need to check resource usage quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "help me need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want to get cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "set up collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I need to serve web pages thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "i'd like to need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "new to ubuntu, want to start programming please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I WANT TO WATCH VIDEOS", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "nosql database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "ebook management on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "hoping to mariadb database", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "need to configure ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I need calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "HOPING TO HOME SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'd like to ready to want to self-host my apps on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "rust on my system", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "ABOUT TO NEED TO WRITE RESEARCH PAPERS", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "about to screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "PYTHON3 INTERPRETER", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "time to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm worried about hackers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "time to set up fish on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "gotta need fonts-firacode!", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "set up want to learn rust?", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up for microservices on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "get bat thanks", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "streaming setup for twitch on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up let's just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "get audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "about to prepare for ml work already?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "terminal productivity tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "looking to document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ready to modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Wanna can you need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'd like to netcat tool", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I want to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to want to edit images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want to help me want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "time to about to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "need to want to learn rust please", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "hoping to nstall wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I want okular thanks", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I need to nstall make?", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "configure want to build websites already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "hoping to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I want to get ffmpeg quickly", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "about to want cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "please put fonts-firacode on my system", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "gotta set up want ufw asap", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "about to 'm trying to embedded db right now", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "looking to help me personal cloud setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "need to need to bring my system up to date already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Python notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "set up about to set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "configure give me virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I'm trying to need openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "set up have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "configure nstall obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "i'd like to set up gdb on my computer", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "TERMINAL SESSIONS", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "Packet analysis setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "file sharing setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need to work with images already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Unzip files on this machine", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "production servr setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want to ready to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'd like to give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I'd like to need nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "i want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "need to can you install gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "hoping to developer tools please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "HOW DO I PREPARING FOR DEPLOYMENT", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want to set up default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "set up fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Please can you install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to give me docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Give me python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "ready to gzip please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "can you extract rar asap", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "JAVA BUILD", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I NEED TO PLAY VIDEO FILES?", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Game engine setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "get gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I'm trying to fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need to need office software now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "COULD YOU DESKTOP VIRTUALIZATION ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I need Ansible for automation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "ip command", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "resource monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "give me vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "time to nstall golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "hoping to get fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "give me wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "gotta audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Set up can you want inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up need tcpdump asap", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "set up 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you time to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I WANT TO SYSTEM DISPLAY NOW", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "System maintenance please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "rootless containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "configure get perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "hoping to put apache2 on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "i want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "wanna can you want a nice terminal experience on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I need maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "let's add postgresql already", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I'm trying to malware protection", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Put fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "how do I need jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "json tool asap", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "word processor", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "how do i can you instll openssh-server?", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Mysql server installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Docker compose environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "REDIS", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "ebook reader now", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "please memory debugging environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I'd like to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Set up redis on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "add python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "put subversion on my system", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I WANT THE SIMPLEST EDITOR QUICKLY", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "set up cmake asap", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "WANNA SSL", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "SET UP EVINCE PLEASE", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "set up for AI development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "could you power user terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "could you ready to 'm learning java right now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "put imagemagick on my system", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "help me give me apache2!", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "how do I javascript packages now right now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I need docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "set up gdb on my computer?", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Hoping to want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "GET PYTHON3-PIP", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I need openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "let's connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "install nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "install gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Can you install audacity on my computer", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Let's gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I'm learning Python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "time to ready to need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "i need a database for my app!", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Hoping to want a nice terminal experience for me", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "let's need to want to host a website quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "can you about to 'm starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'm trying to caching layer for my application for me", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "get audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "wanna put subversion on my system", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "please hoping to need office software already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "install code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "mariadb database already", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "ready to please nstall bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I NEED TO SET UP REDIS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Uncomplicated firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I WANT TO DO PENETRATION TESTING", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "please want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "looking to want fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I WANT TO NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "could you desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "how do I give me emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "source control on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I'm trying to want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "INSTALL GZIP", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "READY TO ADD FZF", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I want to can you install sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I need to debug my programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I need fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "okular viewer on my computer", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "how do I need to connect remotely now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "let's make tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "video production environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "PREPARE SYSTEM FOR PYTHON CODING?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Get ufw thanks", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "educational programming setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "could you make my computer ready for python on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to ot development environment for me!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "set up ltrace right now", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I NEED TO HOW DO I ENCRYPTION", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want to prepare for data science on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "hoping to wanna prepare for database work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "ready to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Give me clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "ready to network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "can you install docker.io asap", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I'd like to working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I need fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "emacs editor", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "Time to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "configure can you install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "READY TO 'M LEARNING JAVA RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "set up neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'd like to ssh server quickly", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "can you install netcat quickly", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "hoping to help me working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "PUT GDB ON MY SYSTEM", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'm trying to want to stream games thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gotta ebook reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "set up source code management right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "please 'm trying to want the simplest editor asap", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Wanna 'm starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Add imagemagick for me", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "install code!", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "need to set up screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "How do i data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "sshd!", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up perl language on this machine", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "please btop monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "give me git now", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "please get clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I want to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "let's make tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "i want to need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I'd like to help me virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Gotta kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "i want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "About to hoping to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "gnu debugger for me", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I want to packet analysis setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "put wget on my system please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "hoping to can you install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I need make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I want to compile C programs already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "ready to make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'd like to file sharing setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "set up for AI development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "wanna python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "GET CURL", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "C/C++ setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "c devlopment environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "NODEJS RUNTIME PLEASE ON MY COMPUTER", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "configure want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to set up clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Podcast recording tools!", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "My professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Set up please need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "could you production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm deploying to production on my computer", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "let's home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ready to gotta remote connect", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I'M STARTING A YOUTUBE CHANNEL ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "SET UP SOURCE CODE MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "set up streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I NEED TO WANT GIT", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Give me nginx thanks", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I'd like to ebook management asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Could you put git on my system on this machine", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "wanna web downloading setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want to please llvm compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "how do I need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "GOTTA PODCAST RECORDING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i'd like to 'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "could you educational programming setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up can you install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "could you embedded development setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "System update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "gotta ripgrep search", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "need to get ipython3 for me", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "PLEASE LLVM COMPILER!", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "GOTTA CONFIGURE VIRUS SCANNING TOOLS QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need gimp now", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "let's samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "help me fetch system already", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "HELP ME OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gotta repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "looking to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ADD TMUX", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "need to server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "IFCONFIG", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "can you 'm learning pyton programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "put wget on my system quickly", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "DOCKER-COMPOSE PLEASE QUICKLY", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I want net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "virtual machine", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "add redis-server?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "about to ready to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "put evince on my system on my system", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "ready to video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I NEED A WEB BROWSER", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "COULD YOU TERMINAL PRODUCTIVITY TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "HOW DO I LOOKING TO WANT TO EDIT VIDEOS ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want to be a full stack developer!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I'm trying to need to debug my programs on my system on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "containerization environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ruby language", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "need to server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Nstall netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "set up iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "gotta 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "Looking to p tool", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I'M TRYING TO WANT TO CODE IN PYTHON right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "hoping to 'd like to want bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "install nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "i want to can you instal fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "set up for data work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "MY KID WANTS TO LEARN CODING THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "show off my terminal on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "add wireshark right now asap", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Give me htop quickly", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Install openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "set up version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "rust programming setup on my computer asap", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do i lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Set up gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to can you install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "let's can you install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to run windows on linux right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "ready to nstall python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I NEED TO PLAY VIDEO FILES?", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "configure fix installation errors!", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "hoping to set up p7zip-full for me", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up perl asap", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "let's scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "let's redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I NEED GZIP", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "help me fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "ready to nstall python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I want to be a full stack developer now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "could you looking to put fonts-roboto on my system", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Hoping to json processor", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "can you install ltrace asap", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "i want to automate servre setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "can you hoping to pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "add make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "need to docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "PUT OPENSSH-SERVER ON MY SYSTEM ASAP", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I need to want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "gotta need fonts-firacode!", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "hoping to get fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Uncomplicated firewall thanks", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "gotta connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "put obs-studio on my system", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "docker compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "profiling tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "SET UP WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GIVE ME NETCAT", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "graphical code editor please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "vagrant tool", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Help me fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "i need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "configure ndie game developement", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "screen recording on my system", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "ABOUT TO SET UP IPROUTE2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Ready to fira code", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "YARN PACKAGE MANAGER", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "OBS setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "time to want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "image manipulation software on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "could you want to use containers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "install neofetch on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "nstall ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "add vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "ABOUT TO ABOUT TO NEOVIM EDITOR", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Install bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "Let's system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "looking to put npm on my system", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Bzip2 please", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "i need curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "ADD FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "java gradle now", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "could you remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "EMBEDDED DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "let's get okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "get iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "CONFIGURE WANT TO USE CONTAINERS THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to orchestrate containers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "set up evince please asap", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "configure need golang-go?", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I'd like to ripgrep search quickly", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "i want to terminal info", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "set up screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I need apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "configure pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "set up openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "i need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ip command", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Configure gotta give me fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "ADD VIM", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "help me vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Terminal system info thanks on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to can you python notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "can you install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "NEED TO NEED TO GAME DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "need to my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "INSTALL TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "about to running my own services on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Let's packet analysis setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to file download tools already", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up evince for me", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "i want to system display right now", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I want to watch videos quickly please", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please get ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "i'd like to 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "wanna podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ADD FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ebook reader setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "how do I digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Can you install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "hoping to audio production setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "configure help me add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "READY TO BASIC SECURITY SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'm trying to unzip files for me", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "I WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you install sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "RUST ALREADY", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "gotta 'm trying to want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "READY TO MYSQL SERVER INSTALLATION ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'd like to deep learning setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "QEMU EMULATOR THANKS", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I want to use MySQL", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Cmake build", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "i'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Looking to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I need clamav?", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "help me need a text editor on my system", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "looking to could you set up redis now", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "about to add python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "i'd like to wanna get nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "help me set up for data work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Wanna want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "looking to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "GOTTA TIME TO HTTP CLIENT FOR ME", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I need docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "neofetch please thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want to add tmux right now on this machine", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "SYSTEM ADMINISTRATION TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "COULD YOU NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "CAN YOU DOCKER COMPOSE ENVIRONMENT!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me nfrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "CONFIGURE EBOOK READER", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "could you 'm learning mern stack quickly thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I want to add pyton3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "version control", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "time to my friend said i should try linux development now", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CONFIGURE ADD GIMP PLEASE", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "INSTALL UNZIP FOR ME", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "CAN YOU FREE UP DISK SPACE PLEASE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "managing multiple servers on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "looking to system administration tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "gotta make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Could you python package manager", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "help me basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "please 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "install unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "About to need office software already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you set up fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I'm trying to set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "how do I ripgrep please on my computer", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "need to just switched from windows and want to code?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "p7zip-full please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "sound editor now", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I want zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "GIVE ME MONGODB ON THIS MACHINE", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "get calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "configure want to edit pdfs!", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "wanna virus scanning tools please thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "my kid wants to learn coding now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "wanna add rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "FANCY HTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "add fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I need to fetch things from the web on my computer on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "time to need python for a project for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "how do i need to homework requires terminal for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "gotta add bzip2 quickly", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "let's set up audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "configure set up want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "gotta set up a web server for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "can you install screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "Hoping to want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "production servr setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Give me yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "can you basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "need to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "PLEASE WORKING ON AN IOT THING already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "time to ssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "could you want to want docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I need to give me fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I NEED TO SERVE WEB PAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need to need mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "configure need to ndie game development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "put iproute2 on my system", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "devops engineer setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "let's put clang on my system", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "set up virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "get tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "i want iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "help me set up postgresql on this machine", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "malware protection on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Get gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I'd like to add vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "help me set up for data work now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "how do I add fonts-roboto now", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "put gradle on my system", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "hoping to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "hoping to need a database for my app on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Web downloading setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "put redis-server on my system right now", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "add code already", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "can you install fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "can you nstall zsh thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Terminal system info on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "install fzf quickly on my computer", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "GAME DEVELOPMENT SETUP ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "how do I pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "give me strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I want net-tools!", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to 'm starting a youtube channel already", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Prepare for ml work already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "put btop on my system on this machine", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "network tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "install podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need to debug my programs on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I want to dev environments", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "PUT FISH ON MY SYSTEM QUICKLY", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I'm trying to about to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "i want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "DOCKER.IO PLEASE", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "how do I c/c++ setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "video production environment asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "help me rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "set up fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "can you my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "ADD XZ-UTILS", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "prepare for coding for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Get jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I need subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "can you install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please javascript runtime please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I need to debug my programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "system calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "HTOP PLEASE NOW", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "c++ compiler now", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "looking to let's 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "gotta 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "ready to modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I want zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "give me make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "coding font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "put iproute2 on my system", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "i need to 'm trying to homework requires terminal please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "let's database environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Set up ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "could you word processing and spreadsheets on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Set up openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "tcpdump tool on my computer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I WANT TO WATCH VIDEOS ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "i want remote access to my server for me", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "about to want npm?", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I need to about to want qemu right now", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "TIME TO BACKUP SOLUTION SETUP ON THIS MACHINE?", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need tcpdump asap", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "NOSQL DATABASE", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I NEED TO GIVE ME VALGRIND", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "help me desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Time to need apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "looking to nstall neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "GOTTA NETCAT PLEASE", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "about to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "get default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you install perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I need zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "about to need to sync files asap", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "Clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I want to track my code changes already", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "give me inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'M TRYING TO CACHING LAYER FOR MY APPLICATION", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Set up redis server please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "can you install emacs on my system", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "Fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I'd like to looking to legacy network please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "looking to want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "wanna want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "docker.io please on this machine", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "ADD GZIP", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "i want to compile c programs already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "about to strace please", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Help me database environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need to run containers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "put htop on my system", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "give me tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "READY TO PUT MAKE ON MY SYSTEM ON MY SYSTEM", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Add perl?", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "how do I pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I'm trying to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "GOTTA GET NEOFETCH", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "WANNA FIX BROKEN PACKAGES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "help me terminal system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "image editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "time to set up game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "INSTALL ZIP THANKS PLEASE", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "can you data backup environment already already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "configure nstall gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "brute force protection", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "prepare for ML work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "SET UP SCIENTIFIC DOCUMENT PREPARATION", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "add maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Can you install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "get ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "help me ufw firewall please", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "PREPARING FOR DEPLOYMENT ALREADY", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "MAKE MY COMPUTER READY FOR FRONTEND WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "put vlc on my system", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "Wanna productivity software quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "photo editor asap", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "memory debugger already", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "Help me cmake tool thanks", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "configure what are my computer specs on this machine", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want to streaming setup for twitch for me", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to watch videos now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Time to security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up preparing for deployment already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I WANT OPENSSH-CLIENT", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "configure can you install make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "add perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I'm trying to set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "MONGO ON MY SYSTEM", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "GIVE ME CODE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "GIVE ME UNRAR ASAP", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Can you install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "INSTALL STRACE", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "hoping to office suite setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "PYTHON ENVIRONMENTS", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "set up Python on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I WANT TO CAN YOU EBOOK MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "gotta time to want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "let's netcat tool right now", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "i'm building an app that needs a datbase on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to use containers on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "looking to set up perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "READY TO NEED TO VIRTUALBOX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "WANNA SECURITY TESTING TOOLS ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "gotta basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "configure can you install apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "update everything on my system right now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "jdk insatllation now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "please get htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Please fuzzy search already", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "ssh client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I NEED VLC", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "IMPROVE MY COMMAND LINE ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "can you want to orchestrate containers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm trying to virtualbox please already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "i'm trying to can you want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I want to add redis-server?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "alternative to Microsoft Office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "could you want ffmpeg already", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Time to want to run virtual machines on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I need bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "HOW DO I ABOUT TO NSTALL MAVEN ON MY COMPUTER", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "let's need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I need code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "network security analysis on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "could you want ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "could you my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Install jupyter-notebook asap", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "About to put screenfetch on my system", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "about to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you nstall clamav now", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "BETTER TERMINAL SETUP ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "home sever setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "create zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "how do I vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Need to set up gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "gotta need libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need redis-server already", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Get libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "zip files up", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I want sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "looking to wanna teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'm trying to 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "ready to just installed ubuntu, now what for coding quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "gdb debugger already", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "ready to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "install gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "let's need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "i'm learning go language?", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I'd like to 'm starting a youtube channel right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "security hardening!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Trace syscalls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "set up pythn3-pip right now", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "can you new to ubuntu, want to start programming on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "let's want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "need to need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "easy text editor already", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I WANT GIT", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "better top right now for me", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "set up looking to add emacs right now", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "give me wget thanks", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I need to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "hardware project with sensors on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "7Z ASAP on this machine", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "PUT QEMU ON MY SYSTEM", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "LOOKING TO MUSIC PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want to code in python thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ufw please quickly", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "set up neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I want to download files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'm trying to nstall calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "help me about to want to orchestrate containers right now thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "PYTHON PACKAGE MANAGER", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Ready to want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "LATEX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "HOW DO I HOPING TO WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "get mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "HOW DO I FIX BROKEN PACKAGES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "GIVE ME PERL", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "can you git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "hoping to managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "LET'S GET OKULAR", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I'm trying to power user terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I need Git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "ready to need to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "can you personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "how do I better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I'd like to source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "put fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "set up vagrant on this machine", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "COMPILE CODE ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "install netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I'm trying to gotta vm software already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "i have epub files to read!", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "about to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Put gcc on my system", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "LEGACY NETWORK ON MY SYSTEM", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "TERMINAL INFO", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "install screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I need to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "could you ready to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "let's help me apache", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I'd like to want to stream games?", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Network debugging tools", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "let's want maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "READY TO NEED TO NEED TO SERVE WEB PAGES PLEASE THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "working on an iot thing now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "ready to fetch system on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "could you need netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "GZ FILES", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "can you install nodejs on my computer", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I'd like to htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "looking to can you educational programming setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "System maintenance please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "MANAGING MULTIPLE SERVERS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm trying to want to analyze network traffic on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ABOUT TO NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need nodejs on this machine", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "let's about to want to run virtual machines on my system please", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "hoping to can you install wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "CAN YOU WANT STRACE", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "zip files", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "put docker-compose on my system", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "need to pdf manipulation already", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "get gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "HELP ME ABOUT TO OPTIMIZE MY MACHINE PLEASE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "gotta make my computer a server on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'd like to put jq on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Zip files up", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I need to work with images quickly on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up how do i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "let's want to find bugs in my code on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "can you want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "get jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "please wanna productivity software quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Hoping to gnu screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "can you install screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "EBOOK MANAGEMENT now", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "COULD YOU CLEAN UP MY COMPUTER!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "ready to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please put perl on my system please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "set up hoping to get fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "configure 'm learning game dev on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "PDF TOOLS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "gotta want to chat with my team for me", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "HOW DO I GZIP TOOL", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "could you database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "About to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "getting ready to go live already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I NEED TO MPROVE MY COMMAND LINE QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "xz compress", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "How do i put rustc on my system quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "protect my machine now?", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "fresh instll, need dev tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "C/C++ setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I need to please get nginx thanks on this machine", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "give me gcc for me", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Hoping to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure g++ please", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "put php on my system on my computer", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "FUZZY SEARCH", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I'm trying to rar files", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "get golang-go quickly", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "please can you install yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "kid-friendly coding environment asap", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "wanna get gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Ready to want a modern editor for me", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "could you photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "TIME TO WANT TO EXTRACT ARCHIVES", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "add gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I'd like to add postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I WANT TO SYSTEM MONITORING TOOLS!", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'd like to want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "need to fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "please get fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "i need to check resource usage on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "configure want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "could you put git on my system right now", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Configure ready to just installed ubuntu, now what for coding thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install fish quickly", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "nvim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I need ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "CAN YOU INSTALL CALIBRE ON THIS MACHINE", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "fresh instll, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "help me prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Install yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want to record audio now", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "configure 'm learning c programming right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Can you could you get jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "give me yarn right now", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "FIX BROKEN PACKAGES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "let's nginx please thanks", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I'd like to put openssh-client on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "Make my computer ready for frontend work quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "how do I want evince quickly", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "help me ant please", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "I NEED BZIP2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "ADD RIPGREP NOW", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I'M TRYING TO HAVE A RASPBERRY PI PROJECT on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "7z?", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "configure nstall fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I want audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "give me net-tools asap", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to want to host a website now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "wanna hoping to c development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "want to find bugs in my code quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "gotta want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to hoping to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "PLEASE WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "could you want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "GET SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I need to video playback right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "hoping to docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you want openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "gnu image quickly", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I WANT TO PLEASE BAT TOOL", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I need fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "let's system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "give me gimp for me", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "CONFIGURE WANT RIPGREP", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "need to graphic design tools quickly already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Let's mvn", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "terminal multiplexer", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "vim editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "PLEASE MAKE MY COMPUTER A SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'm trying to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I want to need python for a project!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ready to add jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I need Python for a project please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "looking to desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Please let's makefile support asap", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Trace syscalls now", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "GIVE ME DOCKER.IO QUICKLY", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "terminal system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "hoping to audio production setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want to want gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I need libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "could you video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "HOW DO I JUST SWITCHED FROM WINDOWS AND WANT TO CODE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta can you install ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "can you install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I'd like to folder structure now", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "could you let's 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "time to mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "'M BUILDING AN APP THAT NEEDS A DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "add exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "rust programming setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "put openssh-client on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "can you curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "g++ please", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "need to set up a web server please", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "C DEVELOPMENT ENVIRONMENT on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "let's 'd like to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "containerization environment quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I NEED TO TROUBLESHOOT NETWORK ISSUES RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ready to want virtualbox on my system quickly", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "GET PYTHON3-PIP", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "PUT JQ ON MY SYSTEM", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "wanna need to write research papers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "could you my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "i want to scan for viruses please", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "network scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "google font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Please configure show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "get gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "READY TO WANT TO DO MACHINE LEARNING ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "help me want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "could you my kid wants to learn coding!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to docker setup please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "install xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I'm trying to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "how do I system monitoring tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "set up let's python development environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to rg", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "My apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Help me javascript packages", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Wanna give me gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "fancy htop on this machine", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I need unrar thanks", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "put openssh-client on my system already", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "ADD NMAP", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I want to find bugs in my code asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I want to orchestrate containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "put python3-pip on my system", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS?", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'm trying to help me need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I want to edit images already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "LOOKING TO ADD OBS-STUDIO", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "set up please fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "HOPING TO GIVE ME IPROUTE2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I need to put yarn on my system", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you need docker.io already", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "ADD GIT", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "hoping to give me clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "put gnupg on my system on my system", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "CAN YOU WANNA NEED TO CREATE A WEBSITE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "wanna put code on my system on my computer", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "put zsh on my system", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Configuration management tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "hoping to gotta need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Set up mysql database already", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Ready to want to self-host my apps please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Put htop on my system", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "SET UP A WEB SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "need to want ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "looking to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "set up web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "please need to train neural networks!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "wanna put gnupg on my system", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "TERMINAL SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I WANT TO WANT TO HOST A WEBSITE", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "looking to want to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "give me clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want to write code for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Let's mprove my command line quickly thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I want obs-studio!", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "FILE DOWNLOAD TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "basic text editing on this machine", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need to debug my programs on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Let's please need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "give me btop quickly", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "ready to add neovim now", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "how do I want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Time to samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "COMPILE CODE ON MY MACHINE asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "looking to want ipyhton3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "kde pdf thanks", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "NEED TO NSTALL GCC", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "READY TO WANT TO MONITOR MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I WANT TO FIND BUGS IN MY CODE ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Help me need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "How do i pip3", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "put wireshark on my system", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "SET UP KID-FRIENDLY CODING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Python3-pip please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "can you install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "ANTIVIRUS", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "SCREEN RECORDING RIGHT NOW", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want openssl quickly", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Can you want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "About to need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "wanna need to play video files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "wanna hoping to want to edit images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "help me optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I'd like to python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "i want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "datbase environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "About to backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ready to mercurial please", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "SYSTEM MAINTENANCE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Need to compile code on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "let's ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I need openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "gnu c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "give me openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "port scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "INSTALL INKSCAPE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "configure want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "put tmux on my system", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "ready to gotta postgres", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I WANT TO HOST A WEBSITE", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "ready to wanna educational programming setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "about to virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "python language!", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "need to 'm trying to have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i need to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "i want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "LET'S ANTIVIRUS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want to system administration tools quickly on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Set up strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "let's how do i track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "INSTALL INKSCAPE THANKS", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "wanna about to samba server thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "productivity software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "add wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "PLEASE NEED TO VIRTUALBOX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want to hoping to c/c++ setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I'd like to want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "help me connected devices project right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to orchestrate containers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "hoping to want to code in java on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "about to virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "C DEVLOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "add openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Image manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "configure update everything on my system on my computer", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "about to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "i need openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I need to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "i want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "fd", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "please ready to modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "how do I can you install nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "can you install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "can you show off my terminal on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "MEDIA PLAYER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "CAN YOU NFRASTRUCTURE AS CODE SETUP on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "how do i add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "CAN YOU SET UP RUN WINDOWS ON LINUX NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "about to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "lua language on my computer", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "STREAMING SETUP FOR TWITCH", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "LET'S CONNECTED DEVICES PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I need to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "let's prepare my system for web projects!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "wanna gotta full stack development setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "how do i virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "apache server on my computer on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "configure get subversion already", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "configure repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need to security testing tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "wanna how do i jdk installation!", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I'd like to production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "configure connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "python right now", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I want to help me terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Terminal system info asap", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "could you gotta 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ready to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "hoping to let's mprove my command line quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'd like to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I'm trying to source code management for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "please 'm learning python programming asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "multimedia playback on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install zip thanks", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "rar files quickly", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "wanna web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "unrar tool", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I NEED QEMU RIGHT NOW", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need to can you install mysql-server right now", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "go language", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "about to gradle please", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "looking to memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "get redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "set up qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "add sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "looking to prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "can you set up perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "get yarn thanks", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "sqlite", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "looking to want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "help me home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "need to mysql", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "containerization", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "how do i jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "install gcc on this machine", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "looking to want jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "need to postgresql please on my system", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "LaTeX setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I want to fd-find please!", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "help me give me p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "can you install imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I NEED GDB", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "looking to could you office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "wanna full stack development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "PREPARE FOR CODING on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need a database for my app asap thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "ready to get tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "configure nstall ruby on my computer", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "could you give me screen asap", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I want gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "time to ssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "add podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "New to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "How do i can you install mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "can you install iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "postgresql database", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "COULD YOU DOCKER WITH COMPOSE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to 'm trying to set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "devops engineer setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "yarn please!", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "time to tcpdump please", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "i'd like to ssh client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "set up desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "ready to want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I WANT TO WANT DOCKER.IO THANKS", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "put nginx on my system", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Please my friend said i should try linux development on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "dev environments for me", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "about to let's microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Set up can you install net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "set up fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "time to want to read ebooks quickly right now", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "please want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "profiling tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "can you set up docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "set up vagrant quickly", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "CONFIGURATION MANAGEMENT TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "GIVE ME ZIP", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "need to set up want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Set up jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "can you pyhton pip asap", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "set up please add ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "help me nstall ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES ALREADY", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "GETTING READY TO GO LIVE?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "seven zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Wanna just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "could you working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "fail2ban tool", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "RESOURCE MONITOR", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "give me gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "time to please python development environment on this machine!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "GIVE ME DOCKER.IO", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "Need to game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I want to 'd like to obs setup please on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "wanna add docker-compose now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "could you can you install nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW RIGHT NOW already", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "wanna educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "time to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please time to need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "GETTING READY TO GO LIVE NOW", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "time to 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "About to want remote access to my servr now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "time to help me production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "fetch system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "configure pdf tools setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ready to java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Imagemagick please for me", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "install fonts-roboto for me", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "install zip for me", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "please please need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Set up redis-server!", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "could you personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "my friend said I should try Linux development for me!", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "photo editing setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "WANNA 'M STARTING A YOUTUBE CHANNEL", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Mysql for me", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I'm trying to malware protection", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "CAN YOU INSTALL FZF", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "prepare for database work on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "virtual env", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "can you install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "can you install nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "put nmap on my system", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Okular please", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "set up fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "help me want python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I'm trying to collaborate on code!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "can you install sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "give me vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "can you get gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "Can you install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "can you install netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "HOW DO I WANT TO HOST A WEBSITE", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "home servre setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "STREAMING SETUP FOR TWITCH", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do i system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm trying to set up mysql database on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "put zip on my system on my computer", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "looking to set up nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "how do i configure get perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "gotta preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you tcpdump tool", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "ready to neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I need clang now", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "NGINX PLEASE", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "hoping to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "i want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "could you get virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "help me prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I NEED TO PREPARE FOR FULL STACK WORK ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "how do I wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "put clamav on my system", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "HELP ME PERSONAL CLOUD SETUP QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "set up for data work now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "can you want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "install exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "can you install docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "simple editor please", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Need to give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "could you can you install tcpdump please", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I want clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "SERVER MONITORING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "text editing software already", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "how do i want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "TIME TO DATABASE ENVIRONMENT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "NODEJS RUNTIME PLEASE", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "set up get virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "prepare for containerized devlopment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'd like to yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "set up perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "i need a text editor now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I NEED FONTS-FIRACODE", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "need to need lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "give me clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Get ruby thanks", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "hoping to get yarn quickly", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "WANNA UPDATE EVERYTHING ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "need to python development environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "PRODUCTION SERVR SETUP RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to need netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "COULD YOU NEOFETCH PLEASE", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you insatll docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "NEED TO HOMEWORK REQUIRES TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to looking to fresh install, need dev tools on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "hoping to need to debug my programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I want docker-compose now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "set up prepare for full stack work!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I'd like to nstall calibre quickly", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "i'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "Set up netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "gotta need to sync files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "can you make my computer ready for frontend work quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "about to want screenfetch for me", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I need python for a project quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "key-value store", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "java ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "Neofetch please quickly", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Hoping to qemu please on my computer", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "alternative to Microsoft Office on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "about to about to python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i want bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "LOOKING TO LIBREOFFICE PLEASE ON MY SYSTEM", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I want to rust programming setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to work with pdfs right now", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "i'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want to set up bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "LET'S 'M STARTING TO PROGRAM", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "help me python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "could you need to gnu c++ compiler now", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "ADD HTOP", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Looking to about to set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "can you install clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "set up Redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Developer tools please on my computer quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "HOPING TO OPEN WEBSITES", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "GETTING READY TO GO LIVE?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Go development environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I WANT TO WANT TO EDIT IMAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "HOMEWORK REQUIRES TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "RUST DEVELOPMENT ENVIRONMENT PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hardware project with sensors on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Oh my zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "redis already", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "put vim on my system", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "configure update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "need to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "JSON TOOL", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I want to backup my files already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'M STARTING A YOUTUBE CHANNEL ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want to need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'M TRYING TO WANT TO CODE IN PYTHON!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "GET VAGRANT", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I'm trying to node package manager please", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I'm a sysadmin?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'd like to can you install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "About to set up python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "epub reader quickly", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "mvn", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "get neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I'D LIKE TO FILE SHARING SETUP ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ADD FFMPEG FOR ME?", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "VIRTUALIZATION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "need to want to word processor", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I'm trying to network security analysis please", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Xz files", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "let's put vim on my system", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'm trying to add default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "TIME TO NSTALL STRACE", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "time to docker setup please right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Please need to set up docker on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "TIME TO COMPILE C++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "OPEN WEBSITES", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "PUT GNUPG ON MY SYSTEM", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "what are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'd like to need to write research papers on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "CAN YOU NSTALL EXA ASAP", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I need to get gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I'm trying to put gradle on my system", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "let's teaching programming to beginners on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "graphic design tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "basic security setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I have epub files to read on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "need to want to program arduino on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I want nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "put nmap on my system", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "please want to automate server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "need to hoping to want to secure my servre", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to record audio please", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I NEED TO NEED GIT?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "gotta vm software already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "about to virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "install yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "about to virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I NEED ANSIBLE FOR AUTOMATION", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "hoping to 'm trying to nstall p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I want to preparing for deployment thanks", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do i gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "rust devlopment environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hardware project with sensors thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm trying to 'd like to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ready to gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "SHOW FOLDERS", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "scan network", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "let's vscode", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Gotta emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "Time to working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "PRODUCTION SERVER SETUP FOR ME", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you want inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "virtualbox please", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "LET'S SOMETHING LIKE VS CODE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Prepare system for python coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to database environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "help me python thanks", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "how do I 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Could you gotta remote connect", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "time to want netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I'M LEARNING JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "get qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "let's prepare for coding right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you put bat on my system for me", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "backup tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "gotta makefile support", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "i'm trying to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "ebook management asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "postgres db", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "HELP ME TERMINAL SYSTEM INFO asap", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "EASY TEXT EDITOR ALREADY", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'm trying to can you install neofetch already", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Web server now", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "time to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "let's mprove my command line quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "let's scientific document preparation please", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "install clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "i want to secure my sever", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "let's fast grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "put fish on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "looking to nstall virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Give me fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "z shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "libre office for me", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to microcontroller programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I want to make games on this machine please", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I'm trying to add yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "about to add fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "i'd like to graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'm a sysadmin on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want to want remote access to my server already", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "set up set up for microservices quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "give me bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "can you please managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "looking to network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "ready to configure need to work with images right now thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "'m starting to program quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to set up openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "WANNA VIDEO PRODUCTION ENVIRONMENT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "get python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'd like to want to monitor my system on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "time to alternative to microsoft office on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "hoping to can you install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "could you want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "ripgrep search", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "COULD YOU HARDWARE PROJECT WITH SENSORS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "hoping to please 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "zip files", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to learn Rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Add clamav now now", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "ready to want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "tree command", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "give me fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "Add vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I WANT TO SECURE MY SERVER ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "hoping to word processor on this machine", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "configure put ltrace on my system", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "get wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "fix broken packages now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "get vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "gotta need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'm trying to multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GIVE ME PYTHON3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "put docker.io on my system", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "looking to want to use virtualbox on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "ready to audio convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to give me zsh thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "how do I make my computer ready for frontend work asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Set up ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please want mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "need gradle?", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "i need to need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "can you golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I'm trying to 'm trying to set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "need to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CAN YOU SET UP FOR AI DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "SET UP DEVELOPER TOOLS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i want a modern editor now", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "KID-FRIENDLY CODING ENVIRONMENT ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you install p7zip-full already", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "GOTTA PDF MANIPULATION THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "gotta need a databse for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "DATA BACKUP ENVIRONMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "time to let's security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "DATBASE ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to docker", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I WANT TO RUN A WEBSITE LOCALLY!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "give me fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "help me need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need to fast find thanks", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "ready to multimedia editing tools please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "configure ot development environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "can you instll nginx for me", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "please 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "set up subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "virtualization setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "let's want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "looking to network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "Configure need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "php please", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "add docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "ready to give me zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "CLEAN UP MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I want zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "about to can you install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need to server monitoring setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "podman please", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "LOOKING TO NEED TO ZIP FILES UP?", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "how do I fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "HOW DO I GRADLE BUILD", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "help me 'd like to want bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I NEED QEMU", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "RIPGREP SEARCH", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I'D LIKE TO PREPARE FOR FULL STACK WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "team communication tool asap", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "personal cloud setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "about to want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "could you get jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "fonts-hack please", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I'd like to streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "about to nstall qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "configure want to edit pdfs please", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "obs-studio please", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want to run virtual machines right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I'd like to can you install clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "can you install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "Please golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "hoping to server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "rust language", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "hoping to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "looking to configure nteractive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "memory debugger?", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Show folders", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "add bat asap", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "gotta data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I WANT TO VIDEO PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I need Git for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Give me fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "Package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "can you 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "wanna neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "'m learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "time to latex setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "PUT G++ ON MY SYSTEM", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "need to packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "PUT NODEJS ON MY SYSTEM", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "add wireshark right now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "set up about to want valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "READY TO 'D LIKE TO NEED TO WORK WITH DATASETS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "could you add python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "seven zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "hoping to 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Open websites on my system", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "wanna full stack development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "ready to track code changes now", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "i want perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "COULD YOU PROFILING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I need to work with datasets for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "gotta 'd like to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "ready to nstall python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Ready to want to self-host my apps on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Prepare for containerized development", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "about to need to lightweight database?", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "how do I gotta rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "Let's nstall tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "docker compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "i'd like to docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I'd like to need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Need to port scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "configure upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need to play video files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "ABOUT TO GET MERCURIAL", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I need nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "ready to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "LET'S WANNA NEED TO TEST DIFFERENT OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "give me gnupg please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "OBS setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "developer tools please right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "gotta make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I'm trying to n-memory database", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "need to virtualization setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "configure 'd like to need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "HOPING TO CODING ENVIRONMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta network diagnostics now now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "gotta streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please add fzf on this machine", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Looking to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "CAN YOU WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'm trying to cmake tool", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "ready to my kid wants to learn coding for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "i'm trying to set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "need to need openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "let's put gdb on my system for me asap", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Let's team communication tool on my computer", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "SYSTEM ADMINISTRATION TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "PUT NODEJS ON MY SYSTEM", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "help me add screen thanks asap", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I need to need git already", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "wanna desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I WANT TO USE VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want to watch videos please", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to file sharing setup on my system asap", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "ADD VLC", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I'm trying to want to use containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure set up can you install obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "time to need to connect remotely please", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I need to put fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "ready to obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Gdb debugger already?", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "PYTHON PLEASE", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "add vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "i'd like to put vlc on my system right now", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "music production environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "need to want to program arduino on this machine on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I WANT A COOL SYSTEM DISPLAY PLEASE", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "looking to 'm trying to want to run a website locally on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "configure unzip files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I'm trying to database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "ABOUT TO GIVE ME NET-TOOLS", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "i want to help me samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "prepare for data science on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "gnupg please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Fresh install, need dev tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "trace syscalls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "HOPING TO ORCHESTRATION", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "how do I new to ubuntu, want to start programming asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "music production environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "SET UP BTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "hoping to gotta working on an iot thing please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want openssl on this machine", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "add gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Could you 'm learning mern stack quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "give me exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "set up for AI development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "working on an iot thing on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta 'm learning mern stack for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "can you add subversion?", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "can you install evince?", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "clamav please!", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "SET UP MYSQL DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I WANT TO EDIT PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "can you bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "wanna get golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "let's collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "PLEASE DIGITAL LIBRARY SOFTWARE?", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "looking to set up streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me python3 right now", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "set up gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Okular viewer on my computer", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "gotta need ipython3 quickly", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "how do i need to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "CAN YOU INSTALL HTOP", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "how do i valgrind please on my computer", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Could you set up obs-studio on this machine", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "secure remote access", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "looking to nstall pythn3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "ready to put ffmpeg on my system?", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add virtualbox right now", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Gotta time to ssh server setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "let's wanna need to create a website on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to scan for viruses on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "about to set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Ready to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please pythn development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "CONFIGURE PREPARING FOR DEPLOYMENT NOW", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want to getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "vi improved", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "let's give me mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Gz files", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "make my computer ready for frontend work?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I'M TRYING TO WANT TO CODE IN PYTHON!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "set up postgres db", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Configuration management tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "about to samba server thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "configure get make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "nosql database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "add xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "Teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you install screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to give me nodejs right now", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "PERL INTERPRETER", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I need to can you install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "About to word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "configuration management tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "add mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "i need mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I'm trying to can you insatll p7zip-full right now", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "LOOKING TO LIBREOFFICE PLEASE ON MY SYSTEM", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Gotta hoping to json processor", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "better ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Python notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "time to add postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "ready to sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want to need to ebook reader setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "please media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i need office software on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "help me get btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "RUN VMS WITH VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "System monitoring tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Wanna want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "i'm learning python programming thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "looking to need libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "install docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "looking to run vms with virtualbox already on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "GET PYTHON3-PIP", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "LET'S WANT TO RUN VIRTUAL MACHINES", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Hoping to devops engineer setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "wanna video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "set up Redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "get openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "ready to educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "ADD NMAP THANKS", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "i have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "give me obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "how do I zsh please thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "give me qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "help me show specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "NEED TO WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "APACHE WEB SERVER", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "give me g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "i want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "javascript packages", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "looking to slack alternative!", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I need to want to edit videos on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "screen sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'd like to want openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "ready to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want to run virtual machines on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "please need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "ready to time to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "about to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "nodejs runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "i'm trying to nstall jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "PUT MAKE ON MY SYSTEM", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "ready to modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "hoping to folder structure please", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "get bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "let's scientific document preparation?", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "need to gotta samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I'm trying to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "RUN VMS WITH VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "java gradle now", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "inkscape please", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to wanna homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "need to connected devices project quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "about to convert images", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "OBS setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to docker", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "can you install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I need to prepare mysql environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "PUT BAT ON MY SYSTEM!", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "kid-friendly coding environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "CLANG COMPILER", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "HOW DO I BAT PLEASE", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm trying to web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "need to hoping to want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "how do I obs setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "basic development setup please for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "GIVE ME DEFAULT-JDK ASAP", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "configure nstall libreoffice please", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "web downloading setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I WANT TO PACKAGE MANAGER ISSUES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I want maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "LET'S CLASS ASSIGNMENT NEEDS SHELL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Get nginx on this machine", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Please golang setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "can you prepare for data science on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "FRIENDLY SHELL", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "i need to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I need to check resource usage thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "put netcat on my system quickly", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I'm trying to backup solution setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'D LIKE TO WANNA NEED TO TEST DIFFERENT OS FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "LOOKING TO PREPARE MY SYSTEM FOR WEB PROJECTS", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "get nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "PDF MANIPULATION", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "GRAPHICAL CODE EDITOR PLEASE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "let's pdf viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "how do I get postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Time to ssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "time to need ansible for automation on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "looking to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "wanna teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "give me subversion for me", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "zsh please thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "get htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "How do i please want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "let's upgrade all packages on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I'D LIKE TO JAVA ANT RIGHT NOW", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "need to broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "give me bzip2 now", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "wanna set up neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "install npm on my system", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "i want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "how do i jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "wanna need to check resource usage", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "put netcat on my system", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "Fonts-hack please", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I WANT TO WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "show specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please jdk installation now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "set up cmake quickly", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Put netcat on my system", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "install default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "hoping to obs", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "let's debugging tools setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I'd like to 'd like to need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I'd like to could you power user terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "compile code on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I'M LEARNING GO LANGUAGE", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "i'm trying to gnu debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "APACHE SERVER ON MY COMPUTER", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "let's set up virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "hoping to can you performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need code?", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Ready to how do i embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "let's getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ifconfig", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "CONTAINERIZATION", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "about to mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "okular please", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "create zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "gotta music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I need to gotta system information on this machine", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "word processor", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "configure ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Fix broken packages on this machine", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "ltrace tool thanks", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "How do i put maven on my system!", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "get fail2ban asap", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "looking to system maintenance right now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "add vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "HELP ME WANT EXA", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "wanna security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "add valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "how do i ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "zsh please", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "help me want to scan for viruses please for me", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "i want to want to read ebooks please", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "COULD YOU OFFICE SUITE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Hoping to give me code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "set up maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "set up curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "GET JUPYTER-NOTEBOOK", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "set up everything for full stack quickly thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "looking to want fd-find on my system", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "i want ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "About to backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'm worried about hackers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "EPUB READER", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "get rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "need to put tmux on my system", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "i want to nstall nmap!", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "python pip asap", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I NEED TO CHECK FOR MALWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want to hoping to 'm building an app that needs a database", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "i want to scan for viruses thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "SECURITY TESTING TOOLS thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "set up Python on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "install ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "I want to zip files", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "need to apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "hoping to gotta want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ready to multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "looking to about to multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I need ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I need tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "orchestration", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "oh my zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "i'm trying to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "add ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Need to add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "please want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "wireshark tool", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "let's let's mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "connected devices project for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "configure update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "put g++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "ready to 'm starting to program?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Could you wanna nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "educational programming setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "About to need inkscape on this machine", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you add nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "time to about to server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "fuzzy finder right now", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Give me zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "set up need to can you install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "give me yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "gotta hoping to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "alternative to Microsoft Office on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "postgres", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you how do i prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "wanna team communication tool asap", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "need to basic development setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ban hackers right now", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "set up openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "set up gzip on my computer", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "instll tcpdump asap", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "set up for data work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "configure how do i obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "give me npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I need code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "about to 'd like to can you install libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "put zsh on my system", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "can you performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "help me home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I NEED CURL", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "could you wanna docker setup please please please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "set up containers on my computer", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "ABOUT TO PYTHON DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "CAN YOU INSTALL NET-TOOLS", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "help me open compressed files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "How do i set up fail2ban for me", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need okular please", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "SLACK ALTERNATIVE", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "npm please asap", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "HELP ME SCAN NETWORK ALREADY", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "how do I compile c++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I NEED TO PLEASE PREPARE MY SYSTEM FOR WEB PROJECTS", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "help me 'd like to fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "zip tool already", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Time to ready to gz files on this machine for me", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "fresh install, need dev tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you can you install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "let's run vms with virtualbox!", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "WANNA PODMAN CONTAINERS ALREADY", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "SPLIT TERMINAL", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "c devlopment environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Help me looking to need to check for malware thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I need to need to want to host a website quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "fast find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "can you install clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Help me need to 'm learning mern stack on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "NANO PLEASE ON MY COMPUTER", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "install exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "JAVA GRADLE ON MY SYSTEM", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "CAN YOU FREE UP DISK SPACE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I need to nstall unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "compile code on my machine?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "how do I configure system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "ipython", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I need to vim editor asap", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "put fd-find on my system", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "can you instal ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "docker", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "time to need netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "please firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "better terminal setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "i'd like to clamav scanner?", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "give me python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "ready to want to backup my files!", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "Can you 'm starting to program!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I need yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I NEED TO 'M LEARNING GAME DEV", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I WANT TO WRITE CODE FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ebook management on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "let's want okular already", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "Help me need to need a file server on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "can you my professor wants us to use linux quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I NEED NEOFETCH", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up wireshark right now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "about to nstall python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Hoping to ready to make my server secure already", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Help me java build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "can you c/c++ setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "could you vs code!", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "CONFIGURE TIME TO SSH SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Can you nstall g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "CAN YOU LOOKING TO WANT JQ ALREADY", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "time to microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "how do i set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i want remote access to my servr now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Backup solution setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "containerization environment quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "HELP ME WANNA JAVA DEVELOPMENT ENVIRONMENT FOR ME FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I need to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to vector graphics?", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Set up unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I'm trying to looking to xz files", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "i want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "can you insatll unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "let's want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I NEED TO TEST DIFFERENT OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "text editing software already", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "directory tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Set up libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "need to add fzf quickly", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I need to fail2ban tool", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i want to secure my sever", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "time to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "running my own services?", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Scan network", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I want to upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I'm trying to coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to get ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "directory tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "HOPING TO NEED MYSQL FOR MY PROJECT FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "add calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "can you optimize my machine on my system right now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I want ipyhton3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "ABOUT TO CONVERT IMAGES", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "LOOKING TO NETWORK DIAGNOSTICS for me", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "i want zip!", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "can you optimize my machine on my system", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "bzip2 please", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "TERMINAL SESSIONS QUICKLY", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "about to data backup environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "get docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "configure slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "video production environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "about to give me btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I need rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "please give me sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "prepare for ML work now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "could you 'm learning mern stack quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "could you put git on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I want to download files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Containers", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I want to need to working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Can you get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "WHAT ARE MY COMPUTER SPECS THANKS", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "WANNA SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "configure want a cool system display", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "time to pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need to get gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "need to put tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "please llvm compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "about to add evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "about to devops engineer setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "php language", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "gotta download with curl asap", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "Preparing for deployment already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "WANNA WANT TO HOST A WEBSITE", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "document db", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "give me golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "roboto font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Need to compile code on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "time to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "yarn please on this machine", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I'd like to want obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "can you want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Give me okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "GET DOCKER.IO", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I NEED TO RUN CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'm trying to put zsh on my system", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Set up want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "about to neovim editor", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "configure dev environments for me already", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "HOSTING ENVIRONMENT SETUP ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "code please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "set up for data work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need mongodb now", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "databse environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "give me valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "please go development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "hoping to dev environments", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "gotta set up netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "i'm trying to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "need to give me nodejs!", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "configure obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "CAN YOU INSTALL DEFAULT-JDK THANKS", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "wanna hoping to office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'D LIKE TO NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "about to fancy htop!", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "tree command", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I HAVE A RASPBERRY PI PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "let's need to check for malware quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "'M LEARNING C PROGRAMMING?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I need nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I'D LIKE TO OBS SETUP NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Install jupyter-notebook thanks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "help me want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I want exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'm trying to configure 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "VirtualBox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "about to want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I need to give me gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "MULTI-CONTAINER", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "HELP ME NEED TO WORK WITH IMAGES ASAP ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "give me fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "GOTTA SYSTEM INFORMATION", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "INSTALL BAT", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "time to ebook reader setup thanks quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add vim now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want to learn Rust for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "i need to could you ethical hacking setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I'm trying to help me get imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "APACHE ANT THANKS", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "I want to prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "ready to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's give me imagemagick on this machine", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I need to set up my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I'd like to file sharing setup on my system quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to need nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "wanna home sever setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you want rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "my professor wants us to use Linux for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "looking to configure need htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I want maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Virtual env", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "can you install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "wanna ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "could you kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "network sniffer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I'd like to add ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "configure can you install gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "could you docker engine?", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "put lua5.4 on my system", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "SET UP WEB DOWNLOADING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "install screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "get mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES ALREADY", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "apache ant thanks", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "set up want ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "configure can you terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "GIVE ME NPM FOR ME", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "need to crypto tool on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "SET UP OKULAR RIGHT NOW", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "HOPING TO PIP", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "security testing tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I WANT VIM", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'M LEARNING C PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I'm trying to class assignment needs shell on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "can you install screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "vagrant vms please", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "ready to compile c++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "how do I music production environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Let's music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "can you time to screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "add fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I want to want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "SERVR AUTOMATION ENVIRONMENT RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "hoping to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "gotta configure make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to want iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I'm trying to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "PLEASE WANT TO USE CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "netstat on my computer", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "set up gnu privacy guard now", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "looking to could you want to do penetration testing already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Audio convert already", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GOTTA SET UP MYSQL-SERVER!", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "update everything on my system right now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Configure prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "iot developmnt environment asap", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "network scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I'd like to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "server automation environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "prepare for coding right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Hoping to coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "LOOKING TO LATEX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "time to music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "put openssh-client on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "time to game development setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Help me set up ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Ebook reader setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i want to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I need to work with PDFs right now", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "How do i graphical code editor on my system already", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "looking to cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Ltrace please", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "about to 'm trying to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta need to make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Add redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "set up need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I want fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "can you install btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I want to need podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Bz2 files?", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I'd like to clean up my computer now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "could you collaborate on code on my computer on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "get nmap right now", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Put docker-compose on my system", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "gotta about to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to nstall tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "microcontroller programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "can you install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "update everything on my system please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "wanna prepare for ml work right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "TIME TO NEED G++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "i want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "LET'S MEDIA PLAYER SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "LOOKING TO MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "time to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "time to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "backup solution setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "put screen on my system", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "hardware project with sensors thanks on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "servr automation environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "CLAMAV SCANNER", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "i want to want docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "wanna teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "About to spreadsheet", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need to ebook reader setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "ready to need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "maven please on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I NEED TO DEBUG MY PROGRAMS!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "hoping to want vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "let's put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "about to multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "MICROCONTROLLER PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "WANNA BRING MY SYSTEM UP TO DATE ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Jupyter lab", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "add wireshark right now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "ready to want to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "configure prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "WEB SERVER NOW", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "install nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "BETTER GREP QUICKLY", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "add fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "please python development environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "about to get openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Hoping to ready to network analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "docker.io please", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Get nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you install htop for me", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "time to music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "BETTER CAT thanks", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I want to compile C programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "new to Ubuntu, want to start programming please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "FUZZY FINDER", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "graphical code editor please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "NETWORK FILE SHARING?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "about to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I WANT TO DOCKER SETUP PLEASE RIGHT NOW right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "getting ready to go live?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "could you modern network", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "hoping to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "time to hoping to want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i need neovim thanks already", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I need to serve web pages thanks for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "could you need qemu on my system", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "tree command on my computer", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "need to embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I NEED FISH QUICKLY", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "configure prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "PUT NODEJS ON MY SYSTEM", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Streaming on this machine", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "can you can you install fonts-hack thanks", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "how do I system monitor right now", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I'd like to nodejs runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'm trying to data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I'd like to wanna need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "let's need subversion!", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "seven zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "CAN YOU INSTALL YARN", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "mariadb database?", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Hoping to productivity software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i want to want to code in pyhton already already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Set up fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I'd like to give me vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to get btop thanks", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "Need to compile code on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "LET'S WANT TO WRITE PAPERS RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "i need cmake?", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "mariadb-server please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I want p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Gotta looking to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "how do i want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "ready to get cmake please", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "CAN YOU INSTALL LUA5.4?", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "HELP ME CAN YOU INSTALL EMACS", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I need cmake?", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I'd like to get openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "about to p7zip-full please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "help me want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i'm deploying to production for me", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I'd like to give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I'd like to want to use mysql!", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "give me lua5.4 now", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "hoping to configure backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "GET RUSTC QUICKLY", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "add screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "looking to please need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "postgresql database", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "GET UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "gotta need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "add ltrace right now", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "multimedia playback right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Gotta need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Let's add tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "TERMINAL MULTIPLEXER", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "SET UP OPENSSL", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I WANT FONTS-ROBOTO ASAP", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "graphic design tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "gotta need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "NETWORK TOOLS", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "CAN YOU INSTALL OPENSSH-CLIENT", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I'd like to want emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I want to host a website now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "gotta give me tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "put fonts-firacode on my system already", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "add npm?", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "time to slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I WANT TO SECURITY HARDENING", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "postgres db", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Samba server asap", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "put docker-compose on my system already", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "configure folder structure asap", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Looking to get wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I'd like to kde pdf", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "time to preparing for deployment thanks?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "video player?", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I want to please want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "about to help me php language thanks", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "put tmux on my system!", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "in-memory database", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "let's redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i want to mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "give me cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "looking to can you install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "'m starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "put openssl on my system on this machine", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "get vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "hoping to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Ready to want to store data quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Need to audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "can you want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "microsoft code editor?", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "xz compress", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "set up need sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "i want to record audio already", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Need to hoping to word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "homework requires terminal please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "looking to set up fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need to bat please already", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "my professor wants us to use Linux right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "could you video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'd like to give me mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "WANNA NEED TO TEST DIFFERENT OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "looking to video convert quickly", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "nginx servre asap", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "looking to give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "time to hoping to want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "time to add golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "about to resource monitor for me", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "could you want to do penetration testing already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "looking to educational programming setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Can you configure antivirus setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "gotta make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "could you vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "please npm please now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "HOW DO I HELP ME CAN YOU INSTALL NETCAT", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "can you need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up need default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "let's gotta set up mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "INSTALL NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "i'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "Configure want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I want to need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "time to want cmake on my computer", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "can you set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "HOW DO I 'M STARTING A DATA SCIENCE PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Indie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "get nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "ready to 'd like to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I'm trying to need ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "PUT HTOP ON MY SYSTEM", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "download manager for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "about to just insatlled ubuntu, now what for coding already asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CONFIGURE VIRTUALIZATION SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "install btop please", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "i'm trying to prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "PREPARE FOR CODING?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "wanna get gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Set up openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "package manager issues on my computer", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "CAN YOU INSTALL NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "wanna running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "data analysis setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "something like VS Code on my computer thanks", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Give me make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "please can you nstall lua5.4 right now", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "HELP ME WANT TO CODE IN PYTHON right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "set up redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "GOTTA CAN YOU INSTALL WIRESHARK?", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "about to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "CAN YOU INSTALL TCPDUMP", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "can you install bat asap", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "let's set up prepare for full stack work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "configure add mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "ADD G++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "something like VS Code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to want remote access to my server please", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "default-jdk please", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "managing multiple servers?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "i need calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "MEMORY DEBUGGER ON MY COMPUTER", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "set up want to compile c programs already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "configure can you secure remote access thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "give me unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "about to obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "CAN YOU INSTALL NETCAT", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "let's want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "PYTHON PLEASE", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "ready to pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ripgrep please", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "SSH server setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "WORKING ON AN IOT THING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "SET UP A WEB SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "how do I get postgresql quickly", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "set up g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "System update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want sqlite3 for me", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I'm trying to add gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I'M TRYING TO GIVE ME MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "set up ssh client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "INSTALL OKULAR", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "i'd like to mysql db?", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "give me golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "HOW DO I NSTALL DOCKER.IO ON THIS MACHINE", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I'd like to can you install emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I need to multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Add clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "video player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "help me mysql db quickly", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "can you my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "bzip2 please", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "install evince now", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I WANT TO CAN YOU INSTALL ZSH", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I'm trying to let's need libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "please need fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "ready to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "PREPARE FOR CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'M TRYING TO NEED UFW", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Clean up my computer asap", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "looking to please want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "could you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "can you download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "getting ready to go live now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "TIME TO PREPARE MY SYSTEM FOR WEB PROJECTS please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "MEDIA PLAYER", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I need to need python for a project please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "install fonts-firacode?", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I need clang now", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "add python3 thanks", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Wanna get wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "i'd like to want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Gotta want to host a website for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Let's 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do I about to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "i'm trying to developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install fail2ban?", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "ltrace tool", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "SET UP DOCKER-COMPOSE PLEASE", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "roboto font now", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "gotta let's want p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I'd like to set up perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I need to could you live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "put valgrind on my system", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "JDK installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I'M TRYING TO MALWARE PROTECTION ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "gotta running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need a text editor now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm trying to put zip on my system thanks", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Directory tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "running my own services on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "psql thanks", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "add make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "add fish asap", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Microcontroller programming please", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "let's put openssl on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "need to need to debug my programs?", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I want to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "TERMINAL SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "wanna teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Configure system update please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "please get okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "Media tool right now", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to put ipython3 on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "REDIS SERVER PLEASE THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need to have a raspberry pi project right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Configure game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I WANT TO SHARE FILES ON MY NETWORK", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "please gotta jq please now", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "put openssl on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "configure podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "wanna want to graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "HOW DO I NEED FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "looking to let's teaching programming to beginners on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "git please?", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up configure nstall libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need fzf for me", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "can you install openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "ready to my professor wants us to use linux on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'm learning Go language?", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "can you nstall sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "give me strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "team communication tool on my computer", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "install clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I want to version control setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "i'm trying to postgresql database", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "i'm trying to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "help me managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'D LIKE TO WANT TO MONITOR MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CONFIGURE 'M LEARNING C PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "gotta can you need to test network security already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "configure can you want to code in java asap", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "help me put inkscape on my system", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "GOTTA SERVER AUTOMATION ENVIRONMENT on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "wanna give me openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you help me set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Python development environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I WANT TO USE VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "jq please on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Video production environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "how do I streaming setup for twitch on my system on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Give me unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "could you help me containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "put python3-pip on my system", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "time to orchestration for me", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "looking to want to edit images already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "set up show folders", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "need to streaming setup for twitch for me on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "'M BUILDING AN APP THAT NEEDS A DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "terminal productivity tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "REDIS SERVER PLEASE THANKS on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i want the simplest editor on my computer", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "time to want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "please want to use containers on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "LET'S EASY TEXT EDITOR", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "i'd like to configure need htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "set up mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I NEED TO 'M LEARNING GAME DEV", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "my friend said i should try linux developement", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "gotta ready to certificates", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "PLEASE VIDEO PLAYER", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "VIRTUALBOX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "give me python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "hoping to give me fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "bzip2 please thanks", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "LET'S ANTIVIRUS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "get npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "looking to bat please", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I'm trying to gotta want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ready to put ufw on my system", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "MULTI-CONTAINER", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "prepare my system for web projects for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "HOW DO I WANT TO WRITE DOCUMENTS RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up get podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "add docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "vlc player?", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "looking to want tcpdump thanks", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "FREE UP DISK SPACE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "set up emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "let's hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "add vim quickly", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "let's preparing for deployment asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "configure hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I NEED DEFAULT-JDK on my computer", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "redis", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "gotta help me want fast caching for my app already", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "can you working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "MY KID WANTS TO LEARN CODING FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you install docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I WANT TO PACKAGE MANAGER ISSUES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "ready to set me up for web development please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "gotta give me fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "HOPING TO OFFICE SUITE SETUP?", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i need to write research papers quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "ready to spreadsheet", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to add unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "HELP ME MY KID WANTS TO LEARN CODING!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'd like to 'd like to need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I WANT TO WRITE PAPERS!", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "python language", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "gotta need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm trying to office suite", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "ssh server quickly", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Get calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "CAN YOU PACKET ANALYSIS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "GIVE ME UFW", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "help me ready to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "please need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "ssh server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "SET UP JAVA DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "put nginx on my system", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I want to gotta samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "file sharing setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "COULD YOU LIVE STREAMING SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to help me want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "databse environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "HELP ME CAN YOU MPROVE MY COMMAND LINE", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I WANT TO OPEN COMPRESSED FILES on this machine", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "I'd like to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you package manager issues now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "configure ebook reader asap", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "hoping to want podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "resource monitor for me", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I'm trying to give me openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Need to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I NEED TO NSTALL LIBREOFFICE", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "i want to mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "uncomplicated firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I'd like to 'm trying to want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "COULD YOU CONFIGURE DEV ENVIRONMENTS FOR ME", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I need code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Security testing tools now on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I need to need yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "configure get perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "gotta system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "about to add code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Hardware project with sensors thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "PDF READER", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "HOW DO I LUA5.4 PLEASE", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "can you install bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "Clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I want golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "CONFIGURE SET UP GOLANG-GO", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "can you performance monitoring?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "System maintenance please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I want to nstall code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "about to set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "need to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Add gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "NEED TO MY SYSTEM IS RUNNING SLOW ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "time to want p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "digital library software quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "let's want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "modern ls quickly", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "about to nstall ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "i need to play video files now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "hg on this machine asap", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "About to ready to track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "can you give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "could you prepare for data science now please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "help me nstall nodejs right now", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "please put ufw on my system quickly", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "INSTALL GZIP", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "i want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Lua already", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "time to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "exa please", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'm trying to hoping to network diagnostics asap quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "CAN YOU INSTALL FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "svn", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "zsh please thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "add vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "give me npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I want to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "VM ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "how do i can you instll openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "can you install jq!", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "compile c++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "let's fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I'd like to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Hoping to hoping to need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "GOTTA RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "About to nstall maven on my computer", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "ethical hacking setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "time to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "How do i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Ready to gz files", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "go development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "please wanna can you install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "hardware project with sensors!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta network tools on my computer", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "can you put nodejs on my system", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Get openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "wanna need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "need to audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "can you want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "hoping to get lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "terminal info", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I WANT TO ARCHIVE MY FILES", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "gotta network tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "configure want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "time to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "bzip compress", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "please want to stream games now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do i set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "set up ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "PLEASE TIME TO SCREENFETCH PLEASE", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "help me need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ebook manager", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I NEED TO 'M LEARNING GAME DEV", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "time to need apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "configure kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "ready to gotta make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "set up ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "lzma", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I WANT TO USE VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to how do i prepare for containerized development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i need pyton3-venv quickly", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I want python3-pip please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I want to can you install docker.io asap", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "give me rustc thanks", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "nano editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "configure show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "clamav scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "i want to run a website locally on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "LOOKING TO PACKET ANALYSIS SETUP ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "set up just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ready to about to need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "WANNA WANT TO SHARE FILES ON MY NETWORK", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "time to 'd like to can you instal iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "want to find bugs in my code quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "install p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "improve my command line asap", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "gotta need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Looking to let's need libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Could you my friend said i should try linux development thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "help me want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "can you hoping to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "about to can you want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "i want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "set up Python on my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "need to need to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "hoping to need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Can you install unrar now", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "set up Redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "friendly shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I WANT CLANG", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "need to epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "need to what are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Can you install nginx right now", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "add okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "how do I give me btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "gotta want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "RAR FILES QUICKLY", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I NEED TO MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install btop quickly", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I want to system maintenance", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I NEED TO PHOTOSHOP ALTERNATIVE", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I'D LIKE TO CAN YOU INSTALL MARIADB-SERVER", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to need to port scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "can you install calibre on this machine", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "VirtualBox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "how do I how do i trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "file sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "please can you need to create a website already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "please make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "network analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I want to modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "hoping to sqlite", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "directory tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "HOW DO I WANT TO HOST A WEBSITE already", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "give me clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I'm learning java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "SET UP MULTIMEDIA EDITING TOOLS NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Set up samba server already", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "looking to document reader", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "can you my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Looking to want to store data!", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "can you install fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "vim please quickly", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "database environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need to play video files?", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "LOOKING TO LIBREOFFICE PLEASE ON MY SYSTEM asap", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to pip3 quickly", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "CONFIGURE ADD GIMP PLEASE right now", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "add vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "how do I make tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "GOTTA SYSTEM INFORMATION", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "set up need to make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I need ltrace?", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "php please for me", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "OFFICE SUITE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "alternative to Microsoft Office on my computer on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "configure set up zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "devops engineer setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Help me want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gotta system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I WANT TO STREAM GAMES ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "multimedia playback on my system!", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "help me get libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up can you install obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "NEED TO 'M STARTING TO LEARN WEB DEV ON MY COMPUTER THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you get gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "can you install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "i want to do machine learning quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "SPLIT TERMINAL", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "let's get okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "Wanna want gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "GNU DEBUGGER ASAP", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "coding font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I WANT TO PHOTO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Wanna want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "XZ COMPRESS", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "GOTTA SYSTEM INFORMATION", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "time to want to add rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "install iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Give me ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Audio convert already", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "how do i 'm trying to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "please want to download files thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Perl language", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to want to build websites already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need to set up vlc?", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "FANCY HTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "GOTTA PSQL", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "wanna prepare my system for web projects asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "PREPARE MY SYSTEM FOR WEB PROJECTS", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "let's live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "set up unrar tool", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "could you homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I need tcpdump right now", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "need to what are my computer specs thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "collaborate on code on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "how do I zsh please thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "time to 'm trying to podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "terminal productivity tools on this machine thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'd like to need in-memory caching asap?", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "add fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "how do i give me code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "node", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "READY TO CROSS-PLATFORM MAKE QUICKLY", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "help me about to python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "LET'S VIDEO PLAYBACK ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gradle please", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "please give me maven for me", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I need yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I'm a sysadmin?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Nodejs runtime please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "home sever setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "lzma", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "tcpdump please", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "i'm trying to want to automate servr setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "install curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I want python3-venv for me", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "could you need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "gotta alternative to microsoft office on my computer now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "BASIC DEVELOPMENT SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to need to fetch things from the web for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "add emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "clang compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I want to share files on my network on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Time to want to write papers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "put ipython3 on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "samba servr already", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "i want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "get emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "can you install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "docker with compose setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Can you could you subversion vcs", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "please set up everything for full stack for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I want zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I need to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "can you install python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "set up docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I want vim now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "could you set me up for web developmnt please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i need code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "how do I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "prepare for databas work on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Rust development environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO USE MYSQL", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "ABOUT TO NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do i put maven on my system!", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "redis cache now", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "NEOVIM PLEASE THANKS", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "ufw please", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I'd like to configure network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "can you want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "help me can you performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "ready to fix broken packages already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "let's can you install evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "time to can you mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "INSTALL FZF QUICKLY", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "could you hoping to coding environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Could you want yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "wanna want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want to please memory debugging environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "give me vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to can you add mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "system info for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "gnu screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "gotta wanna docker setup please please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you add fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I'm trying to set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I need to how do i track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "configure gnu debugger right now", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "could you media player already", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "hoping to looking to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "clamav scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I want to need jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "EBOOK MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "can you install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to 'm learning mern stack on this machine asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I want screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "gotta unzip files on my system", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "I NEED TO CHECK RESOURCE USAGE", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "fzf tool for me", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "JDK installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "i need emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "set up fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "about to neovim editor for me", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I'm trying to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to track my code changes on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I'm trying to want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "please help me add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Time to configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "SET UP VIM", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Configure system update already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "mysql", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "set up screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "Docker Compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to build websites now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "add jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "HELP ME ALTERNATIVE TO MICROSOFT OFFICE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "time to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "new to Ubuntu, want to start programming?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want bat now", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "time to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "looking to want to monitor my system already", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'd like to can you install docker.io please", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "how do I want inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I WANT TO NEED RUST COMPILER RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Give me redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "hoping to network diagnostics asap for me", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "google font please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I need fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up want cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "GET OPENSSL ON MY SYSTEM", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I'M LEARNING GAME DEV FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I WANT TO NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "i'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "configure ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "indie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "LOOKING TO SET UP NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "GET GCC", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "datbase environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "could you give me gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "Developer tools please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "time to zip files up!", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "can you install bzip2 asap", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "configure set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'm trying to time to need to sync files thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "LET'S GIVE ME EMACS", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "give me evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I need unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "need to want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "game developement setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up gdb on my computer", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "set up slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "ABOUT TO SHOW FOLDERS", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I need to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "hoping to gotta 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "packet capture quickly", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "gz files", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "prepare for coding please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please want to scan for viruses quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "please can you sqlite database for me", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "configure need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "give me mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want to want gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I want to run a website locally already", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "can you install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Could you 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "get golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "virtualization setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "time to hoping to java development environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Put gcc on my system!", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "SET UP FOR AI DEVELOPMENT on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "ready to hoping to audio production setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want to orchestrate containers thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need to add gnupg thanks", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "looking to want to run virtual machines right now for me", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "libre office", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i want to share files on my network quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "i'd like to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "time to get tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I want screenfetch quickly", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "need to need ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "put fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "please want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Mysql server installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "install postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "easy text editor for me", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need to 'm trying to jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "GIVE ME CODE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "get fail2ban asap", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "Gotta web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "json processor", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "can you put gcc on my system", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "hoping to put openssh-server on my system right now", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "please want to automate sever setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "wanna wanna need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me need gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "looking to something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "need to embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "preparing for deployment thanks please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "configure want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "iproute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "ABOUT TO NEED TO CHECK FOR MALWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "LET'S MICROCONTROLLER PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "PDF TOOLS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Add imagemagick for me!", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "about to can you instal inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need git quickly", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I'd like to help me need ansible for automation!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I'm trying to fonts-roboto please now", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I want subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "hoping to game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "add fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "ready to fetch system on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "gotta source control on this machine", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Install g++ on my computer", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "configure prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I WANT TO WRITE CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "configure add mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "looking to add neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'm trying to put zip on my system thanks", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "install fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "let's nano editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "HOW DO I WANT TO READ EBOOKS", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "ip tool please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "photo editor thanks", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "give me clang quickly", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "ADD NANO", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "help me get fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "can you install tcpdump now", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "help me time to music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I WANT TO WANT TO CHAT WITH MY TEAM", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "google font on my system", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Give me openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "let's managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "can you want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "LOOKING TO SECURE REMOTE ACCESS NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "help me about to zsh shell already", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "get emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "time to need bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "COULD YOU GIVE ME TCPDUMP", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "add tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I need to ready to vm environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "i just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Please set up everything for full stack for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "CAN YOU HAVE A RASPBERRY PI PROJECT!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "need to server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need to openssl please", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I want to wanna 'm starting to learn web dev now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "NEED TO GET GIMP", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "Gotta need docker.io now", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "i'd like to data analysis setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "emacs please asap", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "Ready to put lua5.4 on my system", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I'd like to servr automation environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "reverse proxy on my system", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "new to Ubuntu, want to start programming now", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to do penetration testing please", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "HOPING TO GIVE ME IPYTHON3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "fonts-firacode please", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "put netcat on my system", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "put valgrind on my system", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "wanna virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "hoping to give me nmap for me", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I want cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I'D LIKE TO C++ COMPILER ALREADY", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "ABOUT TO NEED TO TRAIN NEURAL NETWORKS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I'm trying to want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "WORKING ON AN IOT THING now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "wanna samba server already already", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "show specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "need to lightweight database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I need ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "help me golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "get ufw thanks", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "get btop on this machine", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "put neovim on my system", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "streaming setup for twitch on this machine?", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gotta 'm learning java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "IFCONFIG", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "looking to system administration tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "CAN YOU FREE UP DISK SPACE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Source control on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "NEED TO QEMU PLEASE", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "multimedia playback on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ready to want fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "can you want to analyze network traffic thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "CAN YOU INSTALL NGINX!", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I have epub files to read on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I NEED TO TEST NETWORK SECURITY", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "set up time to 'm learning pyhton programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "please hoping to coding environment asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Please nodejs please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "can you install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "give me p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "CAN YOU INSTALL VIRTUALBOX FOR ME", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Set up connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "can you nstall ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "I need apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "time to set up mysql database quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I need sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "can you install perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "CONFIGURE 'M DEPLOYING TO PRODUCTION", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "gotta need fonts-firacode!", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "how do i jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "get mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "i need lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "get fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "TIME TO 'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "can you python notebooks thanks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "let's looking to mysql server installation please", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "PREPARE FOR CODING RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "nano editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "i want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I NEED A TEXT EDITOR", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want to use containers now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "nginx please thanks", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "how do i ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "can you install neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "can you new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's time to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Ipython", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "MALWARE PROTECTION", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "add virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "ready to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "MEDIA TOOL", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gotta kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "gotta pdf manipulation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Profiling tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "ready to get openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "i need to get openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "help me obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "configure 'm learning c programming thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "can you wanna homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please ready to track code changes on my computer", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "web devlopment environment please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "gotta 'm trying to embedded db right now", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "configure prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "PLEASE WANT TO RECORD AUDIO ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "could you python development environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you add mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "package manager issues already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I WANT THE SIMPLEST EDITOR", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Help me want exa please", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "i need ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "set up git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "exa please", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "wanna set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "need to run containers now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "looking to give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "debugging tools setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "rust programming setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "backup solution setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "configure want to watch videos thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to configure nstall podman on this machine", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "IMPROVE MY COMMAND LINE", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want to about to want to program in go asap", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "Ready to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Set up tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "could you want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I need to work with images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "time to can you instll jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I need net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "wanna teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "wanna add gradle quickly", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "about to go development environment please right now", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "VLC PLAYER", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "ADD NMAP", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "wireshark please", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "gzip please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "i'm learning python programming?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "could you vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "sqlite", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I'm trying to want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do I looking to productivity software right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Can you set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I WANT TO EDIT VIDEOS", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you help me archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "put vim on my system?", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to about to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "wanna add redis-server?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "i want to need rust compiler on my system now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to time to virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "put fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "put maven on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "google font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "wanna please network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "basic development setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to nstall exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I want to set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "wanna want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ADD DEFAULT-JDK", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I'd like to need to fix broken packages!", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "please want a nice terminal experience thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install fonts-roboto on my system", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "need to game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I'm trying to set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "About to hg on this machine", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "Can you system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "wanna node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "bzip tool", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "HELP ME CONFIGURE OFFICE SUITE", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "REDIS SERVER PLEASE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "help me neovim editor", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "wanna podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "preparing for deployment asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "put default-jdk on my system quickly", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "help me get screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "set up python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "UNZIP FILES!", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "could you system maintenance", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "hoping to can you instal fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "gotta xz compress now", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "hoping to java development environment on my computer now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Gotta 7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "CONNECTED DEVICES PROJECT ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "get ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "I NEED MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Need to want gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "Looking to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "CAN YOU INSTALL NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "About to nstall ant for me", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "MYSQL-SERVER PLEASE", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Malware protection on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "help me slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "let's nstall tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "help me want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "configure ebook reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "programming font asap", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Let's llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "ADD NMAP NOW", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "set up podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "can you install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "CS homework setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "please need to play video files!", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need Rust compiler right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "terminal system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up want fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "time to looking to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "COULD YOU DOCKER WITH COMPOSE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gcc please", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "looking to clamav scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "gotta my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "put python3-venv on my system", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Java ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "can you install vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "put neovim on my system", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Give me perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "need to could you desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "give me fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "add wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "SPREADSHEET", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you install maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I WANT FAST CACHING FOR MY APP", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "better cat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I want to automate server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "how do I running my own services now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "set up python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "ready to video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "how do I ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to need to docker setup please on my computer on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'd like to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "SET UP RUSTC QUICKLY?", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "I need to basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Get php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "i'm trying to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want to secure my servr thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I WANT TO CODE IN JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Configure upgrade all packages please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "let's get okular thanks", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I want gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "help me 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "SCREEN RECORDING THANKS", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "time to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to get jupyter-notebook thanks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "CAN YOU INSTALL VIRTUALBOX FOR ME", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "gotta jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "MAGE MANIPULATION SOFTWARE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you instll python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "CAN YOU INSTALL SCREEN", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'd like to wanna need to write research papers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "looking to something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I need to bzip compress", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "about to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "please vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I'm starting a YouTube channel on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "can you want a modern editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to wanna want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i want lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "i need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ANTIVIRUS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "let's mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "need to get fonts-firacode thanks", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "hg version control thanks", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "CAN YOU INSTALL POSTGRESQL ALREADY", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need Git for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "HELP ME WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "about to want to run virtual machines on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "HOSTING ENVIRONMENT SETUP ON MY COMPUTER on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Performance monitoring?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Give me jupyter-notebook on my system", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Can you install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Let's build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "gotta version control setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "looking to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ready to give me net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "TIME TO NEED APACHE2 ON MY COMPUTER", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "interactive python for me", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "wanna can you instal tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "WANNA WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "looking to want jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "configure can you install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Hoping to need mysql for my project for me on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up redis-server!", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to add ffmpeg for me on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i need pyton3!", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I need to put xz-utils on my system", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "dev environments for me", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "MAKE MY COMPUTER READY FOR FRONTEND WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Please about to need to create a website?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "set up rustc quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "help me 'd like to nodejs runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I WANT TO USE VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "file download tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up valgrind thanks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "uncomplicated firewall thanks", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "set up compile code on my machine already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "ready to configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "can you install evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "LOOKING TO GET NMAP", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "can you mprove my command line already", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "svn", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "HOW DO I DOWNLOAD FILES", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I WANT IPYHTON3!", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "set up a web server for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need to need clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "could you want to have a raspberry pi project please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "how do I system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm trying to modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "gotta valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "please hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "ready to help me set up postgresql on this machine", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "add ufw please", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "can you install jq thanks", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I HAVE A RASPBERRY PI PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Time to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to need to get apache2 on my computer thanks", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I need sqlite3 right now", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "JDK installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I need to rootless containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "gotta my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "ready to want ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "Fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Add python3 right now", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Just installed ubuntu, now what for coding already", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "my friend said I should try Linux development please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to configure 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Hoping to apache", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "FIX BROKEN PACKAGES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "about to gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "add emacs quickly", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "can you xz compress", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "valgrind tool on my computer", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "get default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I'd like to file sharing setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'm trying to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "want netcat right now", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "help me home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "redis cache", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "TIME TO EBOOK READER SETUP THANKS THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "could you desktop virtualization on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "help me power user terminal for me", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up a web server now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "i have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "PLEASE MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to set up exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "put mariadb-server on my system", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "install mercurial already", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I need golang-go quickly", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "READY TO PREPARE FOR FULL STACK WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "about to add nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "devops engineer setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ABOUT TO WANT TO EDIT PDFS ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want to obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to set up xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I want to ot development environment quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I WANT REMOTE ACCESS TO MY SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "can you need evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "curl tool", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "Python package manager", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "put jq on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "need to streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'D LIKE TO ADD CMAKE", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Power user terminal for me please", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Looking to just installed ubuntu, now what for coding now", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "LET'S CAN YOU INSTALL UNZIP THANKS", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "Getting ready to go live?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "gotta nstall gradle asap", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I need yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "i'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "seven zip asap", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "set up have a raspberry pi project!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "configure prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "add wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "fish please on this machine", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "can you live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "mongodb database quickly", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "WEB DEVELOPMENT ENVIRONMENT PLEASE!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "about to get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "let's run vms with virtualbox quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP please", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Php please", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "llvm compiler already", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "i want to record audio now", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "set up g++ already", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I NEED XZ-UTILS", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "Ready to gz files on this machine", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "SET UP JQ", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "ready to please media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "help me personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "could you want to use containers on my computer already", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need Ansible for automation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "SYSTEM MAINTENANCE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "let's give me neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "TIME TO NEED JUPYTER-NOTEBOOK", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "configure video production environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'd like to ready to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "GOTTA DOCUMENT DB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I NEED A FILE SERVER ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I WANT TO STORE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "LET'S MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I WANT TO PLEASE 'M STARTING TO LEARN WEB DEV", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "how do I set up fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "wanna please fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "PREPARE FOR CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "video production environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "need podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "security hardening right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "add ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "LOOKING TO ALTERNATIVE TO MICROSOFT OFFICE PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ready to want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I'd like to ripgrep search", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "could you need to fetch things from the web on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "HG VERSION CONTROL", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "CAN YOU INSTALL NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "let's put perl on my system", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "gotta lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "wanna set up for data work quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I'm trying to add curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "hoping to open websites on my system", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "please want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "ufw please", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I NEED TO NSTALL TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I'm trying to want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "i'm building an app that needs a datbase", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Can you about to basic security setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "looking to datbase environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "my friend said i should try linux development please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please live streaming software already", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS for me", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "wanna 'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Maven please on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Looking to add wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "set up a web server for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "packet capture quickly", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "configure add htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I WANT ZIP", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "hoping to help me want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "BACKUP TOOLS!", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "give me gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "RUBY LANGUAGE", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want to nano editor on this machine already", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "MAKE MY COMPUTER READY FOR FRONTEND WORK?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to put podman on my system", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "wanna need vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "NETWORK DEBUGGING TOOLS!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Infrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "podman please", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "i'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "can you install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "hoping to can you install neovim asap", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "could you mysql db?", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "MAVEN BUILD", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "java build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "about to want cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "how do I nstall netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "Download manager right now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "zsh please", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "hoping to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "default-jdk please", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you hoping to can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "ltrace please", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "get ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "Set up put openssl on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "could you python development environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "need to audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "wanna 'm trying to terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "need to let's want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "terminal multiplexer", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "prepare for ml work please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "looking to python3-pip please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "get evince for me", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "show folders", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "set up looking to video playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "TIME TO MAVEN BUILD", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "set up clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "please can you install cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "docker", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "get gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "unrar tool", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "java gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "can you install fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "network security analysis on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "time to rust compiler", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "configure kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "looking to add docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I WANT SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "install evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "HELP ME LIVE STREAMING SOFTWARE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "hoping to want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "let's want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I'm trying to need fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "how do i want to write documents right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ready to need nginx on my computer", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Let's virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "how do I fresh install, need dev tools for me asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to 'm trying to caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "PDF TOOLS SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "please configure ndie game developement", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I want to let's ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "how do I memory leaks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "EASY TEXT EDITOR", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "SET UP REDIS ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need multi-container apps for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I JUST SWITCHED FROM WINDOWS AND WANT TO CODE asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "ufw please", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "install default-jdk asap", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "nstall netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "need to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "help me new to ubuntu, want to start programming on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I'd like to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'd like to need mysql for my project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up set up kvm", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "About to need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT!", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's want to do penetration testing?", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Gotta 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to gotta vm software already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I want to vi improved", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "make my computer ready for frontend work asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'd like to need ansible for automation", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "help me want iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Could you my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I want to ready to kde pdf", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "add libreoffice?", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ready to need to test network security on this machine on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "gotta want jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "valgrind please on this machine", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "install audacity for me", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up set up tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "add valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "power user terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "help me running my own services now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "time to wanna java development environment for me asap", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "python venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I need to work with PDFs right now", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I want maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "could you 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "CONFIGURE ABOUT TO PDF MANIPULATION NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need to set up xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I need to want tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "SET UP MYSQL DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "let's gotta need python for a project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Game engine setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "can you can you install yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I need to have epub files to read!", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "how do I need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "TIME TO SET UP DEFAULT-JDK", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Wanna get vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "uncomplicated firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I WANT FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "mercurial please", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "Okular please right now", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "let's could you run windows on linux on this machine asap", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I need a web browser on this machine", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "looking to give me openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "configure nstall fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "time to live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Mongodb database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "protect my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "i want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I'M TRYING TO SET UP EMACS THANKS", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "please configure add gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "need to prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I WANT TO WRITE PAPERS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "looking to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "i'm starting to program!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ADD OKULAR", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "COULD YOU 'M TRYING TO WANT TO RUN A WEBSITE LOCALLY FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "could you want to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "help me c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "VIRTUALBOX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "set up set up need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "give me php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "wanna add okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "ebook reader quickly", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "please photo editing setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "give me tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "get btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "Let's how do i jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I'M TRYING TO HOW DO I ADD PHP FOR ME", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "NVIM", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "can you photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "HOW DO I PUT QEMU ON MY SYSTEM QUICKLY", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "hoping to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "programming font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "video playback please", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm trying to ethical hacking setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "can you install podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "looking to curl please already", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I want to nstall npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "CAN YOU INSTALL JUPYTER-NOTEBOOK ALREADY", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Uncomplicated firewall for me", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I need to check resource usage on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "i'm trying to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "put p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "READY TO CS HOMEWORK SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "UPGRADE ALL PACKAGES", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "please please need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "get qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "i'd like to need to upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "can you wanna file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "need to want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "KDE PDF RIGHT NOW", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "how do I want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "ready to can you install gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "SET UP MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you clamav scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i'd like to python3 interpreter", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "VM environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Can you install qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "package manager issues on my computer", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Set up 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Productivity software quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I NEED TO TRAIN NEURAL NETWORKS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "programming font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I'm trying to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "how do I want to be a full stack developer quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "install docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "About to docker with compose setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "ready to educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up want to better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "ABOUT TO DATA BACKUP ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I NEED TO TEST DIFFERENT OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "could you prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "ready to c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "Give me tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I WANT XZ-UTILS ALREADY", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "better terminal setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "get exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I WANT TO VIDEO EDITING SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "ready to cross-platform make quickly", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "time to rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Please btop monitor now", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "ready to give me htop quickly", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "gotta make my computer ready for frontend work please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "looking to configure source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "gotta want nmap now for me", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "time to neofetch please on this machine", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "add unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "let's need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "vim editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i need to rust devlopment environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "javascript packages", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "PLEASE GCC PLEASE FOR ME for me", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "i need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "how do I can you golang setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "READY TO SOMETHING LIKE VS CODE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "get screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "wanna please want to monitor my system!", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "give me git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Wanna productivity software quickly please", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I WANT TO CODE IN JAVA?", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "VALGRIND TOOL", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "HOW DO I CONFIGURE CONTAINERIZATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "let's looking to mysql server installation please", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "FILE SHARING SETUP ON MY SYSTEM RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "could you can you instll iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Let's cs homework setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "TIME TO SET UP PYTHON3-VENV", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "working on an IoT thing for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "HOPING TO WANT TO BROWSE THE INTERNET", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'd like to media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "HELP ME WANT EXA", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Packet capture", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "COLLABORATE ON CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "get fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "terminal editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want gzip?", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "WANNA SYSTEM ADMINISTRATION TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "could you prepare for data science now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "WANNA GRAPHICAL CODE EDITOR", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Virtual machine", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Need to help me archive my files for me", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "Add netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "please 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "gotta extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "About to add iproute2!", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "maven please on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "instll docker.io on this machine", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "let's want gzip right now", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "please want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "HOW DO I BZIP TOOL", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "how do I set up need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "set up neofetch quickly", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "can you need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "Power user terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Install apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "time to get tmux already", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "need to my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "GET NODEJS PLEASE", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "let's give me mongodb on this machine right now", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I need to get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "add perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'm trying to fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "gotta java gradle for me", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "wanna running my own services please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need to rootless containers thanks", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "pgp now", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "insatll virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "antivirus!", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I want ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I WANT TO CODE IN PYTHON FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "install default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "let's emacs editor", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I need multi-container apps thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to want to secure my server right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please put neovim on my system", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "set up prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you could you antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Perl please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I want screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I want to let's want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "set up imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I WANT TO WRITE PAPERS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "about to network scanner thanks", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "set up full stack development setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "please time to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'd like to nstall tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "ADD BTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "let's want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "i want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I NEED TO LATEX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "About to want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "prepare MySQL environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "give me bat right now", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "COULD YOU WANNA WANT TO SHARE FILES ON MY NETWORK", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "hoping to nstall openssl on my computer", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "nmap please now", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I'm trying to want to ot development environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "SYSTEM MAINTENANCE ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "please need to optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "version control", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "please get ltrace already", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I'd like to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "give me gcc!", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "PERL LANGUAGE ASAP", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "Uncomplicated firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "LET'S NEED TO SERVE WEB PAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "LaTeX setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "MAKE MY COMPUTER READY FOR PYTHON", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Java setup please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "wanna need screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "HOPING TO PRODUCTIVITY SOFTWARE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "configure let's run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Put bzip2 on my system", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "ready to want to store data quickly for me", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "reverse proxy", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "DATA ANALYSIS SETUP ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "get pythn3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Zip files up right now", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "About to need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "hg quickly", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "desktop virtualization asap", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "productivity software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "fancy htop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "wanna configure ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "qemu please", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "PDF tools setup now!", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "PYTHON PLEASE", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "looking to want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up Python on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "TIME TO NETWORK DIAGNOSTICS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "can you give me make asap", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "hardware project with sensors on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to want to packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "help me 'm learning python programming?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Hoping to devops engineer setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "hoping to add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "can you install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "i need to get g++ quickly", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "how do I can you install calibre on this machine right now", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "about to nstall default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I WANT TO WRITE PAPERS!", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "time to lzma for me", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "Production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "PUT OPENSSH-SERVER ON MY SYSTEM", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "i need to ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "unrar tool", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "Install curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "mysql fork", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "configure neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "about to pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Obs setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "COULD YOU NEED ANSIBLE FOR AUTOMATION", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "wanna need mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Indie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "how do i can you instll openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I'm trying to hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "ready to put lua5.4 on my system", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Need to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "hoping to docker-compose please", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "hoping to want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up nstall ltrace?", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "NETWORK FILE SHARING on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "run VMs with VirtualBox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I WANT TO WATCH VIDEOS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I WANT TO 'D LIKE TO DIGITAL LIBRARY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I need to sync files quickly right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "can you nstall docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "nginx server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "put nano on my system right now", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I NEED TO GET APACHE2 ON MY COMPUTER", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "WANNA SYSTEM MAINTENANCE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I WANT TO EDIT PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "hoping to need tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Let's set up prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I need ltrace on this machine", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "can you 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "hoping to ready to gz files on this machine", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "can you c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "can you install unzip on this machine", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "set up redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "exa tool!", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "configure nstall fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I NEED TMUX", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "INSTALL IPROUTE2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I want to python3 please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "ready to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "set up ebook management right now", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "TIME TO NEED PODMAN", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "install zip thanks on this machine", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "need to llvm compiler on my system", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "wanna bat tool", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "get lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Ready to set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Hoping to getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "i need to need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "let's hoping to c/c++ setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "gotta better python shell?", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I need mysql-server thanks", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'd like to want to edit images?", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "looking to java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "time to set up personal cloud setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Ready to let's connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I WANT TO PUT GRADLE ON MY SYSTEM", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "how do I parse json", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "i want the latest software now!", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "gpg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "set up want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'M DEPLOYING TO PRODUCTION", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "time to audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "HOW DO I 'D LIKE TO NEED MYSQL FOR MY PROJECT ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "give me emacs now", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "add mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "gotta postgres", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need to class assignment needs shell?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "need to set up gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Can you install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I'm trying to mercurial please", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Could you want yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "get apache2 asap", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "remote login capability on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Gotta need to serve web pages thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "wanna 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "mongo", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "wanna educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to check resource usage?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Looking to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "VM ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "configure show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "GET SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "set up need to connect remotely on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "virtualenv on this machine", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "about to want qemu right now", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "prepare for coding right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "AUDIO PRODUCTION SETUP ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "install gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "add ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "i need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "CONFIGURE DOCKER SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "READY TO LOOKING TO VIDEO PLAYBACK", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "ready to openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "go developmnt environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "htop please on my system", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "set up streaming setup for twitch on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get bat thanks", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "wanna want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "set up want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Memory leaks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "valgrind please", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "just installed ubuntu, now what for coding already", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "VIRUS SCANNING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "ready to rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Can you set up fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "could you need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "can you install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "Get ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "time to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "how do I prepare mysql environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "nginx please?", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "get ruby on my system", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I need to connect remotely please", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Give me screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "can you basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "pdf tools setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "configure 'd like to ruby language already", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I need mysql for my project for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Time to set up unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "can you give me wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "i need to gnu make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "rar files please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "set up can you install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gotta fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to want neofetch thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "please bat tool", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I WANT TO HOST A WEBSITE PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "set up redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Get nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "openssl please", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "hoping to game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "HOPING TO WANT TO SHARE FILES ON MY NETWORK?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'd like to yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want to self-host my apps please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "gotta ready to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I need to time to need okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "set up htop?", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "add php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "About to want to orchestrate containers right now asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Time to virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "CONTAINERIZATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to backup my files right now on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "let's want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "profiling tools!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Cs homework setup thanks!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "nodejs runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "ready to get emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "get audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I need to run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "set up everything for full stack already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I'm trying to configure want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you give me golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "need to managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "help me nstall nginx asap", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up about to set me up for web development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "add yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "help me archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I'M TRYING TO 'D LIKE TO WANT FAST CACHING FOR MY APP", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "can you set up openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "how do I want the simplest editor right now", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "IFCONFIG", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "wanna configure set up nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "put fonts-firacode on my system", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "TIME TO MAKE MY SERVER SECURE", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'M A SYSADMIN ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "could you screen fetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "set up jq for me", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "GIVE ME GNUPG PLEASE", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "mysql", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CAN YOU 'M LEARNING GO LANGUAGE", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "HOW DO I PLEASE 'M LEARNING PYTHON PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ready to can you install ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "ready to update everything on my system please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I'm trying to want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "about to pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "i need to make my computer a servr?", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "add tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "add curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "put cmake on my system", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "need to set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I WANT TO STORE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Streaming setup for twitch quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "about to production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "JAVA GRADLE", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "i need to play video files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "about to need to get bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "MUSIC PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "gnu emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I want golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "can you set up mysql-servr", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I have epub files to read on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "LET'S REDIS SERVER PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "EBOOK MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "ready to lightweight database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "please nstall jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "ebook management asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "how do I python development environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i want remote access to my server already", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I WANT TO RECORD AUDIO NOW?", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "SET UP RIPGREP", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "could you ready to want default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "how do I getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "hoping to get gimp quickly", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "how do I need to check resource usage on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "can you instal openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "get wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "i'd like to media player setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "time to need g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "add libreoffice already", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "need to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "golang", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "wanna give me imagemagick?", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "i'd like to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "mvn", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I'm trying to set up calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need to need vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Zip files", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I want screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "Could you can you have a raspberry pi project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "kvm right now", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I'd like to media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "configure homework requires terminal please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to rust compiler", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "time to screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "can you install fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "could you parse json", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "time to get fzf thanks already", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "VM ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "ufw please", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "put exa on my system", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "please 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "let's mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Backup solution setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'm learning Java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "time to run windows on linux!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "hoping to c/c++ setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "i just switched from windows and want to code asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I have epub files to read on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up make right now", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "about to want a modern editor now", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "wget tool?", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I want to archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "Please want to program arduino thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "help me need a text editor on my system", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "how do I hoping to network diagnostics already", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "TIME TO PERSONAL CLOUD SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Can you need wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up help me set up unzip please", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "set up docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "could you word processing and spreadsheets on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "about to set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "G++ please", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "i need to docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "about to python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Need to want libreoffice!", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "backup tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "apache ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "ready to give me tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "get virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Latex setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "i'm trying to want vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "trace syscalls now", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "help me prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "need to want to ot development environment asap", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "configure file download tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "TIME TO MPROVE MY COMMAND LINE", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "i'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I need curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I NEED MYSQL FOR MY PROJECT FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I want to watch videos now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I WANT MONGODB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "ready to make my computer ready for frontend work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "configure valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "set up devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "help me want to find bugs in my code quickly right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "get mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "put redis-server on my system thanks already", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "need to basic security setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Python development environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "pip3", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I'd like to streaming setup for twitch on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "put git on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "configure want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "ready to need a file server quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "insatll okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "set up set up for data work on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want to code in java?", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "looking to time to ebook reader setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'M TRYING TO JDK INSTALLATION", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "can you install docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you need a text editor asap?", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "HOPING TO PYTHON LANGUAGE", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I want to photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want the simplest editor thanks", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want to need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "Need to compile code on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "gotta give me yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I'd like to put openssh-client on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "hoping to 'm trying to unzip files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "Set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to json tool", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "set up screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "let's get vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "CLEAN UP MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "LOOKING TO HAVE A RASPBERRY PI PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "about to 'd like to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'm learning Docker please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to put fd-find on my system", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "AUDIO PRODUCTION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "TERMINAL MULTIPLEXER", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "How do i how do i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Get default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "about to please my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "PREPARE FOR CONTAINERIZED DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "live streaming software on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up rustc quickly thanks", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "set up source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "TIME TO SET UP G++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I'D LIKE TO ABOUT TO JAVA", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I'm trying to nstall wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "give me npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "Could you 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I want to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "zip files", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "pdf viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'm trying to nstall apache2 on my computer", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "hoping to wanna graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "preparing for deployment thanks on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "let's set up python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I'm trying to run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "instll docker.io on my system", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "media player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "looking to pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "please just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you please basic development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "fonts-firacode please", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Set up need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "wanna remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I need to can you install fd-find please", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "gotta nstall valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "configure want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "cmake tool", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "add perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I need iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "can you install vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "ABOUT TO WANT TO EDIT PDFS ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "need to get php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "set up Redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "gotta profiling tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "install neovim quickly", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "can you install make please", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Ready to need nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "time to samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "LET'S C COMPILER QUICKLY", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "production servr setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "HOW DO I LOOKING TO MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I'm trying to set up python3 quickly", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I need to help me ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Set up 'm trying to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "need to oh my zsh on my computer", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "IoT development environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "My professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "perl interpreter", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "looking to json tool asap", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "gotta set up nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "about to kvm quickly", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Ready to need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'd like to set up iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "class assignment needs shell on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "source control on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "version control setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Improve my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "VERSION CONTROL SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "how do i can you need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "Set up gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I WANT TO TRACK MY CODE CHANGES ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "ABOUT TO DOCKER SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gotta sqlite3 please", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "bat please", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "put python3 on my system", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I'M TRYING TO NEED TO CONNECT REMOTELY PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "give me fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "security testing tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "i'm trying to educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "PRODUCTIVITY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up want ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "gotta kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "configure ebook manager", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "about to word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Wanna productivity software quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "hoping to pdf manipulation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "time to apache server right now", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "about to nstall rustc already", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "how do I want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "wanna need vagrant?", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you convert images", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "Need to nstall wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "about to optimize my machine please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "streaming setup for twitch on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ABOUT TO MY KID WANTS TO LEARN CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "show specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "hoping to put python3-venv on my system", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I'm trying to vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Python package manager", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "gotta need to upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "get neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Put exa on my system thanks", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "z shell?", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "crypto tool on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "need to want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I'd like to help me cmake please", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "can you install zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "install emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "i want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do I ready to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Could you screen sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "please ready to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "rust compiler", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "gradle please", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "looking to server monitoring setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "can you set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "set up set up jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "i have epub files to read on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Time to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "need to system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "HELP ME HOPING TO GO RIGHT NOW ALREADY", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "NEED TO PROTECT MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Put maven on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "unzip files on this machine", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "need btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "could you p tool", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Make my computer ready for frontend work asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "gotta power user terminal for me", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "get openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I WANT MONGODB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "unzip files for me", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "Give me clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "let's gotta give me fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I JUST SWITCHED FROM WINDOWS AND WANT TO CODE?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "PSQL", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "about to put vlc on my system", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "LOOKING TO HOPING TO NEED FAIL2BAN", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "Help me ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'm trying to give me subversion on this machine", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "LIGHTWEIGHT DATABASE", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "LOOKING TO WEB DOWNLOADING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "protect my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "configure put vagrant on my system now", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "LET'S WANT TO EDIT VIDEOS", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "give me fonts-firacode?", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "CAN YOU INSTALL RUBY?", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "GET STRACE", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "INSTALL ANT", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "set up nstall p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "can you prepare system for pyhton coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "STREAMING SETUP FOR TWITCH NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'M TRYING TO RUN WINDOWS ON LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "about to netcat please", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "about to want to orchestrate containers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i'm trying to vm environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want to please 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i want zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "need to apache server right now", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "IoT development environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Java setup please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "data analysis setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "how do I coding font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "can you get valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "AUDIO EDITOR", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I'D LIKE TO JAVA ANT", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "UPGRADE ALL PACKAGES", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "LOOKING TO SCREEN FETCH", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "set up system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I HAVE A RASPBERRY PI PROJECT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Gotta pdf manipulation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "DATABASE ENVIRONMENT NOW THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I NEED TO CHECK FOR MALWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "configure office suite", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "upgrade all packages please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "i'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "i want to edit images quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "give me openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "about to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "teaching programming to beginners now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "could you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I need make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "could you streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to curl tool for me", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "seven zip right now", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "wanna add docker-compose now now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I'm trying to want to build websites?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "gotta managing multiple servers quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "hoping to want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "gotta devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "how do I prepare for containerized development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I WANT WIRESHARK", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "About to time to want to do penetration testing on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I need to give me strace on this machine", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "JAVA GRADLE NOW PLEASE", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "Set up set up fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "document reader", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "wanna prepare my system for web projects asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Give me unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "better find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "SET UP GOLANG-GO", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "performance monitoring please please", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I NEED TO OPEN WEBSITES FOR ME", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "need to run windows on linux already", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "install wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "set up prepare my system for web projects!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "FILE SHARING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "how do I ltrace tool", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "Please hoping to memory debugging environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Looking to working on an iot thing on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I need tree!", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "nginx server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "can you install jq thanks", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "EPUB READER", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I need to need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "Time to how do i power user terminal on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "put curl on my system", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I WANT TO PYTHON3 PLEASE on my system", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "MAVEN PLEASE", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "gotta add strace please", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "ready to cmake build", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "nosql database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "wanna memory debugging environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "could you connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I NEED UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "need to gcc compiler right now", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "makefile support", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "how do I c/c++ setup on my computer asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "about to prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "mongodb database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "i want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "perl please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "My kid wants to learn coding thanks right now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "add jq quickly", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I'd like to want git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "looking to put fail2ban on my system", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "help me mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "SET UP RUN VMS WITH VIRTUALBOX QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Prepare for database work on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "looking to mariadb alternative", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "COULD YOU WANT REMOTE ACCESS TO MY SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "can you let's 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to how do i teaching programming to beginners right now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "zsh please thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I want gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "let's can you install tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I need to let's antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "GIVE ME MYSQL-SERVER!", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "about to 'm doing a data project already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "How do i graphical code editor on my system", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "configure devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Please javascript packages on my system", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "please please want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "ABOUT TO NETWORK SCANNER ASAP", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I NEED YARN QUICKLY", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "gotta set up default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "could you database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "hoping to help me python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "folder structure", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "HELP ME VERSION CONTROL ASAP", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ready to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "gotta connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I WANT TO COMPILE C PROGRAMS ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I'm trying to add exa!", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Can you install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "TIME TO CONTAINERIZATION ENVIRONMENT QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "put audacity on my system", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I want vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "indie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up want to can you install zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "system display now", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I need vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "COULD YOU ADD FISH", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "About to need screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "Redis server please on my computer please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "add zip already?", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "hoping to run windows on linux asap", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "wanna debugging tools setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "add qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "about to my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I'm learning Python programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i need emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "help me containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need to wanna security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I'd like to want bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "time to need cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "get htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "LET'S VIDEO PLAYBACK", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm learning Go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "need to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "microcontroller programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "VM environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Add unrar!", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I'm trying to want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "could you running my own services quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "looking to add virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Virtualenv on this machine", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "wanna yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "PERFORMANCE MONITORING NOW NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "need to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up 'd like to go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "READY TO NEED NGINX NOW", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "prepare for containerized devlopment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Configure homework requires terminal!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "let's give me mysql-sever!", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "hoping to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "terminal sessions quickly", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "set up go devlopment environment", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "about to nstall wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "rust programming setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need to gotta network diagnostics now right now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to need to make my computer a servr?", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Wanna want okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "could you need to work with datasets quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "fzf please", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "need to set up for data work already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "let's redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Looking to put redis-server on my system thanks", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "looking to something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Get php please", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I need to serve web pages thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "HELP ME WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "hoping to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "hoping to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "better python shell", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "help me put ltrace on my system on my system", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "HOME SERVER SETUP now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you want a nice terminal experience on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I WANT TO MONITOR MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "source control on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "add unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "JUST INSTALLED UBUNTU, NOW WHAT FOR CODING?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "unzip files", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "PUT OBS-STUDIO ON MY SYSTEM", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "time to want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "node", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I NEED TO GPG", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I need to need to need to test different os on my system quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "hoping to my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "docker engine asap", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "help me want openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "gotta teaching programming to beginners on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "i want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "process monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "configure want to scan for viruses!", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "time to ready to want to self-host my apps please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Wanna gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Set up 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "TIME TO C DEVLOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "time to php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I need to connect remotely now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Need to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "mariadb-server please please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I'm trying to put clamav on my system", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "time to could you set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "ssh on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "HOW DO I MAKE MY COMPUTER READY FOR FRONTEND WORK on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need a text editor now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want to edit text files already", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "oh my zsh now", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "ABOUT TO HOMEWORK REQUIRES TERMINAL ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "time to put htop on my system", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "configure make my server secure already", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "performance monitoring now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "i need to give me screenfetch!", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I'm trying to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "FIX INSTALLATION ERRORS", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "ready to need to work with pdfs on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "looking to apache", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Performance monitoring!", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "could you rust developmnt environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "add neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "let's set up audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "help me set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "prepare for ML work already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "can you install git already", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "about to nstall perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "how do I 'm making a podcast on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "could you connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "get fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Let's unzip files?", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "wanna virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "HOPING TO CODING ENVIRONMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to could you my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "set up gradle?", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I'd like to digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "convert images", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "TIME TO SET UP PHOTO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "PODCAST RECORDING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I'm trying to add screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'm trying to set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "hoping to memory debugging environment right now now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "wanna video production environment now thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "resource monitor for me", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "add apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "put tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "hoping to configure nstall vlc on my computer", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "about to set up mysql database on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "wanna ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "i'm trying to need to audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "LOOKING TO ABOUT TO BASIC SECURITY SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "need to give me mysql-server for me", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "gnu emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "can you valgrind please", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Could you hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "about to optimize my machine please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "PYTHON3 INTERPRETER", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "'m learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "i need a database for my app for me", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "time to golang-go please please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "about to put nmap on my system", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "ready to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "can you install fish please", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "could you want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do I podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "LOOKING TO WANT TO EXTRACT ARCHIVES ALREADY", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "about to set up valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "PLEASE WORKING ON AN IOT THING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "COULD YOU WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "SYSTEM ADMINISTRATION TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "about to python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "how do I 'm worried about hackers quickly?", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "wanna give me emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up inkscape quickly", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Image editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "help me extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "looking to server monitoring setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "PLEASE WANT TO USE CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to nano editor on this machine", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Fix broken packages already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "could you rust developmnt environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "help me network diagnostics thanks asap", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "virtual machine", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "time to need to can you install python3-venv asap", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "set up lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "time to gotta pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "HOW DO I FILE SHARING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "give me evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "get obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "could you set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "LOOKING TO MAGE TOOL", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I'd like to ruby interpreter please", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "i'm trying to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "nstall netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "i need to help me add fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "gotta new to ubuntu, want to start programming quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "could you put postgresql on my system", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "give me xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "looking to looking to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Ready to containers", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I'm trying to obs!", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "i need to run containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ready to help me want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Hoping to java development environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "HOPING TO CAN YOU INSTALL CALIBRE", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "READY TO RUST PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'M DEPLOYING TO PRODUCTION", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "configure want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "ready to new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "NEED TO MAKE MY SERVER SECURE", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "can you need maven quickly", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "need to terminal sessions asap", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "ready to web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want to write documents already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "time to network diagnostics on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "wanna can you install gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "i'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "fish please on this machine", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Zip files up right now", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "Could you office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'd like to want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "how do I give me golang-go on this machine", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "GIVE ME PODMAN", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "ip command on my computer", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I want to gotta music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "how do i pip3", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "how do I mvn", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "hoping to give me ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "apache ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "can you install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need docker-compose?", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "let's rust compiler", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "add php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "SET UP MONGODB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "can you install valgrind quickly", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "can you install code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want to archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "set up give me screenfetch!", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "productivity software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "help me want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i need to play video files on my computer quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "about to let's teaching programming to beginners now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Set up openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "READY TO BACKUP TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "Wanna need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do I c/c++ setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Improve my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "about to educational programming setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "wanna network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Let's set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "i want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "image convert", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "openssh-client please", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "time to want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "help me want mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "Get screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "can you 'm learning pyton programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "set up gdb on my computer", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I want to remote login capability for me", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Make my computer ready for frontend work?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "system maintenance now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "time to containerization", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "help me just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta full stack development setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "about to need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "i need multi-container apps thanks quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to virtualization", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "production server setup?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "wanna want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "gotta get pyton3-venv on my computer", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Install python3-pip?", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "PUT QEMU ON MY SYSTEM", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "ssh daemon", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I want to wireshark tool", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "help me 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "i want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I NEED UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "get npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "add nodejs quickly", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "network file sharing please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "i want jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "better python shell", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "prepare for database work please", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I need ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "time to set up xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "Get gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "give me jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "process monitor thanks", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "ready to spreadsheet quickly", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "INSTALL PYTHON3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "remote login capability on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Time to need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "PUT GNUPG ON MY SYSTEM", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "help me put ipython3 on my system on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "ready to obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to set up have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i need to prepare for full stack work already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "ready to fix broken packages already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get fonts-hack right now", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "add net-tools asap", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "rar files", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "Fonts-firacode please", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I NEED TO 'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "kid-friendly coding environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "need to what are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "PLEASE GET VALGRIND", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Let's help me set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "'d like to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "give me mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Configure better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to 'd like to give me unzip for me", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "Docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "give me gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "set up crypto tool", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I'm trying to put zip on my system thanks", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I want to edit PDFs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Can you want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "HOPING TO CODING ENVIRONMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "COULD YOU VALGRIND TOOL", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Python notebooks for me", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I NEED VLC", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "rootless containers!", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I'm trying to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Prepare mysql environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "i need mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I'm deploying to production already on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "add zip already?", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Set up for ai development?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "let's my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "instll docker.io right now", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "PYTHON LANGUAGE NOW ALREADY", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "VIRUS SCANNING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "i need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i want to do machine learning quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "need to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Put bat on my system!", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I want a modern editor for me", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "can you photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "wanna put postgresql on my system", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "GOTTA GIVE ME UFW ASAP", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I need to help me put ltrace on my system on my system", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want docker.io already", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I WANT GDB", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Wanna devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ABOUT TO MEDIA TOOL ON MY COMPUTER", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "friendly shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "wanna need vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "i'd like to need fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "add ipython3 asap", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "team communication tool on my computer", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I'm learning Docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ready to give me calibre on my system", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "ready to nstall docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I'm learning Go language?", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "Configure set up nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "media tool on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Streaming for me", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "NODE?", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "WORKING ON AN IOT THING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "give me maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "live streaming software on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "system calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "compile c++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "can you curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I'd like to configure want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'd like to fzf tool", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "package manager issues now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I'M TRYING TO PODCAST RECORDING TOOLS!", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "time to server monitoring setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "libre office", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i'm trying to need to compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "hoping to c/c++ setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "could you text editing software for me", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "about to add python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "gotta preparing for deployment!", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "i need to run containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "podcast recording tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "PYTHON PACKAGE MANAGER ON MY COMPUTER", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I want to can you install qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I need to apache server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "need to set up pyton on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "hoping to looking to add obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "Add wireshark on this machine", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I WANT MONGODB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "SET UP HELP ME PUT INKSCAPE ON MY SYSTEM?", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "need to connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm trying to about to zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "get golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "Let's set up clang already", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Gotta preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "About to want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "php language", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I want openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "About to 'd like to put docker-compose on my system thanks", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "let's 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "i'm learning go language?", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "CAN YOU JUST SWITCHED FROM WINDOWS AND WANT TO CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I NEED TO TEST DIFFERENT OS quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Hoping to teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to can you install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "help me need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "gotta managing multiple servers already for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "READY TO KDE PDF for me", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "configure want to watch videos thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to help me production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "need to audio convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "hoping to neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "time to need g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "could you my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "about to want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "gotta add podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "put p7zip-full on my system on my computer", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "READY TO PROTECT MY MACHINE THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Gotta packet capture quickly", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "time to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "install unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "put wireshark on my system", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "READY TO NEED AUDACITY", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "mongodb please on this machine", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "HOW DO I DIGITAL LIBRARY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "CAN YOU INSTALL APACHE2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "hoping to about to want to program in go asap", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "set up python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "hoping to multimedia editing tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "i want to scan for viruses for me", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need MySQL for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "need to 'm learning java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "get curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "let's let's upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "about to download manager!", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "need to could you text editing software for me", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "wanna mysql datbase right now quickly", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I need mysql for my project for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "ABOUT TO NEED OPENSSH-SERVR FOR ME", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I NEED QEMU", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Help me 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "ABOUT TO PUT STRACE ON MY SYSTEM", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "PREPARE FOR CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to java setup please right now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "create zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "let's teaching programming to beginners on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "Web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I NEED TO ABOUT TO NDIE GAME DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Put gradle on my system", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "set up make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Please want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "can you install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Python language now", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "about to gcc compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "time to need to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "get maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "run windows on linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want to run virtual machines right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "i want to backup my files already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "i need to 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "i'm trying to bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "ebook management asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "set up cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "scan network", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "CONFIGURE BASIC SECURITY SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "can you want mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "can you graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "add xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I'm trying to need qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I need to work with images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "gotta 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to ready to hack font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "HOPING TO NEED A DATABASE FOR MY APP ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I'm trying to can you install libreoffice thanks", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "give me net-tools for me", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you install fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "install sqlite3 on this machine", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "pip3 quickly", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I want to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "please tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I'm learning docker already", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ready to modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Ready to make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "ready to put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "can you graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Exa tool on my system", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "record audio", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Looking to set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "rust language for me", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "i want imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I want to 'm trying to want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please 'd like to source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "about to set up scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Rust programming setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to could you profiling tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "Need to latex setup on this machine asap", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "DOCKER ENGINE", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "java gradle now", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I'm trying to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to collaborate on code thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "'m starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "directory tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "let's 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ebook reader setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "PLEASE READY TO JUST INSTALLED UBUNTU, NOW WHAT FOR CODING?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "READY TO TERMINAL SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Help me samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "looking to give me gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "gotta want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "give me bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "READY TO KID-FRIENDLY CODING ENVIRONMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "instal nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I want gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "Can you rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "help me wanna podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I want to go development environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "could you legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'd like to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "about to about to need to test different os on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "let's need multi-container apps on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "How do i need to set up pyton on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "need to need to work with datasets for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Iot development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "NEED TO DEVOPS ENGINEER SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "LOOKING TO PUT FONTS-ROBOTO ON MY SYSTEM", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "AUDIO PRODUCTION SETUP please", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Let's want to run virtual machines now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "set up compile code on my machine on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "gotta web downloading setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "time to need to need to serve web pages please", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "please vagrant please", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you need mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "Set up python3 quickly", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "give me wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "can you install ltrace right now", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "Uncomplicated firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Help me want to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Postgres", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "easy text editor asap for me", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "time to run vms with virtualbox now", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "set up audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I'd like to backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "set up gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "looking to 'm doing a data project on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "About to need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want to run virtual machines right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I WANT TO USE VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "help me put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "library calls", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "TIME TO WANT GNUPG", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "javascript runtime!", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Need to streaming setup for twitch for me", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to gotta upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "add netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "about to samba server thanks please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "could you my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "virtual machine", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Hoping to help me want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Need to want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "wanna clean up my computer now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "put ripgrep on my system", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "how do I need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "python environments!", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I'd like to digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "how do I virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "please system maintenance!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "About to vagrant please on my computer", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "backup tools already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "About to backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "ip tool", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "nodejs please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "help me give me fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need to debug my programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "need to about to want to program in go asap", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "UNZIP FILES", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "ready to need a text editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "please firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "IMAGE EDITOR", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "looking to python3-pip please please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "set up system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Time to audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Ready to ssh", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I'd like to need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "live streaming software please", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "HOW DO I GRAPHIC DESIGN TOOLS!", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'd like to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "insatll qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "fd-find please", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "help me 'd like to want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "how do I need to 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Configure getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "could you need to work with images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Please better find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I NEED TO CHECK RESOURCE USAGE?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "please set up maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "database environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "python language already", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "please set up everything for full stack for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "hosting environment setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to http client on my computer", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "ready to can you install gzip on my system", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "About to time to need rust compiler?", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you optimize my machine on my system", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "i'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "put podman on my system", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need to ready to new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "sqlite database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I need to fetch things from the web on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "SET UP NEED MERCURIAL ON THIS MACHINE", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "time to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "could you need redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "New to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "strace tool", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I'M TRYING TO HOMEWORK REQUIRES TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to record audio?", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "C development environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I WANT TO NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "NEED TO PREPARE FOR CONTAINERIZED DEVLOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "need to port scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "let's could you 7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "add calibre thanks", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "bring my system up to date on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "could you personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ebook reader setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "memory leaks for me", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "TIME TO 'M LEARNING GAME DEV", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "improve my command line asap", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I need to could you desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "please 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "let's 'd like to c development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "i want gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "trace syscalls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "let's package manager issues on my computer", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "hoping to nodejs please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I need to streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I'm trying to want evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "get docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "ready to can you install gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I need nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "install mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "ready to give me xz-utils!", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "configure ready to want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "terminal editor right now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "HOW DO I SET ME UP FOR WEB DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "looking to add neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "FRESH INSTALL, NEED DEV TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please looking to set up mysql datbase", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "NEED TO DATA ANALYSIS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up p command quickly", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "gotta multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up for microservices on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "give me fd-find quickly", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "image convert now", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "install default-jdk asap on my computer", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "can you install apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "i need pyhton for a project on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "music production environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "About to tree please", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "help me terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "i'm learning python programming thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you embedded development setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "hoping to put openssh-server on my system", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "time to could you better bash", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "APACHE2 PLEASE ALREADY", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I'd like to nstall cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "need to optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Wanna download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "set up nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "add mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "looking to want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "need to configure want to watch videos thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Wanna set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Alternative to microsoft office please now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "need to my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "add code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "WANNA JUST SWITCHED FROM WINDOWS AND WANT TO CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i want to graphic design tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "i need to play video files on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you instll qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "i want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "time to add iproute2 on this machine", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I want to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm trying to download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'm trying to about to optimize my machine thanks", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "put fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please need to write research papers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "give me neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "add fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "configure need to check resource usage for me on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "can you install virtualbox!", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "update everything on my system asap for me", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "hoping to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "could you profiling tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "ready to certificates", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "gotta need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "can you install gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I'm trying to kid-friendly coding environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "GOTTA CAN YOU INSTALL WIRESHARK", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "optimize my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "set up gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "install perl right now", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "WANNA REMOTE ACCESS", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "RECORD AUDIO", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "NEED TO DOCKER", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "better find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "need to get tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "About to homework requires terminal for me already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "looking to want to automate server setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "about to 'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "can you add fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "infrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "DOWNLOAD MANAGER", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "ready to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Time to unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "need to how do i can you instll openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "install neofetch!", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "i want to compress files on this machine", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "please golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "About to need inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Rust development environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Hoping to coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "security testing tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "CAN YOU WANT TO MAKE GAMES QUICKLY thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "need to mage tool", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "set up need default-jdk for me", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "set up gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I need clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Add wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "can you install gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "about to zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "set up Python on my machine now asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "rg", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I want to memory debugging environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "perl interpreter now", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "class assignment needs shell?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "gotta wanna video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "could you gotta need to check resource usage asap", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want to can you install xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "my friend said i should try linux development quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "put cmake on my system", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Set up g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Wanna wanna prepare for database work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I NEED MAKE?", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "let's get vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "LET'S SET UP COMPILE CODE ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "can you python notebooks asap", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "configure set up ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "programming font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "System information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "DIRECTORY TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "time to set me up for web development already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "what are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want the latest software on my computer", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "set up golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "i want ipyhton3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "could you fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "let's want to want docker.io please", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "curl tool", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "set up htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Set up time to need podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I WANT TO WRITE CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Terminal system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "wanna want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "help me archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "can you audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I WANT IMAGEMAGICK ON MY COMPUTER", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I'd like to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "hoping to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "gotta want to secure my sever", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "i need to play video files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "just installed Ubuntu, now what for coding quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to add audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "hoping to get fish please", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "getting ready to go live now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "about to about to data backup environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "wanna time to need okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "Could you want ruby thanks", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "VM environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "help me virus scanning tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want to want nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I'm trying to please set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ready to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "install docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "get python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "how do i give me fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I want vagrant thanks", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "CAN YOU INSTALL EXA", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "can you install vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'm a sysadmin on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I WANT TO FIND BUGS IN MY CODE ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I NEED TO SERVE WEB PAGES NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "gotta please need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "COULD YOU REDIS SERVER PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "SET UP MYSQL DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "COULD YOU PUT RIPGREP ON MY SYSTEM", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "READY TO NEED OFFICE SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "about to have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "LET'S MAKE MY COMPUTER READY FOR FRONTEND WORK NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I WANT TO NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "put mariadb-servre on my system", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "evince please", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "CONFIGURE WANT TO PACKAGE MANAGER ISSUES ON THIS MACHINE", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "i want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "AUDIO EDITOR", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "set up make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "SET UP FULL STACK DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "hoping to network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Time to machine learning environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to need a database for my app?", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "please digital library software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to ot developmnt environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "DOCKER COMPOSE ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "APACHE WEB SERVER", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "install yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "graphical code editor please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "get code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Please how do i make my computer ready for frontend work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I need to want to use containers thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "my friend said I should try Linux development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "HOW DO I NODE.JS", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Need to make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "need to want to scan for viruses please", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "PLEASE NEED TO COMPILE CODE ON MY MACHINE NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "set up vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "put sqlite3 on my system", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "need to set up pyton on my machine already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "help me cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "put unrar on my system on my computer", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "about to fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ABOUT TO 'M STARTING A YOUTUBE CHANNEL", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "kvm", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "how do I document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "inkscape please", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "wanna hardware project with sensors thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "put vlc on my system?", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "SSH", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "i want to add ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Hoping to vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "can you install docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "GOTTA ABOUT TO SERVER AUTOMATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "ready to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "Set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "HELP ME WANT TO CODE IN PYTHON", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "add pyton3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I want to use MySQL", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "how do I set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "vi improved", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "give me btop quickly", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "let's build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "managing multiple servers on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Want to build websites already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "looking to want jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "can you install curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "time to virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "hoping to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "WHAT ARE MY COMPUTER SPECS asap", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "HOSTING ENVIRONMENT SETUP ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'M TRYING TO PUT NEOFETCH ON MY SYSTEM FOR ME", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need nodejs on this machine", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "could you put git on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I'd like to prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Z SHELL", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "secure remote access", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "MANAGING MULTIPLE SERVERS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I need to p7zip?", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I want to c++ compiler asap for me", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "slack alternative!", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I'M TRYING TO JDK INSTALLATION", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "how do I need python3-venv thanks", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I'd like to perl language", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "time to please network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "java build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "install p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "hoping to data backup environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "let's need to graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "can you need p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "gotta ebook reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "time to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'd like to configure free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "ready to web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need ant?", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "i'd like to can you instal iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "SET UP PUT IPYTHON3 ON MY SYSTEM ALREADY", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "SET UP FOR MICROSERVICES on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "could you want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "can you want to watch videos please", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "media player setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "about to need to connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "alternative to Microsoft Office on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up npm asap", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "Could you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "WANNA WANT TO ORCHESTRATE CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "profiling tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "can you basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Add netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "set up python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "how do i set up gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Wanna need clamav quickly", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "MAGE MANIPULATION SOFTWARE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "yarn please for me", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "Psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "NEED TO WANT REDIS-SERVER", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "need to get bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "gzip compress", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "Time to ready to something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "libreoffice please", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "EXTRACT RAR", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "ready to mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "ready to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "preparing for deployment thanks", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up docker with compose setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "GOTTA NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'M LEARNING JAVA THANKS ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "wanna want npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "put net-tools on my system", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "give me fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I need virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "'m trying to rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO PYTHON3 PLEASE", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "looking to 'm a sysadmin on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "CONFIGURE WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "How do i give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "configure put clang on my system", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "about to lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Could you my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "GIVE ME FFMPEG", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "fresh instll, need dev tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "gotta how do i can you install vim already?", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "could you how do i want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I'm trying to could you video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "how do I want to write documents right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to system administration tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "help me data backup environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "give me clamav already", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "subversion please", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "ADD NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I need to desktop virtualization already", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "set up could you want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "lzma", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "network file sharing?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "give me gradle on this machine", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I want to set up set up for microservices on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "ready to set up netcat for me", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "ABOUT TO HOMEWORK REQUIRES TERMINAL FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "time to how do i 'm making a podcast on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Node on this machine", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "time to orchestration for me right now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Add valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "add docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Let's 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to live streaming software already", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "configure need to need mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I want to compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "could you prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "let's podcast recording tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Give me cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I NEED TO SYNC FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "Network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "give me subversion?", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "SECURITY HARDENING now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "gotta 'm starting a youtube channel on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "can you want to write papers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I need to bzip tool", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I need to mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "let's my system is running slow already", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "SECURITY HARDENING?", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "rust?", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "gotta want vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "SET UP SERVER MONITORING SETUP ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "p7zip-full please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "ready to hardware project with sensors on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Apache ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "can you gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I'm trying to coding font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "php please", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "bat tool quickly", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "OBS SETUP ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Looking to tcpdump please", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I want to use containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure help me fetch system already", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "ready to let's my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "gotta team communication tool for me", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "teaching programming to beginners asap", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "let's gotta can you install wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I WANT TO WANT UFW", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "about to want the latest software asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "better ls for me", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I want to set up gdb on my computer", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "CLEAN UP MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I NEED TO GIVE ME STRACE", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "fast grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "PODMAN PLEASE QUICKLY", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "looking to let's need tmux!", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "please need a file servr", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need to want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want to program Arduino thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I'd like to maven please", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "HOW DO I DIGITAL LIBRARY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "let's want to track my code changes on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "AUDIO PRODUCTION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "can you want fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "please need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "iproute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "get bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I want to secure my server!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I need postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "security testing tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Get mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Malware protection on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Could you trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "about to give me net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "C++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "looking to how do i want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want to need to debug my programs thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm building an app that needs a database", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "cs homework setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up personal cloud setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "how do I put rustc on my system quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "I want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "I NEED TO DEBUG MY PROGRAMS ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "ready to security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "hoping to how do i put maven on my system!", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I NEED MYSQL FOR MY PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "could you gotta gzip compress please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I want gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm doing a data project on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "get default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "could you about to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "how do I python development environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to could you add fish please", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "GETTING READY TO GO LIVE?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "apache server right now", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "MERCURIAL VCS NOW", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "collaborate on code on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I need fail2ban on my system", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "can you want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "looking to need to train neural networks thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to want to nstall nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "could you trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "how do I add tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "VM ENVIRONMENT on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "set up run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want to get ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "docker engine", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I'D LIKE TO GETTING READY TO GO LIVE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "COULD YOU SET UP SOURCE CODE MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "configure set up a database servr now", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "time to nstall mariadb-server on my computer", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "System info right now", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "can you set up for ai devlopment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "perl interpreter", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "could you want remote access to my sever", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I'M DOING A DATA PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "can you need to fetch things from the web quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'm trying to nstall curl right now", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "please 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "openssl please", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "set up maven on my computer", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I want to put vagrant on my system please", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "MYSQL DB", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "NEED TO POSTGRESQL DATABASE", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "network security analysis on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "GIVE ME LTRACE", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "network scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "kvm", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I'D LIKE TO NEED TO CONNECT REMOTELY", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "can you install fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "need to set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "OPENSSH-CLIENT PLEASE", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "ABOUT TO JUPYTER", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta need to work with images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "ready to sqlite3 please on my computer", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "get mercurial!", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want to set up libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need to fetch things from the web on my computer thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'm learning Docker please quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "TIME TO ORCHESTRATION FOR ME", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I'M TRYING TO HOMEWORK REQUIRES TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I WANT IPROUTE2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "time to put ipython3 on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "please could you cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "i need screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I'M TRYING TO VM ENVIRONMENT?", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "time to add mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "i need wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I'm trying to gotta samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "give me podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "let's could you my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to system administration tools on my system right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm trying to caching layer for my application right now", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I'D LIKE TO PYTHON3 INTERPRETER", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I WANT TO OPEN COMPRESSED FILES", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "about to nstall rustc already", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "install calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "GIVE ME NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "set up put ruby on my system", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "about to want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "i want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "hoping to nstall vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "ADD JUPYTER-NOTEBOOK", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "get valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I NEED TO GOTTA PREPARE FOR FULL STACK WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "put ffmpeg on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "FREE UP DISK SPACE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I'm trying to need yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "i need to wget please on my system quickly", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Add openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "Can you new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you please something like vs code!", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to ready to add neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you about to want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want to code in Java on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Time to working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up help me optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "PUT SUBVERSION ON MY SYSTEM", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I need to debug my programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "rustc please", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "upgrade all packages on my computer", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "looking to ready to get clamav already", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "can you install git on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I'd like to could you encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "SET UP EVERYTHING FOR FULL STACK ALREADY NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "hoping to productivity software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "my kid wants to learn coding!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "directory tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "COLLABORATE ON CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "SECURITY HARDENING THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Tcpdump tool", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Could you office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "can you roboto font now", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "looking to system maintenance right now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I want gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "about to neovim editor", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "help me gzip tool thanks", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "can you profiling tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "please set up g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "let's mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'm starting to program thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you let's want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "hoping to looking to legacy network on my computer", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "gotta configure modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "help me apache", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "yarn please now for me", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "archive my files?", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "put openssh-server on my system asap", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "ebook reader setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "nmap tool", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "put yarn on my system asap right now", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "unzip files for me", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "ready to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "How do i set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I need to train neural networks on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "mysql database", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "please firewall right now", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "need to put evince on my system", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "backup tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need to put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I need to want to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I WANT TO SELF-HOST MY APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ADD LUA5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "need to want to learn rust please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "SERVER MONITORING SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "set up 'd like to give me okular?", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "please help me want fast caching for my app for me", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I want to rust programming setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to looking to memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "how do I node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "LET'S ANTIVIRUS SETUP please", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Can you golang", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "need to podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "can you install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I want to backup my files already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "Set up ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "install audacity on this machine", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "set up prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "java", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "time to want to getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "READY TO MANAGING MULTIPLE SERVERS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "CAN YOU HELP ME SCAN NETWORK ALREADY", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I want fast caching for my app!", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "ABOUT TO NEED A WEB BROWSER", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "How do i set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "need to wanna add gradle quickly", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "could you 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "SECURITY TESTING TOOLS right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "hoping to mongodb please", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I want wireshark on my system", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "vlc player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "wanna add jq right now", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "time to want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "python package manager", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "install default-jdk asap", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "About to set up iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "academic writing environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Hoping to c/c++ setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I'd like to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "FOLDER STRUCTURE on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "NEED TO MY KID WANTS TO LEARN CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "how do i lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "let's 'd like to video editing setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "set up strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "CS homework setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "NGINX PLEASE", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "could you embedded development setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Help me nstall imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "NEED TO GOTTA WANT TO HOST A WEBSITE FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "run windows on linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Please media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "configure ndie game developement", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "ready to streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Unzip files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "Roboto font now", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I want ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "GOTTA GOTTA BASIC TEXT EDITING", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "scan network", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "security testing tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "gotta pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "can you want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "set up set up docker on my machine quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "compose?", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "ready to web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "uncomplicated firewall thanks please", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "HELP ME SQLITE3 PLEASE!", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "ready to give me zsh on my system", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "HOPING TO 'M TRYING TO WANT TO SECURE MY SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "about to mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "hoping to homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i want to program arduino!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "please gotta need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "C/C++ setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I want apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "data analysis setup please quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Give me zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need to could you 7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "GIVE ME MARIADB-SERVER", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Please network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "update everything on my system asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "java gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "set up bat right now", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I want gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "give me jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Ready to p7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Looking to nstall nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Give me p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "please need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "configure devops engineer setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "give me htop quickly for me", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I want to jupyter lab", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I need to set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "TIME TO CONFIGURE NDIE GAME DEVELOPEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "configure set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "gotta ebook reader right now", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "hoping to want to download files on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "working on an iot thing on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need fd-find on this machine", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "configure give me python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "strace tool", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "put python3-venv on my system", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "HOW DO I DATA ANALYSIS SETUP THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want neofetch for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Game engine setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Wanna ssh servr setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "mysql database quickly", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "need to need multi-container apps thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ABOUT TO REPAIR PACKAGE SYSTEM", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "vagrant vms for me", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "add openssh-server?", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "NODEJS PLEASE", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "help me debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "time to get obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "HOW DO I GIVE ME FZF FOR ME", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "configure put python3-pip on my system on my system", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "looking to want bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "i'm a sysadmin quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "need to add gradle thanks", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "'m building an app that needs a datbase", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to run a website locally on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "SET UP MYSQL DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "GOTTA GET GCC ON MY SYSTEM", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "how do i want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I need sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "basic developement setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to please need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I JUST SWITCHED FROM WINDOWS AND WANT TO CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "need to nstall libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Please want to rust programming setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to wanna parse json on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "put php on my system thanks thanks", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "How do i want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "system display now", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "looking to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "FILE SHARING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I just switched from windows and want to code already", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "add wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Network analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I'm trying to want to prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "configure give me git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I'd like to can you just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "machine learning environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "fonts-hack please", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I'd like to prepare for ml work right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "VIRTUALIZATION", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "put iproute2 on my system", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "need to run windows on linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "how do i trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "set up unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "CONFIGURE CACHING LAYER FOR MY APPLICATION", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "SET UP NEED TO CREATE A WEBSITE", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "help me database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "educational programming setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "looking to nstall screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "please want to need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "add wireshark right now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "put vlc on my system", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "WANNA MONGODB DATABASE", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "bat tool", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "wanna containerization environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i want tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "READY TO 'M STARTING TO LEARN WEB DEV NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "hoping to want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "MUSIC PRODUCTION ENVIRONMENT ON MY COMPUTER on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I'd like to have a raspberry pi project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "DATA ANALYSIS SETUP already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "hoping to about to want to program in go asap", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "wanna please docker setup please please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Bzip2 please", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "install mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I'd like to jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "HELP ME FONTS-FIRACODE PLEASE", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "hoping to can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "give me evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "hoping to memory debugging environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I want nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I need lua5.4 on this machine", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "audio convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I WANT TO WRITE CODE?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Ready to spreadsheet", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "roboto font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I need to 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "let's libre office", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'd like to system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "LET'S NEED TMUX", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I WANT TO BROWSE THE INTERNET THANKS QUICKLY", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "Put fzf on my system please", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "image tool", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I'd like to 'm starting a youtube channel right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "hoping to protect my machine right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "better cat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "give me postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Performance monitoring now on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "WANNA GZIP PLEASE NOW", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Let's 'm deploying to production on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "get screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "time to about to set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "wanna prepare for database work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "looking to mariadb-server please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "time to need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want the simplest editor!", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "configure set up want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "File sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need neovim thanks already", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "let's sound editor already", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "time to gotta need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "LET'S OPEN WEBSITES right now", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I want vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you just switched from windows and want to code?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "indie game devlopment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to compile c now", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "add git!", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I'd like to give me emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "qemu please", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I'd like to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "debugging tools setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "configure rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "7Z PLEASE FOR ME", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "add fail2ban already", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "hoping to help me ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "gotta basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GET INKSCAPE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "how do I set up imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "how do I set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "profiling tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Need to gotta need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "get nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'm trying to set up ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "help me 'm learning python programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "personal cloud setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "looking to nstall nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'M TRYING TO CREATE ZIP!", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Ssh on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "can you install bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "Let's virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "let's hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "add lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "CONFIGURE SET UP SUBVERSION", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "about to system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "how do i need to want to run virtual machines right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "configure how do i give me virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "hoping to fzf tool", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "get gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "could you ethical hacking setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "wanna want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "DATA ANALYSIS SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "about to need to graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "gotta can you instal ruby right now", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "looking to 'm trying to hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "HOPING TO WANT THE LATEST SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want to be a full stack developer right now on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I'm trying to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "'m learning c programming now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "ready to class assignment needs shell!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "get net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "How do i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "how do I want nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "add fonts-hack please", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Get ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "JAVA SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "wanna hoping to 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "give me python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "pythn development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "PACKET CAPTURE FOR ME", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I'd like to file sharing setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "EBOOK MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "netcat please", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "wanna security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Wanna valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I need to looking to java setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "help me streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "CONFIGURE NEED TO NEED LUA5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "need to need to serve web pages please", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "set up ebook manager", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I WANT TO USE CONTAINERS NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "CAN YOU MEMORY LEAKS FOR ME", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "About to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "install fonts-firacode!", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "openssh-sever please", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I'm trying to educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I want to get zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'd like to system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Could you vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "instll net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "how do I set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "HOW DO I GRADLE PLEASE ON THIS MACHINE", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I want to find bugs in my code please", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I'd like to get btop thanks", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "time to want to compress files quickly", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "LOOKING TO CONFIGURE NSTALL FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Fresh instll, need dev tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "run VMs with VirtualBox quickly on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want iproute2?", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I need wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "ssh client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I need evince thanks", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "LOOKING TO NSTALL POSTGRESQL", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "create zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "i want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "install net-tools right now", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to use VirtualBox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I WANT REMOTE ACCESS TO MY SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Ready to need to gnu c++ compiler quickly", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "please npm please now please", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "Help me homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "friendly shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I WANT TO NETWORK DEBUGGING TOOLS quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "need to embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I'M TRYING TO SCREEN SESSIONS", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "CAN YOU INSTALL CMAKE", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "about to give me make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "VIRTUALIZATION SETUP ON THIS MACHINE now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "hoping to vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need to fail2ban tool", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "hoping to word processor on this machine", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up for microservices quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Terminal system info!", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "help me give me gcc!", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I want to stream games on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you install nmap already", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "wanna podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "Ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I NEED TO SERVE WEB PAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Add exa on this machine", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I want remote access to my server on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "wanna set up version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "ready to want to edit text files now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I need to add postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "i'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "COULD YOU MY SYSTEM IS RUNNING SLOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I'm trying to set up zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "need to terminal sessions asap", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ebook manager", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "i want python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I'm trying to version control setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "hoping to need cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "can you want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I want exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "set up get neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "hoping to want imagemagick now", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "Java build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "vbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "READY TO REPAIR PACKAGE SYSTEM RIGHT NOW", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "mysql database please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "C/C++ SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "can you want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "put calibre on my system on this machine", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "wanna about to prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "system maintenance on my computer for me", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "wanna want to read ebooks quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "time to hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "fish please on this machine", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "HOW DO I WANT TO CODE IN PYTHON", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Gotta obs setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'M TRYING TO SET UP A DATABASE SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I JUST SWITCHED FROM WINDOWS AND WANT TO CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "wanna add fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "vector graphics!", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Music production environment please already", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "php interpreter please", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "alternative to npm now", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "looking to security hardening right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "need to web downloading setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I WANT TO TERMINAL SYSTEM INFO THANKS", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please system monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "PHOTO EDITOR", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "help me need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Something like vs code!", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "time to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "HELP ME ADD INKSCAPE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "i need multi-container apps thanks on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "about to let's managing multiple servers on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Time to can you install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I want to 'd like to kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "get jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "give me git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I WANT TO WRITE CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "hoping to nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I NEED TO JAVA DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "looking to system maintenance right now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "need to file sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "audio convert already", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "hoping to can you have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta add gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "give me gcc!", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "let's could you python3 interpreter", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "GET LUA5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "get screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "About to machine learning environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "how do I server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "SET UP DEVELOPER TOOLS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'M TRYING TO JDK INSTALLATION", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "xz compress", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "set up nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "gotta vm software already on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "hoping to need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "please need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you can you install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Put bzip2 on my system", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I'D LIKE TO UNZIP PLEASE", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "process monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "install mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "need to backup solution setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "HELP ME NEED ANSIBLE FOR AUTOMATION!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "about to need inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "SET UP A DATABASE SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "ready to need to system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "let's can you can you install fonts-hack thanks right now", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "please set up docker on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Please llvm compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "ready to get nodejs on this machine", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Looking to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "time to add yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "put screen on my system", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "get clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "how do I php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "system monitoring tools right now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "redis-server please", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I want okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I WANT TO NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "put golang-go on my system", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "Tcpdump tool on my computer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I'd like to want emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I WANT TO DO PENETRATION TESTING", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I NEED TO SERVE WEB PAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Compile c++!", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "wanna svn quickly", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "can you install screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "configure want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "hoping to new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "yarn package manager for me", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I'm trying to put bzip2 on my system", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "configure need to audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me default-jdk now", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I'M DOING A DATA PROJECT please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "pdf reader on my system", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Let's put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "prepare for database work on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I NEED OPENSSL ASAP", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "System update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "ready to need to want to learn rust please", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "CAN YOU INSTALL NANO?", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'm trying to can you install ufw already", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I want to prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I'm trying to put zip on my system thanks", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "ebook manager asap", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "help me terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I need to want fast caching for my app!", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "help me looking to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "configure nstall fd-find for me", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "put ffmpeg on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do I set up podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "about to give me net-tools on this machine", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "looking to better bash right now", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I want to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "time to help me set up unzip please for me", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "add gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I need netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "set up ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "can you install gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "redis cache thanks", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "i need to rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "get gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "set up get maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "gotta c devlopment environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "help me give me g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "GIVE ME FFMPEG", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "PREPARE MY SYSTEM FOR WEB PROJECTS on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "SET UP PUT GZIP ON MY SYSTEM ALREADY ON THIS MACHINE", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "install wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I'm trying to gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "evince please", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Gotta working on an iot thing please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I NEED TO TROUBLESHOOT NETWORK ISSUES RIGHT NOW QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "gnu emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "need to server automation environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "folder structure thanks", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "gotta can you install net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "hoping to htop please for me", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "STREAMING SETUP FOR TWITCH", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "wanna want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "need to put tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "help me how do i encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "mercurial please", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "can you devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "sqlite3 please on this machine", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "help me production server setup?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do I nstall mariadb-server on my computer", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "configure need btop thanks", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "PREPARE SYSTEM FOR PYTHON CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you set up redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "help me 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "time to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I NEED FONTS-FIRACODE", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Looking to can you install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "set up can you install audacity asap", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "HELP ME 'M LEARNING JAVA THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "prepare MySQL environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "time to wanna llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need to train neural networks?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "How do i set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "system display now", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "show off my terminal for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "about to desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "roboto font now", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "let's have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Can you install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "ready to configure ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gotta want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "time to need redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "'m trying to database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "ready to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "put mariadb-server on my system", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I WANT TO NSTALL CODE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I need perl on my computer", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "how do i need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to how do i set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Could you how do i add fonts-hack asap", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "i'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "bat tool", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "CAN YOU INSTALL BZIP2 RIGHT NOW", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "google font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "ssh daemon", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "looking to want to self-host my apps please on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "i want to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Hoping to gpg for me", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I'm trying to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "please set up for data work quickly on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want to get curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I'm trying to multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to docker setup please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "Can you install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "APACHE SERVER", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "set up need to work with pdfs asap", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "jupyter lab", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I NEED TO 'M LEARNING GAME DEV", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "java development kit", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "wanna ready to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "time to magemagick please for me already", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I need docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "i want to self-host my apps please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "need to want to host a website on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "let's want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "JAVA", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Fix broken packages now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "give me nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Could you add fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "please ready to personal cloud setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "want evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "how do i configure set up a web server right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "configure working on an iot thing asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm trying to give me postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "time to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ADD CLAMAV RIGHT NOW", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "i'd like to screen fetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "Set up want to need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "looking to need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "add gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I need ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "Can you preparing for deployment already now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "SET UP RUN WINDOWS ON LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "how do I notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "set up htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I need to wanna prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "looking to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I WANT TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "ABOUT TO FD?", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "GOTTA FILE SHARING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "set up need audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Samba server asap", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "btop please", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "set up g++ please", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "can you install fzf!", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "i want vlc quickly", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "give me fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I'd like to add unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "install neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up give me ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Help me want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'm trying to update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "CONTAINERIZATION ENVIRONMENT ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up add curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "get emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "i want sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "hardware project with sensors?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "add mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "i need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "hoping to teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "please python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I NEED TO 'M STARTING TO PROGRAM PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Set up redis on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Let's want to code in java quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "help me add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "file sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I want a cool system display on my computer", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "about to word processing and spreadsheets on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "HELP ME 'M BUILDING AN APP THAT NEEDS A DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "help me need curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "add vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "CAN YOU INSTALL DEFAULT-JDK", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "ready to fetch system on my system right now", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "gnu privacy guard thanks", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "getting ready to go live asap quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "HOPING TO NEED FAIL2BAN", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "file sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "install iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "gotta working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "make my computer a server!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "hoping to zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "add strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "POWER USER TERMINAL FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "redis-server please", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "add net-tools asap now", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "help me hoping to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "let's cs homework setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'm trying to could you need to run containers please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need clang on this machine", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I want fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "set up working on an iot thing!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "How do i want python3 for me", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "redis", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "how do I about to need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "gotta streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "set up openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I'm trying to archive my files right now on my system", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Redis cache for me", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "trace syscalls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I need nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "gotta nstall tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "get gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "How do i set up version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Please certificates", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "Looking to alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "need to need to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Can you install gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "COULD YOU ADD PYTHON3 NOW", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "what are my computer specs thanks now", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "GOTTA GET SUBVERSION", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "put sqlite3 on my system", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "TIME TO PUT CURL ON MY SYSTEM ASAP", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "Looking to video convert quickly for me", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "SET UP P7ZIP-FULL", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "set up photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "time to better python shell", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I need to clean up my computer on my system", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gotta rar files", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "configure looking to need to check resource usage?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'd like to nstall calibre quickly", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "looking to give me python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I WANT TO READ EBOOKS ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Time to obs setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Ready to 'd like to add vagrant asap", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I need strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "about to ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "could you need to run containers please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need to run containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gotta managing multiple severs already", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Better cat on my computer", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "PUT G++ ON MY SYSTEM", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "System administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "can you install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Please about to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "could you just switched from windows and want to code on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to run a website locally already", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "virtualenv on this machine right now", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I need to exa tool", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "set up how do i containerization environment on my computer on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me remote login capability on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "GOTTA WANT TO CHAT WITH MY TEAM", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "FONTS-HACK PLEASE", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Need to want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "how do I need to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to use containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Configure 'm trying to 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "want g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I want to program Arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "DOCKER WITH COMPOSE SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "looking to network file sharing quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "time to security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "basic development setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "can you can you set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "TIME TO PUT NEOFETCH ON MY SYSTEM!", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I NEED EMACS", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "time to want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "System monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "looking to need to check resource usage for me", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Looking to bat please", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "How do i can you install fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I want to need to rust development environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to get gimp thanks", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "time to configure nstall libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "add fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "install redis-server asap", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "prepare system for Python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "let's my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "configure put valgrind on my system now", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "video player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I'm learning Docker on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to can you install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "WANNA NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i'd like to need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "let's put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "let's hoping to word processing and spreadsheets?", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want to analyze network traffic thanks on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "text editing software already", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "put bat on my system?", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "mysql fork now", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "COULD YOU WANT TO SCAN FOR VIRUSES!", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "give me curl already", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "CAN YOU INSTALL VIRTUALBOX FOR ME on this machine", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "gotta set up wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I WANT TO PROGRAM ARDUINO", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "WANT TO PROGRAM ARDUINO ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "audio production setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "rootless containers!", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ already", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "ban hackers", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I'm trying to want to program arduino for me", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "gotta vm software already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "gotta screen please for me", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "LOOKING TO NETWORK DIAGNOSTICS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "please put netcat on my system", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "wanna basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you gotta zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "ready to cross-platform make quickly", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "LOOKING TO WANNA TEACHING PROGRAMMING TO BEGINNERS ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "give me openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "let's rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please jdk installation now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "set up evince quickly", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "gotta 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to backup tools thanks on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "how do i data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Can you install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "need to put bzip2 on my system", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "how do I need python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "gotta get libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "add redis-servre?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "lightweight database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "help me can you need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "please how do i want to write documents right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ip tool", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I WANT TO SYSTEM ADMINISTRATION TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Can you 'd like to kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "time to can you need to create a website already asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "SECURITY TESTING TOOLS ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Production servr setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'd like to devops engineer setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "can you hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to want fast caching for my app!", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "hoping to let's want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "better ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I'm trying to database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "about to help me optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "i need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want to need to debug my programs right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "install neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "looking to alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "put ltrace on my system", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "i'm trying to set up gcc?", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I'd like to kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you need to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "gotta record audio", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "WANNA SECURITY TESTING TOOLS ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "server monitoring setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "looking to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "HACK FONT NOW", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I'M LEARNING GAME DEV FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Configure system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "put cmake on my system", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "gotta remote connect", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "hoping to put openssh-sever on my system", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "wanna ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I need to work with datasets on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I need Ansible for automation right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need to work with datasets on my computer!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want xz-utils already", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "How do i gotta web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "can you install docker.io asap thanks", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "configure fonts-hack please", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I want to configure ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "help me set up default-jdk please", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "mysql thanks", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "game development setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "NEED TO HOMEWORK REQUIRES TERMINAL thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Time to can you install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "CAN YOU SET UP FOR MICROSERVICES ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "give me obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "how do I simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "add tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "GET BZIP2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "INSTALL MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I need to nvim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I want evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "HOW DO I CAN YOU INSTALL VIM ALREADY", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "add pyton3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "set up time to working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "help me add bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "add screen thanks", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "i need to train neural networks thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I'd like to media player setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I want to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "dev environments for me", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "install yarn on my system", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "hoping to can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "hoping to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "COULD YOU DOCKER WITH COMPOSE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "help me fetch system already", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "let's vm environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "ABOUT TO EMBEDDED DEVELOPMENT SETUP quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I have a raspberry pi project on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "getting ready to go live?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want to ndie game development?", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I'm trying to add jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "set up want podman?", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "ifconfig?", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I need sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I'm trying to want sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I want to could you 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i want to share files on my network quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "vagrant please right now", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "let's production server setup?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gnu screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "hoping to multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "java setup please for me thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "get lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "how do i antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "help me want default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Ready to about to want to orchestrate containers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "fd-find please", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "tree please", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "set up want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "bzip2 please", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "add git!", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "OBS setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "HOPING TO WORD PROCESSOR ON THIS MACHINE", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "gotta give me docker-compose on this machine", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "put ipython3 on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "help me looking to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "need to need lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "configure put jupyter-notebook on my system on this machine", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "how do I looking to legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I just switched from Windows and want to code already", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do I need to academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "configure 'm learning game dev on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "about to want a nice terminal experience!", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "please nstall redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "READY TO ADD NEOVIM", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Set up clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "about to nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "put obs-studio on my system", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "LOOKING TO CLANG PLEASE", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I'd like to 'm trying to virtualbox please already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "get ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I NEED TO CHECK FOR MALWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need to net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "how do I need gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "configure show off my terminal right now", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Put curl on my system asap", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "ready to need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Hoping to want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "install vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "postgres db", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "set up wanna java development environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "remote login capability on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "About to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "LET'S WANT TO MONITOR MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "hoping to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "COULD YOU BASIC TEXT EDITING", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "please need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "i'm learning python programming please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "download with curl asap", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "need to class assignment needs shell now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up can you teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Please gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'm trying to want docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "i'm trying to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "openssh-server please", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I'm trying to homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "source control on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "can you install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "docker-compose please please", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I'D LIKE TO 'M LEARNING DOCKER", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "set up rg quickly", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "PDF MANIPULATION", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "how do I add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I have a raspberry pi project!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Put nodejs on my system", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "wanna add mariadb-servr", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "fish shell thanks", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "please set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Game engine setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to wget please on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "install openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "put redis-server on my system", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need git quickly", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "my friend said i should try linux devlopment please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "get rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "prepare for coding please please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "PERSONAL CLOUD SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "add htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Get zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I WANT MONGODB!", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Better ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "time to how do i obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "packet capture", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "wanna mprove my command line asap", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'd like to htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I want to record audio now", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i need to fetch things from the web thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "CAN YOU WANT CODE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "about to zsh shell for me", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I want to ssh", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "DEEP LEARNING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "NEED TO WANT TO DOWNLOAD FILES quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "put evince on my system", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "help me tcpdump tool on my computer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "COULD YOU BASIC TEXT EDITING quickly", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "need to put unrar on my system right now", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "about to set up netcat right now", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "iot devlopment environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "i'm trying to developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "terminal multiplexer!", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "HELP ME LET'S PREPARING FOR DEPLOYMENT", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "about to need to 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "update everything on my system right now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "about to my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need to bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "looking to legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Document management!", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "git please already", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "need to looking to video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I NEED PYTHON3-VENV", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I want redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "looking to get obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "could you backup tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ABOUT TO WANT TO RUN VIRTUAL MACHINES ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "netstat asap", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "time to zip files up!", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "GET VIM", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I need to need to need lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "hoping to nstall calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "time to nstall gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "need to could you add fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Wanna htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I'D LIKE TO PREPARE FOR FULL STACK WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i want btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "get npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "about to educational programming setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "pyhton3-pip please quickly", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "get clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "ready to can you install ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "about to help me want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO MODERN SHELL", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "ADD MONGODB ON THIS MACHINE ON THIS MACHINE", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "apache ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "PUT CLAMAV ON MY SYSTEM", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "please fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "how do i need mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "install fonts-roboto for me", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "set up need to work with images quickly already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "help me get openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "hoping to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "time to screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "configure network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "set up need perl on my computer", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "My professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "wanna 'd like to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Data backup environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "help me need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I'm trying to want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to 'd like to obs setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "wanna want a modern editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I WANT TO WANT TO PROGRAM ARDUINO ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "how do I simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "help me how do i ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "NODEJS RUNTIME", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Need to put obs-studio on my system for me", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "help me set up postgresql on this machine", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "about to help me working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "COULD YOU RUN WINDOWS ON LINUX ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "set up tree already", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Can you educational programming setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up want to scan for viruses quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "New to ubuntu, want to start programming please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configuration management tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "time to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "tls", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I have a raspberry pi project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "run Windows on Linux right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "can you install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "please need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need to ready to need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'm trying to time to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "port scanner please", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's 'm deploying to production asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "GET NODEJS", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "hack font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "READY TO JAVASCRIPT PACKAGES NOW", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "WANNA DOWNLOAD FILES", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "can you need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "give me vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Can you install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "i'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "help me add nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "looking to add nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want to please remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "NEED TO MAKE MY SERVER SECURE on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "LOOKING TO SET UP A DATABASE SERVER ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "configure need git on my computer", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "how do i want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "golang setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I want to need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "can you install default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I want fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "NEED TO DOCUMENT MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "add openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "Need to latex setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I'm trying to multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you maven build right now", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I need valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "CAN YOU INSTALL XZ-UTILS", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "SET UP ZSH", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "system calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "SET UP EBOOK READER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "network scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "configure nteractive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "ready to svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "system administration tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Please package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Looking to want to store data on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "looking to gotta kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "let's easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'M LEARNING C PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "COULD YOU CAN YOU INSTALL SCREENFETCH PLEASE", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "System update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "please file sharing setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Hoping to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "set up homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I need to need mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Set up better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "INSTALL PERL", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "can you cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "add ant for me", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "looking to set up gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "Illustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Can you want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "LOOKING TO APACHE WEB SERVER", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "homework requires terminal asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "add tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Looking to need fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to find bugs in my code right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I want a modern editor for me", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "can you bzip compress now", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I'm trying to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "configure neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "could you media player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "audio production setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "convert images on my computer", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "can you insatll unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I want fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "ready to time to latex setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "wanna running my own services already", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "CLEAN UP MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "ready to need rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "configure give me nmap already", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "please want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "I NEED TO BASIC DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to team communication tool", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "could you virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want to set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I NEED TO PERL INTERPRETER", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "need to put fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "time to version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "let's let's set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "gotta system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "tcpdump please", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "install calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "give me docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "Netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "NEED TO SET UP BZIP2 NOW QUICKLY", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you fix broken packages asap", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "get ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I need to set up libreoffice on this machine", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'd like to python3 interpreter", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "looking to nano please on my system", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'd like to can you install vlc!", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "need to need to add cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Please add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I need to add docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "help me set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Javascript packages", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I need to ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "looking to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "show off my terminal for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "VM ENVIRONMENT!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "about to ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want calibre for me", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "gotta need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "friendly shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need to nstall fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "HOW DO I HOPING TO NEED A DATABASE FOR MY APP ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Wanna teaching programming to beginners already", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I'M TRYING TO MY KID WANTS TO LEARN CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "let's mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "about to ready to need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "configure need to need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "time to embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "put mariadb-server on my system quickly", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "looking to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "get php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "microcontroller programming!", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "CAN YOU YARN PACKAGE MANAGER", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I'd like to 'm starting a youtube channel right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "gotta running my own services for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Add openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "can you need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "interactive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "PUT VAGRANT ON MY SYSTEM", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Ready to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "put screenfetch on my system right now", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "help me give me fail2ban!", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "network security analysis on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Hoping to fetch files thanks", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "educational programming setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "put vim on my system", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "can you get neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'd like to need to check resource usage quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want to configure get perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "gotta want to need rust compiler on my system please", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "UPDATE EVERYTHING ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I'm trying to terminal productivity tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "i just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's need mysql-servr thanks", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "media player setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I WANT TO CODE IN JAVA!", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "i want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "looking to put npm on my system", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "let's put fish on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "put p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "PACKET ANALYSIS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "security testing tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Wanna system monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "i'm trying to want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "install php on my computer", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "Can you live streaming software thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "configure have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "about to want libreoffice!", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "fzf tool", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "can you install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "Wanna gotta ebook reader on this machine", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "terminal sessions for me", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "ABOUT TO EMBEDDED DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "give me gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "hoping to give me ipyton3 on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "PLEASE 'M LEARNING DOCKER", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need docker-compose right now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "add vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I need net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'd like to ot development environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Convert images", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "HOPING TO WANT TO RUN VIRTUAL MACHINES ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "hoping to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm trying to hoping to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "HOW DO I ABOUT TO NEED INKSCAPE PLEASE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "let's golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "add subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I need to write research papers for me thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Hoping to need to check resource usage on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "JUPYTER", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "COMPOSE", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "add python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "how do I want exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "crypto tool on my system quickly", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I want docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you install evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "dev environments for me", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "please want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to nosql databse", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Add fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "give me virtualbox already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "gotta make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I'm trying to set up evince for me", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "hoping to wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "LTRACE PLEASE", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "photoshop alternative", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "can you install default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Hoping to coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to need clamav!", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "can you python on this machine already", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "gotta make my computer ready for python on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you devops engineer setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "put obs-studio on my system", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want ffmpeg right now", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I WANT TO USE VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "WANNA WANT TO NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "let's ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "configure hoping to nstall openssl on this machine", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "CONFIGURE CACHING LAYER FOR MY APPLICATION", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I'D LIKE TO ADD NET-TOOLS ASAP", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "REPAIR PACKAGE SYSTEM please", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "let's vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Let's go language quickly", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "help me legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "Need to gnu emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I'M TRYING TO VERSION CONTROL", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "looking to want to file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "looking to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "REDIS-SERVER PLEASE", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "could you 'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I need qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "gotta make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "i want to add bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "gotta set up calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "ABOUT TO PREPARE FOR CONTAINERIZED DEVLOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm trying to nstall fail2ban?", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "streaming setup for twitch on my system?", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ABOUT TO NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do i 'd like to nstall calibre quickly", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "looking to add audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "install openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'm trying to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Could you devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "need to fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "ready to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "i want okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "gradle please", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "ready to run windows on linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "hoping to 'm trying to add gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "Need to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "HOPING TO OFFICE SUITE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'd like to pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Looking to jdk installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "ready to want apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Php language", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "GNU DEBUGGER ASAP now", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "i want to have a raspberry pi project please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up get zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "help me npm please", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "could you virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "COMPILE CODE ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "About to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "about to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I'D LIKE TO NANO PLEASE", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "need to virtualization?", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Need to ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "Ready to prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I'd like to need to serve web pages now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "LET'S GIVE ME VIM", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "source code management right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "nano please on my system", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "i want bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "qemu please for me", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "how do I hardware project with sensors for me on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "how do I 'm worried about hackers quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'm trying to run vms with virtualbox on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "configure want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "SET UP EDUCATIONAL PROGRAMMING SETUP NOW right now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I NEED MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "NEED TO DOCUMENT MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "z shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I'M STARTING A DATA SCIENCE PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I need tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "SET UP FULL STACK DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "ready to looking to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please 'm learning game dev on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I want git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "hoping to configure my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "ABOUT TO CONFIGURE NDIE GAME DEVELOPEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Put python3-venv on my system", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "ltrace tool thanks", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ebook reader setup on my computer quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "wanna want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "looking to please want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I just switched from Windows and want to code quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to looking to network swiss army right now", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "how do I set me up for web development?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "system monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "about to digital library software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "gotta docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I want to use MySQL for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Configure netstat on this machine", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "put bat on my system?", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "wanna set up redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I want zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I need audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Help me set up cat with syntax please", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "set up want wget on my computer", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Can you set up for ai development quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "configure ready to put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "programming font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "php please thanks", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "can you put fish on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "time to ebook reader setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Svn already", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "Certificates", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "could you give me npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "Let's nstall python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "how do I unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "configure ssh daemon on my system", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "COMPILE C++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "can you install gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up rustc quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "I want to time to data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "configure set up okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "php please quickly", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "streaming setup for twitch now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Time to latex setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "TIME TO WANT TO EXTRACT ARCHIVES!", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "time to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "please want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "about to ssh daemon", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "SET UP COMPILE CODE ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "hoping to put openssh-server on my system", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "let's docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "need to need to port scanner on my computer", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "productivity software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i need bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I'M TRYING TO NETWORK SECURITY ANALYSIS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "P7ZIP-FULL PLEASE", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "PLEASE LIVE STREAMING SOFTWARE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "gotta kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "CONFIGURE NSTALL PODMAN", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "gotta streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "easy text editor already quickly", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "put jq on my system!", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I'd like to nstall btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "PLEASE LET'S NSTALL EVINCE", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "get wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "EBOOK MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "can you record audio", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "help me give me golang-go for me", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I need to nkscape please", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "looking to can you instal okular quickly", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "about to version control asap", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "C++ COMPILER ON MY SYSTEM", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "set up c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "get default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "vagrant tool", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "let's scientific document preparation on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "preparing for deployment right now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "JUST INSTALLED UBUNTU, NOW WHAT FOR CODING FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to collaborate on code thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "CAN YOU HOPING TO NEED MYSQL FOR MY PROJECT FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "please want to use containers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to edit images quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need to get gradle please", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "set up gnu c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "ABOUT TO SET UP INKSCAPE QUICKLY", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "ready to digital library software now", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I need to debug my programs on my system please", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "LOOKING TO LET'S SVN CLIENT", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I need a text editor now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "DESKTOP VIRTUALIZATION already", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I'd like to fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "game development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "hoping to 'm starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "looking to can you install nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "ABOUT TO HOPING TO CODING ENVIRONMENT QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "POWER USER TERMINAL FOR ME on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "need to slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "could you let's make tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "ufw please quickly", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "get iproute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Hoping to need a database for my app on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "SET UP FOR MICROSERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "CAN YOU INSTALL GCC", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I need to ethical hacking setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "pgp please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "READY TO YARN PLEASE", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "docker compose environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Ready to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you mage manipulation software on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "install nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "TIME TO BACKUP SOLUTION SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need to web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "CONFIGURE VIDEO CONVERT ON THIS MACHINE", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "about to terminal multiplexer now", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "INSTALL TMUX", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to add screen thanks now", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "time to postgres", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need to terminal system info thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "CS homework setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need to want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "SYSTEM ADMINISTRATION TOOLS QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "time to memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "how do I want to write documents right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ADD QEMU", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "docker engine?", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "time to java setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "help me make my computer ready for frontend work please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "How do i protect my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up want to http client", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "please want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "configure docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do I photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you can you install fonts-hack thanks", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Debug programs on my computer", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "In-memory database already", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Hoping to add okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "wanna music production environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want to record audio on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "C/c++ setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "set up virtualbox for me", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "configure wireshark tool already", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I want to orchestrate containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Set up net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "need to put btop on my system now", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "vbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "configure need to serve web pages thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "reverse proxy", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "get git quickly", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "configure educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Gzip compress already", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "install rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "give me xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "need to could you want neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "how do I python environments", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Wanna gotta podcast recording tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "wanna 'd like to need in-memory caching?", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Configure get make already", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "time to want wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "gotta want btop please", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "please about to ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Hoping to json processor quickly", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "can you install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Nano editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "set up ripgrep please on my computer", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "i want to need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "time to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "help me need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "COULD YOU PROFILING TOOLS ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Terminal system info thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want fail2ban!", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "gotta podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "ready to want to store data quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want to share files on my network?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "hoping to ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "need to fish shell on my computer", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "network debugging tools", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "i want zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "configure home server setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Ready to fix broken packages already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I'd like to friendly shell on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "put cmake on my system right now", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "let's mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "BASIC DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "COULD YOU WANT TO DO PENETRATION TESTING ALREADY QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "maven please on my system asap", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "GIVE ME OKULAR", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "gotta need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "install mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "put neovim on my system on my computer", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I'd like to digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Uncomplicated firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "postgresql database", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "configure fix installation errors!", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "put cmake on my system", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I'm deploying to production thanks", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I need ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "web development environment please!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "iproute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "ADD TMUX RIGHT NOW", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "time to need to set up pyton on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "CODE PLEASE THANKS", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "fd", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "FFMPEG PLEASE", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "help me python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "how do I add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I need jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "need to can you install python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I'm trying to want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "managing multiple servres", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ready to give me ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I'M LEARNING GAME DEV FOR ME on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "time to want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "obs-studio please", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I'm trying to want a cool system display?", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Latex setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "gotta podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "can you mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "How do i set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'm trying to live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "help me please working on an iot thing please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "about to optimize my machine please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "record audio now", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "IPYTHON3 PLEASE", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "Can you have a raspberry pi project!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm trying to rust programming setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "cmake tool", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "python pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "can you install podman?", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "Developer tools please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "terminal productivity tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Make my computer ready for frontend work please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "set up mysql database on my computer?", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'm trying to containerization?", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "kid-friendly coding environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "educational programming setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "can you need to create a website already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "CONFIGURE NSTALL FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "pdf viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "i want git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up rustc quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "live streaming software please", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to orchestrate containers thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Gotta upgrade all packages please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "give me subversion on my system", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "hoping to fd", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "hoping to 'd like to need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "configure svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'd like to svn client", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "ready to 'm trying to want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Get exa on my computer", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "GOTTA CONFIGURE FIX INSTALLATION ERRORS!", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I'd like to put btop on my system quickly", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "wanna antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Maven please on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "help me need to compile c now", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "improve my command line on my computer already", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Set up fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "improve my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "about to need vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "Production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ready to 'm starting to program?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "hoping to connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "need to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Redis server please on my computer quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "configure prepare for coding please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO SELF-HOST MY APPS thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "wanna want to video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "install ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "profiling tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "Server monitoring setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "looking to set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "add fonts-roboto on my system", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to want perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "cmake tool", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "rar files on my computer", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "gotta system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "set up scan network", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "C/C++ SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "could you can you install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "programming font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I need to want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "wanna teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "could you gotta fresh instll, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "need to modern network", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "oh my zsh now", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "gotta need nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need to need to troubleshoot network issues on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "gotta want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "add tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "i need to please need to write research papers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "can you fail2ban tool", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "PLEASE FILE SHARING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "please get gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to rootless containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need subversion!", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "Configure get clang now", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "gotta debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "how do i power user terminal on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "get neofetch for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "BETTER CAT", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "help me need to connect remotely on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I WANT TO BE A FULL STACK DEVELOPER", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "gotta want nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'm trying to add make on this machine quickly", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I need to set up docker on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "please scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Ssh", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "WANNA LET'S SET UP FOR DATA WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ready to audio convert already", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "How do i give me code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "help me ot development environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I want neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'd like to ethical hacking setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "how do I server monitoring setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I NEED TO SET UP LIBREOFFICE ON THIS MACHINE", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'm trying to set up nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "how do I game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "can you virtual env", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "looking to put xz-utils on my system", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "configure perl interpreter", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "need ansible for automation quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you install gnupg asap", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Set up mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "configure unzip files now", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "backup solution setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "help me running my own services now now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I WANT A NICE TERMINAL EXPERIENCE!", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "NEED TO NEED A DATABASE FOR MY APP", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need to jdk installation already", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "NEED TO WANT NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "i'd like to want to program in go?", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "llvm compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Exa tool", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "time to nstall gradle please", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I need to serve web pages now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "prepare for database work on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "how do I 'm trying to vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "SHOW OFF MY TERMINAL ON MY SYSTEM", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "let's set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "compile c++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "can you obs setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "gotta give me fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "get zsh on my computer", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "LET'S PUT GDB ON MY SYSTEM FOR ME", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "can you install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "IMAGE TOOL", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "VLC PLEASE ON MY COMPUTER", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "gradle build on this machine", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "please nstall ltrace on this machine", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I need to production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "PUT EVINCE ON MY SYSTEM", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "gotta video production environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'M A SYSADMIN?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "gotta set up want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "please want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "my kid wants to learn coding!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "looking to obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add zip already", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "about to add python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "need to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "get yarn for me", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I need to fetch things from the web for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "LOOKING TO LIBREOFFICE PLEASE ON MY SYSTEM", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "How do i prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "gotta can you install openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I need to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gotta protect my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "need to need gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "REPAIR PACKAGE SYSTEM", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "hoping to need a database for my app on my system!", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "give me xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "gotta want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you install fzf!", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I need ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "wanna educational programming setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "SYSTEM MONITOR", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "i want to write code thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gotta need fonts-firacode!", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "gotta want to want nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Install zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I'd like to openssl please", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "can you install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I need to time to configuration management tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want htop right now", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to database environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "PLEASE NEED TO RUN CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "DOCKER.IO PLEASE", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "let's can you install bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "let's can you install rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "can you put zsh on my system", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I'm trying to pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need to redis server please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "SET UP NEED DOCKER-COMPOSE", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I want to add mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I'M LEARNING JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "help me gotta set up btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "Update everything on my system please asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "looking to brute force protection", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "set up configure ot development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "give me docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "hoping to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "Homework requires terminal on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "install tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "zip files up already now", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "ready to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Give me yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "ready to document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "HOW DO I DEVELOPER TOOLS PLEASE ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to set up ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "containerization", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "ready to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "set up want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "wireshark tool", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "hoping to run windows on linux asap", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "time to can you install jupyter-notebook already", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "put inkscape on my system", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Can you install nginx asap", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "can you install mercurial now", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "how do I nkscape please already", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "Please streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I WANT TO WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Mongodb database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I'd like to python3-venv please", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "can you install screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "how do I set up better terminal setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up put evince on my system", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "'d like to sound editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to system administration tools right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm trying to want nano on my system", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Python language now", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I need to work with images already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "hoping to let's connected devices project already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "ready to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "Put xz-utils on my system", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "get postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "rar files", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "need to node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "put clamav on my system", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "gnu image!", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I'm trying to get sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "could you want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "configure need to test network security on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "SYSTEM MONITORING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I need screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "please need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "about to want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ADD TREE please", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I'D LIKE TO WANT A COOL SYSTEM DISPLAY FOR ME", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'm trying to get strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "SERVER MONITORING SETUP ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "ssh daemon", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "btop please", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "add yarn on this machine", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "set up 'm worried about hackers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'm trying to fconfig", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "ready to http client", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I need to photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'd like to want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "ready to malware protection", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "get qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "GET DOCKER.IO", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "gotta want to backup my files?", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "let's set up audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "about to want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "about to my apt is broken asap", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Let's llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "set up need to work with images quickly please", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I NEED TO RUN CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "install jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Give me zsh now", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "CAN YOU INSTALL HTOP NOW", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "need to work with images already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Prepare for coding please for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ready to want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need to record audio asap", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "put clang on my system", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Give me mercurial on this machine", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "give me podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "ready to git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Help me want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "need to wanna video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I need to yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "Production server setup quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up neovim on this machine", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "HOPING TO PERSONAL CLOUD SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "GO LANGUAGE?", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "LET'S SYSTEM UPDATE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I'm trying to kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "gotta fzf tool", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "nstall ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "PLEASE 'M DEPLOYING TO PRODUCTION ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "redis server please thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "help me security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "terminal editor right now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "ripgrep please on my computer asap", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "protect my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "can you my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "C/c++ setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "looking to want to browse the internet thanks on my system", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I want to need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "ready to need nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "class assignment needs shell!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "configure security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Help me get imagemagick thanks", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "Get net-tools now", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Help me cmake please", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "set up nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Ready to put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Configure 'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to set up npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "configure nstall wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "NETWORK SNIFFER", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "wireshark please", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "My apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "wanna redis right now", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "give me ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "set up ready to want virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Can you install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "i need to ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to can you caching layer for my application right now for me", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "gotta fresh install, need dev tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to add fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "nosql databas!", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "set up okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "add htop on this machine", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "HOW DO I MAKE MY COMPUTER READY FOR FRONTEND WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "MULTI-CONTAINER", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "COULD YOU BETTER BASH ON THIS MACHINE", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "i want to rust compiler", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "can you install libreoffice on my system", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i want to watch videos now asap", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I need calibre on this machine", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "please need a databse for my app thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "can you need to 'm learning mern stack on this machine right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "add python3-venv asap", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I'd like to can you install vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "Get openssh-client now", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "protect my machine right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "time to gotta ebook reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "can you install okular quickly", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "put code on my system", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "libre office", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you install screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "could you antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "ABOUT TO SET UP REDIS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "time to data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "put vlc on my system", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "set up ipython3 now", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "Nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "mariadb database", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "about to pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "how do I bzip tool?", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I'D LIKE TO PUT UFW ON MY SYSTEM", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "set up mercurial now", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "FILE DOWNLOAD TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "CONFIGURE OT DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Add mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "configure want to self-host my apps right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "LET'S WANT A NICE TERMINAL EXPERIENCE", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "TIME TO WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES thanks", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "wanna n-memory database", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "add audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "give me ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "VERSION CONTROL SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "about to virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I'm trying to have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "install jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "set up archive my files?", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I want tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "can you web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "wanna devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Install neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need to run containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "nano please", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "let's want okular thanks", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "want to scan for viruses quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "key-value store", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "READY TO WANNA WANT TO BACKUP MY FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "CONFIGURE NEED VALGRIND!", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I want to llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want a modern editor now", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to gnu screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "how do I docker compose environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I NEED TO JUST INSTALLED UBUNTU, NOW WHAT FOR CODING right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to want clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "give me fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I need perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "GOTTA ZIP TOOL", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "let's can you install cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "run windows on linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "CAN YOU INSTALL JUPYTER-NOTEBOOK ALREADY", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "vscode", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to put valgrind on my system", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "give me unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "time to repair package system quickly", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I want to can you install zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "ready to hoping to c/c++ setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "CLEAN UP MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "valgrind please", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Multimedia playback right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please please set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "wanna want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "gotta gzip compress please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "mongodb please on this machine", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "need to need to create a website?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "text editing software already", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I need to nstall make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I'm trying to developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's teaching programming to beginners on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Virtualization setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "looking to libre office!", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "make my computer a server!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "can you install audacity on my computer", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Can you vlc player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "PACKET ANALYSIS SETUP RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "please add zsh!", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Wanna system monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "COMPOSE?", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "VIRTUALIZATION SETUP ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "let's give me netcat right now", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "GETTING READY TO GO LIVE ASAP", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "configure give me clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "neovim please quickly", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "looking to want to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "download with curl asap", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "sound editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "php interpreter thanks", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "wanna time to need okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "about to zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "music production environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I want to automate server setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "SET UP CS HOMEWORK SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "PUT MONGODB ON MY SYSTEM?", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "add calibre?", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Set up zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "help me optimize my machine on my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "configure gotta netcat please", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "ffmpeg please thanks", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you set up ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "wanna wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "let's llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want to debugger on my computer", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "TIME TO NETWORK SECURITY ANALYSIS ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "i want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I need to educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "ready to can you install gzip quickly", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I'd like to ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Data backup environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want to my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to mysql fork please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "please mage tool", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "how do i put maven on my system!", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Python notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "time to looking to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "nano please", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "wanna mysql server insatllation!", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "HOPING TO SYSTEM INFORMATION", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "give me wget?", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "gotta please want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "need jq on this machine", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Nmap please", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "hoping to need to check resource usage?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "could you terminal productivity tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I need evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "give me fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "looking to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "audio editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "how do I add fonts-hack already", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "i'm trying to can you install virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "trace syscalls!", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "KID-FRIENDLY CODING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "ready to fail2ban tool for me", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "wanna encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "VIRUS SCANNING TOOLS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "hoping to hoping to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "i'd like to want a cool system display", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "how do i set up fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "how do I microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I'D LIKE TO PYTHON PIP ON MY COMPUTER", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "could you set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I need openssh-client thanks", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "please need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "set up wget already", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "can you vlc player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "set up want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "set up set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gotta game development setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "TIME TO PREPARE MY SYSTEM FOR WEB PROJECTS", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I'm trying to kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Can you install imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "DOCUMENT MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Ebook manager", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "need to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Can you install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "UNCOMPLICATED FIREWALL", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "fix installation errors right now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Put ffmpeg on my system for me", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ebook management thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "PLEASE LET'S CS HOMEWORK SETUP RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Add tcpdump right now", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I'm trying to could you ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "make my computer ready for frontend work now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "gotta get apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Rust development environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "can you install curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "could you can you install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "openssh-servr please", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "GETTING READY TO GO LIVE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "game developement setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "better grep thanks", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I want python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Wanna want to stream games already", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to run virtual machines right now on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "could you my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need to set up obs-studio on my system", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "game developement setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "can you my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "could you want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Mariadb alternative", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "can you want inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "about to want okular on my system", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "looking to 'm learning go language!", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "looking to add python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "HARDWARE PROJECT WITH SENSORS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i need to 'm learning go language on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "i want to read ebooks right now", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "i need to fetch things from the web for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "could you get netcat?", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "how do I working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Add zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "need to audacity please quickly", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "ready to 'd like to ot development environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "GOTTA PROCESS MONITOR", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "performance monitoring now already", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Network analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "can you install ruby on my system", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "SET UP FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "i'd like to kid-friendly coding environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "Set up teaching programming to beginners?", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to test different OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "time to set me up for web developement", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "ready to backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ready to add mysql-servre", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "could you add fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I'M TRYING TO ADD EVINCE", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Get screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "Please set up imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need to run containers now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "time to give me openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "set up working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "IoT development environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "need to 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I need to need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "get nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "i'm trying to need to work with images please", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "gotta collaborate on code please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "looking to nstall neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "i'm trying to home servre setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need to give me screenfetch!", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "PUT EVINCE ON MY SYSTEM", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Productivity software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "let's put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "set up Python on my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Set up fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "let's mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Performance monitoring?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'd like to hoping to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "help me can you install vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "MYSQL SERVER INSTALLATION", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "process monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "need to need to train neural networks on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "ready to managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm worried about hackers for me right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "rust language", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "can you embedded development setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Team communication tool", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "VIRTUAL ENV?", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "gotta system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need to java ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "configure want to want to code in pyhton already on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Wanna coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ready to want to video production environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "can you install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "i want fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "wanna mysql fork please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I need a file server on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "time to get wireshark already", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "ready to 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I'M DEPLOYING TO PRODUCTION", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "run Windows on Linux right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "about to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "CONFIGURE WANT JUPYTER-NOTEBOOK PLEASE", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "C COMPILER", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "BETTER PYTHON SHELL QUICKLY", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "COULD YOU PERSONAL CLOUD SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gz files", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "give me calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "can you download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "ready to about to want to run a website locally!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I WANT TO BUILD WEBSITES?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i want gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "WORKING ON AN IOT THING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "wanna help me live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "let's mprove my command line quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "please something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "put python3-pip on my system", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "set up looking to python3-pip please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Add obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "help me looking to document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "looking to google font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "i want to collaborate on code thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "hoping to give me docker.io quickly", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "please set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "PUT STRACE ON MY SYSTEM", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "ADD NMAP", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "time to wanna educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "JDK installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "gotta running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "add libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I'm trying to want to use containers thanks for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "about to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "help me want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "set up mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Gotta makefile support", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I need to graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Gotta time to want to secure my server right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "mongodb please", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "CONTAINERIZATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "GOTTA SYSTEM INFORMATION?", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "need to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "maven please", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I want to program Arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "CONFIGURE NDIE GAME DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "set up set up screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "GIVE ME NET-TOOLS", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "set up openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "HOSTING ENVIRONMENT SETUP ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need to 'm starting to program right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ADD NEOFETCH", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "add tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "gotta want btop for me", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "let's virus scanning tools right now", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "performance monitoring please thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "need to version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Need to latex setup on this machine thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I need bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "help me set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "INSTALL RUSTC", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "looking to python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "about to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "let's want gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "Orchestration", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "HOW DO I GET GIT", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "time to need to document management on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "GOTTA 'M STARTING TO PROGRAM", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to add curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "i need to train neural networks on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "gotta debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "compile c++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "let's z shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "WANNA ANTIVIRUS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I'M TRYING TO CLASS ASSIGNMENT NEEDS SHELL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "set up get podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "i need mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want to need to want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "modern vim on this machine", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I need to fetch system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "need to want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "obs-studio please", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "configure need to gpg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "help me configure file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "7zip on my computer", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "i need to set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "i'd like to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do I cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Set up want to can you install zsh thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "nmap tool", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "i want to use containers thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I WANT TO WRITE CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want a nice terminal experience right now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'd like to lzma", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "can you install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "looking to set up ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "give me gnupg please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "i want calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "set up nkscape please on my computer", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "json tool asap", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "something like VS Code quickly", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "set up ltrace?", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "i want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Put exa on my system thanks", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I need tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I'm trying to 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "EBOOK MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add curl now", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "get fd-find on my system", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "data analysis setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "i want to stream games?", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Just installed ubuntu, now what for coding already", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "KID-FRIENDLY CODING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Configure make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want the latest software", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "could you working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I NEED GCC", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "ready to terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "install gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "can you add valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "Add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "Gotta need fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "gdb debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Set up gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to need git for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "IMAGE EDITOR", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "HOPING TO 'M MAKING A PODCAST", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "give me inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "CONFIGURE TERMINAL INFO PLEASE", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "How do i prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "time to slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "please add neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I want a nice terminal experience!", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "hoping to prepare for database work on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Help me help me desktop virtualization now", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "i'd like to gnu c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I want docker-compose right now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I want openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "ready to hoping to c development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "lzma", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "could you nstall gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Gotta want to host a website for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "get nodejs already", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "coding font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "ready to want audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "ABOUT TO STRACE TOOL", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "Looking to need redis-server already", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "NEED TO MAGE MANIPULATION SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "put fail2ban on my system", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "can you btop monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "set up wireshark please", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "hoping to want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Looking to docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm trying to need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Mongodb database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Ready to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "LOOKING TO ADD NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want to want to use containers now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "ready to set up everything for full stack already right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "how do I c/c++ setup on my computer now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "PDF tools setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "need to give me ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "GET INKSCAPE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "TIME TO LATEX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I WANT TO LEARN RUST", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to 'd like to want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "fix installation errors right now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "ripgrep search", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "configure nstall mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "can you set up fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ready to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "give me btop quickly", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "please hoping to word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Can you install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "BTOP MONITOR", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "make my computer ready for pyton", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "set up cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Configure java gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "need to want to compile c programs already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I want to ready to better bash", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "can you nstall rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "about to looking to 'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Mysql server installation already", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'd like to need valgrind!", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "i need to run containers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "'m starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to need mysql for my project on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "please nstall bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "productivity software asap please", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "tcpdump tool", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want net-tools right now", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Please have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I NEED TO WORK WITH DATASETS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "SSH SERVER QUICKLY", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "exa please", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "could you network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I need imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "CACHING LAYER FOR MY APPLICATION thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "BETTER FIND", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "connected devices project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "set up need to set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "put bzip2 on my system on my computer", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "wanna need to need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I need to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need p7zip-full already", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Just installed ubuntu, now what for coding already", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "set up default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "GOTTA FRESH INSTALL, NEED DEV TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "virtualenv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Time to add iproute2 on this machine", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "wanna neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "can you my friend said i should try linux development right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i'd like to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "get ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "looking to 'm doing a data project now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I need to work with images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "class assignment needs shell on this machine right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "READY TO NETWORK ANALYZER now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "HOPING TO NEED NPM THANKS", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "BACKUP SOLUTION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "gotta want bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "nstall zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I need emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "SOMETHING LIKE VS CODE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "hoping to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "need to help me sqlite3 please!", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "READY TO SPREADSHEET", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "CONFIGURE TIME TO NEED TO SYNC FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "media tool on my computer", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "java build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Get default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "instal ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "PLEASE WORKING ON AN IOT THING quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm learning go language!", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "code please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "please need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "devops engineer setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "add vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "can you install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "how do I mysql", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to need fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "PUT NEOVIM ON MY SYSTEM", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I need virtualbox please", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Install subversion?", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "network swiss army", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "could you terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "please fresh instll, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to put jupyter-notebook on my system", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I need to want a modern editor for me", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "mysql db on this machine", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "need to 'm learning java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Could you video production environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "system monitoring tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Set up python3-pip on my computer", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "NEW TO UBUNTU, WANT TO START PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Looking to document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I NEED TO FILE DOWNLOAD TOOLS ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "wanna help me want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "give me obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "SET UP SET UP FOR DATA WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "CONFIGURE CAN YOU INSTALL REDIS-SERVER", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "please get sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I want to extract zip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "production server setup already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "terminal system info thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "time to want to write papers on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "need to need to debug my programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "give me rustc thanks?", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "nstall gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "gotta please python development environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "give me gnupg please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "get openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "VIRTUALBOX SETUP quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "give me fzf asap", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "let's please network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "looking to time to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "containers", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I'd like to put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "get podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "Getting ready to go live quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "install redis-server please", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I want to virus scanning tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "how do I python development environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "DEEP LEARNING SETUP FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "give me mysql-server thanks", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I need to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to production server setup!", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to ready to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "add python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Time to music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Can you my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i need to docker compose environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "give me qemu on this machine", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "set up fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "need to basic security setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "notebooks?", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Media tool?", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "PRODUCTION SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up set up server monitoring setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "TIME TO NEED OFFICE SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "put screen on my system", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "configure clang compiler asap", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "BACKUP SOLUTION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "please set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "let's web development environment please already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I'm trying to set up apache2 now", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "jupyter-notebook please", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "wanna could you terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "clean up my computer on my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "performance monitoring now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "tree please", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "GIVE ME GIMP ON MY COMPUTER", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "certificates", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "set up sqlite database!", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "datbase environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "wanna want to compile c programs right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "PLEASE EXTRACT ZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "install screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "add ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "redis-servr please", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "make my computer ready for python on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I NEED RUSTC", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "please packet analysis setup already please", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "RUBY INTERPRETER", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I need to set up jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "basic development setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install default-jdk asap quickly", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "about to perl please!", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "about to put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I'm trying to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Install openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "help me set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "i want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "can you install calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Ready to new to ubuntu, want to start programming please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do I protect my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Better ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to time to backup solution setup on this machine already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "digital library software please", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "LET'S PLEASE GET SUBVERSION RIGHT NOW", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "production server setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "could you alternative to microsoft office already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "how do I ltrace tool", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "let's connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "how do I reverse proxy", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "Wanna set up fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "mariadb database?", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "configure get make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "FILE SHARING SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "media player setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to fonts-firacode please", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "get iproute2 quickly", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Need to give me inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "add fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "malware protection", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "put zsh on my system", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "about to add neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'm deploying to production already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need gcc?", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I need audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "install p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "READY TO PUT FZF ON MY SYSTEM", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "please want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i'm trying to run windows on linux?", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "could you ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "set up exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "please let's teaching programming to beginners on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "gotta jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "please give me unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "gcc please", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "let's cross-platform make", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I need to work with images quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want ipyhton3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want to want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "put iproute2 on my system", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Wanna home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "About to add bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "INSTALL OPENSSH-SERVER", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "video convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "ready to network analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Make my computer ready for frontend work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "time to want php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "PODCAST RECORDING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "DOCKER WITH COMPOSE SETUP FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "looking to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "FILE SHARING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "need to data analysis setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "hoping to want to monitor my system now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "can you about to docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "could you get npm right now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "let's security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up configure update everything on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "let's set up put gzip on my system already", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "MySQL server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "SET UP VIRTUALBOX", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "i want to php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "help me prepare for datbase work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "can you get redis-server?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Set up ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you run vms with virtualbox already", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "READY TO FREE UP DISK SPACE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "can you install podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need to debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "package manager issues on my computer on my computer", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "HOPING TO 'M MAKING A PODCAST", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "set up memory leaks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "can you want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "looking to get fail2ban asap", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "fix broken packages on my system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "mysql fork", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "perl please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "NANO PLEASE", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "give me code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "please need to work with pdfs for me", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "looking to configure want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "set up inkscape asap", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "preparing for deployment for me please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do I configure caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "CONFIGURE PREPARING FOR DEPLOYMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ready to gnu c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Set up ready to fail2ban tool for me please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "give me mercurial please", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "READY TO NETWORK FILE SHARING", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up apache2 please on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Network diagnostics", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "HELP ME MEDIA PLAYER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "put ipython3 on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I want to orchestrate containers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "gotta want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "could you want to do penetration testing already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "HOW DO I SET UP GZIP", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "gotta configure neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "EXA TOOL", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "get perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "Looking to set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "please put virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "how do i rustc please already", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "'m making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "time to need mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "about to go devlopment environment please thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "need to docker with compose setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "need to latex setup on this machine on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Nmap tool", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "i want libreoffice right now", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "configure let's upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "hoping to give me ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "configure gotta fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I'd like to nstall wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "let's time to want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "let's want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "wanna looking to 'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "get lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "how do i can you instll openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "please can you install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "COULD YOU RUN WINDOWS ON LINUX ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "configure want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "PLEASE NEED TO PLAY VIDEO FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "let's my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to stream games on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "DOCKER COMPOSE ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gpg right now", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "SET UP WANT THE LATEST SOFTWARE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "i'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "basic text editing on this machine", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "about to data analysis setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "put neofetch on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I WANT TO EDIT TEXT FILES", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "iproute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "WANNA EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "add ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "time to make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "get calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "okular viewer on my computer", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "Help me about to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "install calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "network security analysis thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "game engine setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Need to give me inkscape thanks", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "LOOKING TO PUT NET-TOOLS ON MY SYSTEM", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "hoping to homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I NEED INKSCAPE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "server monitoring setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "let's better terminal setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "looking to servr automation environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "WANNA OT DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "looking to need to need to debug my programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "need to need nano right now", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "could you text editing software?", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "need to need to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Please working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "looking to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to find bugs in my code right now?", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I need to rustc please", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "TIME TO NEED APACHE2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "configure network file sharing now", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "time to can you install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "i'm worried about hackers quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "get fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "java gradle now", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "set up podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "LET'S OPEN WEBSITES", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "READY TO GOTTA NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'M DEPLOYING TO PRODUCTION ASAP", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "LET'S MANAGING MULTIPLE SERVERS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "help me want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I WANT A COOL SYSTEM DISPLAY PLEASE", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Install openssh-server please", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Please hoping to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "How do i cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "LET'S NEED NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "can you help me nstall imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "i want to write documents quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Virtualization", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "time to prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "ready to debugging tools setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "how do I get gnupg!", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "give me subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "run Windows on Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "install emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "jdk installation", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "about to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "GIVE ME POSTGRESQL QUICKLY ASAP", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "gotta preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "need to connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "curl tool", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "xz compress!", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I need a web browser on this machine", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "CLEAN UP MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "CAN YOU INSTALL PYTHON3-PIP", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I WANT HTOP", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "need to class assignment needs shell!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up want tree already", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "preparing for deployment now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to put fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "gotta ltrace please", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "how do i lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Install neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "compile c++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "please 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "help me terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I WANT SCREEN QUICKLY", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "ready to need to work with pdfs on this machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "photoshop alternative on my computer", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "Gotta 'm trying to download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I NEED TO SERVE WEB PAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Wanna need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need to nstall jq on my computer", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "HOW DO I CAN YOU INSTALL VIM ALREADY on my computer", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "i'm building an app that needs a datbase", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "can you install fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I need to work with images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "gotta how do i put rustc on my system quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "wanna get postgresql right now", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Configure system update?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "TIME TO WANT THE SIMPLEST EDITOR", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you install code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "set up kvm", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I need to debug my programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Time to add qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "can you instll tcpdump already", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "wanna can you rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "hoping to put fonts-firacode on my system", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "about to educational programming setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "devops engineer setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "system administration tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "let's want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "ready to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "indie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to can you want to make games quickly for me", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "could you database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "time to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you install htop right now", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "can you install unzip thanks", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "educational programming setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "SET ME UP FOR WEB DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "seven zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Can you install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "could you need fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "gotta upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "get subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I'd like to source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "please show specs right now", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "please scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I'M TRYING TO VBOX", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Need to svn", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "SET UP GOLANG-GO on my computer", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "help me web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "HOW DO I GRAPHIC DESIGN TOOLS on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I NEED TO OPTIMIZE MY MACHINE ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "python language", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I'M LEARNING MERN STACK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "how do I netcat tool", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "get python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "wanna full stack development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "configure obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I NEED TO ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "how do I htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "about to set up php now", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "can you install ufw thanks", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "can you need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "looking to need fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "please need to need to test different os on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "add xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I need to gotta ltrace please", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "let's set up gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "ebook reader on this machine", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "can you 'm trying to set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Audio production setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "HTOP PLEASE", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "add btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "hoping to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "give me gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "add nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "please set up clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "GET GIMP", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "hardware project with sensors!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "could you gnu c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "help me fresh install, need dev tools on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to want ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "prepare MySQL environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "please better find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "PUT IMAGEMAGICK ON MY SYSTEM!", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "strace please", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "BETTER PYTHON SHELL QUICKLY", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "Network security analysis on this machine quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Need to gotta pdf tools setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "looking to nteractive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Looking to set up qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Vim editor for me", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "put docker-compose on my system", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "let's microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "how do I system maintenance now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "docker.io please", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "Could you put jq on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I'm trying to please 'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "tls", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Zip files quickly", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "about to bzip compress", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "configure file download tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up Redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "looking to configure network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "put docker.io on my system thanks", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "Video playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please set up rustc quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "need to file sharing setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "please obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I WANT VIRTUALBOX", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "could you terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "let's homework requires terminal thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "TIME TO AUDIO PRODUCTION SETUP QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "looking to can you install gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "looking to prepare my system for web projects asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i need to make my computer a servr?", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "convert images thanks", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "ready to can you ebook management?", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "could you put screen on my system", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "set up screen please", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "MySQL server installation already", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "DATA BACKUP ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'd like to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "show off my terminal on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "CACHING LAYER FOR MY APPLICATION", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "game development setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "KID-FRIENDLY CODING ENVIRONMENT on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "i want to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "MONGO", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "can you wanna live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "WORD PROCESSING AND SPREADSHEETS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need a database for my app asap", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Wanna add nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "need to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I NEED TO CHECK RESOURCE USAGE", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "configure ot development environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "hoping to give me zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "about to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I want to program Arduino thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "pdf reader on my system", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Packet analysis setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "please could you want a nice terminal experience right now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "how do I my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i'd like to want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I'd like to put docker-compose on my system", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "how do I configure free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "could you personal cloud setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "google font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I WANT TO CODE IN PYTHON", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "WANT EVINCE", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "i need to need nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "INSTALL XZ-UTILS asap", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "install valgrind please", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "can you podcast recording tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "help me could you better bash", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "ready to want to compile c programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Gotta debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Configure please new to ubuntu, want to start programming quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "get neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "looking to want to track my code changes already", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "ready to put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Python venv on my system already", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "i want to host a website on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "educational programming setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "SET UP WANT MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "gotta my kid wants to learn coding thanks asap", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "can you set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i want remote access to my servr now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I'D LIKE TO FULL STACK DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "need to terminal sessions asap right now", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "kde pdf", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "need to modern network asap", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I want openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "screen sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "about to debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "SET UP P7ZIP-FULL", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "put podman on my system asap", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "configure antivirus setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "wanna need to ot development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "looking to want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I want to wanna want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "photo editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "set up ripgrep now", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "HELP ME SAMBA SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "can you cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "new to Ubuntu, want to start programming on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ADD MONGODB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "ABOUT TO SET UP REDIS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i need a text editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "get sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Compile c++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "docker compose already", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Hoping to c development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "gnu c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "seven zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "get php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "MAVEN BUILD RIGHT NOW", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "gotta working on an iot thing please quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'd like to want emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "DIGITAL LIBRARY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "redis cache", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "multimedia editing tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'd like to ot development environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I want to compile c programs already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "let's cross-platform make", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "need to want to packet analysis setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "LOOKING TO FRESH INSTALL, NEED DEV TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta need libreoffice right now", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i need default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I'm trying to want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Parse json on this machine", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "help me set up want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Lua language for me", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "set up sqlite database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "let's something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "mariadb database", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "version control setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "how do I give me virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "hoping to just switched from windows and want to code for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Give me p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "How do i digital library software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "looking to cs homework setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "how do I can you need wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I'm trying to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "time to alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "how do I want to orchestrate containers asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ABOUT TO WANT TO ORCHESTRATE CONTAINERS RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "WANNA NEOVIM PLEASE", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Gotta about to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "How do i set up gzip for me", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "about to kde pdf thanks", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I NEED FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Add virtualbox already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Embedded db", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I want to automate server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I'd like to add podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "GET NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "configure pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "about to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "nmap please", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "wanna add tree please", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I'm trying to set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "wanna ripgrep search now on my system", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "code please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GET SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Looking to latex setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "add xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "SET UP GNUPG ASAP", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "ready to broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "digital library software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "docker compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I'm trying to homework requires terminal on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add redis-server!", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I NEED TO NSTALL JQ ON MY COMPUTER RIGHT NOW", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "virus scanning tools thanks now", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "mongodb please on this machine", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "i want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gotta need to add postgresql please for me", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "ADD DOCKER-COMPOSE ON MY COMPUTER", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "let's gz files now", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Can you 'd like to nstall calibre quickly", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "xz compress", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "set up give me nano?", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you install exa now", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "how do I need to database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "protect my machine on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "could you apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Wanna want to track my code changes now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "how do i node.js on my system", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "INSTALL OPENSSH-SERVER", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Set up openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "RUST THANKS", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "let's configure docker compose already", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "please hardware project with sensors for me quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need to want to run a website locally already", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "gotta node", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "something like VS Code on my computer", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I need to legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to want vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "redis", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I WANT TO NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "hoping to productivity software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I WANT TO BE A FULL STACK DEVELOPER", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "let's ready to track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "help me working on an iot thing quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "gotta educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up can you install mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you packet analysis setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "security testing tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I'm learning MERN stack!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i want to server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "get xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "HOPING TO TEACHING PROGRAMMING TO BEGINNERS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "kde pdf", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "Set up fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "GIVE ME FFMPEG", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "imagemagick please for me", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "please add ltrace!", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "time to 'm trying to basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Redis server please quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "get tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "time to give me libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to browse the internet thanks", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "help me want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "COULD YOU POWER USER TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "need to fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "svn client", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "Get virtualbox on my computer", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "developer tools please on my computer thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "iot developmnt environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "Download manager now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I need to go language", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "can you install postgresql!", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "configure set up a web server right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'm trying to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "containerization", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "could you python environments", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "i need redis-servr", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "gotta want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "WANT TO BUILD WEBSITES ALREADY RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "ready to want openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want to collaborate on code thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "about to give me qemu please", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "i'm trying to set up fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I'm trying to prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "about to have epub files to read for me", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add tmux right now", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I want the latest software on my computer", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "SYSTEM ADMINISTRATION TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "packet capture", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I just switched from Windows and want to code thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up curl please already", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "wanna source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "time to media player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "put netcat on my system", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "set up golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "i'd like to set up yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "bzip tool quickly", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need to about to python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want to code in java right now please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "get bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "Give me php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "i want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "i want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "how do I can you install yarn!", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "Gotta 'm trying to my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "mysql database", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want bat?", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "let's want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "help me running my own services now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ABOUT TO NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "hoping to malware protection on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I'd like to want fast caching for my app?", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "process monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "gotta help me need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "READY TO LIVE STREAMING SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to directory tree already", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "gotta system information?", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "add audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "get mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "multimedia editing tools?", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "PLEASE NANO PLEASE", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "how do I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "LOOKING TO 'M TRYING TO WANT TO RUN A WEBSITE LOCALLY", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "CONFIGURE GIVE ME CLAMAV ALREADY PLEASE", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Configure source code management for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "TERMINAL SESSIONS", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I'm trying to coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gnu screen now", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'm trying to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Want to edit pdfs already", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "configure ot development environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "configuration management tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "PREPARE SYSTEM FOR PYTHON CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "file sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "MUSIC PRODUCTION ENVIRONMENT on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "configure configure ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "how do i gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "orchestration", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "gotta need xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "gradle please on my computer", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "GAME ENGINE SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "get golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "infrastructure as code setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "nginx servre asap", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Make my computer ready for frontend work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "add p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "about to need calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "package manager issues on my computer", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "looking to document reader", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "configure fix installation errors!", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need to set up have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Configure need to train neural networks on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "preparing for deployment asap?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I'm trying to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Put redis-server on my system", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "could you want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Network scanner asap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "hoping to virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Could you docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "add imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I want to write code for me now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Please network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "configure show off my terminal already", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I NEED TO DATABASE ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "go language?", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "GET GZIP", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I'd like to need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "let's 'd like to give me okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "get okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "ready to give me gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "give me htop asap", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Get curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "HELP ME SCAN NETWORK ALREADY", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "could you want to edit videos on my computer please", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "can you put fonts-firacode on my system", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "network diagnostics", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "'m learning docker thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to nstall nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "ready to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "can you gotta web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want to do machine learning asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "GET NEOVIM", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "can you install docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "HOPING TO Z SHELL", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's better top right now", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "PHOTO EDITOR", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I need cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "help me rg", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "mysql db", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "system maintenance", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "XZ COMPRESS!", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I'd like to give me okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "gotta alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "give me openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "put gradle on my system on my system", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "scan network", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Looking to golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "give me apache2!", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "set up valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "server monitoring setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "configure add openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "install gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "System maintenance on this machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I'm trying to antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "could you configure academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I'm trying to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "help me want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "SET UP HTOP THANKS", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "NOSQL DATABASE on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Screen please", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "programming font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "about to 'm trying to python on this machine", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "wanna vector graphics on my system", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need to work with pdfs please", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "SSH SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "openssh-server please", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "let's 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you install ufw for me", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "hoping to sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I'M TRYING TO PREPARE SYSTEM FOR PYTHON CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "NEED TO DATA ANALYSIS SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "let's scientific document preparation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I'd like to source code management for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "TIME TO SECURITY HARDENING?", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "Digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "i want postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "put code on my system", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I need to port scanner quickly", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "wanna 'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "set up okular for me", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "PLEASE MAKE MY COMPUTER A SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "give me bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "hoping to can you install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "ready to gotta managing multiple servers already", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "NEED IN-MEMORY CACHING", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I want to make tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "audio production setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "time to mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "PROCESS MONITOR", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "could you remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "ready to get mysql-server thanks", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Could you give me tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "wanna need to devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I WANT TO BE A FULL STACK DEVELOPER for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "docker", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "let's want to track my code changes on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "CONFIGURE NEED HTOP!", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "set up 'm trying to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "Samba server already on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "wanna add okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "set up homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "HELP ME GAME DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Configure system update?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want to compile C programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "can you managing multiple servers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I NEED TO RUBY INTERPRETER", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "time to mysql for me", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "get python3-venv on my computer", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "wanna parse json", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "hoping to can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I need to fix broken packages already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "add curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I need to collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "REVERSE PROXY", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "HOPING TO CODING ENVIRONMENT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta ready to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "time to photo editing setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Zip please", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "time to want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "wanna unzip files on this machine", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "JAVA GRADLE NOW", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "need to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "time to rust language for me", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "can you install mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I need p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "need to add php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "give me valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "wanna system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "streaming setup for twitch on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Get python3-venv thanks", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "configure can you 'm learning pyton programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "looking to yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I want to use VirtualBox!", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "i have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Svn", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "CAN YOU INSTALL FISH", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "give me lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "COULD YOU WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to need to check resource usage quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "apache", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "configure let's put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "hoping to 'm learning java thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "about to make my computer ready for frontend work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "add ripgrep?", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "MySQL server installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "about to add libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "wanna samba server thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to help me php language", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "CAN YOU INSTALL BTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "could you hoping to can you install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Help me managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "LUA LANGUAGE", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "help me want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "put openssh-server on my system", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "can you install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "could you prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "SET UP TERMINAL SYSTEM INFO!", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "set up photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "put yarn on my system", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "JAVA SETUP PLEASE?", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "time to document db", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "set up jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "set up need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I WANT TO VIDEO PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "give me nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "i'm trying to want to see system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "let's basic development setup right now thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to time to zip files up!", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "pgp!", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "What are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "get openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "AUDACITY PLEASE", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I want to analyze network traffic on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "evince please", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Ready to want to write code for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "wanna system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "instal python3-venv!", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "i need to write research papers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "please redis server please on my computer already", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "time to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Gotta get yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "let's cross-platform make", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "need to need to docker setup please on my computer please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to write code for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "SET UP PERL INTERPRETER", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "file download tools already", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "About to want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "LOOKING TO 'M DOING A DATA PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I need to wget please on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "set up want to secure my server on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "configure get make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Evince please asap", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "wanna preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Looking to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Version control setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "LOOKING TO GNU SCREEN", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "time to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "nstall ipython3 quickly", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "unzip files", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "nvim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "let's configure want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "time to need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "hoping to 'm learning c programming please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I need ansible for automation right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "performance monitoring please", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "set up perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I want unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "GO DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "about to web development environment please!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need Ansible for automation right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "free up disk space?", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "give me g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I'm trying to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I want to need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "install unrar for me", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "LOOKING TO ADD NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Can you install jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "CAN YOU INSTALL HTOP ASAP", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Let's connected devices project already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Clang please!", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "can you prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "NEOFETCH PLEASE", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "configure personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "hoping to want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "p7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "looking to set up mysql datbase right now", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "PRODUCTIVITY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "give me obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "please live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i'm trying to screen sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "Clean up my computer asap on this machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "LIBRE OFFICE", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "about to want to run virtual machines on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "perl interpreter", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "ready to fetch system on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "CS HOMEWORK SETUP?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to let's want to find bugs in my code on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "configure bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Help me media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Wanna download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "oh my zsh now", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "PHP INTERPRETER", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I WANT UFW", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "about to ebook management?", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "configure modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "DATA ANALYSIS SETUP ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ready to audio convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "system maintenance on this machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "SET UP MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "put sqlite3 on my system", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I need to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "obs-studio please", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I need iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "please live streaming software already", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please mercurial vcs now", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "set up exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Gotta give me maven asap", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "could you need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up python3 quickly", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "i need to 'm learning go language on this machine please", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "MALWARE PROTECTION", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "help me need to connect remotely on this machine right now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I WANT A COOL SYSTEM DISPLAY?", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "i need to add htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I need to can you install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I want to extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "configure need nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "ABOUT TO NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up docker.io?", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "CAN YOU INSTALL XZ-UTILS", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "GOTTA NEED TO CHECK RESOURCE USAGE ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I WANT TO EDIT VIDEOS ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I'm trying to set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I have epub files to read on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "time to get obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "looking to add fonts-firacode?", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I need to configure fix installation errors!", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "SET UP UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "Help me media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to help me network diagnostics thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "set up teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "how do I power user terminal on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "about to add python3-pip please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "virtualbox please", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "CONFIGURE FILE DOWNLOAD TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "hoping to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "let's set up audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I WANT TO DOWNLOAD FILES quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "let's samba server now", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "i'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "evince please", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "network security analysis on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "help me want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "time to 'm starting a youtube channel now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "media player setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "wanna put nmap on my system", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I want to need to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's need to check for malware?", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "LOOKING TO NEED A DATABSE FOR MY APP THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "can you install sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I want to run a website locally already", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "about to set up valgrind quickly", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I want to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I NEED JUPYTER-NOTEBOOK!", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "how do I help me live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to looking to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "video production environment on this machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "configure clang compiler asap", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "configure put nginx on my system", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "set up for data work quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "CLANG PLEASE", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "i'd like to word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "let's broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I want python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "'m starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "certificates", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Gotta add btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I want to let's cs homework setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "install emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "LOOKING TO GNU SCREEN", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "INSTALL MYSQL-SERVER!", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "bring my system up to date on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "nodejs runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "time to help me want to code in python thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I NEED TO TROUBLESHOOT NETWORK ISSUES RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "FIX INSATLLATION ERRORS", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "about to get python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I'm trying to want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "add neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'd like to xz files", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "let's rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I need bat thanks", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "Split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "virtualenv on this machine", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Give me screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "need to looking to nstall nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you install fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "help me please system maintenance asap", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "could you clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "please want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "hoping to about to prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "looking to something like vs code for me", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "give me golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I WANT FZF", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "add fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "Unzip files for me", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "Help me want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I want fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "let's set up ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "give me emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "ready to get openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "please 'm starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "put fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "screen please", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "set up sqlite3?", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "configure want to edit pdfs please", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "unzip files", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "TEACHING PROGRAMMING TO BEGINNERS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "give me xz-utils on this machine", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I need netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "ADD FFMPEG FOR ME", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do I give me virtualbox for me", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "Could you slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "wanna want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "data backup environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "LET'S LLUSTRATOR ALTERNATIVE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "hoping to help me add bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "fuzzy finder", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "i'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "i want to want openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "GOTTA MULTI-CONTAINER", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "ready to need to work with pdfs on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "could you can you install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "backup solution setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "i need git?", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "rootless containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "configure nstall fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I'd like to give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Configure my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "ready to track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "how do I need to compile code on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Install vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "could you my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "openssl please", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "add fail2ban on my system", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "document db for me", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "about to data backup environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "Packet capture quickly right now", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "looking to yarn package manager asap", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "Personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Gotta working on an iot thing please on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "configure neovim please quickly", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I need mysql-server thanks?", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "could you want lua5.4?", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "could you my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "need to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "could you psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's can you obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gotta download with curl asap", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "let's want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "LET'S WANT TO RUN VIRTUAL MACHINES", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "gotta vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "Image convert", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I WANT TO 'M BUILDING AN APP THAT NEEDS A DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Put audacity on my system for me", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "add ant for me", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "wanna python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "wanna httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "please need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i'm trying to let's redis server please thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "put vlc on my system already", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "Packet analysis setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "PLEASE NEED CODE?", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "TERMINAL MULTIPLEXER", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Set up neofetch thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "please wanna coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I NEED TO 'M LEARNING GO LANGUAGE ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "about to need to 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "LOOKING TO SYSTEM MAINTENANCE RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "set up want to multimedia playback asap right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "home server setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "wanna could you network security analysis on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "NANO PLEASE", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need to configure virus scanning tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I'm trying to 'm trying to add gcc please", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "configure want to use mysql on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "need to nstall gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "ready to network sniffer thanks", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "can you install make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "give me maven asap", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I'm trying to set up fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "about to streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "wanna 'm starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "let's make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'm starting a YouTube channel on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "hoping to get fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Can you install python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "need to nstall evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "LOOKING TO LEGACY NETWORK ON MY COMPUTER", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I need to ffmpeg please on this machine", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to remote login capability for me", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "SET UP PYTHON ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "wanna configure nstall fonts-hack quickly", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "hoping to can you install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I'd like to c development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Set up sqlite database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "ready to gotta need to check resource usage asap", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "get fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "I want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "WANNA UPDATE EVERYTHING ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "can you 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ADD FONTS-FIRACODE", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "wanna parse json?", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I need to system administration tools right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "CONFIGURE JSON PROCESSOR", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "imagemagick please for me", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "C DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "subversion please", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "get calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "set up git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "hoping to run windows on linux asap", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I need to class assignment needs shell on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Can you install yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "time to want to package manager issues please", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "can you want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "how do i set up jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "how do I ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up ffmpeg quickly", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "LET'S LOOKING TO SYSTEM MAINTENANCE RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "set up perl on this machine", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "get openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "I want to compile C programs!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "can you install fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "I want to code in Python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want to svn client asap", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "about to configure free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "give me vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "photo editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "hoping to want to be a full stack developer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "add screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "set up apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "debug programs asap", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I NEED TO SYNC FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "get fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "i want to virtual env", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I'm trying to want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "install unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "libre office", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you install perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "'m starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "looking to give me tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "legacy network on my system", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Exa tool", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "track code changes now", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "install python3-venv asap", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "put valgrind on my system thanks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "about to put screenfetch on my system", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "set up backup solution setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "gotta working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "GET FD-FIND", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "ready to file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'm trying to configure get make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I need to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to put fonts-firacode on my system", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I want to watch videos now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "help me want to write code?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "let's office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up put xz-utils on my system", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "curl tool", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "help me personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "GET MAKE ON MY COMPUTER", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "time to could you need ansible for automation", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Let's need to work with datasets for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up for data work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "productivity software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "add p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "CAN YOU TRACE SYSCALLS", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I'd like to set up get unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "NETWORK SECURITY ANALYSIS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "wanna want to run virtual machines right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "how do I track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "how do I want apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "NETWORK SCANNER ASAP", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "i'm trying to want podman thanks", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "put git on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I need perl on my computer", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I WANT PYTHON3-VENV", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I need to redis", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "COULD YOU TEXT EDITING SOFTWARE FOR ME", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "archive my files right now on my computer", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "get tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "make my computer ready for Python on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ABOUT TO OPTIMIZE MY MACHINE THANKS", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Ban hackers", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "jupyter!", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Can you install valgrind quickly", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I'd like to looking to secure remote access now for me", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Looking to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Time to security hardening?", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "need to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "ready to docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I WANT TO ORCHESTRATE CONTAINERS!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install python3!", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "help me ready to network analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "install default-jdk asap on my computer", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "ready to zip files up", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "time to backup solution setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "install podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "how do I want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "i want to need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Friendly shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "how do I virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "C/c++ setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "looking to caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "looking to add ant for me", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "hosting environment setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "put openssl on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "TMUX PLEASE", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "can you need to fetch things from the web for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "about to jdk installation on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "let's can you install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "ready to network diagnostics", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "add tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "wanna add ffmpeg for me", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "ready to system display", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I'd like to java ant please", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "add audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "gzip compress", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "ebook management thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to video production environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "how do I 'm trying to want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "hoping to need to compile code on my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "TIME TO NEED TO GET GNUPG ON MY COMPUTER", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "help me gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I want to edit images already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "How do i need redis-server already", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "profiling tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "HELP ME COMPILE C", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "wanna team communication tool on my computer", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "PLEASE SET UP REDIS ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "let's nsatll virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "about to put exa on my system please", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I WANT TO SECURE MY SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "please fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "SET UP NEED NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "personal cloud setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'd like to nstall ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "i want mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want to use mysql already", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "i want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "get exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "configure source control", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "COULD YOU NEOVIM PLEASE", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "CONNECTED DEVICES PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Show off my terminal?", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "how do i get openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "let's give me wget thanks for me", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "time to pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "containerization", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "looking to set up want ufw?", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "set up could you need ansible for automation", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "could you production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'd like to set up for data work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "gotta podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Podcast recording tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "time to get obs-studio on this machine", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I'd like to go language", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "neovim editor", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Python language now", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I need jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "vi improved", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "looking to could you cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I WANT NODEJS ALREADY", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "configure configure nstall vlc?", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "i want ipyhton3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "i want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "get ant quickly", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "IoT development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I need curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "BETTER CAT on my system", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "can you install virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I want to need tcpdump on my computer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "looking to let's llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "ready to how do i graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "LET'S SYSTEM UPDATE ASAP", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "wanna want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "about to create zip quickly", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "fd on my computer", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "extract rar on my system", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I want to time to ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I need to train neural networks thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "please about to lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "about to 7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "LOOKING TO COULD YOU 'M LEARNING DOCKER", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "need to optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "RUN VMS WITH VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "system monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "add clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "put subversion on my system", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "READY TO WANT TO WRITE CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "can you install ripgrep for me", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I want to put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I need to need to work with pdfs!", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "GET FISH", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "get gimp asap", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I WANT WIRESHARK", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "could you let's want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "ready to docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "gotta vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I'm trying to want the simplest editor thanks", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "INSTLL MONGODB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "C/C++ SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "i want bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "TIME TO WANT THE SIMPLEST EDITOR", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "get btop for me", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "run VMs with VirtualBox already for me", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "download manager now already", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "alternative to npm please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I'd like to need to embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "time to my professor wants us to use linux for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please get subversion right now quickly", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "looking to better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "add pyton3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "help me update everything on my system please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "help me http client", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "RUST COMPILER", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "give me sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I need to nstall tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "install ant on my computer", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "time to help me network diagnostics thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ready to 'd like to give me unzip for me", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "let's want to do penetration testing asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I WANT TO SELF-HOST MY APPS right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Help me need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "please fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "podcast recording tools!", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Z SHELL", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "vi improved", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "golang-go please already", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "hoping to could you need ansible for automation", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "TIME TO WANT TO STORE DATA QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "GIVE ME NETCAT", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I need exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "need to put openssh-client on my system on my computer", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "7z please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Give me gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I'd like to ready to spreadsheet", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "please media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "put openssl on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "prepare for database work please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "emacs editor", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "time to give me npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "qemu emulator right now", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "SET UP FOR MICROSERVICES ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "need to 'm starting a youtube channel now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "install imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "set up profiling tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "about to let's can you install rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "Alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "TIME TO PUT RUBY ON MY SYSTEM", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "let's want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "please time to get wireshark already on my system", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I NEED IN-MEMORY CACHING", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Please set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "CONFIGURE SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "time to give me maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I'd like to source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "help me want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "i want to add rustc now", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "gotta add tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "configure set up a web server right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "can you want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'm trying to kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "can you python notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "database environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "prepare MySQL environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "ready to can you install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'd like to nano please", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "get wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "put fail2ban on my system", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "wanna want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "time to nstall python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "i want to secure my sever thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up 'm trying to node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "fish please on this machine", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "about to put vlc on my system", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "time to can you insatll inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "please want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "ABOUT TO VIRTUALIZATION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "set up give me cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I need zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "CAN YOU NSTALL SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "need to give me php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "i want to code in python on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "need to preparing for deployment asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm trying to need to podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I want to mage editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "please something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Let's debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "get lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I need to set up fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "INSTALL UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "can you graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "wanna add perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "add subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "can you need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "help me please python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Ready to 'm learning java right now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "set up put htop on my system right now", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "LET'S 'M STARTING TO PROGRAM thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "please golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I need to time to want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "infrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want to need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "COULD YOU PYTHON3 INTERPRETER QUICKLY", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Ready to want default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "help me system monitoring tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "hoping to library calls on my computer", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "ready to streaming", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "please want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "give me rustc thanks", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "set up prepare my system for web projects on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "python3-pip please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "gotta make my computer ready for python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to docker setup please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm building an app that needs a database", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "add qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "rootless containers asap", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I WANT SCREEN QUICKLY", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "Java development environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "configure cmake build!", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I NEED BTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "need to need evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Nano please on my system", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "looking to xz files", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "Looking to java setup please?", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "how do I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "looking to set up kvm!", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "wanna graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "looking to need to rust development environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "can you golang setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "HOW DO I DEVELOPER TOOLS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "make please", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "run VMs with VirtualBox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want python3 thanks", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Looking to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Get rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "get sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I want to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "please python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "add net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Put imagemagick on my system!", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "GETTING READY TO GO LIVE?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "jq please on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "let's debugging tools setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "help me file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "install zip thanks", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "ssh server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "wanna get gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "hoping to let's netcat tool right now", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Add code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I have epub files to read asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I WANT FONTS-FIRACODE", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "openssh-client please", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "hoping to home server setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "get libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want calibre for me", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "can you system administration tools already", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "get virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "hoping to need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I WANT NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "ADD FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "MYSQL-SERVER PLEASE ASAP", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Please open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "could you text editing software for me", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "please terminal editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "add mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "PROFILING TOOLS ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I WANT TO EDIT TEXT FILES", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "MULTIMEDIA EDITING TOOLS QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want to nginx please quickly", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "install ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "need to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "give me vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "get evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Can you install default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "how do I give me fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "can you pip3", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I need to add htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "FILE DOWNLOAD TOOLS please", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "how do I 'd like to video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want to want nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "interactive python!", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "Put exa on my system thanks", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "apache server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "i want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "configure network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "pythn pip asap", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "let's set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "vi improved", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'D LIKE TO GIVE ME UNZIP FOR ME", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "set up screen on this machine", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "machine learning environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Can you need to create a website already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "mariadb databas", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I need gcc?", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Set up want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CAN YOU GDB DEBUGGER", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "UNZIP FILES FOR ME", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "I WANT TO OPEN COMPRESSED FILES", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "game development setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Production server setup quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "time to please want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "can you give me nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "CONFIGURE LIVE STREAMING SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I NEED TO PUT GRADLE ON MY SYSTEM", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "INSTALL NET-TOOLS", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "give me postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "LOOKING TO ADD OBS-STUDIO right now", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I'm trying to put zsh on my system", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "gotta packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I want a cool system display!", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "hoping to about to nstall maven on my computer", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I want openssh-client now", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "can you 'm trying to want to secure my server now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "new to Ubuntu, want to start programming please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "add python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Help me media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up a database server for me", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "can you want inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I WANT JQ", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I'd like to set up make my computer ready for python on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to please system maintenance!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "READY TO HOW DO I SET UP A DATABASE SERVER?", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up Python on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "cross-platform make", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Could you set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "Podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "java gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "LOOKING TO BZ2 FILES", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "i want to want to stream games on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do I server automation environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Please want to want to read ebooks asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "help me add npm!", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "gotta set up unrar?", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "give me zsh now", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I want to want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to redis server please on my computer right now", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "can you optimize my machine on my system", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Set up performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up mysql databse", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "put tmux on my system", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "FRESH INSTALL, NEED DEV TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to be a full stack developer quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "CAN YOU FZF TOOL", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "can you ready to repair package system right now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "about to put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "Need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "about to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "containerization environment quickly asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Please show off my terminal for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "TIME TO MAKE MY COMPUTER READY FOR PYTHON!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "install gradle for me", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I want to need neovim thanks", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "looking to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i'm trying to set up gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "set up could you video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "gotta xz compress!", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "SET UP WANT TO EDIT VIDEOS", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "help me add g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Run vms with virtualbox thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Please add golang-go on my computer", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "please want to record audio on my system on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "DOCKER COMPOSE", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Hoping to vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'm trying to 'd like to sound editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "CAN YOU INSTALL LIBREOFFICE", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "PLEASE BUILD TOOL", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "give me tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "CAN YOU CAN YOU INSTALL FAIL2BAN", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "put docker.io on my system thanks", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "Help me samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I want to graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "let's docker with compose setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want fail2ban now", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "backup solution setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I WANT FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "clean up my computer on my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "put obs-studio on my system", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "help me want to do machine learning thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "ready to prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to set up openssh-server right now", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "i need to working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "'m learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I NEED TO WORK WITH PDFS RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I NEED RIPGREP", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "looking to set up for data work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Could you hosting environment setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "time to download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "my professor wants us to use Linux!", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Gotta time to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "about to need inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "go development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want to protect my machine thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "PERL PLEASE", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ready to want neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "i'm trying to let's set up for ai devlopment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "oh my zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "i want ruby on my computer", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I NEED TO HOME SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Fancy htop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "python language", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "can you hosting environment setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "set up for microservices on this machine!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "CAN YOU SQLITE DATABASE FOR ME", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I want fast caching for my app already", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "CAN YOU GOTTA WANT REMOTE ACCESS TO MY SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "gzip please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "GOTTA CAN YOU INSTALL BTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "i need to run containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "How do i set up network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "can you want audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "could you set up okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "remote login capability on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "how do I want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "NANO PLEASE THANKS", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "how do I lua5.4 please", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "can you install python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "LET'S UFW FIREWALL", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "could you 'm trying to collaborate on code!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "INSTALL PODMAN", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "can you obs setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add sqlite3 on my computer", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "add jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "configure configure neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "get git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "REVERSE PROXY", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "add ffmpeg already", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "CAN YOU INSTALL NET-TOOLS RIGHT NOW", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to set up run windows on linux!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "xz compress", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "vscode for me", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "can you install rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "gotta ready to want to edit videos asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "configure want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "get neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "productivity software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "about to need default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "DEVELOPER TOOLS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "modern network?", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "i want to document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "about to server automation environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "PLEASE BUILD TOOL", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "virus scanning tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want remote access to my servr now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Get redis-server?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "looking to 'd like to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "HELP ME MEDIA PLAYER SETUP asap", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to need to debug my programs?", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I want docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "please run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "need to docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure want to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "could you epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "time to hosting environment setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "put redis-server on my system", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "need to want to system monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "set up apache2 for me", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "could you text editing software for me", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "how do I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need to compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "create zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I'm trying to need mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "how do I please mercurial vcs already", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "gotta how do i servre monitoring setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I want to want to code in java on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I'D LIKE TO LUA LANGUAGE ON MY COMPUTER", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I want to looking to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "i want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "COULD YOU WANT A NICE TERMINAL EXPERIENCE RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "about to get bat thanks", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "let's need to check resource usage", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "ADD FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "ready to deep learning setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "configure need perl on my computer for me", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "i want to record audio asap", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "CAN YOU NEED TO CREATE A WEBSITE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "let's looking to want to store data?", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "clamav scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "add calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "VIRTUALIZATION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Wanna system administration tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Wanna want to nstall code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "how do I about to nstall maven on my computer", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "add subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "about to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "ripgrep please", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "virtualization setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I NEED TO TROUBLESHOOT NETWORK ISSUES RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "set up iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I WANT TO FIND BUGS IN MY CODE RIGHT NOW ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "ready to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "SOMETHING LIKE VS CODE!", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I'd like to get vlc now", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "please 'm starting to learn web dev already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "memory debugging environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "time to network diagnostics!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "please give me valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I need to python on this machine", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "READY TO WANT TO EXTRACT ARCHIVES", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "Set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need to troubleshoot network issues right now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "give me fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "virtualization setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "help me key-value store", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "i'd like to network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "put rustc on my system on this machine", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "how do i give me fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "i want bzip2 asap", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "configure personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "could you port scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I want to record audio?", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I NEED TO WORK WITH DATASETS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Put openssh-server on my system", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "ready to put exa on my system", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "connected devices project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "CERTIFICATES", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "p7zip-full please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "database environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Hardware project with sensors thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Configure system maintenance now on my system", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "llvm compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Multimedia editing tools please on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "LOOKING TO WANT TO AUTOMATE SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I'M TRYING TO CS HOMEWORK SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "bzip tool", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "wanna want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Hoping to want to make games on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "how do I bzip compress on my computer", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "Gotta looking to set up ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "can you need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "gotta get docker.io for me", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "give me cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "set up docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "i want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "could you photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "could you network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "time to put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "about to academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "how do i developer tools please on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Developer tools please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do I power user terminal on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "configure nteractive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "put wireshark on my system now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "give me fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "please want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I need Python for a project!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i'm trying to prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "please 'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "need to hoping to productivity software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Remote access thanks", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I need to give me g++ right now", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "looking to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "LET'S NEED GIT", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "could you want to chat with my team asap right now", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "how do I developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install bzip2?", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "VIRUS SCANNING TOOLS on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "need to can you install python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "ifconfig", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "give me zip?", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "can you install code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "configure 'm learning docker thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I want to visual studio code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "can you mysql database on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "let's download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "i need to write research papers already", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I need to hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "can you net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "please need to give me nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Need to java setup please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "REDIS SERVER PLEASE THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Mysql db", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "put code on my system", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "ipython3 please", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "configure devops engineer setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "gotta 'd like to want to find bugs in my code for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "i want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "Machine learning environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I'm trying to valgrind please", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I need fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "time to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "Let's looking to java setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "configure preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "mercurial vcs now", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "ligature font", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Can you can you install fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "about to my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "wanna want mongodb asap", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I NEED TO SET UP DOCKER ON MY MACHINE FOR ME NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'd like to set up ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add zip already", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "get audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I need screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "give me nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I want to learn Rust for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "HOPING TO WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "SET UP LTRACE", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I'm deploying to production?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "please mvn?", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Let's get jupyter-notebook!", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I want to yarn package manager", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "gotta getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "need to c development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "please fconfig right now", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "can you 'd like to give me jq right now", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Need to httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I need to wanna want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want mongodb asap", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "hoping to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "need to help me want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "ABOUT TO PYTHON VENV", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "fancy htop!", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "gotta about to java", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I need zip asap on this machine", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "TIME TO GOTTA NEED A DATABASE FOR MY APP", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I'm trying to get gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I'd like to get maven on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "add gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "how do I fix broken packages please", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "WANT THE SIMPLEST EDITOR", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "wanna remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "CONFIGURE NSTALL ZIP", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "let's developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's packet analysis setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ADD FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "HELP ME NEED PYTHON3-VENV?", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "i need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I'm trying to need exa already", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I want emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "hoping to network file sharing for me", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "time to need okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "install tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "could you teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "Please give me golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "c compiler!", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "can you install gnupg asap", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "prepare for coding right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "GET CLAMAV", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "performance monitoring now?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "GDB DEBUGGER", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "configure server automation environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to can you install zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "system monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "i'd like to ndie game development already", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I'd like to nstall cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "give me python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "HOW DO I NEED GZIP", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "add clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "give me gnupg please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "easy text editor asap", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Please 'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I want to need to test network security already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want to streaming setup for twitch please", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up fd-find on my system", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "add fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "JAVA SETUP PLEASE FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "wanna apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "LOOKING TO GET CMAKE", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "need to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "can you graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "SET UP MONGODB", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "MEDIA PLAYER SETUP ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up emacs editor", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "READY TO NEED PERL", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "please want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to edit images quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "could you need to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I need to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "need to docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "about to my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "about to zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I'd like to need to fetch things from the web for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "give me ruby on my system", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "Sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "about to want valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "time to screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I need to photoshop alternative on this machine", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "install openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "get mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "file sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "WANNA ADD OKULAR", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "PRODUCTION SERVER SETUP QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Python venv on my system quickly", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "ready to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "add lua5.4 right now", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "optimize my machine already", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "bring my system up to date on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "let's go language?", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "SET UP RUBY FOR ME", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "let's need libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to host a website now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "getting ready to go live asap on my computer", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "give me virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I NEED TO JDK INSTALLATION ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "clamav please", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Set up put gzip on my system already", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "time to need to sync files on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "need to add gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "GIVE ME VALGRIND", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "could you want to python3 please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "can you net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "i'm learning game dev for me", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "i'd like to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "CONFIGURE OT DEVELOPMENT ENVIRONMENT ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "TIME TO VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want to open compressed files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "how do I give me virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "can you install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "can you install python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I need to containerization environment quickly right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I need openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "can you install p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "set up redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "wanna graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "i need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i'd like to help me get imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "evince please", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "hoping to need to put tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "7Z ASAP", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "add zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "how do i set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I WANT TO HELP ME PRODUCTION SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "File sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "SET UP DOCKER ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to use MySQL", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Can you how do i want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "i need mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want to set up lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "set up bzip2 now", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "READY TO BETTER BASH quickly", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I need to btop monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "UNRAR TOOL PLEASE", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I want to need to test network security on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I'D LIKE TO WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to mysql database right now", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "ready to data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'd like to want emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "library calls", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "javascript packages", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I want ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "wanna could you get mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "hoping to 'm trying to jdk installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "ready to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "gotta set up ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I WANT TO NETWORK DEBUGGING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "devops engineer setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "LOOKING TO PRODUCTION SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "let's how do i want to write documents right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "need maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "CAN YOU INSTALL GRADLE", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "wanna deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta please want to record audio on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "help me time to docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "let's just switched from windows and want to code on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Add postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I want openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "get inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Wanna prepare my system for web projects asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "CAN YOU SET UP EVERYTHING FOR FULL STACK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "Time to hardware project with sensors on my computer?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i'm trying to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "need to working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "How do i time to working on an iot thing now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Could you want a nice terminal experience right now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Bz2 files?", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "terminal productivity tools on this machine on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "just installed Ubuntu, now what for coding!", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Time to virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "libre office", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "GOTTA NEED TO SYNC FILES ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want to network diagnostics right now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "set up want to photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "give me calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Please configure 'm learning game dev on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "gotta server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "i'm trying to prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "put ufw on my system", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "ban hackers", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "WEB DEVELOPMENT ENVIRONMENT PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "give me audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "get screenfetch on my computer", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "Help me want to edit images already?", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "about to zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "SET UP WANT TO USE MYSQL", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "HELP ME MEDIA PLAYER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "java gradle now", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I'M TRYING TO NSTALL OPENSSH-CLIENT", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "configure want to system display", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "ready to nstall libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "trace syscalls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "Obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "GOTTA WANT FAIL2BAN NOW", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "Modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "'M BUILDING AN APP THAT NEEDS A DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "about to tree command", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "time to cmake tool", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "DOWNLOAD WITH CURL", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "let's makefile support asap", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Could you need a text editor?", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "about to mysql", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "File sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "time to ebook reader setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "need to optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "CAN YOU GO DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "FREE UP DISK SPACE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "about to can you install screen now", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "need to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "DATA ANALYSIS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "how do I put rustc on my system quickly now", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Wanna want to automate server setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "install obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "looking to terminal sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "can you ndie game devlopment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "wanna teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "time to clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "apache server on my computer", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "gotta want to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up looking to full stack developmnt setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "set up gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Text editing software", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "let's ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "PODCAST RECORDING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "vim editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "need to gotta managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "help me can you need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "looking to yarn please now", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I need to train neural networks?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "team communication tool please", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "Install bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "get wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "help me homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "about to prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "can you install calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I want to seven zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "GIVE ME GIMP ASAP", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "i need emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "help me looking to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I need to test network security on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Get rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "how do I memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "set up virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "prepare for full stack work on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "need to help me want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "VLC PLAYER", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I need mysql for my project for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "configure virus scanning tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "wanna prepare for database work thanks for me", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "let's give me htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "ready to need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Ready to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "please mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "set up Redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i'd like to go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I'd like to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "how do i add nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "APACHE SERVER", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "add unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I'd like to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "'m starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "how do I need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I'd like to better python shell", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Go development environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "wanna 'd like to video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "about to preparing for deployment thanks", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "set up default-jdk quickly", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "about to mongodb database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I WANT TO LEARN RUST", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I NEED MYSQL FOR MY PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "give me qemu?", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Wanna homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up for ai developement", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Gotta document db", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Configure set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "could you just installed ubuntu, now what for coding asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Set up ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "Time to data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I WANT PODMAN", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "HOPING TO ARCHIVE MY FILES?", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I'd like to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "wanna need gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "need to virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "can you install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "add golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "let's put gdb on my system for me", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "please show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "help me my kid wants to learn coding!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you hoping to need to check resource usage on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want remote access to my servr now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I need to need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "configure want to video production environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "GOTTA WORKING ON AN IOT THING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Prepare for database work please", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "help me could you give me tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Ethical hacking setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "JAVA ANT", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "gotta gzip compress please!", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "could you prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I need gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "PERFORMANCE MONITORING ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "need to give me fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "looking to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "streaming setup for twitch on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Get fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "podcast recording tools on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "python3-venv please", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "my kid wants to learn coding thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "key-value store asap", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I WANT TMUX", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "BETTER CAT", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "let's want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "help me put inkscape on my system", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "javascript packages on my system", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "get openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "wanna running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "CAN YOU INSTALL YARN", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "let's 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm trying to want docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Install gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "tcpdump tool", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "gotta set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "hosting environment setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want to scan for viruses please", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "put ipython3 on my system on my computer", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "set up need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "can you want sqlite3!", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I want to use VirtualBox already", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "could you want a cool system display please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "put jq on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "hoping to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I want to need unrar now", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I need to work with images quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to nstall calibre quickly", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "give me rustc for me", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "ready to ready to hack font", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "about to basic text editing on this machine", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "set up let's system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Can you install fonts-firacode right now", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "ready to homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "gotta add strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "ipython", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "PREPARE SYSTEM FOR PYTHON CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "make please", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "set up nano quickly", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Let's want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'd like to hoping to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "wanna devops engineer setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ready to tcpdump tool on my computer right now", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "PLEASE 'M LEARNING PYTHON PROGRAMMING QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need a web browser on this machine", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "about to ebook management thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "configure want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to configure set up subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "PLEASE GOLANG SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "calibre please", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "ready to ndie game development already", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "what are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "ANTIVIRUS", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I want zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Hoping to connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "'M LEARNING C PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "help me media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "How do i set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "could you gotta pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "GET TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "make my computer ready for frontend work asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I'd like to digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up mysql databse", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "WANNA EBOOK READER", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Gotta document db", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "vagrant vms please", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "PREPARE FOR CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i need to can you install fd-find quickly", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "game development setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Give me valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "wanna need screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I need to please want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "photo editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I WANT TO WANT TO CODE IN PYTHON FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "c/c++ setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "looking to mercurial vcs", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "about to want to program in go asap", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "please need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do I python development environment already for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "time to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "network file sharing?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "photo editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "TIME TO WANT THE SIMPLEST EDITOR FOR ME", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Document reader", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "can you install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I want to open compressed files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "create zip?", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "PUT PODMAN ON MY SYSTEM", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "HOME SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "configure my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "need to better cat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "unzip files on this machine", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "document db", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "can you hoping to go right now", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "LET'S NSTALL REDIS-SERVER", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "GET FFMPEG ON MY SYSTEM", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to 'm trying to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "help me gotta podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "time to want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "can you install nano on my computer", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "install nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "i want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "hoping to better ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "help me apache web servre", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Optimize my machine on my system", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "put jq on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "can you install rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "Virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "about to document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "gotta redis server please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "let's cs homework setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "how do I nstall git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "in-memory database", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "wanna nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "looking to help me give me fail2ban asap", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "how do I fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need to help me samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'm learning Java thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Set up 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get fail2ban on this machine", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "can you nstall zsh thanks", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "HOMEWORK REQUIRES TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "SET UP EVERYTHING FOR FULL STACK QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "help me want unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "live streaming software please", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "JAVA BUILD now", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "help me 'm learning mern stack already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "LET'S SCIENTIFIC DOCUMENT PREPARATION", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "gotta system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Let's want to run virtual machines!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "i want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "configure can you install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "HELP ME PDF VIEWER", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "put redis-server on my system thanks", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I want to prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "set up podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "configure java development kit", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "VIRTUALIZATION", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Set up ipython3 on my system", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I want to compile C programs please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "configure can you install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "give me python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I want to nodejs please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "can you want obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "GAME DEVELOPMENT SETUP ASAP RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "can you need to fetch things from the web for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'm trying to can you want rustc on my system", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "how do I let's set up for ai development on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "SET UP GIT!", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i want gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "time to need to graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "i want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "nodejs runtime please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "get wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "i need ipyhton3 quickly", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "SYSTEM ADMINISTRATION TOOLS THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Help me data analysis setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "put clamav on my system", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Looking to want fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "mysql-server please already", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "configure ready to video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "PDF MANIPULATION", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "java development environment quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "openjdk asap", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "can you install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "PLEASE SET UP IMAGEMAGICK", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "pgp", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "ready to give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "wireshark please", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "can you install sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I NEED VIRTUALBOX FOR ME", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "HG asap", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "hoping to repair package system on my system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "time to set me up for web development already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "KID-FRIENDLY CODING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "let's nstall evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Add clamav now", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "optimize my machine quickly", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "set up wanna network debugging tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I JUST SWITCHED FROM WINDOWS AND WANT TO CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to need to run containers right now thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "please my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Nano please", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "wanna 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "add mongodb on this machine quickly", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "Containerization environment quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "hoping to need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "mariadb-server please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "p7zip-full please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "please security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I'm trying to cmake build", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I'm learning Docker on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to java build already", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "ssh client please", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "ADD FZF", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "need to need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you install subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "please my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "wanna fast grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "looking to secure remote access now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "let's set me up for web development please thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "set up code please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I'd like to get btop thanks", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "PUT FAIL2BAN ON MY SYSTEM", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "NEED TO WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "how do I put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "How do i rust compiler", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "Help me could you want a nice terminal experience right now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "File download tools thanks on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I need to need a database for my app asap", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "BASIC TEXT EDITING now", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "i want to self-host my apps thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "let's please system maintenance!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "source code management?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "could you docker compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "please put virtualbox on my system on this machine", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I'm trying to cmake tool on this machine", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Let's set up for microservices on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Iot development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "gotta time to video editing setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "need to 'd like to can you install libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "PLEASE LIVE STREAMING SOFTWARE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "DOCKER COMPOSE ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "add podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "INSTALL YARN ON MY SYSTEM", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I WANT TO DO PENETRATION TESTING PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "wanna fast grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "File download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up get code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I need zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "looking to python3-pip please please", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "p7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "devops engineer setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "unzip files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "streaming setup for twitch for me", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Add net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "how do I want to code in python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "rust", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "can you graphic design tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "get ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "Install wireshark right now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "CONFIGURE 'M LEARNING GAME DEV ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "rar files quickly", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "configure give me sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "TIME TO NEED OKULAR", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "About to lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "source control on this machine", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "ready to please want to automate server setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "crypto tool on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "redis cache", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "Help me looking to document reader?", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I'm trying to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "could you want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "HELP ME GOTTA WANT TO CHAT WITH MY TEAM", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I want to need nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "MUSIC PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "SET UP 'M LEARNING PYTHON PROGRAMMING!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Exa tool asap", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "set up profiling tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "ssh daemon", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I'd like to 'd like to set up python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Make my computer a server!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "KID-FRIENDLY CODING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "how do I need to run containers now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "HOPING TO MY PROFESSOR WANTS US TO USE LINUX ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "get ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "LOOKING TO HOPING TO NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "need to need to rootless containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "about to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "TERMINAL PRODUCTIVITY TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "SET UP WANT THE LATEST SOFTWARE ON MY COMPUTER!", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I'd like to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "HELP ME GOLANG SETUP please", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "can you install libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "modern vim for me", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "put perl on my system please for me", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "i need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want screen quickly", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "configure need vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "SET UP PYTHON3 QUICKLY", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "audio convert now", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "need to want to host a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "ifconfig", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "add wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "how do I need to audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "svn client thanks", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "ABOUT TO WANT TO EDIT PDFS ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I need git quickly", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "could you let's microcontroller programming", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "set up maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "add postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "server monitoring setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "ready to epub reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "looking to add gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "i want to store data", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "'m making a podcast on my computer please", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "podman please", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "how do I graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to system monitoring tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "About to need to need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "need to subversion please", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i want to mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "set up about to can you install valgrind thanks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "How do i need okular on this machine", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "NETWORK FILE SHARING", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Let's set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "NEED TO DOCKER WITH COMPOSE SETUP QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Can you obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want remote access to my server asap", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "gotta looking to give me docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "i need unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "put vagrant on my system", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "gotta need python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I'd like to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "COULD YOU FREE UP DISK SPACE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "add perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I need to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "SET UP NEED TO CONNECT REMOTELY ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "please want to modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "ready to fail2ban tool for me", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "gnu image", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I want rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "gnu debugger for me", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "HOW DO I SYSTEM MONITOR THANKS", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "set up nstall tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "PLEASE SECURE REMOTE ACCESS", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I NEED TO WORK WITH IMAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Ready to prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "nosql database", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "HELP ME NEED TO CONNECT REMOTELY ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "LOOKING TO PUT FONTS-ROBOTO ON MY SYSTEM", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "set up default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "INSTALL LTRACE", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "put clamav on my system on my system", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "gotta want to use containers on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need to getting ready to go live quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "working on an IoT thing on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'd like to nstall fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "wanna add docker-compose now?", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you please need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I NEED TO SET UP JUPYTER-NOTEBOOK", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "get fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Zip please", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "set up redis right now", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Ready to document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "SSH SERVER SETUP?", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "need to configure nteractive python", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "GIVE ME SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I'm trying to time to need okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "about to nstall jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Samba server already thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "SET ME UP FOR WEB DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to want to hardware project with sensors please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Let's looking to firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "gotta running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "NEED TO DATA ANALYSIS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "hoping to could you 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "add net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "DESKTOP VIRTUALIZATION", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "How do i pip3 now", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "add nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Let's give me php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "install htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I NEED TO WANT TO LEARN RUST", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CONFIGURE EBOOK READER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "get podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "set up for AI development!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "better find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "hoping to golang", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "want to analyze network traffic on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "set up give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "add openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "help me 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "how do i need a file servre", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "HELP ME 'M BUILDING AN APP THAT NEEDS A DATABASE", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "prepare for data science on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "wanna bat tool", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "put g++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "fish please", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "running my own services!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "i'm learning java thanks thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Productivity software asap asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "get neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "ready to want apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "how do I trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "Get zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I NEED TO RUN CONTAINERS on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to use containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "about to need to wget please on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Gotta want ltrace on my computer", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I want to virus scanning tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I NEED TO NEED A FILE SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I WANT MERCURIAL", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "how do I track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "install fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "give me nmap?", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Let's security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "could you video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "i need to want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "document db", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "SET UP GNUPG", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "want to do machine learning", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "my professor wants us to use linux thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "looking to prepare for database work please", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "c development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "want to find bugs in my code quickly!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "prepare system for pyton coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "help me live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "COULD YOU HOW DO I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "looking to set up mysql datbase", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "configure set up htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to add mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "can you install p7zip-full now", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "wanna want to run virtual machines!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "set up redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "help me hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "help me hoping to coding environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "wanna add docker-compose now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Set up ready to put lua5.4 on my system", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "set up wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Want to run virtual machines on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "help me can you install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "about to want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "upgrade all packages please for me", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "install apache2 thanks", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "put iproute2 on my system!", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I'm starting a data science project?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "need to put fonts-roboto on my system", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "HOW DO I CS HOMEWORK SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "let's golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "i'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "SET UP RUSTC QUICKLY", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "run Windows on Linux right now now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "NEED TO 'M TRYING TO VECTOR GRAPHICS", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you install gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "CAN YOU DOCKER COMPOSE ENVIRONMENT!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me set up nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "evince please", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i want to wanna neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "get redis-server?", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "notebooks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "could you network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Bring my system up to date on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "GOTTA 'M STARTING TO PROGRAM", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i want to code in pyton on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "my professor wants us to use Linux right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Image manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "my friend said I should try Linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I'm trying to rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO STORE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Wanna music production environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "configure put postgresql on my system", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I want to code in Java on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "gotta full stack development setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "can you give me vagrant!", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "i want to see system info please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need to need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "get mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "could you ethical hacking setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I need to need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'M TRYING TO WORKING ON AN IOT THING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "SET UP TERMINAL SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up let's want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "MAKE MY COMPUTER READY FOR FRONTEND WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "configure nstall cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "how do I wanna ssh servr setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "hoping to time to security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "add vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "CAN YOU CONFIGURE PREPARING FOR DEPLOYMENT", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "put ffmpeg on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "NEOVIM EDITOR", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "i have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Prepare for coding for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "running my own services for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Help me managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "please want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "word processing and spreadsheets already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "configure pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I want to want to be a full stack developer quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "get golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "DEVOPS ENGINEER SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "help me download with curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "packet capture", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "gdb debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "educational programming setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "educational programming setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I need to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I'd like to add fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "set up postgresql for me", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I NEED APACHE2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "gotta wanna parse json?", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Wanna music production environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "configure can you want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "configure podcast recording tools!", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "time to desktop virtualization?", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "set up office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "please add libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'd like to need neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Set up redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Give me cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "video convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "help me podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "wanna set up docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you install screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "hoping to want to edit images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "i want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "server automation environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "wanna add code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "multi-container right now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "i need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "give me g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I WANT REMOTE ACCESS TO MY SERVR NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "LOOKING TO NEED IN-MEMORY CACHING", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "gotta hoping to pdf manipulation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I'm trying to my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "SET UP FFMPEG", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "C DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Gnu image right now", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "set up redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "let's want to do penetration testing asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "let's give me jupyter-notebook on my system", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Could you ripgrep search now for me", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "COULD YOU TIME TO DATA BACKUP ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "hoping to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "TEACHING PROGRAMMING TO BEGINNERS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "document db", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "GET DOCKER.IO ASAP", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "help me 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "nodejs runtime please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "install golang-go quickly", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "can you protect my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "looking to could you my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "SET UP GOLANG-GO", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "IMAGE EDITOR", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "vim please quickly", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "wanna graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I want nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "OBS setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "need to virtualbox setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "ABOUT TO NEED OPENSSH-SERVR", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "set up inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "could you want htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's set up need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "put yarn on my system asap", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "i'm trying to put nginx on my system", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "gotta time to latex setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Java setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "wanna 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "SSH server setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "configure clang compiler asap", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "install neovim?", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Put netcat on my system right now", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "need to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "i'm trying to want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "add bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "gotta looking to bat please", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "Set up zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I need to compile c now", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "COULD YOU POWER USER TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "need to need docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "About to give me podman now", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need to play video files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "HOPING TO GO RIGHT NOW ON MY SYSTEM", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "how do I office suite on my system", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "READY TO MULTIMEDIA PLAYBACK", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you 'm starting a data science project now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want to use containers thanks?", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm trying to obs setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "could you my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Please open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "let's samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "let's nano please on my system now", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "wanna want to chat with my team already", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I WANT TO READ EBOOKS ON THIS MACHINE PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "get docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "set up for data work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "add curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "rar files", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "i'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I'd like to set up python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "How do i hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "gotta put sqlite3 on my system", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "redis", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "add git?", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I WANT TO CODE IN PYTHON", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'm trying to give me fonts-hack already", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "xz compress!", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "ready to go development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to add virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I want to time to want to record audio quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "about to trace syscalls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "add fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "let's llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "configure ot development environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "NEED TO GNU EMACS", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "can you install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "help me prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "help me screen sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "set up code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "give me nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "help me valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "LET'S NOTEBOOKS", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I need git quickly for me", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "can you install gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "could you xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "put make on my system", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "'m making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "ready to multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "GET VIRTUALBOX", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "hoping to compile code on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "how do I 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "configure system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "production server setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "configure give me gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "get ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "give me nano?", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "document reader", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "WANNA REMOTE LOGIN CAPABILITY", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "wanna add screen thanks", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I NEED FONTS-HACK", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "production server setup quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "javascript packages now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I'm trying to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Set up ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do I prepare for containerized development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "pyton3-venv please", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "I WANT TO EDIT TEXT FILES", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "need to game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "MICROCONTROLLER PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "please new to ubuntu, want to start programming asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "TIME TO NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "wanna 'm starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "about to show off my terminal", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "help me personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ready to need to work with images right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "add fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "deep learning setup asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "gnu make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "ready to wanna prepare for coding", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "wanna want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "unzip files", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "ready to nmap please", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "hoping to game engine setup quickly on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "i need to ebook reader setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'm deploying to production already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Time to ssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Help me media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "configure add vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I want to want to put gradle on my system", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "HOW DO I C DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "put php on my system", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "could you home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "qemu emulator", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "gotta need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to can you install jq thanks", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I'm doing a data project right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "wanna music production environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "looking to hoping to 'm building an app that needs a database", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "need to want remote access to my server on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "PLEASE CAN YOU MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "looking to pythn3-venv please", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "can you help me golang setup", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "wanna can you install tree asap", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "please get clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "about to time to samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "ready to get gcc for me", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "put tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "hoping to looking to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ADD YARN", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "Memory leaks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "put gzip on my system", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "looking to extract zip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "hoping to set up multimedia editing tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "i'm learning docker please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "FOLDER STRUCTURE for me", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "configure let's give me imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "hoping to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "how do I need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "configure need to fetch things from the web for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "SET UP NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I'M TRYING TO ABOUT TO DESKTOP VIRTUALIZATION", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "ABOUT TO SET UP REDIS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "netstat now", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "help me ethical hacking setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Subversion vcs", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "HOPING TO PYTHON3-PIP PLEASE FOR ME", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Gotta want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I'd like to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "looking to fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I want neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "okular please", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "About to set up vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Set up better terminal setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I need to system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Configure how do i pip3", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "give me yarn?", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "get git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Json tool", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "i want to program arduino thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "please tls", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "can you install clamav asap", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "install python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "show folders", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I'm trying to want to edit pdfs for me", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "need to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Let's want to run virtual machines?", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "MYSQL FOR ME", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "help me want g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "I'M LEARNING DOCKER ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "please help me vm software", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "get zip?", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "set up want to read ebooks quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Fuzzy search", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "scientific document preparation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "looking to could you set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "ADD ANT", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "LET'S BTOP MONITOR", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "file download tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "put screen on my system already", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'd like to want to code in java for me", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "configure need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "looking to team communication tool", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "set up give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "time to please production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "give me obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "i'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I WANT TO BROWSE THE INTERNET", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I want to orchestrate containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "databse environment now?", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "kid-friendly coding environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "could you need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I want to edit PDFs on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "set up want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "about to need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need make on my computer", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "hoping to can you instll vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "can you need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "java build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I need neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "GOTTA GETTING READY TO GO LIVE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do I set up valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "PODCAST RECORDING TOOLS!", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "let's make tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "HELP ME TERMINAL SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "give me audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "can you install qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "kid-friendly coding environment asap", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up 'm learning python programming asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i need ipython3 quickly", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "could you can you install g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "ready to please open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "wanna want to record audio now", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I want to alternative to microsoft office right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "FILE DOWNLOAD TOOLS right now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "nano editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "how do I managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "please want a nice terminal experience", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Time to want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Let's gotta 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to can you obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i'd like to put docker-compose on my system already", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "about to have a raspberry pi project!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm trying to nstall git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "set up docker on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i'd like to getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Let's want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "SOURCE CODE MANAGEMENT?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "rar files", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "prepare for coding for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "GOTTA SET UP FOR AI DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I need openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I'm trying to lua", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "set up redis please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "install strace for me", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "how do I virtualization setup", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "REDIS SERVER PLEASE NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "collaborate on code for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "CAN YOU INSTALL APACHE2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "CAN YOU INSTALL NANO quickly", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "help me wanna set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "show off my terminal on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "can you prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "hoping to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up evince for me", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "wanna want to find bugs in my code quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "i need strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "system calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "hoping to obs", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I'd like to need ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "configure video convert on this machine quickly", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you set up docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "add fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "install gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "i need pyton3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Configure set up nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "MY PROFESSOR WANTS US TO USE LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need to play video files", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Looking to team communication tool", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I want to self-host my apps now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "put net-tools on my system", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "HELP ME WANT UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "could you kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "get netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "ruby please", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "i just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT TO SET UP CLANG", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "TIME TO MY SYSTEM IS RUNNING SLOW!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "let's emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "Gotta web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "looking to prepare for ml work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I WANT TO WRITE PAPERS PLEASE now", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "instll apache2 on my computer", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "i'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "set up prepare for ml work right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "help me want to watch videos on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please jdk installation now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "i'm trying to python on this machine", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "video production environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "gotta friendly shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "archive my files right now", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "set up neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I want to share files on my network?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "give me g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "let's about to need rust compiler quickly!", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'D LIKE TO JAVA ANT", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "time to have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "put ipython3 on my system please", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "wanna graphical code editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "I want to compile C programs?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need nano on my computer", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "let's scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "time to docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "get golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "put ufw on my system", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "GIVE ME NETCAT asap", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "CAN YOU OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get inkscape for me", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "nginx please", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "set up docker alternative", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "ready to want to download files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "PLEASE SCIENTIFIC DOCUMENT PREPARATION", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "WANNA GET WGET", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "how do I jdk installation already", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I WANT TO USE VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Install tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want to self-host my apps please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need to need to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I want to code in Python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "i want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "wanna let's docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "GOTTA HOMEWORK REQUIRES TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Zip files", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "i want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "gotta help me put inkscape on my system", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "Want to run virtual machines on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "put p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Let's 7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "build tool", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "looking to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "could you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up basic security setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "please looking to firewall on my system", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "TIME TO 'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "can you install unzip thanks", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I'd like to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I want to hoping to want to download files!", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "looking to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "NEOFETCH PLEASE", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "give me redis-server right now", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "CONTAINERIZATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "looking to security hardening!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "hoping to run windows on linux asap on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "want to analyze network traffic on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want jq?", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I NEED TO WANT TO SEE SYSTEM INFO", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "PACKET ANALYSIS SETUP RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "version control setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "HOW DO I ADD PHP", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "resource monitor", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "install obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I'd like to redis cache", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I'm trying to time to desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "ripgrep search", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "set up docker on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'd like to packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "gotta need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "set up need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "let's just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do I fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "wanna can you install docker-compose thanks", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "HELP ME PYTHON", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "key-value store", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "HOSTING ENVIRONMENT SETUP FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "educational programming setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "get ripgrep on my computer", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "let's get podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "set up give me gnupg on my computer", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "please zip please", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "need to just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure nstall vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "set up set up emacs thanks", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "put postgresql on my system", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "gotta want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to screenfetch please", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "how do i json tool", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Could you obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "CAN YOU WANT TO STORE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "ABOUT TO DOWNLOAD MANAGER!", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "could you mysql", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "samba server now", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Set up mysql database please please", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Maven build right now", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I'm trying to coding environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "DOCKER ENGINE", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "can you install cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "help me want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "looking to teaching programming to beginners now", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "about to want openssh-server already", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I want to need to debug my programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I need to want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "LET'S GAME DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I need ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I want valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "NEED TO SPLIT TERMINAL", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "set up for data work quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "can you install python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "ready to give me git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "SET UP PYTHON ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "install gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "CONFIGURE NEED TO 'M STARTING TO PROGRAM", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "BASIC DEVELOPMENT SETUP now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "get vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you want subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "time to need jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "gotta nstall fish quickly?", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "CONFIGURE REMOTE LOGIN CAPABILITY", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Add podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "hoping to set up a web server please", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "vlc player quickly", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "configure configure want to do penetration testing on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "ip command", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "could you can you install perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "wanna want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "could you give me openssl already", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Vm environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "i want fish now", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "what are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I WANT TO DOCKER SETUP PLEASE RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Team communication tool", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "ready to give me zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "configure want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want to network tools on this machine", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I need to could you antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I want to edit pdfs quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "i want python3-venv already", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "COULD YOU NEED OFFICE SOFTWARE ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "wanna let's want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to want fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "spreadsheet", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "help me need to write research papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I WANT TO NSTALL DOCKER-COMPOSE", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "gotta upgrade all packages on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "ready to easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I NEED NGINX", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "can you install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "c++ compiler asap", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "openssh-server please", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "ready to ready to new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to configure want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "security hardening?", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "looking to about to optimize my machine thanks", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "what are my computer specs thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "resource monitor quickly", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "Help me want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "can you give me clamav already", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "wanna need obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "set up my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "CAN YOU SQLITE DATABASE FOR ME thanks", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "TIME TO LATEX SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "about to want to program in go asap", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "i want to gotta need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "add fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "WANNA LOOKING TO WANT TO MONITOR MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "PLEASE VIDEO PLAYER", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "add openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "something like VS Code quickly", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "help me add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "gz files thanks", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I'd like to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "SET UP PUT VIM ON MY SYSTEM", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "llvm compiler!", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "c compiler", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "hoping to need vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "how do I ebook reader setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "configure let's set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up mariadb-servr", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "wget tool", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Configure nstall fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need to set up docker on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "EPUB READER NOW", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "apache server on my computer on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "about to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "give me fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "fish please on this machine", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "i'm building an app that needs a databas", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "sqlite", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "add openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "gotta ltrace please", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I'D LIKE TO JAVA DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "COULD YOU SERVER MONITORING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "could you 'm trying to put nginx on my system", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "can you zip files up right now", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "how do I python development environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "java developmnt environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "ssh server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "need to video convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me unzip already", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "can you install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "ADD CALIBRE", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "need to update everything on my system please asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Easy text editor asap right now", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "system administration tools right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "UPDATE EVERYTHING ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "please need git?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Set up want to secure my server please", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "ready to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "configure ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I want to need to upgrade all packages", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "TIME TO NEED TO 'M LEARNING C PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "I NEED MYSQL FOR MY PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "let's set up bat right now", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "configure wanna security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "give me lua5.4!", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I NEED TCPDUMP", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "Set up for microservices for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "get neovim on this machine", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "Get docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "JUST INSTALLED UBUNTU, NOW WHAT FOR CODING?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "time to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "hoping to need to serve web pages?", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "help me nstall vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I want to get fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I need to train neural networks on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "curl tool", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "configuration management tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I WANT TO READ EBOOKS", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "COULD YOU WHAT ARE MY COMPUTER SPECS FOR ME", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I'm trying to nstall emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "MAVEN BUILD RIGHT NOW ON MY COMPUTER", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Clean up my computer on my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "FANCY HTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "docker-compose please for me", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "show specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "personal cloud setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "set up full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "configure about to go development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "add python3 for me", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I JUST SWITCHED FROM WINDOWS AND WANT TO CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I'm trying to production server setup!", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "screen fetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I want to edit images already", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "BACKUP SOLUTION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "LET'S NEED RUSTC ON MY COMPUTER", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "Photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "get bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "need to configure set up for ai development now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "can you hg", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "Game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "SET UP MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "configure looking to video playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "nstall ipython3 please", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "how do i want ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "VIDEO PLAYBACK", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "SET UP FOR AI DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "looking to give me maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "ready to mariadb", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I NEED TO SSL", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "apache web server right now", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "how do I preparing for deployment already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "put vim on my system", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "help me add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you can you instll wireshark?", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "i want to set up zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Can you install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I need to check resource usage", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "gotta need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "apache server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "ready to want to use virtualbox right now", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "help me need to podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I'm trying to want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "java gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "let's set up server monitoring setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "can you mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want to do machine learning asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Configure source code management", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "give me fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I'm trying to streaming setup for twitch for me", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "set up virtualization setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "about to get nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "give me tcpdump for me", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "hoping to can you want rustc thanks", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "could you fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I need fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "configure academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Please want to use containers on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "COULD YOU SET UP SQLITE DATABASE", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "give me apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I need to want to record audio on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "can you install gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I WANT TO MAKE GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Fix installation errors right now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need to want to backup my files on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ready to put btop on my system", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "Htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to want podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "GIVE ME EXA", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "wanna could you want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "give me virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I'd like to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "HTOP PLEASE", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I NEED TO GIVE ME FISH", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "give me openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I want to watch videos quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "REMOTE ACCESS", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "about to looking to nstall nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'd like to please easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want to how do i developer tools please on my system please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to put openssh-client on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "set up make my computer ready for python on this machine asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Can you help me want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Alternative to microsoft office asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "protect my machine thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "please network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "put pythn3-venv on my system", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "hoping to ltrace please", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "LET'S ABOUT TO MY APT IS BROKEN", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "hoping to can you want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "time to can you install jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "add virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "GET MYSQL-SERVER", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "give me php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "Packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "install fish quickly", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "could you ethical hacking setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I WANT TO TIME TO SECURITY HARDENING", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "wanna nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "set up ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "PLEASE BAT TOOL", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "add docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "Fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "database environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Node.js please", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "dev environments please", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "set up gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "need to put cmake on my system for me", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "wanna mysql server installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "hoping to java development environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I'm trying to can you install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "homework requires terminal please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "How do i set up mysql database", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I'd like to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "let's just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'M TRYING TO LOOKING TO 'M STARTING A DATA SCIENCE PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up configure pdf tools setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "configure clang compiler asap", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I need netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "set up Docker on my machine!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do i put maven on my system please", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I'M LEARNING GO LANGUAGE", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "LET'S ADD TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I'm trying to help me game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "streaming setup for twitch please?", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Ready to can you install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "i need to work with datasets", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "about to need to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "looking to give me docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I need to add cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "HELP ME WANT TO CODE IN PYTHON", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Security hardening?", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'm worried about hackers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "getting ready to go live!", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do I please need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "wanna need iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "set up rustc quickly", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "please need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "ready to my professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "python", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "install cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "please want to build websites", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "CONFIGURE SYSTEM INFORMATION", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "i'd like to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "openssl please", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "OBS SETUP thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "teaching programming to beginners asap", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "my friend said I should try Linux development now", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Maven build", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "add ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "CLAMAV SCANNER", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "full stack developement setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "wanna need to gcc compiler right now", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "WANNA EMBEDDED DEVELOPMENT SETUP RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I HAVE A RASPBERRY PI PROJECT THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "configure can you need to create a website already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "could you 'm trying to have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "docker-compose please", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "please c compiler already", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "add postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Port scanner quickly!", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "CONFIGURE 'M TRYING TO CODING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up for ai development please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "wanna caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I'd like to nstall openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "ready to qemu emulator thanks", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'm trying to set up xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "get python3-pip asap", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "rust language for me thanks", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "need to configure want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "prepare for database work please", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "p7zip-full please", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I'd like to want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "hoping to web development environment please now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "ABOUT TO VAGRANT PLEASE ON MY COMPUTER", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "gotta netcat please", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "ADD UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "PUT MERCURIAL ON MY SYSTEM ON MY SYSTEM", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "hoping to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "audio convert", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "install openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "GO DEVELOPMENT ENVIRONMENT now", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "PLEASE NKSCAPE PLEASE", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "could you need a database for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "wireshark tool asap", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "configure antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "about to desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "add nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Crypto tool on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "My professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Docker compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Managing multiple servers quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I need git on this machine", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "hoping to nstall gzip?", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "let's cross-platform make", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "gpg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "HOW DO I SYSTEM MONITOR", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "archive my files?", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "DOCKER SETUP PLEASE on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm trying to set up gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "READY TO ADD NEOVIM", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "add gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I'm trying to let's ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "postgres db", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "zsh shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "gotta unzip files on this machine", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "About to download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "fira code on my computer", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "wanna prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "CAN YOU INSTALL NANO", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "could you let's mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "CONFIGURE WANT TO EDIT PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ready to put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Get python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "My system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "COULD YOU CLEAN UP MY COMPUTER!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "ebook reader setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "home server setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "could you better bash", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "REDIS SERVER PLEASE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Hoping to set up have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "about to add python3-pip on this machine", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "configure multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you need to test network security thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "broadcast", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want code!", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "CAN YOU INSTALL OPENSSH-CLIENT ON MY SYSTEM", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "Network file sharing asap", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "wanna set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "wanna get nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I NEED TO DOCKER SETUP PLEASE ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "VIRTUALIZATION SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "i want npm for me", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "i want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Get fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Could you redis cache", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "please want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up set up for data work on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I need multi-container apps for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "I need to run containers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "ready to want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "put python3-pip on my system", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I'm trying to clean up my computer asap", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Modern shell please", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "slack alternative on my computer", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "CMAKE PLEASE RIGHT NOW", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "Get sqlite3 quickly", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "install xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "gotta give me postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need Git for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Set up can you install unzip thanks", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "can you install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "please need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "working on an iot thing please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "nginx servre asap", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "READY TO CAN YOU INSTALL FD-FIND", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "HELP ME COMPOSE?", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "basic security setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "give me gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "time to need to work with datasets on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "help me rust language for me", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "SET UP RUBY", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "java setup please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Let's vagrant vms asap", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Ready to give me wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "configure get mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I need to get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "let's put fish on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "GET JUPYTER-NOTEBOOK", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "need to want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "can you nstall g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "wanna power user terminal right now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want clamav for me", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "wanna put imagemagick on my system", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I have epub files to read on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "how do I want nano?", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "GIVE ME LUA5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Configure class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i'm starting a data science project already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "full stack developement setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I want fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "Hoping to need to serve web pages thanks!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "wanna prepare for database work thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "calibre please", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "COULD YOU GOTTA FRESH INSTALL, NEED DEV TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "rar files", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "i'm trying to better ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "gotta make my computer ready for pyhton", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "please show off my terminal for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need to ripgrep search quickly", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "READY TO BETTER BASH!", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "gotta give me fonts-hack on this machine", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "gotta 'm trying to can you install neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please rust development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "WANNA ACADEMIC WRITING ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Put exa on my system thanks right now", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "READY TO NSTALL EMACS ALREADY", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "i want to get ffmpeg on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "indie game devlopment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Set up ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I want to read ebooks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "about to ebook manager now", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'd like to 'd like to digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Ready to 'm learning java right now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "WORD PROCESSING AND SPREADSHEETS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to self-host my apps thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "about to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "put clamav on my system", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "fonts-hack please for me", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "help me hoping to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "VIRTUALBOX SETUP now", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "can you c++ compiler asap", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "my apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "http client", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "docker!", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "let's want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "let's put perl on my system please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "gotta samba sever", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "ruby please", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "PLEASE PUT PYTHON3-PIP ON MY SYSTEM", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "how do I web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "mariadb-server please", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "need to looking to libreoffice please on my system", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'd like to need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to can you embedded development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "about to nstall rustc already", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "set up zsh on this machine", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Ripgrep search", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "I want screen quickly on this machine", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I need jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "can you install ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "could you set up mysql database quickly please", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "i need vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "can you install podman now", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "install openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "SET UP CONFIGURATION MANAGEMENT TOOLS ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "hoping to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i want to server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "hoping to need to connect remotely thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "looking to about to want to run a website locally on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "help me sqlite3 please please", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "i need to test different os already", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Gotta help me nfrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "set up redis-sever asap", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "add docker.io on this machine", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "python please", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "How do i set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "get wget thanks", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "please educational programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "i need to run containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need to add htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "put net-tools on my system thanks", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "desktop virtualization asap", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "set up openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "'m making a podcast on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Graphical code editor please", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Can you install tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I want gnupg on this machine", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "install fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "about to need ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "install lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "please looking to need rust compiler for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i want to stream games!", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i'd like to set up for ai development on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Looking to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "add postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "nano please on my system", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "install fish quickly", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "class assignment needs shell quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I NEED TO TEST DIFFERENT OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "configure nstall net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to backup tools on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "Nmap please", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "OPEN WEBSITES", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "I'm learning java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "TIME TO DATA BACKUP ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "WANNA WANNA 'M MAKING A PODCAST RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "put bat on my system", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "Can you 'm starting to learn web dev", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "GOTTA SET UP BTOP", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I NEED TO GIVE ME POSTGRESQL", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Hoping to configure office suite", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "coding font please", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "ready to collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "get zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I want openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "rust language for me", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "nmap please!", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "i want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "LOOKING TO GIVE ME MERCURIAL", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I WANT TO TRACK MY CODE CHANGES ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "need to need to test different os on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "wanna ssh sever setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "COULD YOU CAN YOU INSTALL TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I'd like to can you install libreoffice", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ready to please new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gpg right now", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "NEED TO CAN YOU INSTALL MAVEN FOR ME", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "wanna need unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "get mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I'm trying to postgresql database quickly", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "SET UP SET UP WIRESHARK ON THIS MACHINE", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "give me strace!", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "set up Docker on my machine quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you install nmap already", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Add nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "gotta ltrace please on my computer", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "give me fonts-hack on my system", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Set up game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to test different OS", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I want rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "need to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "time to wanna homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'd like to give me fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Nmap tool", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "please new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure set up get unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "ADD GIT QUICKLY", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Run vms with virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Zip files up", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "install rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "ltrace tool", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "i'm trying to nstall p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I want to lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I want gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I want to strace please", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "i'm starting to learn web dev quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "need to what are my computer specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "time to give me openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "virtualization", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "get yarn on my computer", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "give me valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I'd like to want emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "please how do i c development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "need to fetch things from the web for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Put clamav on my system", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "add htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "need to want to run a website locally on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "NETWORK SCANNER ASAP", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "System monitoring tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "need to postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "new to ubuntu, want to start programming quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "give me mercurial asap", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "can you install docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "get strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "put unrar on my system", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "wireshark please", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "GET HTOP", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to network debugging tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Hoping to need mysql for my project for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "help me want to want to read ebooks on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "pdf viewer thanks!", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I want to simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I WANT TO WRITE PAPERS ON MY SYSTEM PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "configure terminal editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "ready to ready to need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "looking to add ffmpeg for me", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do i 'd like to package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "help me set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "embedded developement setup", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "npm please", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I'M LEARNING MERN STACK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "hoping to 'm starting a youtube channel", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "can you golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "Ssh server quickly", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "could you can you install fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "looking to server monitoring setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I WANT TO WATCH VIDEOS QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "memory debugger on my computer", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "i'd like to nstall ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "NEED TO HOMEWORK REQUIRES TERMINAL?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i want ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "please production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "install openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I need Ansible for automation thanks now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "prepare for coding please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want to help me desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "malware protection", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "can you packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "looking to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up a web server!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "WGET PLEASE PLEASE", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "time to audio production setup", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "please gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "hoping to want bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "Please have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "HOPING TO NEED TO CHECK RESOURCE USAGE ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I want to watch videos now", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "GZ FILES?", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "nginx sever", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "need to configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "gotta remote login capability", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "put strace on my system", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "New to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install ruby!", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "I need a database for my app asap", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "could you hoping to game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "help me about to want to analyze network traffic", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "please jdk installation now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "How do i unzip files", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "BZIP TOOL quickly", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "I'm trying to packet analysis setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "help me class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up hoping to need to check for malware!", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "set up yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "looking to java ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "Ready to new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "network security analysis on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I'd like to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "help me optimize my machine for me", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "can you nstall clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "install mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I want to get neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "SET UP A DATABASE SERVER", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "just installed Ubuntu, now what for coding on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "WANNA PREPARE MY SYSTEM FOR WEB PROJECTS ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "time to want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "how do I track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "SET UP PYTHON ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "about to need to file sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need zsh right now", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "set up need docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "looking to please set me up for web development on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "put htop on my system", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Modern network", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "time to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "put valgrind on my system", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "time to can you prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I need to give me p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Redis server please quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Wanna ndie game devlopment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "how do I give me fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "RUNNING MY OWN SERVICES NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "LOOKING TO MAGE MANIPULATION SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "help me could you power user terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "add yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "put screenfetch on my system", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "Embedded development setup on this machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "please need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "VIRUS SCANNING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "SOMETHING LIKE VS CODE!", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "DOCKER", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "ready to can you install maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "how do I notebooks right now", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "add python3!", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "ethical hacking setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "about to configure get clang now!", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES ALREADY", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "get cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "help me hoping to office suite setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "STREAMING SETUP FOR TWITCH FOR ME!", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Set up python on my machine on this machine?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "get gdb on my system", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "HOW DO I PDF TOOLS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "set up better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "WANNA UNZIP FILES ON THIS MACHINE?", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "please yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "I need npm right now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "about to could you desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "configure java setup please asap", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "add unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "can you set up gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "INSTALL ZSH!", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "set up vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "PRODUCTIVITY SOFTWARE on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "need to docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "virus scanning tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "streaming setup for twitch on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "word processor asap", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "PHP PLEASE", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "time to orchestration for me", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "configure data analysis setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ready to want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "set up about to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "looking to notebooks thanks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "help me pythn", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "I'd like to nstall ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Terminal system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "image manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "wanna want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "secure remote access asap asap", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I need to serve web pages thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "i want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "can you can you hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "wanna system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'm a sysadmin already", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "LOOKING TO 'M TRYING TO RUN VMS WITH VIRTUALBOX ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Can you just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Docker compose environment quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "please set up everything for full stack for me!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "put apache2 on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "help me 'm building an app that needs a database", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I need to want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I WANT FAST CACHING FOR MY APP", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I want to use containers on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "web downloading setup for me now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "could you want to compress files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "configure gotta preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "time to nstall ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "i need emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I need to get zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "wanna add gradle quickly", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "Set up docker on my machine right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I WANT TO 'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I need to troubleshoot network issues right now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "add perl right now", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I want to put curl on my system asap", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I want redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I WANT TO DO MACHINE LEARNING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "CACHING LAYER FOR MY APPLICATION", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "time to orchestration for me", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "GETTING READY TO GO LIVE?", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "i need code on my computer", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "academic writing environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I need to test network security", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Put fish on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "set up redis cache", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "need a file server already", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "time to add bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I need jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "PACKET ANALYSIS SETUP ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I need to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "need to set up bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "wanna looking to legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "Photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "Need okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "could you get maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "Gnu privacy guard", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "gotta java setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "give me fonts-firacode on this machine", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Ready to please docker setup please please please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "please put virtualbox on my system", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I need to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "set up git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "i'd like to want to monitor my system already", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "let's add tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I need fail2ban quickly", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "Apache web server", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "homework requires terminal please", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "add g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "Ready to cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "i need to nstall gzip now", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Get netcat?", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "preparing for deployment already please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Could you get mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "let's give me postgresql quickly", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "could you configure want to track my code changes", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "help me set up for data work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "need to my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Need to could you file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "gotta looking to want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "FRESH INSTALL, NEED DEV TOOLS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "get gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I need to basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "GOTTA NSTALL NEOVIM", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "about to 'm starting a youtube channel already", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "i'd like to 'm trying to ethical hacking setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "HELP ME SCAN NETWORK ALREADY", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "let's want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "configure need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "I want mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "Security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "TIME TO NEED OFFICE SOFTWARE asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "put wget on my system", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I want openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "can you packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "can you install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I need maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "wanna class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Configure bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "wanna let's scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "protect my machine now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I NEED TO WORK WITH PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "put subversion on my system?", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "configure want to track my code changes now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "exa please", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I need rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "Svn client", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "please add ltrace thanks", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "jupyter-notebook please", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I need python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "gotta set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "configure help me managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "nstall neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "prepare for coding please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to nstall gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I need to get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "wanna live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "HELP ME NSTALL YARN", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "gotta nginx server already", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "could you obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "i have epub files to read asap asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "looking to tmux please", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I want to modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "I want to automate server setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want to archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "need to add bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "ruby interpreter on this machine", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "streaming setup for twitch on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I'd like to can you install mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "looking to antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Could you can you install vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Looking to help me need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "javascript runtime!", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "add ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "i need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "put openssl on my system", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "I'm trying to caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need to let's system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "can you want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "configure easy text editor?", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "PODCAST RECORDING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I need to can you install perl now", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "ready to set up git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "php please now", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Give me ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "svg editor on my computer", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "hoping to can you prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ready to track code changes", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Set up openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Managing multiple servers already", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "COULD YOU VAGRANT VMS PLEASE", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "DOCKER", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "install npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I'm trying to network scanner asap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "postgresql database", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "oh my zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "could you screen fetch right now", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "postgresql database?", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Server automation environment now right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "about to want qemu right now", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I'D LIKE TO FANCY HTOP!", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "new to Ubuntu, want to start programming for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to help me sqlite3 please", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I'm trying to podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "add ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "need nginx thanks", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I'd like to ethical hacking setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "configure give me default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "looking to nstall evince on my system", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "let's rust compiler now", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "SET UP KVM ASAP", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "PLEASE LIVE STREAMING SOFTWARE ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to add net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'd like to please live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gotta can you install perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I have epub files to read on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "set up prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "i'm starting to program!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'D LIKE TO SET UP FOR AI DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "get fonts-firacode now", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "live streaming software on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "need to yarn please", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "i need net-tools!", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "time to can you 'm learning pyton programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "please vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "could you looking to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "looking to need a file server on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "could you want libreoffice!", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "please need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "give me nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Set up python on my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "wanna devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Put mongodb on my system", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "install fzf quickly", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "get ripgrep asap", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "configure want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do I set up perl right now", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "GNU DEBUGGER ASAP", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I want python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "give me tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "about to need inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "Pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "can you can you install jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "could you need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "can you nstall sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "i need a file server on my computer please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "add ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "i want nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Set me up for web developement", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Time to want the latest software now now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "prepare for data science?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I need to run containers now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "need to audacity please", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I'm trying to give me tree on my system", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "about to samba server thanks for me", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "make my computer ready for frontend work quickly!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "help me running my own services now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "nstall ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "i need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "php please", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "Give me default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "need to 'm learning java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "about to system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "homework requires terminal for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "put gzip on my system", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "SET UP NEED MULTI-CONTAINER APPS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Secure remote access asap", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "looking to containerization environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "ready to please want to record audio on my system quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "can you curl tool", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "let's system calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ready to need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "please zsh please", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "show folders!", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I want postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need to fetch things from the web on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "gotta vm software already", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "let's fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "clamav please", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I'm learning c programming", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "add screen quickly", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "give me calibre on my system right now", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I'm trying to need calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "help me need to prepare for full stack work already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "bring my system up to date on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "could you set up a web server now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "help me clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "how do I encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "set up Python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'm trying to collaborate on code!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Set up redis-server!", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "please 'd like to need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "ready to need neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "PREPARE FOR CONTAINERIZED DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i need to basic development setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "new to ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta looking to gnu screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to need vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I want vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "coding environment?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to give me docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "ready to set up qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "LET'S NEED TO SERVE WEB PAGES", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "gotta want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "python3-venv please", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "let's gotta set up mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "need to managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "configure live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "put php on my system thanks", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "need to add nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "json processor", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "PUT WIRESHARK ON MY SYSTEM", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "netcat please", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "easy text editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "could you add virtualbox!", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I'm trying to postgresql database", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "can you let's set up for data work?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ebook reader setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "how do i gzip tool", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "academic writing environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "add qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "LOOKING TO JUST INSTALLED UBUNTU, NOW WHAT FOR CODING?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "NEED TO CLASS ASSIGNMENT NEEDS SHELL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Need to get wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Get docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "process monitor", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I want to getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to get ufw thanks on this machine", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "I want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Help me want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "i want iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you configure want to make games", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "GETTING READY TO GO LIVE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "need to need to work with datasets for me on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "set up everything for full stack quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "looking to system maintenance right now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "please wanna clang compiler?", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "need to can you install gcc now", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "help me want to program in go", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "just installed Ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "please video player", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "my friend said I should try Linux development!", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta have a raspberry pi project?", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i need calibre on this machine", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "HOPING TO DEVOPS ENGINEER SETUP ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "set up vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "can you install git right now", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "libre office", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I need postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Could you want to do penetration testing already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I'd like to want to download files quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "ready to want to store data quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want a nice terminal experience on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I need to managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "time to performance monitoring please", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "docker-compose please", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I need qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "help me need fish quickly", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to want fast caching for my app?", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "hoping to need iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Gotta want to host a website for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Need to need to sync files on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "wanna prepare mysql environment", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "LET'S 'M STARTING TO PROGRAM", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "configure cs homework setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "PUT GNUPG ON MY SYSTEM", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "add btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "OBS setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "SET UP EDUCATIONAL PROGRAMMING SETUP NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "hoping to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "could you help me want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I'D LIKE TO C DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "Configure have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "put calibre on my system", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "gotta want to stream games on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ABOUT TO HOMEWORK REQUIRES TERMINAL FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "looking to something like vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "how do I want fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "can you performance monitoring now?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "can you default-jdk please on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "WEB DOWNLOADING SETUP FOR ME THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "running my own services!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "gnu image asap", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "give me gzip on my system", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Help me can you install netcat?", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "Need to java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "HELP ME GOLANG SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "please need screen now", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "please tls", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Looking to want to learn rust for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "production server setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "install gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "TEACHING PROGRAMMING TO BEGINNERS", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "c compiler thanks", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "fancy htop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "RAR FILES", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "could you data backup environment on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "ready to get clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "'m learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "set up net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "I need zip asap", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I NEED TO WANT TO SEE SYSTEM INFO?", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "wanna want okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I'd like to wanna n-memory database", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "can you need to need to work with datasets for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "zip tool now", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "can you net-tools please", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "CAN YOU NPM PLEASE", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "CONFIGURE HAVE A RASPBERRY PI PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "fix installation errors right now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Set up want to backup my files on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "Can you about to set up valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "ebook management thanks now", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "ready to slack alternative right now", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "Optimize my machine", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "collaborate on code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "ebook reader setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "set up nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "could you need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Hoping to mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "SET UP PYTHON ON MY MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "hoping to set up a web server!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "let's fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "GIVE ME GRADLE", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "get emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "HOW DO I ABOUT TO WANT TO RECORD AUDIO", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Security hardening", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "VM ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "libre office right now", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "set up a database server", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Looking to gotta jq please", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "PLEASE ADD JQ", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "Give me iproute2!", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I need a database for my app?", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I NEED TO NDIE GAME DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "NODE.JS", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "ready to ready to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "give me ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "i want to do penetration testing now", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "i want to monitor my system on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "NETWORK DIAGNOSTICS ON THIS MACHINE already", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I'd like to need to troubleshoot network issues", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "i'd like to neofetch please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Ready to give me wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "productivity software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "let's want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "could you home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I'M TRYING TO JUST SWITCHED FROM WINDOWS AND WANT TO CODE", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "make my computer ready for Python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ready to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "SET UP WANT TO FIND BUGS IN MY CODE ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "ABOUT TO 'M STARTING A YOUTUBE CHANNEL", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "need to set up mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "I want to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "MAVEN BUILD?", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "MySQL server installation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "configure need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "backup tools", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "about to put cmake on my system", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "hoping to pdf manipulation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "MARIADB-SERVER PLEASE", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "how do i can you instll openssh-server right now", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "VIRTUAL ENV", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "i need a file servr right now", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I'd like to unrar please", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "put podman on my system", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "wanna system monitoring tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Rootless containers!", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I'd like to can you install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "wanna need to write research papers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "let's ssh client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "how do i json processor!", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "MySQL server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "i'm building an app that needs a datbase", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "need to yarn please!", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "prepare for coding please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "better terminal setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "set up bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "time to want to see system info please", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "need to fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Educational programming setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "get xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "please get subversion right now", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "my friend said I should try Linux development for me right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "can you install vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "how do I version control asap", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "can you need maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "i'm trying to want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you give me ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'm trying to want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "could you add ipython3 please", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "can you set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "add yarn!", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "need to want to want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "please firewall thanks", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Can you time to configuration management tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "my professor wants us to use Linux for me quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I need to work with images quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "SET UP SQLITE3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "install curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "Bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "hoping to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "HOW DO I DOWNLOAD MANAGER", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "PLEASE LIVE STREAMING SOFTWARE ALREADY right now", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Hoping to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Podcast recording tools", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "install unzip now", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I'm trying to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "about to gotta packet analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "how do I want to mysql server installation", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "configuration management tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "could you file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "put fonts-firacode on my system", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "virtualization setup on this machine please", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I WANT TO EDIT TEXT FILES", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "SECURITY TESTING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "show folders", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "security hardening?", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "configure want to watch videos thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "z shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "configure make my computer ready for frontend work please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "hoping to pdf viewer thanks", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "ABOUT TO OPTIMIZE MY MACHINE THANKS?", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "time to want perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "give me gradle on my computer", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I need podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I want to set up subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I want maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "Get rustc on my computer", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "install python3-pip for me", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I'm trying to document management", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I want to use containers on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I WANT G++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "please 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "about to gotta pdf manipulation thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "modern vim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "wanna get tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "working on an iot thing!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "time to can you install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want to need to debug my programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "python environments", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Running my own services please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "version control", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "put sqlite3 on my system", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I'd like to upgrade all packages already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "PSQL", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need to give me wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I need to time to latex setup", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "i'm trying to want to code in python!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "wanna nc please", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "Need to latex setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "PLEASE PUT VIRTUALBOX ON MY SYSTEM", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "need to working on an iot thing!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "could you gotta system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want to browse the internet thanks", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "embedded db", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "about to set up need sqlite3 thanks", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "let's class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "memory leaks", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "gnu privacy guard quickly", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Slack alternative right now", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "help me add nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "help me get imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "can you want to orchestrate containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'M LEARNING DOCKER ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do I 'm trying to nstall p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "about to mage tool", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "fresh insatll, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure want to chat with my team quickly", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "put wireshark on my system", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "can you install btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "WANNA NSTALL PHP", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "file sharing setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "WEB SERVER", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I need to get g++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "gotta set up better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "ip tool", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "COULD YOU WANT A NICE TERMINAL EXPERIENCE RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "ABOUT TO ADD CODE", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "audio editor", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "hoping to nstall screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "how do i set up everything for full stack already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "modern shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "hoping to home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ADD FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I'm trying to want to open compressed files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "network diagnostics", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I need to hoping to basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "could you educational programming setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "HOPING TO CLASS ASSIGNMENT NEEDS SHELL QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'M TRYING TO ETHICAL HACKING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Terminal editor right now", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "install postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I'd like to want to code in java?", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I need mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to educational programming setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up want to do penetration testing", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "about to need evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "NEED TO 'M LEARNING PYTHON PROGRAMMING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Set up python on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "nginx please thanks", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "NEED TO NEED TO JUST INSTALLED UBUNTU, NOW WHAT FOR CODING?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "about to about to debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "about to help me live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I need to ready to want apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "DATA ANALYSIS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "PUT WGET ON MY SYSTEM", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "gotta basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you gotta basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "TIME TO NEW TO UBUNTU, WANT TO START PROGRAMMING ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you can you install openssl", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "subversion please", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "about to configure need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "terminal productivity tools on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to nstall redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "ready to need to work with pdfs on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I'm trying to unzip files", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "i'm trying to coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up p7zip-full on my computer", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "HOPING TO 'M LEARNING JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "need to go language?", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "gz files", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Need a file server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "how do I configure add gimp please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "need to want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "let's give me wget thanks", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I'm trying to need to fail2ban tool", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need to can you install make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "resource monitor now", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "TREE COMMAND", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "set up media player setup on this machine asap", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "time to get ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "I'd like to digital library software", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "Node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I'd like to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I need maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "READY TO GO DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "wanna wget tool on my computer", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Gotta nstall wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "prepare for containerized development asap", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "let's homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'D LIKE TO HOPING TO WORD PROCESSOR ON THIS MACHINE", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Hoping to can you install wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "let's nstall evince?", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Looking to music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "let's scan network", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Gotta can you install xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "make my computer ready for Python on this machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "help me google font now", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "let's want make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "put emacs on my system", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "install screenfetch", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I'm a sysadmin on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "hoping to 'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "i want to secure my server", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "could you class assignment needs shell quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "put jq on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "i want gradle!", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "gotta 'd like to deep learning setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I WANT TO DO PENETRATION TESTING already", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "put php on my system", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "Simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Backup solution setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "about to set up vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "give me calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "configure network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "please add bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "add jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "perl interpreter", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I need rustc", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "let's want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "Pip already", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "how do i htop please", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Configure can you install fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "hoping to key-value store", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I want mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "i want libreoffice!", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm trying to php interpreter", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Time to add p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "System monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "jupyter", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "word processing and spreadsheets already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to 'd like to running my own services please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "bzip2 please", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "sqlite3 please", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "wanna backup solution setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I need to add cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "install ipython3 for me", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "About to want to run a website locally on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "i want tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "SET UP VLC FOR ME", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "help me want nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I want screen quickly", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I want to set up fzf", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "i need vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "Wanna need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "show folders", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "I need to can you python notebooks thanks", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "I NEED TO DATABASE ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "i want gcc quickly", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "can you install fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "could you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "ABOUT TO PDF TOOLS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "help me fast grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "tls", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "performance monitoring", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Set up ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "COULD YOU POWER USER TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'd like to python3-venv please", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "PUT XZ-UTILS ON MY SYSTEM", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I'm trying to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "ready to exa please", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Add fonts-firacode on this machine", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "COULD YOU MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I WANT CLANG", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "xz files", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "infrastructure as code setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "about to docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "nstall netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "need to pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Docker with compose setup now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "perl interpreter thanks", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "lua", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "Add lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "looking to nstall nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "wanna mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "wanna neovim please quickly", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "how do I power user terminal on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "gotta want podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "Looking to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "LOOKING TO NETWORK DIAGNOSTICS", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "configure nstall ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "legacy network", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "p7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "need to set up a web servre", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'm trying to need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "HOPING TO PLEASE NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "i need in-memory caching thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Hoping to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CAN YOU INSTALL XZ-UTILS NOW", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "Make my computer ready for frontend work for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "JDK installation for me on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Put imagemagick on my system!", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I'M TRYING TO TERMINAL PRODUCTIVITY TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Could you want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "HOW DO I GIVE ME BTOP QUICKLY", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "WANNA PREPARE MY SYSTEM FOR WEB PROJECTS ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "can you install mysql-server", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "Alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "please media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'D LIKE TO ANTIVIRUS SETUP THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "My system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "help me set up subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "i want to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Looking to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "wanna remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "Preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "get jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "give me ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Gotta how do i trace library", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "python environments", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "Can you install ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "BTOP MONITOR", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "time to fish shell quickly", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "CAN YOU SECURE REMOTE ACCESS", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "Web development environment please please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "please secure remote access", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "let's 'd like to need mysql for my project asap", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Time to get fzf thanks", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "Add lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "extract rar on my system", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I WANT TO MAKE GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I'd like to want fast caching for my app", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "htop please on my computer", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "I need to want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "can you connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "how do i samba server!", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "hoping to how do i json processor!", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "looking to get nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "LET'S WANT TO RUN VIRTUAL MACHINES", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "need to hoping to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "about to want neovim on my system", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "hoping to about to add bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "how do i want to write documents right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I WANT FZF", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "infrastructure as code setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need openssl right now", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "add neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "let's could you need a text editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "COULD YOU GIVE ME VIM", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "wireshark tool", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "GIVE ME FONTS-FIRACODE", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "network sniffer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "get screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "get nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "LOOKING TO PRODUCTIVITY SOFTWARE RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "looking to kde pdf on my system", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "could you psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "let's just installed ubuntu, now what for coding?", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up want to prepare for database work", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "can you virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "time to class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to add btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "I need to need to play video files on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I NEED TO RUN CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "need to help me sqlite3 please!", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "set up give me fish right now", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "How do i virtualbox setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I'M TRYING TO RUN VMS WITH VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "virtualization setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "OPENSSH-CLIENT PLEASE RIGHT NOW", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "Set up redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "please ltrace tool", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "ready to want gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "give me clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I need to could you run windows on linux on this machine!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "EDUCATIONAL PROGRAMMING SETUP FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "wanna 'm trying to want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "about to nstall mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "hoping to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I want to track my code changes already for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Network scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "FILE DOWNLOAD TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "roboto font", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "wanna want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "About to debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "time to orchestration for me", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Need to add openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "NMAP TOOL", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "put ffmpeg on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I NEED FAIL2BAN NOW", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need gcc?", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "PODCAST RECORDING TOOLS already", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "can you cs homework setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "PUT NODEJS ON MY SYSTEM on my computer", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "could you network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "prepare for coding right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Developer tools please on my computer on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to put fail2ban on my system quickly", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "please 'd like to want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "ready to terminal productivity tools already", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "can you install docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "yarn please!", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "SET UP NETWORK SNIFFER", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "PREPARE MY SYSTEM FOR WEB PROJECTS!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I'm trying to screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "give me postgresql quickly", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need to test network security on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "help me set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Wanna 'm trying to want to automate server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Let's want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Podman containers asap", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "give me golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "let's get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "configure nstall fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "My kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "ADD CLANG", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "I'd like to nstall zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "System update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I want to get openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "PRODUCTION SERVER SETUP", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gotta gotta set up btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "PUT PODMAN ON MY SYSTEM", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I NEED TO 'M LEARNING GAME DEV", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "okular viewer!", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "ssh", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "let's mprove my command line quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "i need to fetch things from the web on my computer for me", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I NEED DEFAULT-JDK", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Set up for microservices on this machine thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "node", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "hoping to about to server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I'M TRYING TO PREPARE SYSTEM FOR PYTHON CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Set up jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "give me bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "set up wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I NEED GDB", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "put python3-pip on my system", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "about to parse json", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want cmake please", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to fetch files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "add mariadb-server", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "I'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "time to looking to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you about to java", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "wanna set me up for web development", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "i'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Security testing tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "add clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "add inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "looking to c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "let's virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "LET'S WANT TO RUN VIRTUAL MACHINES", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "give me tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I WANT TO BE A FULL STACK DEVELOPER", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "ready to need git on this machine", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Terminal system info thanks asap", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "SET UP PLEASE VM ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "could you home server setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "can you set up docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "TIME TO MAGE TOOL", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "Fix installation errors", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "i'm starting a data science project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "add ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm building an app that needs a databse", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "gotta screen recording", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "set up kvm", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Screen sessions?", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I WANT TO WRITE DOCUMENTS", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to could you 'm learning mern stack quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "Server monitoring setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "i need a file servr right now please", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "please 'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "hoping to 'd like to can you install vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "Add netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "how do I modern shell on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "set up python3 quickly", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "git please", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "svg editor already", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "looking to home sever setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "hoping to containerization", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "get postgresql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I'd like to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "wanna academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "looking to need pyton3-pip on this machine", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "Set up unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "about to need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "java development kit", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "record audio", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "orchestration", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "valgrind tool", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "Ready to need to check for malware", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "can you personal cloud setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "time to want to self-host my apps thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "wanna add tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "help me add bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "ADD TMUX RIGHT NOW", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "add jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "CONTAINERIZATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Go development environment thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "TIME TO DOWNLOAD MANAGER", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "gotta can you install neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "please need obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "fish please on this machine", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT?", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "set up virtualbox", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "wanna add docker-compose now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Give me curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "get tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "PUT GNUPG ON MY SYSTEM on this machine", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "prepare system for Python coding now please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "NODEJS PLEASE", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "need to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "convert images", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I want to deep learning setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "need to set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "LET'S GET NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "wanna want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'd like to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "let's preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm trying to set up ebook management", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "SET UP FOR AI DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "tcpdump please quickly", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "UPGRADE ALL PACKAGES on my computer", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "protect my machine on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "can you bzip tool", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "photo editing setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "configure virus scanning tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "put mercurial on my system now", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I'm trying to add make on this machine", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "Iot development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I'd like to gradle build", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "Looking to memory debugging environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "wanna mariadb alternative", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "looking to need to compile code on my machine now on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "CAN YOU RUNNING MY OWN SERVICES", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "devops engineer setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "managing multiple servers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "could you make my computer ready for python on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "time to scientific document preparation?", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "can you install strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "get podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "ABOUT TO 'M STARTING A YOUTUBE CHANNEL", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "i'm a sysadmin?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'M TRYING TO RUN VMS WITH VIRTUALBOX", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I want to watch videos please", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "looking to set up htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "CAN YOU NEED TO CREATE A WEBSITE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "Python language now!", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "looking to video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "configure need in-memory caching", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "VM environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "vs code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Gotta need python for a project on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to terminal sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "i'm learning python programming", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "NETWORK FILE SHARING", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "ADD DOCKER.IO", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "gotta need to check resource usage asap", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "PLEASE DIGITAL LIBRARY SOFTWARE?", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "I want to vm environment", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "I need in-memory caching asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "Set up multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "VIRTUALIZATION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "let's need tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I need to set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "WANNA DOWNLOAD FILES", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "I need to bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Time to want to set up zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Wget tool", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "network swiss army for me", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "wireshark please", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "HELP ME 'M DOING A DATA PROJECT ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "looking to can you secure remote access please", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "can you install fzf!", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "better top", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "download manager now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "install ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "Better ls for me", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "set up p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I'm trying to give me curl please quickly", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "looking to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "curl please", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "set up looking to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I'm trying to want to download files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Redis", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "wanna want to program arduino on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "put mongodb on my system?", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "HELP ME GOLANG SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "can you prepare for data science", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ready to set up unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Can you hoping to obs already", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "default-jdk please", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Hosting environment setup on my computer please", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "vim please", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "ready to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "RUNNING MY OWN SERVICES NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "DOCUMENT MANAGEMENT on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Help me preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "p7zip right now", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I want python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "c/c++ setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "time to run vms with virtualbox already", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "can you put perl on my system", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "configure add subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "set up Python on my machine on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "HOW DO I OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Image tool", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "set up version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "NGINX PLEASE", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "I'M LEARNING JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "i'd like to system administration tools asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "wanna web downloading setup", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I'm trying to containerization environment quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Looking to ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "how do I data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I'm trying to 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I WANT THE SIMPLEST EDITOR please", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CAN YOU 'M TRYING TO COLLABORATE ON CODE!", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "make my computer a server right now right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "please hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'd like to podman containers", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "I'd like to antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Help me live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "About to need to sync files!", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "need to add ufw", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "READY TO PREPARE FOR FULL STACK WORK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "can you clean up my computer right now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Digital library software on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "add openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "install fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "let's configure can you install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "g++ please", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "put postgresql on my system", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "File sharing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "get gradle asap", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "LET'S MPROVE MY COMMAND LINE QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "let's developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "set up vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "I NEED TO RUN CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "wanna openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "ready to pyton pip on my system", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "how do I get zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "how do I web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "give me gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "Help me want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I need to need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'm trying to give me zip for me", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "SHOW FOLDERS", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "PYTHON DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "time to slack alternative thanks", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "please time to need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I NEED NMAP", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I'm trying to my friend said i should try linux development on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do i get git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "About to free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "GO DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I need tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "about to data backup environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "help me need to want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "add mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "mysql-server please", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "looking to fd", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "could you 'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "CONFIGURE NSTALL PODMAN on my computer", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "install cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "I want to malware protection", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need to tmux please?", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "looking to set up for microservices", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "HELP ME CAN YOU INSTALL EMACS", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "Wanna set up strace", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "Set up can you install exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "i want to use virtualbox", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "Looking to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "could you could you want to use containers", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i want to embedded db now", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "about to python development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "gotta help me put ltrace on my system on my system", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "devops engineer setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "let's how do i server automation environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I want to write code for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to add zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "I want to want gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I'd like to want to edit images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I NEED TO ADD NEOFETCH", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I'D LIKE TO MAKE MY COMPUTER A SERVER RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I need to visual studio code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "could you how do i fresh install, need dev tools for me", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "get mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "I'm learning docker", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "rust programming setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I NEED TO VIDEO PLAYBACK", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I WANT TO PROFILING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "gotta zip tool", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "get fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "configure containerization environment quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "get nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Basic security setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "how do I set up mysql databse", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "nstall ant", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "i need curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "set up gdb on my computer", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "time to academic writing environment on my computer for me", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "ebook reader setup on this machine?", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "can you configure set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ABOUT TO RIPGREP SEARCH QUICKLY", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "json tool", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "working on an iot thing on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "please put code on my system", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "gotta running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "how do i trace library on this machine", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "get iproute2 already", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "let's want to run virtual machines", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "configure hg version control", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "PREPARE MYSQL ENVIRONMENT ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "install apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Add gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "CMAKE PLEASE", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "gotta need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I need neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I want php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "archive my files", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "Configure kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "can you hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'd like to alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "HOPING TO NEED OFFICE SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Gnu privacy guard quickly", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "I need to check resource usage?", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "need to containerization environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "can you embedded development setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "can you add jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "java setup please for me", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "network scanner now", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "give me calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "give me mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "I need to sync files quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "how do i multimedia editing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Set up fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "i need a file server now", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "Can you need wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "Fd", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I want to code in Python", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "help me nstall sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "NEED TO TIME TO NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I need to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "Can you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "set up can you install netcat on this machine", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "please want to docker setup please right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "multimedia editing tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "need to need to debug my programs please", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Help me need to llvm compiler on my system", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Machine learning environment", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I want imagemagick now", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "READY TO NEED NEOVIM THANKS", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "i'm learning java now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I want to analyze network traffic thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "put neovim on my system", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I'd like to wanna want to watch videos", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "docker with compose setup for me please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "HOW DO I DIGITAL LIBRARY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "terminal sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'm trying to want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "set up gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "can you need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "can you set up gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "configure can you install unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "hardware project with sensors on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "gdb debugger already", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "give me iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "please set up npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "ruby interpreter", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "how do I nstall net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "get neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "how do I 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Qemu please", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "can you set up docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "HOPING TO 'M LEARNING JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "Gotta rust programming setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Visual studio code on this machine", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "How do i put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "image tool", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "wanna need make right now", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "can you install cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "python on this machine", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "I NEED TO DOCUMENT MANAGEMENT ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "can you install okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "install emacs", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "please please working on an iot thing quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "install git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "POWER USER TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "help me set up clamav", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "time to http client", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "VIRUS SCANNING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "looking to need to write research papers already", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "looking to gotta gzip compress please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Ready to want to do machine learning asap", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "archive my files?", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "give me fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "gnu screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "set up z shell", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "how do I time to web development environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "i need to ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "gotta want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "simple editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "wanna need to docker setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "configure set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'm trying to tls", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "can you install openssl asap", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "ready to music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "I WANT TO SHARE FILES ON MY NETWORK?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "i'm learning go language thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "give me mercurial", + "commands": [ + "sudo apt install -y mercurial" + ] + }, + { + "query": "Fix broken packages already", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "configure neovim please quickly", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "PREPARE SYSTEM FOR PYTHON CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "time to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "compile c", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "My apt is broken", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I want to can you educational programming setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Basic development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to extract zip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "about to want gnupg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "add qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "put maven on my system", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "put sqlite3 on my system on this machine", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "NETWORK DIAGNOSTICS on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "nano editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "put sqlite3 on my system", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "STRACE TOOL", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "wanna about to need openssh-servr", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "please looking to put npm on my system", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "can you instll gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "php language", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "configure set up redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "i just switched from windows and want to code on my computer asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "about to web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "configure let's need to serve web pages", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I need to sync files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "time to make my server secure", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "let's system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I need to get cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "can you install jupyter-notebook", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "Give me gzip thanks", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "preparing for deployment on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "help me ripgrep search now!", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "put openssh-client on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "looking to packet analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "MACHINE LEARNING ENVIRONMENT ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "split terminal right now", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "set up set up personal cloud setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Give me screenfetch for me", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "help me personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "memory debugger", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "need to want to learn rust please already", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "SET UP RUN WINDOWS ON LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "add ufw right now", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "i'm trying to 'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "virus scanner", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "need to make my computer a server now thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "ruby language", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "Docker Compose environment", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me add exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "give me python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "need to need to 'm starting to learn web dev on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "add vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "looking to database environment", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I NEED TO WORK WITH PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "time to put p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "i want to secure my servr", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "help me set up gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "ebook management asap", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "ABOUT TO HOMEWORK REQUIRES TERMINAL FOR ME", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please add ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "I want to want to chat with my team", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I need to gpg", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "package manager issues on my computer", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Mysql server installation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "jdk installation please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "configure want to watch videos thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Set up everything for full stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "put ruby on my system", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "time to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "SEVEN ZIP ON MY COMPUTER", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "LET'S SYSTEM ADMINISTRATION TOOLS?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "give me tmux?", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I NEED TO NEED APACHE2 ON MY COMPUTER", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "about to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Antivirus", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "install bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "Javascript runtime", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Please better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "SET UP STRACE", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "NEED TO WANT TO WRITE CODE QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "install golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "can you could you put git on my system", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "Put nmap on my system", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "i need to want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "configure package manager issues thanks", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "need to want to download files", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "CAN YOU SYSTEM UPDATE", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "I WANT TO WANT TO STREAM GAMES quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Looking to need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "PACKAGE MANAGER ISSUES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "ABOUT TO HOMEWORK REQUIRES TERMINAL FOR ME for me", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "graphic design tools quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "help me want to need to debug my programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "configure set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "VM SOFTWARE", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "I need to scientific document preparation asap", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I want gimp on this machine", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "nc", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "Gotta want the simplest editor", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I'm trying to want to run virtual machines right now for me", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Can you install python3-pip thanks", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "I WANT TO WRITE PAPERS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I want to virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "install valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "about to wanna need obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "ready to 'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "hardware project with sensors on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I want to have a raspberry pi project please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I need to redis server please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "SET UP UNZIP", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "TIME TO 'M A SYSADMIN", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "can you install sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "vlc please", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "can you install vlc!", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "give me htop already", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "configure alternative to microsoft office!", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Gotta mage convert right now on this machine", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "Get docker.io thanks", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I need golang-go", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "PHP INTERPRETER", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "help me put python3 on my system", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "FRESH INSTALL, NEED DEV TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "network security analysis on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "I want to find bugs in my code right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Nano please on my system now", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "hoping to ready to data analysis setup", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "LET'S WANT A NICE TERMINAL EXPERIENCE", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I want to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "debug programs", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "ready to nstall fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Configure perl interpreter already", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "ABOUT TO 'M STARTING A YOUTUBE CHANNEL on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "port scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "looking to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I want to can you install clang thanks", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "Tcpdump tool on my computer", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I'm trying to virtualization", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "about to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "looking to let's want to find bugs in my code on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "could you set up pythn3-pip asap", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "about to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "wanna need to check resource usage", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Set up give me screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "how do I 'm worried about hackers quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "java gradle", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "Looking to java setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "configure 'm trying to basic text editing for me", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "i need to want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "BETTER PYTHON SHELL QUICKLY", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "Gotta fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you can you want to write papers", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "put sqlite3 on my system", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "PDF TOOLS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "FILE DOWNLOAD TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "javascript packages now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "I want to use containers now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "could you better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "Set up need multi-container apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "looking to game engine setup quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "BZIP COMPRESS", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "Put iproute2 on my system please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Help me homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "How do i need to write research papers thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "looking to prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I need openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "rootless containers!", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "Streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Add docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you instal maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Please my friend said i should try linux development", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to set me up for web development already!", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "TIME TO 'D LIKE TO VIDEO EDITING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "Terminal editor right now?", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "LOOKING TO NGINX SERVRE ASAP", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "gotta want to edit text files", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I NEED TO WANT TO RUN VIRTUAL MACHINES RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "ADD OBS-STUDIO PLEASE", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "spreadsheet", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "clamav please", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "I want to data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I'd like to need git", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I want apache2 on this machine", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I want tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "Set up python3 quickly", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "time to data backup environment", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "new to ubuntu, want to start programming right now", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to read ebooks on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "gotta system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "Mysql fork", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "WANNA WANT FD-FIND", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "how do i help me put inkscape on my system on my computer", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "FIX BROKEN PACKAGES", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I need vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to hoping to prepare system for python coding on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "Install iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I'm trying to ready to docker with compose setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "GET RUSTC", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "please live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "Sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I'd like to need iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Can you want to store data!", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "Need to network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "help me want to use mysql please", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Need to nstall neofetch", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please need to work with pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "Need a file server!", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "hoping to vagrant vms please", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "I'd like to can you install fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I need npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "could you about to lua interpreter", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "i want vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "Set up vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "set up apache2 please on my system", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "time to orchestration for me", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "can you 'm trying to hosting environment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "put openssh-client on my system", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "calibre please", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "GOTTA PODCAST RECORDING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want to learn rust quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "add subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "wanna system administration tools", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "I'D LIKE TO NEED CLAMAV ALREADY", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "working on an IoT thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'd like to want to record audio on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i'm trying to database environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I'm trying to can you install podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "i'm learning game dev", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "how do I want to backup my files right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "give me cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "PUT PODMAN ON MY SYSTEM", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "clang compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "hoping to can you install xz-utils asap", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "REPAIR PACKAGE SYSTEM", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "I want python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "HOSTING ENVIRONMENT SETUP ON MY COMPUTER!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "please please network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "i need python3-venv?", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "time to want to program arduino asap", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "how do i containerization environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I want to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "hoping to gotta fresh install, need dev tools", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Extract rar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "wanna neovim please", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "SET UP RUN WINDOWS ON LINUX", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "install curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Music production environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "NC", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "Running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I NEED G++ FOR ME", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "CERTIFICATES", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "video production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "I want obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "configure nstall subversion already", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I want to wanna svn", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "Show off my terminal for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "put nmap on my system", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "need to put mysql-server on my system", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "give me apache2!", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "Can you install podman?", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "DATABASE ENVIRONMENT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "how do I configure can you install redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "can you configure caching layer for my application", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "instal inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "evince please on my system", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I WANT TO SET UP REDIS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "please need to write research papers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I'm trying to mage manipulation software", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "can you install nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "ready to put ffmpeg on my system", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "configure pdf viewer thanks", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I'D LIKE TO C DEVELOPMENT ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "get valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "I'd like to want to program arduino", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "configure want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "i'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "getting ready to go live", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "wanna coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Can you install fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "hoping to antivirus setup", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "time to get obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "I want to gotta alternative to microsoft office right now", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "NEED TO LOOKING TO WANT TO STORE DATA!", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "Help me samba server", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "wanna time to repair package system", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "fish shell", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "how do I gotta server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "let's teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "set up python3-venv right now", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "need to game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "Get fail2ban now", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "Java gradle now", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "sqlite", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "LET'S NSTALL WIRESHARK", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I'M TRYING TO 'D LIKE TO XZ FILES ON THIS MACHINE", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "about to about to want to edit text files?", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "set up docker-compose asap", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "strace please", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "BAN HACKERS", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "i need to version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "Let's need to ban hackers", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I WANT TO EDIT VIDEOS NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "performance monitoring now thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I'd like to ready to want to extract archives", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "let's set up nano", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "can you get zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I'm deploying to production please", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "basic security setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "set up Redis asap", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I want to watch videos on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Help me want to self-host my apps", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "CAN YOU CAN YOU INSTALL OPENSSL", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "ZIP FILES", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "Containers", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "perl language?", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "Ant please", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "photo editor!", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "packet analysis setup right now now", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Get gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "PDF VIEWER THANKS", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "SYSTEM MAINTENANCE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "can you nstall gdb please", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I want wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "About to can you install nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "hoping to set up npm asap", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "give me clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "need to my system is running slow please", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I need to academic writing environment", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "I want to secure my server!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "ready to put default-jdk on my system", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I need to production server setup quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I need to nstall make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I'm building an app that needs a datbase for me", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "I want to run virtual machines right now", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "Virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "I need fonts-firacode", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Could you what are my computer specs for me", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need to add postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Set up unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "install fonts-roboto for me", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "7z please already", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I need to java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I need inkscape right now", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "CAN YOU INSTALL APACHE2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "apache server on my computer", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "how do i put ripgrep on my system", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "how do I prepare for containerized development for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I need multi-container apps for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "WEB DEVELOPMENT ENVIRONMENT PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "please want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "put p7zip-full on my system", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "I need to ready to want to self-host my apps on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "ready to ready to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "I'M STARTING A DATA SCIENCE PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "netstat", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "can you need to zip files up?", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "let's teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "NEED TO MAKE MY SERVER SECURE", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I need to wanna need to write research papers for me", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "data analysis setup please", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "I WANT TO BE A FULL STACK DEVELOPER", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "EBOOK READER SETUP ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "how do i jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "CAN YOU WANT TO MAKE GAMES QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "please home server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Multimedia playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me valgrind right now", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "wanna want to write documents", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "containers", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "I want to watch videos on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "WANNA P COMMAND", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "I'm trying to want nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "connected devices project!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "put zsh on my system", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "ready to need office software", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I'M TRYING TO HAVE A RASPBERRY PI PROJECT thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "I'm trying to can you install neofetch now", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "set up servr automation environment right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "about to samba server thanks for me", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "put gdb on my system right now", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "MUSIC PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "about to virus scanning tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "how do I developer tools please quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Ready to network analyzer", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "how do I add fonts-hack", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "I need to alternative to npm", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "could you can you want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "give me make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "pdf reader", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "Web development environment please?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "set up sqlite database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "can you time to need podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "NEED TO GRAPHIC DESIGN TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "I want the latest software now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "unzip tool", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "TIME TO MY SYSTEM IS RUNNING SLOW!", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "could you protect my machine right now", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I'm trying to put make on my system already", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "add wireshark right now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "I NEED DOCKER-COMPOSE", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "put fish on my system", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "Let's system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "about to pdf manipulation", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I WANT TO SET UP NET-TOOLS", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "nvim already", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "ready to ready to want to run a website locally asap", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "add nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Fzf tool", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "basic devlopment setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Let's live streaming software thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "get apache2", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "I want to video editing setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "better ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "rust programming setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "let's better terminal setup", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "want to program arduino asap", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "GIVE ME NEOVIM", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "ready to slack alternative right now", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "I'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "about to alternative to microsoft office!", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "how do I power user terminal on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "Cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "about to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "HARDWARE PROJECT WITH SENSORS", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "streaming on this machine", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "ZIP FILES", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "how do I pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I'm learning mern stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "HELP ME WANT IPROUTE2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "set up set up obs-studio", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "get screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'm trying to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "HOW DO I NSTALL QEMU", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I'M LEARNING JAVA", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "I just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "PYTHON", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "let's let's 'm starting to program", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "put vlc on my system quickly", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "Give me fish on my computer", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "let's want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Give me ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "Class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "Install htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "wanna python package manager", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "gotta packet analyzer!", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "could you need a text editor", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to tls", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Ready to 'm learning java right now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "hoping to word processor on this machine", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "Qemu emulator", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "Psql", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "CONFIGURE DOCKER COMPOSE ALREADY", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "could you set up system update", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "set up can you install bat right now", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "configure ready to terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'm trying to want to browse the internet please on my system", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "Prepare for coding please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "add zip!", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "SET UP MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "how do I need to set up maven on this machine", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "wanna build tool asap", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "I'd like to give me jq", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "I'm trying to vector graphics", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "I need to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "wanna system monitoring tools", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "let's want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "ready to 'm deploying to production on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "show off my terminal on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "PUT VALGRIND ON MY SYSTEM", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "hoping to fira code", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "Configure need to train neural networks", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "infrastructure as code setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "about to want to browse the internet", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "can you install bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "document viewer already", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "add curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "backup tools now", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "get zip!", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "I need to need to need to create a website", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "time to can you network debugging tools", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Could you want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "i want to backup my files", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "xz-utils please", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "CAN YOU OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Need to give me gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Infrastructure as code setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "CAN YOU NEED TO CREATE A WEBSITE ALREADY", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "need to personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "configure set up maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I want to learn Rust for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "audio production setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "set up a web server for me please", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "wanna get vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'm trying to obs setup", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "System info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "need to network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Could you getting ready to go live asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "gotta kid-friendly coding environment", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "HOPING TO WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "get curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "virus scanning tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "gotta 'm trying to python on this machine", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "homework requires terminal right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "live streaming software for me", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I need gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "ready to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "HOW DO I CAN YOU INSTALL VIM ALREADY", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "BRING MY SYSTEM UP TO DATE QUICKLY", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "okular viewer quickly", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "ready to 'm starting to learn web dev now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "ready to can you secure remote access", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "configure bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "wanna full stack development setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "hoping to better terminal setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "gotta 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "please mariadb alternative", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "source control on this machine", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "About to add code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "could you want to self-host my apps please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "CAN YOU NETWORK DEBUGGING TOOLS!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "Looking to want ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "Hoping to 'm learning go language", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "looking to gotta alternative to microsoft office already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I want to browse the internet please", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "could you netcat tool already", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I need to give me imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "how do I c/c++ setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "install fzf quickly", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "i need to add postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "slack alternative", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "set up neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "MYSQL SERVER INSTALLATION", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I need to jdk installation already", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "configure help me get imagemagick", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "I WANT TO SVN CLIENT ASAP", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "about to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I'd like to nstall ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "LET'S OPEN WEBSITES", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "GIVE ME FFMPEG already", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want to http client", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "I'D LIKE TO WANT TO MICROCONTROLLER PROGRAMMING ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "I WANT FONTS-ROBOTO", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "iproute2 please", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "LOOKING TO WANT MAVEN", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "install docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "LET'S WANT TO EDIT IMAGES QUICKLY THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "let's can you set up fonts-roboto on my computer", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "Image convert", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "working on an iot thing", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "how do I python development environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "wanna python pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "WEB DEVELOPMENT ENVIRONMENT PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "HOPING TO PRODUCTIVITY SOFTWARE ON MY COMPUTER", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "help me want calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "Can you install tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I need Python for a project!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "CRYPTO TOOL", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "could you machine learning environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "CONFIGURE PDF MANIPULATION PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "GET ANT", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "configure could you free up disk space", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "gotta basic text editing", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Gotta wanna add docker-compose now", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "can you install php quickly for me", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "configure ready to 'm learning java right now", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "xz compress", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "need to looking to bz2 files", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "System calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "i want to compile c programs", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y gdb", + "sudo apt install -y cmake" + ] + }, + { + "query": "HOPING TO NEED TO SERVER AUTOMATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "running my own services right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Configure multi-container", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "let's wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "Time to ebook reader setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "how do I need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "set up unzip files on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "set up podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "could you 'm worried about hackers", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "need to port scanner", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "I need to test different OS?", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'd like to java development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "could you need to nstall make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "set up have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "LET'S DOCKER WITH COMPOSE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "CLASS ASSIGNMENT NEEDS SHELL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "I'm a sysadmin?", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "wanna fast grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "let's want fail2ban", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "Set up curl", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "gotta can you install ipython3 now", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "i'd like to need to gnu c++ compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "LOOKING TO PUT CALIBRE ON MY SYSTEM", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "configure want to http client quickly", + "commands": [ + "sudo apt install -y curl" + ] + }, + { + "query": "node.js", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "photo editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "How do i server monitoring setup", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "postgresql please", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "I need gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "new to Ubuntu, want to start programming", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to 'd like to get btop thanks", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "configure need to set up tcpdump", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "I need mysql-server thanks", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "I want perl asap", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "i want to code in java", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "please make my computer a server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "configure ebook reader", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "library calls thanks", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "streaming setup for twitch", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "LET'S ANTIVIRUS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Personal cloud setup already", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "about to want to stream games already", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "ready to looking to full stack development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "i need cmake please", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "can you need to need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "I'd like to ethical hacking setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "version control", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "get wget", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "wanna how do i encryption", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "how do i live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need to need to want gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "I'm worried about hackers!", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "configure modern ls", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "hoping to gzip please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "hoping to system information", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I need to rg", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "could you put python3-venv on my system", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "i need bat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I WANT TO EDIT PDFS", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "configure need to want to run virtual machines right now thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "screen recording already", + "commands": [ + "sudo apt install -y obs-studio" + ] + }, + { + "query": "i need to productivity software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "i'm trying to network file sharing", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I need podman on my computer", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "OBS SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "svg editor", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "could you want sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "I'm learning MERN stack", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "SET UP VIRTUALIZATION SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "help me can you need to create a website already", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Gotta give me net-tools", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ready to give me vim", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "i want to scan for viruses asap", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "Hoping to json processor", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "set up a database servre for me on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "could you virus scanning tools", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "set up Docker on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "time to show specs", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "give me rustc thanks", + "commands": [ + "sudo apt install -y rustc" + ] + }, + { + "query": "IMAGE CONVERT", + "commands": [ + "sudo apt install -y imagemagick" + ] + }, + { + "query": "gotta want to find bugs in my code", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "hoping to need tmux on my computer", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "can you could you 'm learning docker on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "PUT UNRAR ON MY SYSTEM", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "set up prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "PUT PODMAN ON MY SYSTEM", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "looking to set up want to learn rust", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "put cmake on my system", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "can you install perl", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "need to wanna lua for me", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "LOOKING TO FRESH INSTALL, NEED DEV TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "how do i developer tools please on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Get ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "hoping to screen sessions", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "wanna ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "SOUND EDITOR", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "set up set up for microservices please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Let's debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "let's my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I NEED TO GPG", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "gotta alternative to microsoft office already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "pdf viewer thanks", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "wget please", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "need to network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "gotta gotta postgres on my system", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "time to about to music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Terminal system info on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I WANT TO NFRASTRUCTURE AS CODE SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I'D LIKE TO BRING MY SYSTEM UP TO DATE THANKS", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "developer tools please on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "CONFIGURE POSTGRES DB", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "let's want to write code now", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "ebook management thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "java thanks", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Gotta ready to gz files on this machine?", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "looking to want maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "hoping to 'd like to docker with compose setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "how do I docker-compose please", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "screen sessions quickly", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "set up desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "wireshark tool right now", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "ready to please memory debugging environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "GIVE ME MYSQL-SERVER!", + "commands": [ + "sudo apt install -y mysql-server" + ] + }, + { + "query": "put openssh-server on my system", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "I HAVE A RASPBERRY PI PROJECT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "About to need rust compiler right now", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "gotta live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "give me ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "set up Docker on my machine quickly quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "i just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I want to extract archives for me", + "commands": [ + "sudo apt install -y unzip unrar p7zip-full" + ] + }, + { + "query": "netcat tool", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ALTERNATIVE TO NPM?", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "gnu debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "Wanna add okular already", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "HOPING TO MICROSOFT CODE EDITOR", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "digital library software quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "need to set up a web server", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I'd like to can you instal iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "Packet analysis setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "I want redis-server", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "I want tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "help me set up a database sever", + "commands": [ + "sudo apt update", + "sudo apt install -y postgresql postgresql-contrib", + "sudo systemctl enable postgresql", + "sudo systemctl start postgresql" + ] + }, + { + "query": "set up mysql database quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "wanna clang compiler?", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "put jq on my system", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "fix broken packages on my system!", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "hosting environment setup for me", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "Key-value store", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "ready to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "looking to get inkscape thanks", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "give me neovim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "I need to want to record audio", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "install btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "Audio convert already", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "how do I hoping to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Configure need yarn", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "looking to want to monitor my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "ROBOTO FONT NOW RIGHT NOW", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "please 'm trying to python on this machine", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "TIME TO DEVOPS ENGINEER SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Can you nstall lua5.4", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I HAVE EPUB FILES TO READ?", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'm trying to connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "need to docker compose environment please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "help me power user terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "python language on my system", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Could you put g++ on my system", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "PREPARE FOR CODING", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "hoping to can you install btop", + "commands": [ + "sudo apt install -y btop" + ] + }, + { + "query": "system calls", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "I'd like to preparing for deployment on my system", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "I'm trying to want to edit pdfs", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "need to security testing tools", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "TIME TO 'M DEPLOYING TO PRODUCTION", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "how do I 'm trying to add gcc", + "commands": [ + "sudo apt install -y gcc" + ] + }, + { + "query": "hoping to have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Ready to golang-go please", + "commands": [ + "sudo apt install -y golang-go" + ] + }, + { + "query": "Ready to nstall python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "how do I need gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "SHOW OFF MY TERMINAL ON MY SYSTEM ALREADY", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "my professor wants us to use Linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "TIME TO FULL STACK DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I'm trying to ready to want apache2 please", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "set up tcpdump already", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "get htop", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "Redis server please", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "extract zip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "let's mage editor", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "I WANT SUBVERSION", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "set up wireshark", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "configure want to analyze data", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "need to 'm doing a data project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "give me fonts-roboto please", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "I need to nstall make", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "openjdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "please want to secure my server on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "about to need gzip?", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "I want gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "ready to need a text editor quickly", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "looking to nstall calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "just installed Ubuntu, now what for coding please", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I need maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "configure let's need tmux", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "ABOUT TO SET UP REDIS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need tree", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "set up power user terminal for me", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "apache ant thanks", + "commands": [ + "sudo apt install -y ant" + ] + }, + { + "query": "get unzip", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "show off my terminal on my system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "I just switched from Windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "i want docker-compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "Gotta qemu please", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "how do I ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "LET'S WANT A NICE TERMINAL EXPERIENCE", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I need to basic development setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "time to svn", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "how do I word processing and spreadsheets already", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "how do I nvim", + "commands": [ + "sudo apt install -y neovim" + ] + }, + { + "query": "give me unrar", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "GET PERL", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "I'd like to 7z asap", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "give me openssh-client", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "devops engineer setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Time to 'm deploying to production", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "compile c++", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "put fzf on my system", + "commands": [ + "sudo apt install -y fzf" + ] + }, + { + "query": "NEED TO WANT TO EDIT VIDEOS NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "kid-friendly coding environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "I want remote access to my server on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "python", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "let's hack font now", + "commands": [ + "sudo apt install -y fonts-hack" + ] + }, + { + "query": "Teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "need to set up production server setup", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "can you install redis-server quickly", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "help me desktop virtualization", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "hoping to want nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "CAN YOU WANT TO EDIT VIDEOS", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "time to version control setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "pyton3 please!", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "set up set up p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "Please have epub files to read", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I'm trying to add iproute2", + "commands": [ + "sudo apt install -y iproute2" + ] + }, + { + "query": "configure want to self-host my apps on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "add php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "Set up can you install exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "please clang please", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "gotta lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "ABOUT TO OPTIMIZE MY MACHINE PLEASE", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I WANT TO ORCHESTRATE CONTAINERS", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "BASIC DEVELOPMENT SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "NEED TO WANT TO USE VIRTUALBOX RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "wanna hoping to just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Memory debugging environment", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "looking to get fonts-firacode right now", + "commands": [ + "sudo apt install -y fonts-firacode" + ] + }, + { + "query": "need to fix broken packages", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "gotta need to running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "production server setup!", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "Set up sqlite3", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "can you graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "put npm on my system", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "i need to how do i set up python on my machine", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "PUT PODMAN ON MY SYSTEM", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "looking to need a web browser", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "Clean up my computer thanks", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "I'm trying to want to pip3 quickly already", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "My professor wants us to use linux", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "configure have a raspberry pi project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Ufw firewall", + "commands": [ + "sudo apt install -y ufw" + ] + }, + { + "query": "add python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "ready to can you install bzip2!", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "PERFORMANCE MONITORING", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "I NEED OPENSSH-CLIENT", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "add zsh", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "i need maven", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "wanna set up docker on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "instll docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "ready to want to scan for viruses", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I WANT TO BACKUP MY FILES ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "can you can you install htop on my computer", + "commands": [ + "sudo apt install -y htop" + ] + }, + { + "query": "set up brute force protection", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "I need vagrant", + "commands": [ + "sudo apt install -y vagrant" + ] + }, + { + "query": "openssh-client please right now", + "commands": [ + "sudo apt install -y openssh-client" + ] + }, + { + "query": "prepare system for python coding", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "looking to want to edit videos", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "looking to preparing for deployment thanks", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "collaborate on code on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "I need to give me valgrind", + "commands": [ + "sudo apt install -y valgrind" + ] + }, + { + "query": "configure bring my system up to date", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "ready to add exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Could you about to optimize my machine thanks", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "add p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "WANNA WIRESHARK TOOL", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "remote login capability on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "HOPING TO WANT TO DOWNLOAD FILES", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I WANT TO BROWSE THE INTERNET PLEASE", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "help me want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Please could you photo editing setup right now", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "nodejs runtime asap", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "Debugging tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "time to how do i can you install vim already", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "can you install python3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "need to podcast recording tools on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "i want to write papers on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "i need to ndie game development", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "give me ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "could you 'm learning go language please", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "I want to learn rust for me", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "default-jdk please", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "I WANT TO STREAM GAMES", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "get nodejs asap", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "add mongodb", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "LET'S DEVELOPER TOOLS PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "gotta make my computer ready for python right now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "TIME TO NEED NPM", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "Need to python development environment now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "SYSTEM MONITORING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "Gzip please", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "looking to rar files quickly", + "commands": [ + "sudo apt install -y unrar" + ] + }, + { + "query": "I need xz-utils", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "I need to set up libreoffice on this machine", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "LET'S TIME TO MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm trying to terminal productivity tools on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I'd like to need to serve web pages thanks on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "INSTALL XZ-UTILS", + "commands": [ + "sudo apt install -y xz-utils" + ] + }, + { + "query": "pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "hoping to run windows on linux asap", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "time to mvn", + "commands": [ + "sudo apt install -y maven" + ] + }, + { + "query": "I'm trying to node package manager", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "help me teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "samba server on my system?", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "CS homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "NEED TO MAKE MY SERVER SECURE", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "I NEED TO CAN YOU INSTALL NANO", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "I need to nstall fd-find", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "add net-tools asap", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "configure set up nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "Help me media player setup", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "Time to need python for a project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "GET VLC", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "wanna set up ripgrep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "Set up exa now", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "I WANT TREE", + "commands": [ + "sudo apt install -y tree" + ] + }, + { + "query": "compose", + "commands": [ + "sudo apt install -y docker-compose" + ] + }, + { + "query": "put postgresql on my system", + "commands": [ + "sudo apt install -y postgresql" + ] + }, + { + "query": "Homework requires terminal", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "can you want to program arduino thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "download files", + "commands": [ + "sudo apt install -y wget" + ] + }, + { + "query": "preparing for deployment", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "help me set up sqlite3 for me", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "Illustrator alternative?", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "hoping to game engine setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "looking to libre office for me", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "about to virtualbox setup", + "commands": [ + "sudo apt update", + "sudo apt install -y virtualbox", + "sudo usermod -aG vboxusers $USER" + ] + }, + { + "query": "how do I want vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "hoping to let's mprove my command line", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "configure cat with syntax", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "wanna full stack development setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "I need to add cmake already", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "LOOKING TO FRESH INSTALL, NEED DEV TOOLS on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "could you set up redis", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "set up evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "WANNA 'M TRYING TO MY FRIEND SAID I SHOULD TRY LINUX DEVELOPMENT ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "about to need to work with images asap", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "DOCUMENT MANAGEMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "I want gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Need to need to clean up my computer", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "LOOKING TO LIBREOFFICE PLEASE ON MY SYSTEM RIGHT NOW", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "can you install python3-pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "configure fix installation errors asap", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "put libreoffice on my system", + "commands": [ + "sudo apt install -y libreoffice" + ] + }, + { + "query": "I WANT TO SET UP REDIS", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "I need to configure pdf tools setup", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "ETHICAL HACKING SETUP on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "how do I can you install ruby", + "commands": [ + "sudo apt install -y ruby" + ] + }, + { + "query": "Set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "set up gimp", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "wanna wanna class assignment needs shell", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "REPAIR PACKAGE SYSTEM", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "looking to secure remote access now", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "put unzip on my system", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "put net-tools on my system", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "could you network diagnostics", + "commands": [ + "sudo apt update", + "sudo apt install -y tcpdump", + "sudo apt install -y wireshark", + "sudo apt install -y nmap", + "sudo apt install -y net-tools" + ] + }, + { + "query": "about to help me containerization environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "set up php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "i need calibre on this machine for me", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "I'd like to ready to repair package system right now", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Set up nginx", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "let's video playback", + "commands": [ + "sudo apt update", + "sudo apt install -y vlc", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I need ffmpeg", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I want code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "about to want remote access to my server", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "ready to document viewer", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "i want nodejs", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "DIGITAL LIBRARY SOFTWARE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "get python3-venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "configure prepare my system for web projects", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "put mariadb-server on my system quickly", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "Can you lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "I'd like to streaming setup for twitch please", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "hoping to want to share files on my network quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "HOPING TO ZIP FILES UP ALREADY", + "commands": [ + "sudo apt install -y zip unzip p7zip-full" + ] + }, + { + "query": "gotta teaching programming to beginners on this machine?", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "please need to connect remotely", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "need to help me add fd-find please", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "GET DOCKER.IO", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "How do i wanna want to share files on my network", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "I NEED TO HAVE A RASPBERRY PI PROJECT RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "get mariadb-server on my computer", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "data backup environment on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "gotta getting ready to go live already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "need to game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "I need to split terminal", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "add nodejs on my computer", + "commands": [ + "sudo apt install -y nodejs" + ] + }, + { + "query": "I want gdb", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "set up server monitoring setup on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y htop", + "sudo apt install -y iotop", + "sudo apt install -y nethogs" + ] + }, + { + "query": "CMAKE TOOL", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "PLEASE ABOUT TO SAMBA SERVER THANKS", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "need to set up want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "time to set up ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "i'm trying to need to work with images", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "hoping to configure protect my machine asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "p7zip", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "get cmake", + "commands": [ + "sudo apt install -y cmake" + ] + }, + { + "query": "hoping to mysql fork", + "commands": [ + "sudo apt install -y mariadb-server" + ] + }, + { + "query": "office suite setup", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "lua language", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "need to put tcpdump on my system", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "download manager", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "I want to use containers!", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "let's put fish on my system asap", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "about to hoping to can you install zip", + "commands": [ + "sudo apt install -y zip" + ] + }, + { + "query": "PROTECT MY MACHINE RIGHT NOW ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "hoping to npm please now", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "Set up docker on my machine for me", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "GET PYTHON3", + "commands": [ + "sudo apt install -y python3" + ] + }, + { + "query": "Please add default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "Set up scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "could you encryption asap", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "network security analysis", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "wanna need to set up redis quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y redis-server", + "sudo systemctl enable redis-server", + "sudo systemctl start redis-server" + ] + }, + { + "query": "INSTALL EXA ALREADY", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "let's add openssh-server already", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "let's 'm a sysadmin", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "need to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "My system is running slow right now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "Please package manager issues", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "Z SHELL", + "commands": [ + "sudo apt install -y zsh" + ] + }, + { + "query": "Need to set up exa", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "Web server", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "Basic development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "looking to home server setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Photoshop alternative please", + "commands": [ + "sudo apt install -y gimp" + ] + }, + { + "query": "can you install ltrace", + "commands": [ + "sudo apt install -y ltrace" + ] + }, + { + "query": "looking to put gradle on my system", + "commands": [ + "sudo apt install -y gradle" + ] + }, + { + "query": "I need to alternative to microsoft office", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "ready to gotta music production environment", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "could you text editing software", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "CONFIGURE NEED RUST COMPILER", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "need to need qemu", + "commands": [ + "sudo apt install -y qemu" + ] + }, + { + "query": "I need to python venv", + "commands": [ + "sudo apt install -y python3-venv" + ] + }, + { + "query": "could you need ansible for automation for me", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "Nano please", + "commands": [ + "sudo apt install -y nano" + ] + }, + { + "query": "Httpd", + "commands": [ + "sudo apt install -y apache2" + ] + }, + { + "query": "ebook reader setup", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "getting ready to go live now", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "virus scanning tools thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "I need vim already", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "I'm trying to can you install virtualbox for me", + "commands": [ + "sudo apt install -y virtualbox" + ] + }, + { + "query": "about to file download tools", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "Terminal system info thanks", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "want to need to serve web pages!", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I NEED PYTHON FOR A PROJECT", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential" + ] + }, + { + "query": "ebook reader setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "need to want to run a website locally", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "I want gzip", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "give me bzip2", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "CAN YOU INSTALL EXA", + "commands": [ + "sudo apt install -y exa" + ] + }, + { + "query": "could you video editing setup", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "ready to rust programming setup", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'd like to docker with compose setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm trying to free up disk space thanks", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "time to want to be a full stack developer now", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "docker engine", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "let's set up for data work!", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "let's fetch system", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "please could you terminal productivity tools", + "commands": [ + "sudo apt update", + "sudo apt install -y zsh", + "sudo apt install -y tmux", + "sudo apt install -y fzf", + "sudo apt install -y htop" + ] + }, + { + "query": "I need to run containers right now", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "academic writing environment on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "looking to can you install audacity", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I NEED NET-TOOLS", + "commands": [ + "sudo apt install -y net-tools" + ] + }, + { + "query": "hoping to want to better grep", + "commands": [ + "sudo apt install -y ripgrep" + ] + }, + { + "query": "let's just switched from windows and want to code", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "personal cloud setup", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "JAVA SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "PLEASE NFRASTRUCTURE AS CODE SETUP!", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "I need git", + "commands": [ + "sudo apt install -y git" + ] + }, + { + "query": "give me openssh-server", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "game development setup", + "commands": [ + "sudo apt update", + "sudo apt install -y godot3", + "sudo apt install -y blender", + "sudo apt install -y gimp" + ] + }, + { + "query": "sshd", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "ready to debugging tools setup?", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "Can you my system is running slow", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "PUT AUDACITY ON MY SYSTEM!", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "I'm trying to terminal sessions", + "commands": [ + "sudo apt install -y tmux" + ] + }, + { + "query": "I need rust compiler", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "I'm starting a YouTube channel now", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "install code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "Wanna how do i server automation environment already", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "let's wanna llustrator alternative", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "MY SYSTEM IS RUNNING SLOW now", + "commands": [ + "sudo apt update", + "sudo apt autoremove -y", + "sudo apt autoclean", + "sudo apt clean" + ] + }, + { + "query": "open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "time to my kid wants to learn coding", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "PLEASE WANT TO ANALYZE DATA", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y jupyter-notebook", + "sudo apt install -y python3-pandas python3-numpy python3-matplotlib" + ] + }, + { + "query": "gotta upgrade all packages already", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "get fish", + "commands": [ + "sudo apt install -y fish" + ] + }, + { + "query": "wanna remote access", + "commands": [ + "sudo apt install -y openssh-server" + ] + }, + { + "query": "help me need to work with pdfs on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y poppler-utils", + "sudo apt install -y pdftk", + "sudo apt install -y evince" + ] + }, + { + "query": "can you want default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "give me nginx already", + "commands": [ + "sudo apt install -y nginx" + ] + }, + { + "query": "GOTTA HELP ME LIVE STREAMING SOFTWARE NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "I'M TRYING TO WANT FONTS-ROBOTO ON THIS MACHINE", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "tcpdump please", + "commands": [ + "sudo apt install -y tcpdump" + ] + }, + { + "query": "hoping to basic security setup thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "ethical hacking setup", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "Time to hardware project with sensors on my computer now", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "Ready to want to write code", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "obs setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "teaching programming to beginners", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "Crypto tool on my system please", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "Managing multiple servers quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "Terminal system info thanks!", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "could you connected devices project", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "HELP ME NEED TO NSTALL MAKE", + "commands": [ + "sudo apt install -y make" + ] + }, + { + "query": "please 'd like to cs homework setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "hoping to add podman", + "commands": [ + "sudo apt install -y podman" + ] + }, + { + "query": "wanna music production environment for me", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "give me audacity for me", + "commands": [ + "sudo apt install -y audacity" + ] + }, + { + "query": "Wanna set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "let's configure set up subversion", + "commands": [ + "sudo apt install -y subversion" + ] + }, + { + "query": "I need to 'm learning docker on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "I'm making a podcast", + "commands": [ + "sudo apt update", + "sudo apt install -y audacity", + "sudo apt install -y ffmpeg", + "sudo apt install -y lame" + ] + }, + { + "query": "Put php on my system", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "MEMORY DEBUGGING ENVIRONMENT ON MY SYSTEM", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "cs homework setup", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "set up personal cloud setup on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "Fail2ban please", + "commands": [ + "sudo apt install -y fail2ban" + ] + }, + { + "query": "wanna help me managing multiple servers", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "graphic design tools", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + }, + { + "query": "instal npm", + "commands": [ + "sudo apt install -y npm" + ] + }, + { + "query": "install inkscape", + "commands": [ + "sudo apt install -y inkscape" + ] + }, + { + "query": "preparing for deployment asap", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "could you get code", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "give me gnupg please", + "commands": [ + "sudo apt install -y gnupg" + ] + }, + { + "query": "HELP ME CONTAINERIZATION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io", + "sudo systemctl enable docker", + "sudo systemctl start docker", + "sudo usermod -aG docker $USER" + ] + }, + { + "query": "Can you install clang", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "WANNA NEED A TEXT EDITOR ASAP ASAP", + "commands": [ + "sudo apt install -y vim" + ] + }, + { + "query": "wanna clang compiler", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "get vlc", + "commands": [ + "sudo apt install -y vlc" + ] + }, + { + "query": "Configure need to set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "Gotta prepare for full stack work", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "set up word processing and spreadsheets", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "nstall netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "give me fd-find right now", + "commands": [ + "sudo apt install -y fd-find" + ] + }, + { + "query": "I want to automate server setup thanks on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "about to nosql database on my computer", + "commands": [ + "sudo apt install -y mongodb" + ] + }, + { + "query": "ssh server setup!", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "i want to 'd like to java developement environment!", + "commands": [ + "sudo apt update", + "sudo apt install -y default-jdk", + "sudo apt install -y maven" + ] + }, + { + "query": "debugger", + "commands": [ + "sudo apt install -y gdb" + ] + }, + { + "query": "I need to serve web pages now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "devops engineer setup on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y terraform", + "sudo apt install -y docker.io", + "sudo apt install -y tmux htop" + ] + }, + { + "query": "FIX BROKEN PACKAGES thanks", + "commands": [ + "sudo dpkg --configure -a", + "sudo apt --fix-broken install", + "sudo apt update" + ] + }, + { + "query": "can you install nmap", + "commands": [ + "sudo apt install -y nmap" + ] + }, + { + "query": "put screenfetch on my system", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "I need to want to do machine learning on my computer", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "i need default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "HOMEWORK REQUIRES TERMINAL", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "configure better cat", + "commands": [ + "sudo apt install -y bat" + ] + }, + { + "query": "I need to test different os", + "commands": [ + "sudo apt update", + "sudo apt install -y qemu-kvm libvirt-daemon-system", + "sudo apt install -y virt-manager", + "sudo usermod -aG libvirt $USER" + ] + }, + { + "query": "live streaming software", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "BACKUP SOLUTION SETUP PLEASE", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want to backup my files on this machine", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "I want ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "hoping to open websites", + "commands": [ + "sudo apt install -y firefox" + ] + }, + { + "query": "could you put okular on my system quickly", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "SET UP WANT TO READ EBOOKS ON THIS MACHINE", + "commands": [ + "sudo apt update", + "sudo apt install -y calibre" + ] + }, + { + "query": "I WANT TO CHAT WITH MY TEAM", + "commands": [ + "sudo apt install -y mattermost-desktop" + ] + }, + { + "query": "how do I ffmpeg please", + "commands": [ + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "running my own services", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "set up for ai development", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "I WANT TO HELP ME 'M LEARNING MERN STACK", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y mongodb", + "sudo apt install -y nginx", + "sudo apt install -y git" + ] + }, + { + "query": "ready to can you install ipython3", + "commands": [ + "sudo apt install -y ipython3" + ] + }, + { + "query": "just installed Ubuntu, now what for coding asap", + "commands": [ + "sudo apt update", + "sudo apt install -y git vim curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "Php language", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "About to need rust compiler quickly already", + "commands": [ + "sudo apt update", + "sudo apt install -y rustc cargo", + "sudo apt install -y build-essential" + ] + }, + { + "query": "cpp compiler", + "commands": [ + "sudo apt install -y g++" + ] + }, + { + "query": "get default-jdk", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "set up docker.io", + "commands": [ + "sudo apt install -y docker.io" + ] + }, + { + "query": "backup solution setup already thanks", + "commands": [ + "sudo apt update", + "sudo apt install -y rsync", + "sudo apt install -y borgbackup" + ] + }, + { + "query": "configure want to need to test network security on my computer on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y nmap", + "sudo apt install -y wireshark", + "sudo apt install -y tcpdump netcat" + ] + }, + { + "query": "gotta samba server asap", + "commands": [ + "sudo apt update", + "sudo apt install -y samba", + "sudo systemctl enable smbd", + "sudo systemctl start smbd" + ] + }, + { + "query": "productivity software asap", + "commands": [ + "sudo apt update", + "sudo apt install -y libreoffice" + ] + }, + { + "query": "i want to need strace for me please", + "commands": [ + "sudo apt install -y strace" + ] + }, + { + "query": "JAVA THANKS", + "commands": [ + "sudo apt install -y default-jdk" + ] + }, + { + "query": "i'm trying to nstall p7zip-full", + "commands": [ + "sudo apt install -y p7zip-full" + ] + }, + { + "query": "gnu emacs please", + "commands": [ + "sudo apt install -y emacs" + ] + }, + { + "query": "set up need mysql for my project", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I need evince", + "commands": [ + "sudo apt install -y evince" + ] + }, + { + "query": "I want fonts-roboto", + "commands": [ + "sudo apt install -y fonts-roboto" + ] + }, + { + "query": "VIRUS SCANNING TOOLS", + "commands": [ + "sudo apt update", + "sudo apt install -y clamav clamav-daemon", + "sudo freshclam" + ] + }, + { + "query": "COULD YOU VIDEO PRODUCTION ENVIRONMENT", + "commands": [ + "sudo apt update", + "sudo apt install -y ffmpeg", + "sudo apt install -y kdenlive", + "sudo apt install -y audacity" + ] + }, + { + "query": "hoping to pip", + "commands": [ + "sudo apt install -y python3-pip" + ] + }, + { + "query": "how do I put clang on my system", + "commands": [ + "sudo apt install -y clang" + ] + }, + { + "query": "wanna tls asap", + "commands": [ + "sudo apt install -y openssl" + ] + }, + { + "query": "let's prepare for ml work", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip python3-venv", + "sudo apt install -y python3-dev build-essential", + "sudo apt install -y libopenblas-dev liblapack-dev" + ] + }, + { + "query": "give me screen", + "commands": [ + "sudo apt install -y screen" + ] + }, + { + "query": "I'D LIKE TO EDUCATIONAL PROGRAMMING SETUP", + "commands": [ + "sudo apt update", + "sudo apt install -y scratch", + "sudo apt install -y python3 idle3" + ] + }, + { + "query": "help me hardware project with sensors", + "commands": [ + "sudo apt update", + "sudo apt install -y python3 python3-pip", + "sudo apt install -y python3-rpi.gpio", + "sudo apt install -y i2c-tools" + ] + }, + { + "query": "i want netcat", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "set up sqlite database", + "commands": [ + "sudo apt install -y sqlite3" + ] + }, + { + "query": "bring my system up to date quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt autoremove -y" + ] + }, + { + "query": "Need to could you ssh server setup", + "commands": [ + "sudo apt update", + "sudo apt install -y openssh-server", + "sudo systemctl enable ssh", + "sudo systemctl start ssh" + ] + }, + { + "query": "okular please", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "could you need gzip thanks", + "commands": [ + "sudo apt install -y gzip" + ] + }, + { + "query": "Iot development environment", + "commands": [ + "sudo apt update", + "sudo apt install -y arduino", + "sudo usermod -aG dialout $USER" + ] + }, + { + "query": "ABOUT TO REDIS-SERVER PLEASE QUICKLY", + "commands": [ + "sudo apt install -y redis-server" + ] + }, + { + "query": "how do i developer tools please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "sudo apt install -y vim", + "sudo apt install -y curl wget", + "sudo apt install -y build-essential" + ] + }, + { + "query": "READY TO MAKE MY SERVER SECURE", + "commands": [ + "sudo apt update", + "sudo apt install -y ufw fail2ban", + "sudo ufw enable", + "sudo systemctl enable fail2ban", + "sudo systemctl start fail2ban" + ] + }, + { + "query": "json tool asap", + "commands": [ + "sudo apt install -y jq" + ] + }, + { + "query": "help me unzip please", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "BZIP TOOL", + "commands": [ + "sudo apt install -y bzip2" + ] + }, + { + "query": "looking to clamav scanner asap", + "commands": [ + "sudo apt install -y clamav" + ] + }, + { + "query": "i want to stream games", + "commands": [ + "sudo apt update", + "sudo apt install -y obs-studio", + "sudo apt install -y ffmpeg" + ] + }, + { + "query": "about to set up go devlopment environment", + "commands": [ + "sudo apt update", + "sudo apt install -y golang-go", + "sudo apt install -y git" + ] + }, + { + "query": "source code management please", + "commands": [ + "sudo apt update", + "sudo apt install -y git", + "git config --global init.defaultBranch main" + ] + }, + { + "query": "give me lua5.4 on my system", + "commands": [ + "sudo apt install -y lua5.4" + ] + }, + { + "query": "perl please", + "commands": [ + "sudo apt install -y perl" + ] + }, + { + "query": "MAKE MY COMPUTER READY FOR FRONTEND WORK ASAP", + "commands": [ + "sudo apt update", + "sudo apt install -y nodejs npm", + "sudo apt install -y nginx", + "sudo apt install -y git curl" + ] + }, + { + "query": "I want to system info", + "commands": [ + "sudo apt install -y neofetch" + ] + }, + { + "query": "get screenfetch on this machine", + "commands": [ + "sudo apt install -y screenfetch" + ] + }, + { + "query": "could you getting ready to go live quickly", + "commands": [ + "sudo apt update", + "sudo apt upgrade -y", + "sudo apt install -y nginx", + "sudo apt install -y certbot python3-certbot-nginx", + "sudo apt install -y ufw fail2ban" + ] + }, + { + "query": "ready to want to self-host my apps please", + "commands": [ + "sudo apt update", + "sudo apt install -y docker.io docker-compose", + "sudo apt install -y nginx", + "sudo apt install -y certbot" + ] + }, + { + "query": "I NEED YARN?", + "commands": [ + "sudo apt install -y yarn" + ] + }, + { + "query": "gotta configure server automation environment asap", + "commands": [ + "sudo apt update", + "sudo apt install -y ansible", + "sudo apt install -y sshpass" + ] + }, + { + "query": "let's want to use mysql", + "commands": [ + "sudo apt update", + "sudo apt install -y mysql-server", + "sudo systemctl enable mysql", + "sudo systemctl start mysql" + ] + }, + { + "query": "I need to need to fetch things from the web", + "commands": [ + "sudo apt update", + "sudo apt install -y curl wget", + "sudo apt install -y aria2" + ] + }, + { + "query": "looking to notebooks please", + "commands": [ + "sudo apt install -y jupyter-notebook" + ] + }, + { + "query": "unzip please", + "commands": [ + "sudo apt install -y unzip" + ] + }, + { + "query": "give me php", + "commands": [ + "sudo apt install -y php" + ] + }, + { + "query": "please get okular", + "commands": [ + "sudo apt install -y okular" + ] + }, + { + "query": "I'd like to want to find bugs in my code on my system", + "commands": [ + "sudo apt update", + "sudo apt install -y gdb", + "sudo apt install -y valgrind", + "sudo apt install -y strace ltrace" + ] + }, + { + "query": "add calibre", + "commands": [ + "sudo apt install -y calibre" + ] + }, + { + "query": "i want a modern editor", + "commands": [ + "sudo apt install -y code" + ] + }, + { + "query": "MY PROFESSOR WANTS US TO USE LINUX FOR ME RIGHT NOW", + "commands": [ + "sudo apt update", + "sudo apt install -y gcc g++ make", + "sudo apt install -y git", + "sudo apt install -y vim" + ] + }, + { + "query": "scientific document preparation", + "commands": [ + "sudo apt update", + "sudo apt install -y texlive-full", + "sudo apt install -y texmaker" + ] + }, + { + "query": "set up wireshark?", + "commands": [ + "sudo apt install -y wireshark" + ] + }, + { + "query": "Make my computer a server right now", + "commands": [ + "sudo apt update", + "sudo apt install -y nginx", + "sudo systemctl enable nginx", + "sudo systemctl start nginx" + ] + }, + { + "query": "put netcat on my system", + "commands": [ + "sudo apt install -y netcat" + ] + }, + { + "query": "I want to edit images quickly", + "commands": [ + "sudo apt update", + "sudo apt install -y gimp", + "sudo apt install -y imagemagick", + "sudo apt install -y inkscape" + ] + } +] \ No newline at end of file diff --git a/docs/ASK_DO_ARCHITECTURE.md b/docs/ASK_DO_ARCHITECTURE.md new file mode 100644 index 000000000..3b4261231 --- /dev/null +++ b/docs/ASK_DO_ARCHITECTURE.md @@ -0,0 +1,741 @@ +# Cortex `ask --do` Architecture + +> AI-powered command execution with intelligent error handling, auto-repair, and real-time terminal monitoring. + +## Table of Contents + +- [Overview](#overview) +- [Architecture Diagram](#architecture-diagram) +- [Core Components](#core-components) +- [Execution Flow](#execution-flow) +- [Terminal Monitoring](#terminal-monitoring) +- [Error Handling & Auto-Fix](#error-handling--auto-fix) +- [Session Management](#session-management) +- [Key Files](#key-files) +- [Data Flow](#data-flow) + +--- + +## Overview + +`cortex ask --do` is an interactive AI assistant that can execute commands on your Linux system. Unlike simple command execution, it features: + +- **Natural Language Understanding** - Describe what you want in plain English +- **Conflict Detection** - Detects existing resources (Docker containers, services, files) before execution +- **Task Tree Execution** - Structured command execution with dependencies +- **Auto-Repair** - Automatically diagnoses and fixes failed commands +- **Terminal Monitoring** - Watches your other terminals for real-time feedback +- **Session Persistence** - Tracks history across multiple interactions + +--- + +## Architecture Diagram + +``` +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ USER INPUT โ”‚ +โ”‚ "install nginx and configure it" โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ CLI Layer โ”‚ +โ”‚ (cli.py) โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ Signal Handlers โ”‚ โ”‚ Session Manager โ”‚ โ”‚ Interactive โ”‚ โ”‚ +โ”‚ โ”‚ (Ctrl+Z/C) โ”‚ โ”‚ (session_id) โ”‚ โ”‚ Prompt โ”‚ โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ AskHandler โ”‚ +โ”‚ (ask.py) โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ LLM Integration โ”‚ โ”‚ +โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ Claude โ”‚ โ”‚ Kimi K2 โ”‚ โ”‚ Ollama โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ (Primary) โ”‚ โ”‚ (Fallback) โ”‚ โ”‚ (Local) โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ”‚ โ”‚ +โ”‚ Response Types: โ”‚ +โ”‚ โ”œโ”€โ”€ "command" โ†’ Read-only info gathering โ”‚ +โ”‚ โ”œโ”€โ”€ "do_commands" โ†’ Commands to execute (requires approval) โ”‚ +โ”‚ โ””โ”€โ”€ "answer" โ†’ Final response to user โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ DoHandler โ”‚ +โ”‚ (do_runner/handler.py) โ”‚ +โ”‚ โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ Conflict โ”‚ โ”‚ Task Tree โ”‚ โ”‚ Auto โ”‚ โ”‚ Terminal โ”‚ โ”‚ +โ”‚ โ”‚ Detection โ”‚ โ”‚ Execution โ”‚ โ”‚ Repair โ”‚ โ”‚ Monitor โ”‚ โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ”‚ โ”‚ +โ”‚ Execution Modes: โ”‚ +โ”‚ โ”œโ”€โ”€ Automatic โ†’ Commands run with user approval โ”‚ +โ”‚ โ””โ”€โ”€ Manual โ†’ User runs commands, Cortex monitors โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ–ผ โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ Automatic Execution โ”‚ โ”‚ Manual Intervention โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ ConflictDetector โ”‚ โ”‚ โ”‚ โ”‚ TerminalMonitor โ”‚ โ”‚ +โ”‚ โ”‚ (verification.py) โ”‚ โ”‚ โ”‚ โ”‚ (terminal.py) โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ Checks for: โ”‚ โ”‚ โ”‚ โ”‚ Monitors: โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Docker containers โ”‚ โ”‚ โ”‚ โ”‚ โ€ข ~/.bash_history โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Running services โ”‚ โ”‚ โ”‚ โ”‚ โ€ข ~/.zsh_history โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Existing files โ”‚ โ”‚ โ”‚ โ”‚ โ€ข terminal_watch.log โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Port conflicts โ”‚ โ”‚ โ”‚ โ”‚ โ€ข Cursor IDE terminals โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Package conflicts โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ โ”‚ Features: โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ€ข Real-time command detection โ”‚ โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ โ€ข Error detection & auto-fix โ”‚ โ”‚ +โ”‚ โ”‚ CommandExecutor โ”‚ โ”‚ โ”‚ โ”‚ โ€ข Desktop notifications โ”‚ โ”‚ +โ”‚ โ”‚ (executor.py) โ”‚ โ”‚ โ”‚ โ”‚ โ€ข Terminal ID tracking โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ”‚ โ”‚ โ€ข Subprocess mgmt โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Timeout handling โ”‚ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ โ€ข Output capture โ”‚ โ”‚ โ”‚ โ”‚ Watch Service (Daemon) โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Sudo handling โ”‚ โ”‚ โ”‚ โ”‚ (watch_service.py) โ”‚ โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ€ข Runs as systemd user service โ”‚ โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ โ€ข Auto-starts on login โ”‚ โ”‚ +โ”‚ โ”‚ ErrorDiagnoser โ”‚ โ”‚ โ”‚ โ”‚ โ€ข Uses inotify for efficiency โ”‚ โ”‚ +โ”‚ โ”‚ (diagnosis.py) โ”‚ โ”‚ โ”‚ โ”‚ โ€ข Logs to terminal_commands.json โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ”‚ โ”‚ โ€ข Pattern matching โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข LLM-powered diag โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ +โ”‚ โ”‚ โ€ข Fix suggestions โ”‚ โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ”‚ โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ AutoFixer โ”‚ โ”‚ +โ”‚ โ”‚ (diagnosis.py) โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Automatic repairs โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Retry strategies โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข Verification tests โ”‚ โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ Persistence Layer โ”‚ +โ”‚ โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ DoRunDatabase โ”‚ โ”‚ Log Files โ”‚ โ”‚ +โ”‚ โ”‚ (~/.cortex/do_runs.db) โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ€ข terminal_watch.log โ”‚ โ”‚ +โ”‚ โ”‚ Tables: โ”‚ โ”‚ โ€ข terminal_commands.json โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข do_runs โ”‚ โ”‚ โ€ข watch_service.log โ”‚ โ”‚ +โ”‚ โ”‚ โ€ข do_sessions โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ +``` + +--- + +## Core Components + +### 1. CLI Layer (`cli.py`) + +The entry point for `cortex ask --do`. Handles: + +- **Signal Handlers**: Ctrl+Z stops current command (not the session), Ctrl+C exits +- **Session Management**: Creates/tracks session IDs for history grouping +- **Interactive Loop**: "What would you like to do?" prompt with suggestions +- **Error Handling**: Graceful error display without exposing internal details + +```python +# Key functions +_run_interactive_do_session(handler) # Main interactive loop +handle_session_interrupt() # Ctrl+Z handler +``` + +### 2. AskHandler (`ask.py`) + +Manages LLM communication and response parsing: + +- **Multi-LLM Support**: Claude (primary), Kimi K2, Ollama (local) +- **Response Types**: + - `command` - Read-only info gathering (ls, cat, systemctl status) + - `do_commands` - Commands requiring execution (apt install, systemctl restart) + - `answer` - Final response to user +- **Guardrails**: Rejects non-Linux/technical queries +- **Chained Command Handling**: Splits `&&` chains into individual commands + +```python +# Key methods +_get_do_mode_system_prompt() # LLM system prompt +_handle_do_commands() # Process do_commands response +_call_llm() # Make LLM API call with interrupt support +``` + +### 3. DoHandler (`do_runner/handler.py`) + +The execution engine. Core responsibilities: + +- **Conflict Detection**: Checks for existing resources before execution +- **Task Tree Building**: Creates structured execution plan +- **Command Execution**: Runs commands with approval workflow +- **Auto-Repair**: Handles failures with diagnostic commands +- **Manual Intervention**: Coordinates with TerminalMonitor + +```python +# Key methods +execute_with_task_tree() # Main execution method +_handle_resource_conflict() # User prompts for conflicts +_execute_task_node() # Execute single task +_interactive_session() # Post-execution suggestions +``` + +### 4. ConflictDetector (`verification.py`) + +Pre-flight checks before command execution: + +| Resource Type | Check Method | +|--------------|--------------| +| Docker containers | `docker ps -a --filter name=X` | +| Systemd services | `systemctl is-active X` | +| Files/directories | `os.path.exists()` | +| Ports | `ss -tlnp \| grep :PORT` | +| Packages (apt) | `dpkg -l \| grep X` | +| Packages (pip) | `pip show X` | +| Users/groups | `getent passwd/group` | +| Databases | `mysql/psql -e "SHOW DATABASES"` | + +### 5. TerminalMonitor (`terminal.py`) + +Real-time monitoring for manual intervention mode: + +- **Sources Monitored**: + - `~/.bash_history` and `~/.zsh_history` + - `~/.cortex/terminal_watch.log` (from shell hooks) + - Cursor IDE terminal files + - tmux panes + +- **Features**: + - Command detection with terminal ID tracking + - Error detection in command output + - LLM-powered error analysis + - Desktop notifications for errors/fixes + - Auto-fix execution (non-sudo only) + +### 6. Watch Service (`watch_service.py`) + +Background daemon for persistent terminal monitoring: + +```bash +# Install and manage +cortex watch --install --service # Install systemd service +cortex watch --status # Check status +cortex watch --uninstall --service +``` + +- Runs as systemd user service +- Uses inotify for efficient file watching +- Auto-starts on login, auto-restarts on crash +- Logs to `~/.cortex/terminal_commands.json` + +--- + +## Execution Flow + +### Flow 1: Automatic Execution + +``` +User: "install nginx" + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ LLM Analysis โ”‚ โ”€โ”€โ†’ Gathers system info (OS, existing packages) + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ Conflict Check โ”‚ โ”€โ”€โ†’ Is nginx already installed? + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ” + โ”‚ โ”‚ + โ–ผ โ–ผ + Conflict No Conflict + โ”‚ โ”‚ + โ–ผ โ”‚ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ User Choice: โ”‚ โ”‚ +โ”‚ 1. Use existing โ”‚ โ”‚ +โ”‚ 2. Restart โ”‚ โ”‚ +โ”‚ 3. Recreate โ”‚ โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ + โ”‚ โ”‚ + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ Show Commands โ”‚ โ”€โ”€โ†’ Display planned commands for approval + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ User Approval? โ”‚ + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ” + โ”‚ โ”‚ + โ–ผ โ–ผ + Yes No โ”€โ”€โ†’ Cancel + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ Execute Tasks โ”‚ โ”€โ”€โ†’ Run commands one by one + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ” + โ”‚ โ”‚ + โ–ผ โ–ผ + Success Failure + โ”‚ โ”‚ + โ”‚ โ–ผ + โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ โ”‚ Error Diagnosis โ”‚ โ”€โ”€โ†’ Pattern matching + LLM analysis + โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ โ”‚ + โ”‚ โ–ผ + โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ โ”‚ Auto-Repair โ”‚ โ”€โ”€โ†’ Execute fix commands + โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ โ”‚ + โ”‚ โ–ผ + โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ โ”‚ Verify Fix โ”‚ + โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ โ”‚ + โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ Verification โ”‚ โ”€โ”€โ†’ Run tests to confirm success + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ Interactive โ”‚ โ”€โ”€โ†’ "What would you like to do next?" + โ”‚ Session โ”‚ + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ +``` + +### Flow 2: Manual Intervention + +``` +User requests sudo commands OR chooses manual execution + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ Manual Intervention Mode โ”‚ + โ”‚ โ”‚ + โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ + โ”‚ โ”‚ Cortex Terminal โ”‚ โ”‚ + โ”‚ โ”‚ Shows: โ”‚ โ”‚ + โ”‚ โ”‚ โ€ข Commands to run โ”‚ โ”‚ + โ”‚ โ”‚ โ€ข Live terminal feed โ”‚ โ”‚ + โ”‚ โ”‚ โ€ข Real-time feedback โ”‚ โ”‚ + โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ + โ”‚ โ–ฒ โ”‚ + โ”‚ โ”‚ monitors โ”‚ + โ”‚ โ”‚ โ”‚ + โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ + โ”‚ โ”‚ Other Terminal(s) โ”‚ โ”‚ + โ”‚ โ”‚ User runs: โ”‚ โ”‚ + โ”‚ โ”‚ $ sudo systemctl restart nginx โ”‚ โ”‚ + โ”‚ โ”‚ $ sudo apt install package โ”‚ โ”‚ + โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ Command Match? โ”‚ + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ โ”‚ โ”‚ + โ–ผ โ–ผ โ–ผ + Correct Wrong Error in + Command Command Output + โ”‚ โ”‚ โ”‚ + โ”‚ โ–ผ โ–ผ + โ”‚ Notification Notification + โ”‚ "Expected: "Fixing error..." + โ”‚ " + Auto-fix + โ”‚ โ”‚ โ”‚ + โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ + User presses Enter when done + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ Validate โ”‚ โ”€โ”€โ†’ Check if expected commands were run + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ + โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” + โ”‚ Continue or โ”‚ + โ”‚ Show Next Steps โ”‚ + โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ +``` + +--- + +## Terminal Monitoring + +### Watch Hook Flow + +``` +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ Terminal with Hook Active โ”‚ +โ”‚ โ”‚ +โ”‚ $ sudo systemctl restart nginx โ”‚ +โ”‚ โ”‚ โ”‚ +โ”‚ โ–ผ โ”‚ +โ”‚ PROMPT_COMMAND triggers __cortex_log_cmd() โ”‚ +โ”‚ โ”‚ โ”‚ +โ”‚ โ–ผ โ”‚ +โ”‚ Writes to ~/.cortex/terminal_watch.log โ”‚ +โ”‚ Format: pts_1|sudo systemctl restart nginx โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ Watch Service (Daemon) โ”‚ +โ”‚ โ”‚ +โ”‚ Monitors with inotify: โ”‚ +โ”‚ โ€ข ~/.cortex/terminal_watch.log โ”‚ +โ”‚ โ€ข ~/.bash_history โ”‚ +โ”‚ โ€ข ~/.zsh_history โ”‚ +โ”‚ โ”‚ โ”‚ +โ”‚ โ–ผ โ”‚ +โ”‚ Parses: TTY|COMMAND โ”‚ +โ”‚ โ”‚ โ”‚ +โ”‚ โ–ผ โ”‚ +โ”‚ Writes to ~/.cortex/terminal_commands.json โ”‚ +โ”‚ {"timestamp": "...", "command": "...", "source": "watch_hook", โ”‚ +โ”‚ "terminal_id": "pts_1"} โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ TerminalMonitor (In Cortex) โ”‚ +โ”‚ โ”‚ +โ”‚ During manual intervention: โ”‚ +โ”‚ 1. Reads terminal_watch.log โ”‚ +โ”‚ 2. Detects new commands โ”‚ +โ”‚ 3. Shows in "Live Terminal Feed" โ”‚ +โ”‚ 4. Checks if command matches expected โ”‚ +โ”‚ 5. Detects errors in output โ”‚ +โ”‚ 6. Triggers auto-fix if needed โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ +``` + +### Log File Formats + +**`~/.cortex/terminal_watch.log`** (Simple): +``` +pts_1|docker ps +pts_1|sudo systemctl restart nginx +pts_2|ls -la +shared|cd /home/user +``` + +**`~/.cortex/terminal_commands.json`** (Detailed): +```json +{"timestamp": "2026-01-16T14:15:00.123", "command": "docker ps", "source": "watch_hook", "terminal_id": "pts_1"} +{"timestamp": "2026-01-16T14:15:05.456", "command": "sudo systemctl restart nginx", "source": "watch_hook", "terminal_id": "pts_1"} +{"timestamp": "2026-01-16T14:15:10.789", "command": "cd /home/user", "source": "history", "terminal_id": "shared"} +``` + +--- + +## Error Handling & Auto-Fix + +### Error Diagnosis Pipeline + +``` +Command fails with error + โ”‚ + โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ Pattern Matching โ”‚ +โ”‚ โ”‚ +โ”‚ COMMAND_SHELL_ERRORS = { โ”‚ +โ”‚ "Permission denied": "permission_error", โ”‚ +โ”‚ "command not found": "missing_package", โ”‚ +โ”‚ "Connection refused": "service_not_running", โ”‚ +โ”‚ "No space left": "disk_full", โ”‚ +โ”‚ ... โ”‚ +โ”‚ } โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ LLM Analysis (Claude) โ”‚ +โ”‚ โ”‚ +โ”‚ Prompt: "Analyze this error and suggest a fix" โ”‚ +โ”‚ Response: โ”‚ +โ”‚ CAUSE: Service not running โ”‚ +โ”‚ FIX: sudo systemctl start nginx โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ + โ”‚ + โ–ผ +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ AutoFixer Execution โ”‚ +โ”‚ โ”‚ +โ”‚ 1. Check if fix requires sudo โ”‚ +โ”‚ - Yes โ†’ Show manual instructions + notification โ”‚ +โ”‚ - No โ†’ Execute automatically โ”‚ +โ”‚ 2. Verify fix worked โ”‚ +โ”‚ 3. Retry original command if fixed โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ +``` + +### Auto-Fix Strategies + +| Error Type | Strategy | Actions | +|------------|----------|---------| +| `permission_error` | `fix_permissions` | `chmod`, `chown`, or manual sudo | +| `missing_package` | `install_package` | `apt install`, `pip install` | +| `service_not_running` | `start_service` | `systemctl start`, check logs | +| `port_in_use` | `kill_port_user` | Find and stop conflicting process | +| `disk_full` | `free_disk_space` | `apt clean`, suggest cleanup | +| `config_error` | `fix_config` | Backup + LLM-suggested fix | + +--- + +## Session Management + +### Session Structure + +``` +Session (session_id: sess_20260116_141500) +โ”‚ +โ”œโ”€โ”€ Run 1 (run_id: do_20260116_141500_abc123) +โ”‚ โ”œโ”€โ”€ Query: "install nginx" +โ”‚ โ”œโ”€โ”€ Commands: +โ”‚ โ”‚ โ”œโ”€โ”€ apt update +โ”‚ โ”‚ โ”œโ”€โ”€ apt install -y nginx +โ”‚ โ”‚ โ””โ”€โ”€ systemctl start nginx +โ”‚ โ””โ”€โ”€ Status: SUCCESS +โ”‚ +โ”œโ”€โ”€ Run 2 (run_id: do_20260116_141600_def456) +โ”‚ โ”œโ”€โ”€ Query: "configure nginx for my domain" +โ”‚ โ”œโ”€โ”€ Commands: +โ”‚ โ”‚ โ”œโ”€โ”€ cat /etc/nginx/sites-available/default +โ”‚ โ”‚ โ””โ”€โ”€ [manual: edit config] +โ”‚ โ””โ”€โ”€ Status: SUCCESS +โ”‚ +โ””โ”€โ”€ Run 3 (run_id: do_20260116_141700_ghi789) + โ”œโ”€โ”€ Query: "test nginx" + โ”œโ”€โ”€ Commands: + โ”‚ โ””โ”€โ”€ curl localhost + โ””โ”€โ”€ Status: SUCCESS +``` + +### Database Schema + +```sql +-- Sessions table +CREATE TABLE do_sessions ( + session_id TEXT PRIMARY KEY, + started_at TEXT, + ended_at TEXT, + total_runs INTEGER DEFAULT 0 +); + +-- Runs table +CREATE TABLE do_runs ( + run_id TEXT PRIMARY KEY, + session_id TEXT, + summary TEXT, + mode TEXT, + commands TEXT, -- JSON array + started_at TEXT, + completed_at TEXT, + user_query TEXT, + FOREIGN KEY (session_id) REFERENCES do_sessions(session_id) +); +``` + +--- + +## Key Files + +| File | Purpose | +|------|---------| +| `cortex/cli.py` | CLI entry point, signal handlers, interactive loop | +| `cortex/ask.py` | LLM communication, response parsing, command validation | +| `cortex/do_runner/handler.py` | Main execution engine, conflict handling, task tree | +| `cortex/do_runner/executor.py` | Subprocess management, timeout handling | +| `cortex/do_runner/verification.py` | Conflict detection, verification tests | +| `cortex/do_runner/diagnosis.py` | Error patterns, diagnosis, auto-fix strategies | +| `cortex/do_runner/terminal.py` | Terminal monitoring, shell hooks | +| `cortex/do_runner/models.py` | Data models (TaskNode, DoRun, CommandStatus) | +| `cortex/do_runner/database.py` | SQLite persistence for runs/sessions | +| `cortex/watch_service.py` | Background daemon for terminal monitoring | +| `cortex/llm_router.py` | Multi-LLM routing (Claude, Kimi, Ollama) | + +--- + +## Data Flow + +``` +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ Data Flow โ”‚ +โ”‚ โ”‚ +โ”‚ User Query โ”€โ”€โ†’ AskHandler โ”€โ”€โ†’ LLM โ”€โ”€โ†’ Response โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ–ผ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ command โ”‚ โ”€โ”€โ†’ Execute read-only โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ–ผ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ Output added โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ to history โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ–ผ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ Loop back to LLM โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ–ผ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ do_commands โ”‚โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ–ผ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ DoHandler โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ–ผ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ Task Tree โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ–ผ โ”‚ +โ”‚ โ”‚ โ”‚ Execute โ”€โ”€โ†’ Success โ”€โ”€โ†’ Verify โ”€โ”€โ†’ Done โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ”‚ โ–ผ โ”‚ +โ”‚ โ”‚ โ”‚ Failure โ”€โ”€โ†’ Diagnose โ”€โ”€โ†’ Fix โ”€โ”€โ†’ Retry โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ โ–ผ โ”‚ +โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ โ”‚ answer โ”‚ โ”€โ”€โ†’ Display to user โ”‚ +โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ–ผ โ–ผ โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ Session Database โ”‚ โ”‚ +โ”‚ โ”‚ ~/.cortex/do_runs.db โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ +``` + +--- + +## Usage Examples + +### Basic Usage + +```bash +# Start interactive session +cortex ask --do + +# One-shot command +cortex ask --do "install docker and run hello-world" +``` + +### With Terminal Monitoring + +```bash +# Terminal 1: Start Cortex +cortex ask --do +> install nginx with ssl + +# Terminal 2: Run sudo commands shown by Cortex +$ sudo apt install nginx +$ sudo systemctl start nginx +``` + +### Check History + +```bash +# View do history +cortex do history + +# Shows: +# Session: sess_20260116_141500 (3 runs) +# Run 1: install nginx - SUCCESS +# Run 2: configure nginx - SUCCESS +# Run 3: test nginx - SUCCESS +``` + +--- + +## Configuration + +### Environment Variables + +| Variable | Purpose | Default | +|----------|---------|---------| +| `ANTHROPIC_API_KEY` | Claude API key | Required | +| `CORTEX_TERMINAL` | Marks Cortex's own terminal | Set automatically | +| `CORTEX_DO_TIMEOUT` | Command timeout (seconds) | 120 | + +### Watch Service + +```bash +# Install (recommended) +cortex watch --install --service + +# Check status +cortex watch --status + +# View logs +journalctl --user -u cortex-watch +cat ~/.cortex/watch_service.log +``` + +--- + +## Troubleshooting + +### Terminal monitoring not working + +1. Check if service is running: `cortex watch --status` +2. Check hook is in .bashrc: `grep "Cortex Terminal Watch" ~/.bashrc` +3. For existing terminals, run: `source ~/.cortex/watch_hook.sh` + +### Commands not being detected + +1. Check watch log: `cat ~/.cortex/terminal_watch.log` +2. Ensure format is `TTY|COMMAND` (e.g., `pts_1|ls -la`) +3. Restart service: `systemctl --user restart cortex-watch` + +### Auto-fix not working + +1. Check if command requires sudo (auto-fix can't run sudo) +2. Check error diagnosis: Look for `โš  Fix requires manual execution` +3. Run suggested commands manually in another terminal + +--- + +## See Also + +- [LLM Integration](./LLM_INTEGRATION.md) +- [Error Handling](./modules/README_ERROR_PARSER.md) +- [Verification System](./modules/README_VERIFICATION.md) +- [Troubleshooting Guide](./TROUBLESHOOTING.md) + diff --git a/scripts/setup_ask_do.py b/scripts/setup_ask_do.py new file mode 100755 index 000000000..e593a2e08 --- /dev/null +++ b/scripts/setup_ask_do.py @@ -0,0 +1,637 @@ +#!/usr/bin/env python3 +""" +Setup script for Cortex `ask --do` command. + +This script sets up everything needed for the AI-powered command execution: +1. Installs required Python dependencies +2. Sets up Ollama Docker container with a small model +3. Installs and starts the Cortex Watch service +4. Configures shell hooks for terminal monitoring + +Usage: + python scripts/setup_ask_do.py [--no-docker] [--model MODEL] [--skip-watch] + +Options: + --no-docker Skip Docker/Ollama setup (use cloud LLM only) + --model MODEL Ollama model to install (default: mistral) + --skip-watch Skip watch service installation + --uninstall Remove all ask --do components +""" + +import argparse +import os +import shutil +import subprocess +import sys +import time +from pathlib import Path + + +# ANSI colors +class Colors: + HEADER = '\033[95m' + BLUE = '\033[94m' + CYAN = '\033[96m' + GREEN = '\033[92m' + YELLOW = '\033[93m' + RED = '\033[91m' + BOLD = '\033[1m' + DIM = '\033[2m' + END = '\033[0m' + + +def print_header(text: str): + """Print a section header.""" + print(f"\n{Colors.BOLD}{Colors.CYAN}{'โ•' * 60}{Colors.END}") + print(f"{Colors.BOLD}{Colors.CYAN} {text}{Colors.END}") + print(f"{Colors.BOLD}{Colors.CYAN}{'โ•' * 60}{Colors.END}\n") + + +def print_step(text: str): + """Print a step.""" + print(f"{Colors.BLUE}โ–ถ{Colors.END} {text}") + + +def print_success(text: str): + """Print success message.""" + print(f"{Colors.GREEN}โœ“{Colors.END} {text}") + + +def print_warning(text: str): + """Print warning message.""" + print(f"{Colors.YELLOW}โš {Colors.END} {text}") + + +def print_error(text: str): + """Print error message.""" + print(f"{Colors.RED}โœ—{Colors.END} {text}") + + +def run_cmd(cmd: list[str], check: bool = True, capture: bool = False, timeout: int = 300) -> subprocess.CompletedProcess: + """Run a command and return the result.""" + try: + result = subprocess.run( + cmd, + check=check, + capture_output=capture, + text=True, + timeout=timeout + ) + return result + except subprocess.CalledProcessError as e: + if capture: + print_error(f"Command failed: {' '.join(cmd)}") + if e.stderr: + print(f" {Colors.DIM}{e.stderr[:200]}{Colors.END}") + raise + except subprocess.TimeoutExpired: + print_error(f"Command timed out: {' '.join(cmd)}") + raise + + +def check_docker() -> bool: + """Check if Docker is installed and running.""" + try: + result = run_cmd(["docker", "info"], capture=True, check=False) + return result.returncode == 0 + except FileNotFoundError: + return False + + +def check_ollama_container() -> tuple[bool, bool]: + """Check if Ollama container exists and is running. + + Returns: (exists, running) + """ + try: + result = run_cmd( + ["docker", "ps", "-a", "--filter", "name=ollama", "--format", "{{.Status}}"], + capture=True, + check=False + ) + if result.returncode != 0 or not result.stdout.strip(): + return False, False + + status = result.stdout.strip().lower() + running = "up" in status + return True, running + except Exception: + return False, False + + +def setup_ollama(model: str = "mistral") -> bool: + """Set up Ollama Docker container and pull a model.""" + print_header("Setting up Ollama (Local LLM)") + + # Check Docker + print_step("Checking Docker...") + if not check_docker(): + print_error("Docker is not installed or not running") + print(f" {Colors.DIM}Install Docker: https://docs.docker.com/get-docker/{Colors.END}") + print(f" {Colors.DIM}Then run: sudo systemctl start docker{Colors.END}") + return False + print_success("Docker is available") + + # Check existing container + exists, running = check_ollama_container() + + if exists and running: + print_success("Ollama container is already running") + elif exists and not running: + print_step("Starting existing Ollama container...") + run_cmd(["docker", "start", "ollama"]) + print_success("Ollama container started") + else: + # Pull and run Ollama + print_step("Pulling Ollama Docker image...") + run_cmd(["docker", "pull", "ollama/ollama"]) + print_success("Ollama image pulled") + + print_step("Starting Ollama container...") + run_cmd([ + "docker", "run", "-d", + "--name", "ollama", + "-p", "11434:11434", + "-v", "ollama:/root/.ollama", + "--restart", "unless-stopped", + "ollama/ollama" + ]) + print_success("Ollama container started") + + # Wait for container to be ready + print_step("Waiting for Ollama to initialize...") + time.sleep(5) + + # Check if model exists + print_step(f"Checking for {model} model...") + try: + result = run_cmd( + ["docker", "exec", "ollama", "ollama", "list"], + capture=True, + check=False + ) + if model in result.stdout: + print_success(f"Model {model} is already installed") + return True + except Exception: + pass + + # Pull model + print_step(f"Pulling {model} model (this may take a few minutes)...") + print(f" {Colors.DIM}Model size: ~4GB for mistral, ~2GB for phi{Colors.END}") + + try: + # Use subprocess directly for streaming output + process = subprocess.Popen( + ["docker", "exec", "ollama", "ollama", "pull", model], + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, + text=True + ) + + for line in process.stdout: + line = line.strip() + if line: + # Show progress + if "pulling" in line.lower() or "%" in line: + print(f"\r {Colors.DIM}{line[:70]}{Colors.END}", end="", flush=True) + + process.wait() + print() # New line after progress + + if process.returncode == 0: + print_success(f"Model {model} installed successfully") + return True + else: + print_error(f"Failed to pull model {model}") + return False + + except Exception as e: + print_error(f"Error pulling model: {e}") + return False + + +def setup_watch_service() -> bool: + """Install and start the Cortex Watch service.""" + print_header("Setting up Cortex Watch Service") + + # Check if service is already installed + service_file = Path.home() / ".config" / "systemd" / "user" / "cortex-watch.service" + + if service_file.exists(): + print_step("Watch service is already installed, checking status...") + result = run_cmd( + ["systemctl", "--user", "is-active", "cortex-watch.service"], + capture=True, + check=False + ) + if result.stdout.strip() == "active": + print_success("Cortex Watch service is running") + return True + else: + print_step("Starting watch service...") + run_cmd(["systemctl", "--user", "start", "cortex-watch.service"], check=False) + else: + # Install the service + print_step("Installing Cortex Watch service...") + + try: + # Import and run the installation + from cortex.watch_service import install_service + success, msg = install_service() + + if success: + print_success("Watch service installed and started") + print(f" {Colors.DIM}{msg[:200]}...{Colors.END}" if len(msg) > 200 else f" {Colors.DIM}{msg}{Colors.END}") + else: + print_error(f"Failed to install watch service: {msg}") + return False + + except ImportError: + print_warning("Could not import watch_service module") + print_step("Installing via CLI...") + + result = run_cmd( + ["cortex", "watch", "--install", "--service"], + capture=True, + check=False + ) + if result.returncode == 0: + print_success("Watch service installed via CLI") + else: + print_error("Failed to install watch service") + return False + + # Verify service is running + result = run_cmd( + ["systemctl", "--user", "is-active", "cortex-watch.service"], + capture=True, + check=False + ) + if result.stdout.strip() == "active": + print_success("Watch service is active and monitoring terminals") + return True + else: + print_warning("Watch service installed but not running") + return True # Still return True as installation succeeded + + +def setup_shell_hooks() -> bool: + """Set up shell hooks for terminal monitoring.""" + print_header("Setting up Shell Hooks") + + cortex_dir = Path.home() / ".cortex" + cortex_dir.mkdir(parents=True, exist_ok=True) + + # Create watch hook script + hook_file = cortex_dir / "watch_hook.sh" + hook_content = '''#!/bin/bash +# Cortex Terminal Watch Hook +# This hook logs commands for Cortex to monitor during manual intervention + +__cortex_last_histnum="" +__cortex_log_cmd() { + local histnum="$(history 1 | awk '{print $1}')" + [[ "$histnum" == "$__cortex_last_histnum" ]] && return + __cortex_last_histnum="$histnum" + + local cmd="$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" + [[ -z "${cmd// /}" ]] && return + [[ "$cmd" == cortex* ]] && return + [[ "$cmd" == *"source"*".cortex"* ]] && return + [[ "$cmd" == *"watch_hook"* ]] && return + [[ -n "$CORTEX_TERMINAL" ]] && return + + # Include terminal ID (TTY) in the log + local tty_name="$(tty 2>/dev/null | sed 's|/dev/||' | tr '/' '_')" + echo "${tty_name:-unknown}|$cmd" >> ~/.cortex/terminal_watch.log +} +export PROMPT_COMMAND='history -a; __cortex_log_cmd' +echo "โœ“ Cortex is now watching this terminal" +''' + + print_step("Creating watch hook script...") + hook_file.write_text(hook_content) + hook_file.chmod(0o755) + print_success(f"Created {hook_file}") + + # Add to .bashrc if not already present + bashrc = Path.home() / ".bashrc" + marker = "# Cortex Terminal Watch Hook" + + if bashrc.exists(): + content = bashrc.read_text() + if marker not in content: + print_step("Adding hook to .bashrc...") + + bashrc_addition = f''' +{marker} +__cortex_last_histnum="" +__cortex_log_cmd() {{ + local histnum="$(history 1 | awk '{{print $1}}')" + [[ "$histnum" == "$__cortex_last_histnum" ]] && return + __cortex_last_histnum="$histnum" + + local cmd="$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" + [[ -z "${{cmd// /}}" ]] && return + [[ "$cmd" == cortex* ]] && return + [[ "$cmd" == *"source"*".cortex"* ]] && return + [[ "$cmd" == *"watch_hook"* ]] && return + [[ -n "$CORTEX_TERMINAL" ]] && return + + local tty_name="$(tty 2>/dev/null | sed 's|/dev/||' | tr '/' '_')" + echo "${{tty_name:-unknown}}|$cmd" >> ~/.cortex/terminal_watch.log +}} +export PROMPT_COMMAND='history -a; __cortex_log_cmd' + +alias cw="source ~/.cortex/watch_hook.sh" +''' + with open(bashrc, "a") as f: + f.write(bashrc_addition) + print_success("Hook added to .bashrc") + else: + print_success("Hook already in .bashrc") + + # Add to .zshrc if it exists + zshrc = Path.home() / ".zshrc" + if zshrc.exists(): + content = zshrc.read_text() + if marker not in content: + print_step("Adding hook to .zshrc...") + + zshrc_addition = f''' +{marker} +typeset -g __cortex_last_cmd="" +cortex_watch_hook() {{ + local cmd="$(fc -ln -1 | sed 's/^[[:space:]]*//')" + [[ -z "$cmd" ]] && return + [[ "$cmd" == "$__cortex_last_cmd" ]] && return + __cortex_last_cmd="$cmd" + [[ "$cmd" == cortex* ]] && return + [[ "$cmd" == *".cortex"* ]] && return + [[ -n "$CORTEX_TERMINAL" ]] && return + local tty_name="$(tty 2>/dev/null | sed 's|/dev/||' | tr '/' '_')" + echo "${{tty_name:-unknown}}|$cmd" >> ~/.cortex/terminal_watch.log +}} +precmd_functions+=(cortex_watch_hook) +''' + with open(zshrc, "a") as f: + f.write(zshrc_addition) + print_success("Hook added to .zshrc") + else: + print_success("Hook already in .zshrc") + + return True + + +def check_api_keys() -> dict[str, bool]: + """Check for available API keys.""" + print_header("Checking API Keys") + + keys = { + "ANTHROPIC_API_KEY": False, + "OPENAI_API_KEY": False, + } + + # Check environment variables + for key in keys: + if os.environ.get(key): + keys[key] = True + print_success(f"{key} found in environment") + + # Check .env file + env_file = Path.cwd() / ".env" + if env_file.exists(): + content = env_file.read_text() + for key in keys: + if key in content and not keys[key]: + keys[key] = True + print_success(f"{key} found in .env file") + + # Report missing keys + if not any(keys.values()): + print_warning("No API keys found") + print(f" {Colors.DIM}For cloud LLM, set ANTHROPIC_API_KEY or OPENAI_API_KEY{Colors.END}") + print(f" {Colors.DIM}Or use local Ollama (--no-docker to skip){Colors.END}") + + return keys + + +def verify_installation() -> bool: + """Verify the installation is working.""" + print_header("Verifying Installation") + + all_good = True + + # Check cortex command + print_step("Checking cortex command...") + result = run_cmd(["cortex", "--version"], capture=True, check=False) + if result.returncode == 0: + print_success(f"Cortex installed: {result.stdout.strip()}") + else: + print_error("Cortex command not found") + all_good = False + + # Check watch service + print_step("Checking watch service...") + result = run_cmd( + ["systemctl", "--user", "is-active", "cortex-watch.service"], + capture=True, + check=False + ) + if result.stdout.strip() == "active": + print_success("Watch service is running") + else: + print_warning("Watch service is not running") + + # Check Ollama + print_step("Checking Ollama...") + exists, running = check_ollama_container() + if running: + print_success("Ollama container is running") + + # Check if model is available + result = run_cmd( + ["docker", "exec", "ollama", "ollama", "list"], + capture=True, + check=False + ) + if result.returncode == 0 and result.stdout.strip(): + models = [line.split()[0] for line in result.stdout.strip().split('\n')[1:] if line.strip()] + if models: + print_success(f"Models available: {', '.join(models[:3])}") + elif exists: + print_warning("Ollama container exists but not running") + else: + print_warning("Ollama not installed (will use cloud LLM)") + + # Check API keys + api_keys = check_api_keys() + has_llm = any(api_keys.values()) or running + + if not has_llm: + print_error("No LLM available (need API key or Ollama)") + all_good = False + + return all_good + + +def uninstall() -> bool: + """Remove all ask --do components.""" + print_header("Uninstalling Cortex ask --do Components") + + # Stop and remove watch service + print_step("Removing watch service...") + run_cmd(["systemctl", "--user", "stop", "cortex-watch.service"], check=False) + run_cmd(["systemctl", "--user", "disable", "cortex-watch.service"], check=False) + + service_file = Path.home() / ".config" / "systemd" / "user" / "cortex-watch.service" + if service_file.exists(): + service_file.unlink() + print_success("Watch service removed") + + # Remove shell hooks from .bashrc and .zshrc + marker = "# Cortex Terminal Watch Hook" + for rc_file in [Path.home() / ".bashrc", Path.home() / ".zshrc"]: + if rc_file.exists(): + content = rc_file.read_text() + if marker in content: + print_step(f"Removing hook from {rc_file.name}...") + lines = content.split('\n') + new_lines = [] + skip = False + for line in lines: + if marker in line: + skip = True + elif skip and line.strip() == '': + skip = False + continue + elif not skip: + new_lines.append(line) + rc_file.write_text('\n'.join(new_lines)) + print_success(f"Hook removed from {rc_file.name}") + + # Remove cortex directory files (but keep config) + cortex_dir = Path.home() / ".cortex" + files_to_remove = [ + "watch_hook.sh", + "terminal_watch.log", + "terminal_commands.json", + "watch_service.log", + "watch_service.pid", + "watch_state.json", + ] + for filename in files_to_remove: + filepath = cortex_dir / filename + if filepath.exists(): + filepath.unlink() + print_success("Cortex watch files removed") + + # Optionally remove Ollama container + exists, _ = check_ollama_container() + if exists: + print_step("Ollama container found") + response = input(" Remove Ollama container and data? [y/N]: ").strip().lower() + if response == 'y': + run_cmd(["docker", "stop", "ollama"], check=False) + run_cmd(["docker", "rm", "ollama"], check=False) + run_cmd(["docker", "volume", "rm", "ollama"], check=False) + print_success("Ollama container and data removed") + else: + print(f" {Colors.DIM}Keeping Ollama container{Colors.END}") + + print_success("Uninstallation complete") + return True + + +def main(): + parser = argparse.ArgumentParser( + description="Setup script for Cortex ask --do command", + formatter_class=argparse.RawDescriptionHelpFormatter, + epilog=""" +Examples: + python scripts/setup_ask_do.py # Full setup with Ollama + python scripts/setup_ask_do.py --no-docker # Skip Docker/Ollama setup + python scripts/setup_ask_do.py --model phi # Use smaller phi model + python scripts/setup_ask_do.py --uninstall # Remove all components +""" + ) + parser.add_argument("--no-docker", action="store_true", help="Skip Docker/Ollama setup") + parser.add_argument("--model", default="mistral", help="Ollama model to install (default: mistral)") + parser.add_argument("--skip-watch", action="store_true", help="Skip watch service installation") + parser.add_argument("--uninstall", action="store_true", help="Remove all ask --do components") + + args = parser.parse_args() + + print(f"\n{Colors.BOLD}{Colors.CYAN}") + print(" โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—") + print(" โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•") + print(" โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•šโ–ˆโ–ˆโ–ˆโ•”โ• ") + print(" โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ• โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— ") + print(" โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•—") + print(" โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ•") + print(f"{Colors.END}") + print(f" {Colors.DIM}ask --do Setup Wizard{Colors.END}\n") + + if args.uninstall: + return 0 if uninstall() else 1 + + success = True + + # Step 1: Check API keys + api_keys = check_api_keys() + + # Step 2: Setup Ollama (unless skipped) + if not args.no_docker: + if not setup_ollama(args.model): + if not any(api_keys.values()): + print_error("No LLM available - need either Ollama or API key") + success = False + else: + print_warning("Skipping Docker/Ollama setup (--no-docker)") + if not any(api_keys.values()): + print_warning("No API keys found - you'll need to set one up") + + # Step 3: Setup watch service + if not args.skip_watch: + if not setup_watch_service(): + print_warning("Watch service setup had issues") + else: + print_warning("Skipping watch service (--skip-watch)") + + # Step 4: Setup shell hooks + setup_shell_hooks() + + # Step 5: Verify installation + if verify_installation(): + print_header("Setup Complete! ๐ŸŽ‰") + print(f""" +{Colors.GREEN}Everything is ready!{Colors.END} + +{Colors.BOLD}To use Cortex ask --do:{Colors.END} + cortex ask --do + +{Colors.BOLD}To start an interactive session:{Colors.END} + cortex ask --do "install nginx and configure it" + +{Colors.BOLD}For terminal monitoring in existing terminals:{Colors.END} + source ~/.cortex/watch_hook.sh + {Colors.DIM}(or just type 'cw' after opening a new terminal){Colors.END} + +{Colors.BOLD}To check status:{Colors.END} + cortex watch --status +""") + return 0 + else: + print_header("Setup Completed with Warnings") + print(f""" +{Colors.YELLOW}Some components may need attention.{Colors.END} + +Run {Colors.CYAN}cortex watch --status{Colors.END} to check the current state. +""") + return 1 + + +if __name__ == "__main__": + sys.exit(main()) + diff --git a/scripts/setup_ask_do.sh b/scripts/setup_ask_do.sh new file mode 100755 index 000000000..0d1fa40ba --- /dev/null +++ b/scripts/setup_ask_do.sh @@ -0,0 +1,435 @@ +#!/bin/bash +# +# Cortex ask --do Setup Script +# +# This script sets up everything needed for the AI-powered command execution: +# - Ollama Docker container with a local LLM +# - Cortex Watch service for terminal monitoring +# - Shell hooks for command logging +# +# Usage: +# ./scripts/setup_ask_do.sh [options] +# +# Options: +# --no-docker Skip Docker/Ollama setup +# --model MODEL Ollama model (default: mistral, alternatives: phi, llama2) +# --skip-watch Skip watch service installation +# --uninstall Remove all components +# + +set -e + +# Colors +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +CYAN='\033[0;36m' +BOLD='\033[1m' +DIM='\033[2m' +NC='\033[0m' # No Color + +# Defaults +MODEL="mistral" +NO_DOCKER=false +SKIP_WATCH=false +UNINSTALL=false + +# Parse arguments +while [[ $# -gt 0 ]]; do + case $1 in + --no-docker) + NO_DOCKER=true + shift + ;; + --model) + MODEL="$2" + shift 2 + ;; + --skip-watch) + SKIP_WATCH=true + shift + ;; + --uninstall) + UNINSTALL=true + shift + ;; + -h|--help) + echo "Usage: $0 [options]" + echo "" + echo "Options:" + echo " --no-docker Skip Docker/Ollama setup" + echo " --model MODEL Ollama model (default: mistral)" + echo " --skip-watch Skip watch service installation" + echo " --uninstall Remove all components" + exit 0 + ;; + *) + echo -e "${RED}Unknown option: $1${NC}" + exit 1 + ;; + esac +done + +print_header() { + echo -e "\n${BOLD}${CYAN}โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•${NC}" + echo -e "${BOLD}${CYAN} $1${NC}" + echo -e "${BOLD}${CYAN}โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•${NC}\n" +} + +print_step() { + echo -e "${BLUE}โ–ถ${NC} $1" +} + +print_success() { + echo -e "${GREEN}โœ“${NC} $1" +} + +print_warning() { + echo -e "${YELLOW}โš ${NC} $1" +} + +print_error() { + echo -e "${RED}โœ—${NC} $1" +} + +# Banner +echo -e "\n${BOLD}${CYAN}" +echo " โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—" +echo " โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•" +echo " โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•šโ–ˆโ–ˆโ–ˆโ•”โ• " +echo " โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ• โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— " +echo " โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•—" +echo " โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ•" +echo -e "${NC}" +echo -e " ${DIM}ask --do Setup Wizard${NC}\n" + +# Uninstall +if [ "$UNINSTALL" = true ]; then + print_header "Uninstalling Cortex ask --do Components" + + # Stop watch service + print_step "Stopping watch service..." + systemctl --user stop cortex-watch.service 2>/dev/null || true + systemctl --user disable cortex-watch.service 2>/dev/null || true + rm -f ~/.config/systemd/user/cortex-watch.service + systemctl --user daemon-reload + print_success "Watch service removed" + + # Remove shell hooks + print_step "Removing shell hooks..." + if [ -f ~/.bashrc ]; then + sed -i '/# Cortex Terminal Watch Hook/,/^$/d' ~/.bashrc + sed -i '/alias cw=/d' ~/.bashrc + fi + if [ -f ~/.zshrc ]; then + sed -i '/# Cortex Terminal Watch Hook/,/^$/d' ~/.zshrc + fi + print_success "Shell hooks removed" + + # Remove cortex files + print_step "Removing cortex watch files..." + rm -f ~/.cortex/watch_hook.sh + rm -f ~/.cortex/terminal_watch.log + rm -f ~/.cortex/terminal_commands.json + rm -f ~/.cortex/watch_service.log + rm -f ~/.cortex/watch_service.pid + rm -f ~/.cortex/watch_state.json + print_success "Watch files removed" + + # Ask about Ollama + if docker ps -a --format '{{.Names}}' | grep -q '^ollama$'; then + print_step "Ollama container found" + read -p " Remove Ollama container and data? [y/N]: " -n 1 -r + echo + if [[ $REPLY =~ ^[Yy]$ ]]; then + docker stop ollama 2>/dev/null || true + docker rm ollama 2>/dev/null || true + docker volume rm ollama 2>/dev/null || true + print_success "Ollama removed" + fi + fi + + print_success "Uninstallation complete" + exit 0 +fi + +# Check Python environment +print_header "Checking Environment" + +print_step "Checking Python..." +if command -v python3 &> /dev/null; then + PYTHON_VERSION=$(python3 --version 2>&1) + print_success "Python installed: $PYTHON_VERSION" +else + print_error "Python 3 not found" + exit 1 +fi + +# Check if in virtual environment +if [ -z "$VIRTUAL_ENV" ]; then + print_warning "Not in a virtual environment" + if [ -f "venv/bin/activate" ]; then + print_step "Activating venv..." + source venv/bin/activate + print_success "Activated venv" + else + print_warning "Consider running: python3 -m venv venv && source venv/bin/activate" + fi +else + print_success "Virtual environment active: $VIRTUAL_ENV" +fi + +# Check cortex installation +print_step "Checking Cortex installation..." +if command -v cortex &> /dev/null; then + print_success "Cortex is installed" +else + print_warning "Cortex not found in PATH, installing..." + pip install -e . -q + print_success "Cortex installed" +fi + +# Setup Ollama +if [ "$NO_DOCKER" = false ]; then + print_header "Setting up Ollama (Local LLM)" + + print_step "Checking Docker..." + if ! command -v docker &> /dev/null; then + print_error "Docker is not installed" + echo -e " ${DIM}Install Docker: https://docs.docker.com/get-docker/${NC}" + NO_DOCKER=true + elif ! docker info &> /dev/null; then + print_error "Docker daemon is not running" + echo -e " ${DIM}Run: sudo systemctl start docker${NC}" + NO_DOCKER=true + else + print_success "Docker is available" + + # Check Ollama container + if docker ps --format '{{.Names}}' | grep -q '^ollama$'; then + print_success "Ollama container is running" + elif docker ps -a --format '{{.Names}}' | grep -q '^ollama$'; then + print_step "Starting Ollama container..." + docker start ollama + print_success "Ollama started" + else + print_step "Pulling Ollama image..." + docker pull ollama/ollama + print_success "Ollama image pulled" + + print_step "Starting Ollama container..." + docker run -d \ + --name ollama \ + -p 11434:11434 \ + -v ollama:/root/.ollama \ + --restart unless-stopped \ + ollama/ollama + print_success "Ollama container started" + + sleep 3 + fi + + # Check model + print_step "Checking for $MODEL model..." + if docker exec ollama ollama list 2>/dev/null | grep -q "$MODEL"; then + print_success "Model $MODEL is installed" + else + print_step "Pulling $MODEL model (this may take a few minutes)..." + echo -e " ${DIM}Model size: ~4GB for mistral, ~2GB for phi${NC}" + docker exec ollama ollama pull "$MODEL" + print_success "Model $MODEL installed" + fi + fi +else + print_warning "Skipping Docker/Ollama setup (--no-docker)" +fi + +# Setup Watch Service +if [ "$SKIP_WATCH" = false ]; then + print_header "Setting up Cortex Watch Service" + + print_step "Installing watch service..." + cortex watch --install --service 2>/dev/null || { + # Manual installation if CLI fails + mkdir -p ~/.config/systemd/user + + # Get Python path + PYTHON_PATH=$(which python3) + CORTEX_PATH=$(which cortex 2>/dev/null || echo "$HOME/.local/bin/cortex") + + cat > ~/.config/systemd/user/cortex-watch.service << EOF +[Unit] +Description=Cortex Terminal Watch Service +After=default.target + +[Service] +Type=simple +ExecStart=$PYTHON_PATH -m cortex.watch_service +Restart=always +RestartSec=5 +Environment=PATH=$HOME/.local/bin:/usr/local/bin:/usr/bin:/bin +WorkingDirectory=$HOME + +[Install] +WantedBy=default.target +EOF + + systemctl --user daemon-reload + systemctl --user enable cortex-watch.service + systemctl --user start cortex-watch.service + } + + sleep 2 + + if systemctl --user is-active cortex-watch.service &> /dev/null; then + print_success "Watch service is running" + else + print_warning "Watch service installed but may need attention" + echo -e " ${DIM}Check with: systemctl --user status cortex-watch.service${NC}" + fi +else + print_warning "Skipping watch service (--skip-watch)" +fi + +# Setup Shell Hooks +print_header "Setting up Shell Hooks" + +CORTEX_DIR="$HOME/.cortex" +mkdir -p "$CORTEX_DIR" + +# Create watch hook +print_step "Creating watch hook script..." +cat > "$CORTEX_DIR/watch_hook.sh" << 'EOF' +#!/bin/bash +# Cortex Terminal Watch Hook + +__cortex_last_histnum="" +__cortex_log_cmd() { + local histnum="$(history 1 | awk '{print $1}')" + [[ "$histnum" == "$__cortex_last_histnum" ]] && return + __cortex_last_histnum="$histnum" + + local cmd="$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" + [[ -z "${cmd// /}" ]] && return + [[ "$cmd" == cortex* ]] && return + [[ "$cmd" == *"source"*".cortex"* ]] && return + [[ "$cmd" == *"watch_hook"* ]] && return + [[ -n "$CORTEX_TERMINAL" ]] && return + + local tty_name="$(tty 2>/dev/null | sed 's|/dev/||' | tr '/' '_')" + echo "${tty_name:-unknown}|$cmd" >> ~/.cortex/terminal_watch.log +} +export PROMPT_COMMAND='history -a; __cortex_log_cmd' +echo "โœ“ Cortex is now watching this terminal" +EOF +chmod +x "$CORTEX_DIR/watch_hook.sh" +print_success "Created watch hook script" + +# Add to .bashrc +MARKER="# Cortex Terminal Watch Hook" +if [ -f ~/.bashrc ]; then + if ! grep -q "$MARKER" ~/.bashrc; then + print_step "Adding hook to .bashrc..." + cat >> ~/.bashrc << 'EOF' + +# Cortex Terminal Watch Hook +__cortex_last_histnum="" +__cortex_log_cmd() { + local histnum="$(history 1 | awk '{print $1}')" + [[ "$histnum" == "$__cortex_last_histnum" ]] && return + __cortex_last_histnum="$histnum" + + local cmd="$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" + [[ -z "${cmd// /}" ]] && return + [[ "$cmd" == cortex* ]] && return + [[ "$cmd" == *"source"*".cortex"* ]] && return + [[ "$cmd" == *"watch_hook"* ]] && return + [[ -n "$CORTEX_TERMINAL" ]] && return + + local tty_name="$(tty 2>/dev/null | sed 's|/dev/||' | tr '/' '_')" + echo "${tty_name:-unknown}|$cmd" >> ~/.cortex/terminal_watch.log +} +export PROMPT_COMMAND='history -a; __cortex_log_cmd' + +alias cw="source ~/.cortex/watch_hook.sh" +EOF + print_success "Hook added to .bashrc" + else + print_success "Hook already in .bashrc" + fi +fi + +# Check API keys +print_header "Checking API Keys" + +HAS_API_KEY=false +if [ -n "$ANTHROPIC_API_KEY" ]; then + print_success "ANTHROPIC_API_KEY found in environment" + HAS_API_KEY=true +fi +if [ -n "$OPENAI_API_KEY" ]; then + print_success "OPENAI_API_KEY found in environment" + HAS_API_KEY=true +fi +if [ -f ".env" ]; then + if grep -q "ANTHROPIC_API_KEY" .env || grep -q "OPENAI_API_KEY" .env; then + print_success "API key(s) found in .env file" + HAS_API_KEY=true + fi +fi + +if [ "$HAS_API_KEY" = false ] && [ "$NO_DOCKER" = true ]; then + print_warning "No API keys found and Ollama not set up" + echo -e " ${DIM}Set ANTHROPIC_API_KEY or OPENAI_API_KEY for cloud LLM${NC}" +fi + +# Verify +print_header "Verification" + +print_step "Checking cortex command..." +if cortex --version &> /dev/null; then + print_success "Cortex: $(cortex --version 2>&1)" +else + print_error "Cortex command not working" +fi + +print_step "Checking watch service..." +if systemctl --user is-active cortex-watch.service &> /dev/null; then + print_success "Watch service: running" +else + print_warning "Watch service: not running" +fi + +if [ "$NO_DOCKER" = false ]; then + print_step "Checking Ollama..." + if docker ps --format '{{.Names}}' | grep -q '^ollama$'; then + print_success "Ollama: running" + MODELS=$(docker exec ollama ollama list 2>/dev/null | tail -n +2 | awk '{print $1}' | tr '\n' ', ' | sed 's/,$//') + if [ -n "$MODELS" ]; then + print_success "Models: $MODELS" + fi + else + print_warning "Ollama: not running" + fi +fi + +# Final message +print_header "Setup Complete! ๐ŸŽ‰" + +echo -e "${GREEN}Everything is ready!${NC}" +echo "" +echo -e "${BOLD}To use Cortex ask --do:${NC}" +echo " cortex ask --do" +echo "" +echo -e "${BOLD}To start an interactive session:${NC}" +echo " cortex ask --do \"install nginx and configure it\"" +echo "" +echo -e "${BOLD}For terminal monitoring in existing terminals:${NC}" +echo " source ~/.cortex/watch_hook.sh" +echo -e " ${DIM}(or just type 'cw' after opening a new terminal)${NC}" +echo "" +echo -e "${BOLD}To check status:${NC}" +echo " cortex watch --status" +echo "" + From 6ae9994fe75dd60074d4522d5604728040438678 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 21 Jan 2026 12:50:05 +0000 Subject: [PATCH 6/6] [autofix.ci] apply automated fixes --- cortex/ask.py | 1592 ++++++++++----- cortex/cli.py | 707 ++++--- cortex/demo.py | 81 +- cortex/do_runner.py | 28 +- cortex/do_runner/__init__.py | 64 +- cortex/do_runner/database.py | 292 +-- cortex/do_runner/diagnosis.py | 3193 +++++++++++++++++++++--------- cortex/do_runner/diagnosis_v2.py | 968 ++++----- cortex/do_runner/executor.py | 237 ++- cortex/do_runner/handler.py | 2984 ++++++++++++++++------------ cortex/do_runner/managers.py | 88 +- cortex/do_runner/models.py | 77 +- cortex/do_runner/terminal.py | 1543 ++++++++------- cortex/do_runner/verification.py | 782 +++++--- cortex/system_info_generator.py | 287 ++- cortex/watch_service.py | 291 +-- scripts/setup_ask_do.py | 238 ++- 17 files changed, 8283 insertions(+), 5169 deletions(-) diff --git a/cortex/ask.py b/cortex/ask.py index 86ea403de..4c494833e 100644 --- a/cortex/ask.py +++ b/cortex/ask.py @@ -11,12 +11,12 @@ import logging import os import re -import shutil import shlex +import shutil import sqlite3 import subprocess -from enum import Enum from datetime import datetime, timezone +from enum import Enum from pathlib import Path from typing import Any @@ -33,6 +33,7 @@ class LLMResponseType(str, Enum): """Type of response from the LLM.""" + COMMAND = "command" ANSWER = "answer" DO_COMMANDS = "do_commands" # For --do mode: commands that modify the system @@ -40,6 +41,7 @@ class LLMResponseType(str, Enum): class DoCommand(BaseModel): """A single command for --do mode with explanation.""" + command: str = Field(description="The shell command to execute") purpose: str = Field(description="Brief explanation of what this command does") requires_sudo: bool = Field(default=False, description="Whether this command requires sudo") @@ -47,29 +49,27 @@ class DoCommand(BaseModel): class SystemCommand(BaseModel): """Pydantic model for a system command to be executed. - + The LLM must return either a command to execute for data gathering, or a final answer to the user's question. In --do mode, it can also return a list of commands to execute. """ + response_type: LLMResponseType = Field( description="Whether this is a command to execute, a final answer, or do commands" ) command: str | None = Field( - default=None, - description="The shell command to execute (only for response_type='command')" + default=None, description="The shell command to execute (only for response_type='command')" ) answer: str | None = Field( - default=None, - description="The final answer to the user (only for response_type='answer')" + default=None, description="The final answer to the user (only for response_type='answer')" ) do_commands: list[DoCommand] | None = Field( default=None, - description="List of commands to execute (only for response_type='do_commands')" + description="List of commands to execute (only for response_type='do_commands')", ) reasoning: str = Field( - default="", - description="Brief explanation of why this command/answer was chosen" + default="", description="Brief explanation of why this command/answer was chosen" ) @field_validator("command") @@ -87,10 +87,12 @@ def validate_answer_not_empty(cls, v: str | None, info) -> str | None: if not v or not v.strip(): raise ValueError("Answer cannot be empty when response_type is 'answer'") return v - + @field_validator("do_commands") @classmethod - def validate_do_commands_not_empty(cls, v: list[DoCommand] | None, info) -> list[DoCommand] | None: + def validate_do_commands_not_empty( + cls, v: list[DoCommand] | None, info + ) -> list[DoCommand] | None: if info.data.get("response_type") == LLMResponseType.DO_COMMANDS: if not v or len(v) == 0: raise ValueError("do_commands cannot be empty when response_type is 'do_commands'") @@ -99,80 +101,276 @@ def validate_do_commands_not_empty(cls, v: list[DoCommand] | None, info) -> list class CommandValidator: """Validates and filters commands to ensure they are read-only. - + Only allows commands that fetch data, blocks any that modify the system. """ - + # Commands that are purely read-only and safe ALLOWED_COMMANDS: set[str] = { # System info - "uname", "hostname", "uptime", "whoami", "id", "groups", "w", "who", "last", - "date", "cal", "timedatectl", + "uname", + "hostname", + "uptime", + "whoami", + "id", + "groups", + "w", + "who", + "last", + "date", + "cal", + "timedatectl", # File/directory listing (read-only) - "ls", "pwd", "tree", "file", "stat", "readlink", "realpath", "dirname", "basename", - "find", "locate", "which", "whereis", "type", "command", + "ls", + "pwd", + "tree", + "file", + "stat", + "readlink", + "realpath", + "dirname", + "basename", + "find", + "locate", + "which", + "whereis", + "type", + "command", # Text viewing (read-only) - "cat", "head", "tail", "less", "more", "wc", "nl", "strings", + "cat", + "head", + "tail", + "less", + "more", + "wc", + "nl", + "strings", # Text processing (non-modifying) - "grep", "egrep", "fgrep", "awk", "sed", "cut", "sort", "uniq", "tr", "column", - "diff", "comm", "join", "paste", "expand", "unexpand", "fold", "fmt", + "grep", + "egrep", + "fgrep", + "awk", + "sed", + "cut", + "sort", + "uniq", + "tr", + "column", + "diff", + "comm", + "join", + "paste", + "expand", + "unexpand", + "fold", + "fmt", # Package queries (read-only) - "dpkg-query", "dpkg", "apt-cache", "apt-mark", "apt-config", "aptitude", "apt", - "pip3", "pip", "python3", "python", "gem", "npm", "cargo", "go", + "dpkg-query", + "dpkg", + "apt-cache", + "apt-mark", + "apt-config", + "aptitude", + "apt", + "pip3", + "pip", + "python3", + "python", + "gem", + "npm", + "cargo", + "go", # System info commands - "lsb_release", "hostnamectl", "lscpu", "lsmem", "lsblk", "lspci", "lsusb", - "lshw", "dmidecode", "hwinfo", "inxi", + "lsb_release", + "hostnamectl", + "lscpu", + "lsmem", + "lsblk", + "lspci", + "lsusb", + "lshw", + "dmidecode", + "hwinfo", + "inxi", # Process/resource info - "ps", "top", "htop", "pgrep", "pidof", "pstree", "free", "vmstat", "iostat", - "mpstat", "sar", "nproc", "getconf", + "ps", + "top", + "htop", + "pgrep", + "pidof", + "pstree", + "free", + "vmstat", + "iostat", + "mpstat", + "sar", + "nproc", + "getconf", # Disk/filesystem info - "df", "du", "mount", "findmnt", "blkid", "lsof", "fuser", "fdisk", + "df", + "du", + "mount", + "findmnt", + "blkid", + "lsof", + "fuser", + "fdisk", # Network info (read-only) - "ip", "ifconfig", "netstat", "ss", "route", "arp", "ping", "traceroute", - "tracepath", "nslookup", "dig", "host", "getent", "hostname", - # GPU info - "nvidia-smi", "nvcc", "rocm-smi", "clinfo", + "ip", + "ifconfig", + "netstat", + "ss", + "route", + "arp", + "ping", + "traceroute", + "tracepath", + "nslookup", + "dig", + "host", + "getent", # GPU info + "nvidia-smi", + "nvcc", + "rocm-smi", + "clinfo", # Environment - "env", "printenv", "echo", "printf", + "env", + "printenv", + "echo", + "printf", # Systemd info (read-only) - "systemctl", "journalctl", "loginctl", "timedatectl", "localectl", + "systemctl", + "journalctl", + "loginctl", + "localectl", # Kernel/modules - "uname", "lsmod", "modinfo", "sysctl", + "lsmod", + "modinfo", + "sysctl", # Misc info - "getconf", "locale", "xdpyinfo", "xrandr", + "locale", + "xdpyinfo", + "xrandr", # Container/virtualization info - "docker", "podman", "kubectl", "crictl", "nerdctl", - "lxc-ls", "virsh", "vboxmanage", + "docker", + "podman", + "kubectl", + "crictl", + "nerdctl", + "lxc-ls", + "virsh", + "vboxmanage", # Development tools (version checks) - "git", "node", "nodejs", "deno", "bun", "ruby", "perl", "php", "java", "javac", - "rustc", "gcc", "g++", "clang", "clang++", "make", "cmake", "ninja", "meson", - "dotnet", "mono", "swift", "kotlin", "scala", "groovy", "gradle", "mvn", "ant", + "git", + "node", + "nodejs", + "deno", + "bun", + "ruby", + "perl", + "php", + "java", + "javac", + "rustc", + "gcc", + "g++", + "clang", + "clang++", + "make", + "cmake", + "ninja", + "meson", + "dotnet", + "mono", + "swift", + "kotlin", + "scala", + "groovy", + "gradle", + "mvn", + "ant", # Database clients (info/version) - "mysql", "psql", "sqlite3", "mongosh", "redis-cli", + "mysql", + "psql", + "sqlite3", + "mongosh", + "redis-cli", # Web/network tools - "curl", "wget", "httpie", "openssl", "ssh", "scp", "rsync", + "curl", + "wget", + "httpie", + "openssl", + "ssh", + "scp", + "rsync", # Cloud CLIs - "aws", "gcloud", "az", "doctl", "linode-cli", "vultr-cli", - "terraform", "ansible", "vagrant", "packer", + "aws", + "gcloud", + "az", + "doctl", + "linode-cli", + "vultr-cli", + "terraform", + "ansible", + "vagrant", + "packer", # Other common tools - "jq", "yq", "xmllint", "ffmpeg", "ffprobe", "imagemagick", "convert", - "gh", "hub", "lab", # GitHub/GitLab CLIs - "snap", "flatpak", # For version/list only - "systemd-analyze", "bootctl", + "jq", + "yq", + "xmllint", + "ffmpeg", + "ffprobe", + "imagemagick", + "convert", + "gh", + "hub", + "lab", # GitHub/GitLab CLIs + "snap", + "flatpak", # For version/list only + "systemd-analyze", + "bootctl", } - + # Version check flags - these make ANY command safe (read-only) VERSION_FLAGS: set[str] = { - "--version", "-v", "-V", "--help", "-h", "-help", - "version", "help", "--info", "-version", + "--version", + "-v", + "-V", + "--help", + "-h", + "-help", + "version", + "help", + "--info", + "-version", } - + # Subcommands that are blocked for otherwise allowed commands BLOCKED_SUBCOMMANDS: dict[str, set[str]] = { - "dpkg": {"--configure", "-i", "--install", "--remove", "-r", "--purge", "-P", - "--unpack", "--clear-avail", "--forget-old-unavail", "--update-avail", - "--merge-avail", "--set-selections", "--clear-selections"}, - "apt-mark": {"auto", "manual", "hold", "unhold", "showauto", "showmanual"}, # only show* are safe + "dpkg": { + "--configure", + "-i", + "--install", + "--remove", + "-r", + "--purge", + "-P", + "--unpack", + "--clear-avail", + "--forget-old-unavail", + "--update-avail", + "--merge-avail", + "--set-selections", + "--clear-selections", + }, + "apt-mark": { + "auto", + "manual", + "hold", + "unhold", + "showauto", + "showmanual", + }, # only show* are safe "pip3": {"install", "uninstall", "download", "wheel", "cache"}, "pip": {"install", "uninstall", "download", "wheel", "cache"}, "python3": {"-c"}, # Block arbitrary code execution @@ -181,109 +379,283 @@ class CommandValidator: "gem": {"install", "uninstall", "update", "cleanup", "pristine"}, "cargo": {"install", "uninstall", "build", "run", "clean", "publish"}, "go": {"install", "get", "build", "run", "clean", "mod"}, - "systemctl": {"start", "stop", "restart", "reload", "enable", "disable", - "mask", "unmask", "edit", "set-property", "reset-failed", - "daemon-reload", "daemon-reexec", "kill", "isolate", - "set-default", "set-environment", "unset-environment"}, + "systemctl": { + "start", + "stop", + "restart", + "reload", + "enable", + "disable", + "mask", + "unmask", + "edit", + "set-property", + "reset-failed", + "daemon-reload", + "daemon-reexec", + "kill", + "isolate", + "set-default", + "set-environment", + "unset-environment", + }, "mount": {"--bind", "-o", "--move"}, # Block actual mounting - "fdisk": {"-l"}, # Only allow listing (-l), block everything else (inverted logic handled below) + "fdisk": { + "-l" + }, # Only allow listing (-l), block everything else (inverted logic handled below) "sysctl": {"-w", "--write", "-p", "--load"}, # Block writes # Container tools - block modifying commands - "docker": {"run", "exec", "build", "push", "pull", "rm", "rmi", "kill", "stop", "start", - "restart", "pause", "unpause", "create", "commit", "tag", "load", "save", - "import", "export", "login", "logout", "network", "volume", "system", "prune"}, - "podman": {"run", "exec", "build", "push", "pull", "rm", "rmi", "kill", "stop", "start", - "restart", "pause", "unpause", "create", "commit", "tag", "load", "save", - "import", "export", "login", "logout", "network", "volume", "system", "prune"}, - "kubectl": {"apply", "create", "delete", "edit", "patch", "replace", "scale", "exec", - "run", "expose", "set", "rollout", "drain", "cordon", "uncordon", "taint"}, + "docker": { + "run", + "exec", + "build", + "push", + "pull", + "rm", + "rmi", + "kill", + "stop", + "start", + "restart", + "pause", + "unpause", + "create", + "commit", + "tag", + "load", + "save", + "import", + "export", + "login", + "logout", + "network", + "volume", + "system", + "prune", + }, + "podman": { + "run", + "exec", + "build", + "push", + "pull", + "rm", + "rmi", + "kill", + "stop", + "start", + "restart", + "pause", + "unpause", + "create", + "commit", + "tag", + "load", + "save", + "import", + "export", + "login", + "logout", + "network", + "volume", + "system", + "prune", + }, + "kubectl": { + "apply", + "create", + "delete", + "edit", + "patch", + "replace", + "scale", + "exec", + "run", + "expose", + "set", + "rollout", + "drain", + "cordon", + "uncordon", + "taint", + }, # Git - block modifying commands - "git": {"push", "commit", "add", "rm", "mv", "reset", "revert", "merge", "rebase", - "checkout", "switch", "restore", "stash", "clean", "init", "clone", "pull", - "fetch", "cherry-pick", "am", "apply"}, + "git": { + "push", + "commit", + "add", + "rm", + "mv", + "reset", + "revert", + "merge", + "rebase", + "checkout", + "switch", + "restore", + "stash", + "clean", + "init", + "clone", + "pull", + "fetch", + "cherry-pick", + "am", + "apply", + }, # Cloud CLIs - block modifying commands - "aws": {"s3", "ec2", "iam", "lambda", "rds", "ecs", "eks"}, # Block service commands (allow sts, configure list) + "aws": { + "s3", + "ec2", + "iam", + "lambda", + "rds", + "ecs", + "eks", + }, # Block service commands (allow sts, configure list) "gcloud": {"compute", "container", "functions", "run", "sql", "storage"}, - # Snap/Flatpak - block modifying commands + # Snap/Flatpak - block modifying commands "snap": {"install", "remove", "refresh", "revert", "enable", "disable", "set", "unset"}, "flatpak": {"install", "uninstall", "update", "repair"}, } - + # Commands that are completely blocked (never allowed, even with --version) BLOCKED_COMMANDS: set[str] = { # Dangerous/destructive - "rm", "rmdir", "unlink", "shred", - "mv", "cp", "install", "mkdir", "touch", + "rm", + "rmdir", + "unlink", + "shred", + "mv", + "cp", + "install", + "mkdir", + "touch", # Editors (sed is allowed for text processing, redirections are blocked separately) - "nano", "vim", "vi", "emacs", "ed", + "nano", + "vim", + "vi", + "emacs", + "ed", # Package modification (apt-get is dangerous, apt is allowed with restrictions) - "apt-get", "dpkg-reconfigure", "update-alternatives", + "apt-get", + "dpkg-reconfigure", + "update-alternatives", # System modification - "shutdown", "reboot", "poweroff", "halt", "init", "telinit", - "useradd", "userdel", "usermod", "groupadd", "groupdel", "groupmod", - "passwd", "chpasswd", "chage", - "chmod", "chown", "chgrp", "chattr", "setfacl", - "ln", "mkfifo", "mknod", + "shutdown", + "reboot", + "poweroff", + "halt", + "init", + "telinit", + "useradd", + "userdel", + "usermod", + "groupadd", + "groupdel", + "groupmod", + "passwd", + "chpasswd", + "chage", + "chmod", + "chown", + "chgrp", + "chattr", + "setfacl", + "ln", + "mkfifo", + "mknod", # Dangerous utilities - "dd", "mkfs", "fsck", "parted", "gdisk", "cfdisk", "sfdisk", - "kill", "killall", "pkill", - "nohup", "disown", "bg", "fg", - "crontab", "at", "batch", - "su", "sudo", "doas", "pkexec", + "dd", + "mkfs", + "fsck", + "parted", + "gdisk", + "cfdisk", + "sfdisk", + "kill", + "killall", + "pkill", + "nohup", + "disown", + "bg", + "fg", + "crontab", + "at", + "batch", + "su", + "sudo", + "doas", + "pkexec", # Network modification - "iptables", "ip6tables", "nft", "ufw", "firewall-cmd", - "ifup", "ifdown", "dhclient", + "iptables", + "ip6tables", + "nft", + "ufw", + "firewall-cmd", + "ifup", + "ifdown", + "dhclient", # Shell/code execution - "bash", "sh", "zsh", "fish", "dash", "csh", "tcsh", "ksh", - "eval", "exec", "source", + "bash", + "sh", + "zsh", + "fish", + "dash", + "csh", + "tcsh", + "ksh", + "eval", + "exec", + "source", "xargs", # Can be used to execute arbitrary commands "tee", # Writes to files } - + # Patterns that indicate dangerous operations (NOT including safe chaining) DANGEROUS_PATTERNS: list[str] = [ - r">\s*[^|]", # Output redirection (except pipes) - r">>\s*", # Append redirection - r"<\s*", # Input redirection - r"\$\(", # Command substitution - r"`[^`]+`", # Backtick command substitution + r">\s*[^|]", # Output redirection (except pipes) + r">>\s*", # Append redirection + r"<\s*", # Input redirection + r"\$\(", # Command substitution + r"`[^`]+`", # Backtick command substitution r"\|.*(?:sh|bash|zsh|exec|eval|xargs)", # Piping to shell ] - + # Chaining patterns that we'll split instead of block CHAINING_PATTERNS: list[str] = [ - r";\s*", # Command chaining - r"\s*&&\s*", # AND chaining - r"\s*\|\|\s*", # OR chaining + r";\s*", # Command chaining + r"\s*&&\s*", # AND chaining + r"\s*\|\|\s*", # OR chaining ] - + @classmethod def split_chained_commands(cls, command: str) -> list[str]: """Split a chained command into individual commands.""" # Split by ;, &&, or || - parts = re.split(r'\s*(?:;|&&|\|\|)\s*', command) + parts = re.split(r"\s*(?:;|&&|\|\|)\s*", command) return [p.strip() for p in parts if p.strip()] - + @classmethod def validate_command(cls, command: str) -> tuple[bool, str]: """Validate a command for safety. - + Args: command: The shell command to validate - + Returns: Tuple of (is_valid, error_message) """ if not command or not command.strip(): return False, "Empty command" - + command = command.strip() - + # Check for dangerous patterns (NOT chaining - we handle that separately) for pattern in cls.DANGEROUS_PATTERNS: if re.search(pattern, command): - return False, f"Command contains blocked pattern (redirections or subshells)" - + return False, "Command contains blocked pattern (redirections or subshells)" + # Check if command has chaining - if so, validate each part has_chaining = any(re.search(p, command) for p in cls.CHAINING_PATTERNS) if has_chaining: @@ -293,50 +665,50 @@ def validate_command(cls, command: str) -> tuple[bool, str]: if not is_valid: return False, f"In chained command '{subcmd}': {error}" return True, "" - + return cls._validate_single_command(command) - + @classmethod def _validate_single_command(cls, command: str) -> tuple[bool, str]: """Validate a single (non-chained) command.""" if not command or not command.strip(): return False, "Empty command" - + command = command.strip() - + # Parse the command try: parts = shlex.split(command) except ValueError as e: return False, f"Invalid command syntax: {e}" - + if not parts: return False, "Empty command" - + # Get base command (handle sudo prefix) base_cmd = parts[0] cmd_args = parts[1:] - + if base_cmd == "sudo": return False, "sudo is not allowed - only read-only commands permitted" - + # Check if this is a version/help check - these are always safe # Allow ANY command if it only has version/help flags if cmd_args and all(arg in cls.VERSION_FLAGS for arg in cmd_args): return True, "" # Safe: just checking version/help - + # Also allow if first arg is a version flag (e.g., "docker --version" or "git version") if cmd_args and cmd_args[0] in cls.VERSION_FLAGS: return True, "" # Safe: version/help check - + # Check if command is completely blocked (unless it's a version check) if base_cmd in cls.BLOCKED_COMMANDS: return False, f"Command '{base_cmd}' is not allowed - it can modify the system" - + # Check if command is in allowed list if base_cmd not in cls.ALLOWED_COMMANDS: return False, f"Command '{base_cmd}' is not in the allowed list of read-only commands" - + # Check for blocked subcommands if base_cmd in cls.BLOCKED_SUBCOMMANDS: blocked = cls.BLOCKED_SUBCOMMANDS[base_cmd] @@ -344,110 +716,243 @@ def _validate_single_command(cls, command: str) -> tuple[bool, str]: # Handle fdisk specially - only -l is allowed if base_cmd == "fdisk": if arg not in ["-l", "--list"]: - return False, f"fdisk only allows -l/--list for listing partitions" + return False, "fdisk only allows -l/--list for listing partitions" elif arg in blocked: - return False, f"Subcommand '{arg}' is not allowed for '{base_cmd}' - it can modify the system" - + return ( + False, + f"Subcommand '{arg}' is not allowed for '{base_cmd}' - it can modify the system", + ) + # Special handling for pip/pip3 - only allow show, list, freeze, check, config if base_cmd in ["pip", "pip3"]: if cmd_args: - allowed_pip_cmds = {"show", "list", "freeze", "check", "config", "--version", "-V", "help", "--help"} + allowed_pip_cmds = { + "show", + "list", + "freeze", + "check", + "config", + "--version", + "-V", + "help", + "--help", + } if cmd_args[0] not in allowed_pip_cmds: - return False, f"pip command '{cmd_args[0]}' is not allowed - only read-only commands like 'show', 'list', 'freeze' are permitted" - + return ( + False, + f"pip command '{cmd_args[0]}' is not allowed - only read-only commands like 'show', 'list', 'freeze' are permitted", + ) + # Special handling for apt-mark - only showhold, showauto, showmanual if base_cmd == "apt-mark": if cmd_args: allowed_apt_mark = {"showhold", "showauto", "showmanual"} if cmd_args[0] not in allowed_apt_mark: - return False, f"apt-mark command '{cmd_args[0]}' is not allowed - only showhold, showauto, showmanual are permitted" - + return ( + False, + f"apt-mark command '{cmd_args[0]}' is not allowed - only showhold, showauto, showmanual are permitted", + ) + # Special handling for docker/podman - allow info and list commands if base_cmd in ["docker", "podman"]: if cmd_args: allowed_docker_cmds = { - "ps", "images", "info", "version", "inspect", "logs", "top", "stats", - "port", "diff", "history", "search", "events", "container", "image", - "--version", "-v", "help", "--help", + "ps", + "images", + "info", + "version", + "inspect", + "logs", + "top", + "stats", + "port", + "diff", + "history", + "search", + "events", + "container", + "image", + "--version", + "-v", + "help", + "--help", } # Also allow "container ls", "image ls", etc. if cmd_args[0] not in allowed_docker_cmds: - return False, f"docker command '{cmd_args[0]}' is not allowed - only read-only commands like 'ps', 'images', 'info', 'inspect', 'logs' are permitted" + return ( + False, + f"docker command '{cmd_args[0]}' is not allowed - only read-only commands like 'ps', 'images', 'info', 'inspect', 'logs' are permitted", + ) # Check container/image subcommands if cmd_args[0] in ["container", "image"] and len(cmd_args) > 1: - allowed_sub = {"ls", "list", "inspect", "history", "prune"} # prune for info only + allowed_sub = { + "ls", + "list", + "inspect", + "history", + "prune", + } # prune for info only if cmd_args[1] not in allowed_sub and cmd_args[1] not in cls.VERSION_FLAGS: - return False, f"docker {cmd_args[0]} '{cmd_args[1]}' is not allowed - only ls, list, inspect are permitted" - + return ( + False, + f"docker {cmd_args[0]} '{cmd_args[1]}' is not allowed - only ls, list, inspect are permitted", + ) + # Special handling for kubectl - allow get, describe, logs if base_cmd == "kubectl": if cmd_args: allowed_kubectl_cmds = { - "get", "describe", "logs", "top", "cluster-info", "config", "version", - "api-resources", "api-versions", "explain", "auth", - "--version", "-v", "help", "--help", + "get", + "describe", + "logs", + "top", + "cluster-info", + "config", + "version", + "api-resources", + "api-versions", + "explain", + "auth", + "--version", + "-v", + "help", + "--help", } if cmd_args[0] not in allowed_kubectl_cmds: - return False, f"kubectl command '{cmd_args[0]}' is not allowed - only read-only commands like 'get', 'describe', 'logs' are permitted" - + return ( + False, + f"kubectl command '{cmd_args[0]}' is not allowed - only read-only commands like 'get', 'describe', 'logs' are permitted", + ) + # Special handling for git - allow status, log, show, diff, branch, remote, config (get) if base_cmd == "git": if cmd_args: allowed_git_cmds = { - "status", "log", "show", "diff", "branch", "remote", "tag", "describe", - "ls-files", "ls-tree", "ls-remote", "rev-parse", "rev-list", "cat-file", - "config", "shortlog", "blame", "annotate", "grep", "reflog", - "version", "--version", "-v", "help", "--help", + "status", + "log", + "show", + "diff", + "branch", + "remote", + "tag", + "describe", + "ls-files", + "ls-tree", + "ls-remote", + "rev-parse", + "rev-list", + "cat-file", + "config", + "shortlog", + "blame", + "annotate", + "grep", + "reflog", + "version", + "--version", + "-v", + "help", + "--help", } if cmd_args[0] not in allowed_git_cmds: - return False, f"git command '{cmd_args[0]}' is not allowed - only read-only commands like 'status', 'log', 'diff', 'branch' are permitted" + return ( + False, + f"git command '{cmd_args[0]}' is not allowed - only read-only commands like 'status', 'log', 'diff', 'branch' are permitted", + ) # Block git config --set/--add - if cmd_args[0] == "config" and any(a in cmd_args for a in ["--add", "--unset", "--remove-section", "--rename-section"]): + if cmd_args[0] == "config" and any( + a in cmd_args + for a in ["--add", "--unset", "--remove-section", "--rename-section"] + ): return False, "git config modifications are not allowed" - + # Special handling for snap/flatpak - allow list and info commands if base_cmd == "snap": if cmd_args: - allowed_snap = {"list", "info", "find", "version", "connections", "services", "logs", "--version", "help", "--help"} + allowed_snap = { + "list", + "info", + "find", + "version", + "connections", + "services", + "logs", + "--version", + "help", + "--help", + } if cmd_args[0] not in allowed_snap: - return False, f"snap command '{cmd_args[0]}' is not allowed - only list, info, find are permitted" - + return ( + False, + f"snap command '{cmd_args[0]}' is not allowed - only list, info, find are permitted", + ) + if base_cmd == "flatpak": if cmd_args: - allowed_flatpak = {"list", "info", "search", "remote-ls", "remotes", "history", "--version", "help", "--help"} + allowed_flatpak = { + "list", + "info", + "search", + "remote-ls", + "remotes", + "history", + "--version", + "help", + "--help", + } if cmd_args[0] not in allowed_flatpak: - return False, f"flatpak command '{cmd_args[0]}' is not allowed - only list, info, search are permitted" - + return ( + False, + f"flatpak command '{cmd_args[0]}' is not allowed - only list, info, search are permitted", + ) + # Special handling for AWS CLI - allow read-only commands if base_cmd == "aws": if cmd_args: allowed_aws = {"--version", "help", "--help", "sts", "configure"} # sts get-caller-identity is safe, configure list is safe if cmd_args[0] not in allowed_aws: - return False, f"aws command '{cmd_args[0]}' is not allowed - use 'sts get-caller-identity' or 'configure list' for read-only queries" - + return ( + False, + f"aws command '{cmd_args[0]}' is not allowed - use 'sts get-caller-identity' or 'configure list' for read-only queries", + ) + # Special handling for apt - only allow list, show, search, policy, depends if base_cmd == "apt": if cmd_args: - allowed_apt = {"list", "show", "search", "policy", "depends", "rdepends", "madison", "--version", "help", "--help"} + allowed_apt = { + "list", + "show", + "search", + "policy", + "depends", + "rdepends", + "madison", + "--version", + "help", + "--help", + } if cmd_args[0] not in allowed_apt: - return False, f"apt command '{cmd_args[0]}' is not allowed - only list, show, search, policy are permitted for read-only queries" + return ( + False, + f"apt command '{cmd_args[0]}' is not allowed - only list, show, search, policy are permitted for read-only queries", + ) else: return False, "apt requires a subcommand like 'list', 'show', or 'search'" - + return True, "" - + @classmethod def execute_command(cls, command: str, timeout: int = 10) -> tuple[bool, str, str]: """Execute a validated command and return the result. - + For chained commands (&&, ||, ;), executes each command separately and combines the output. - + Args: command: The shell command to execute timeout: Maximum execution time in seconds - + Returns: Tuple of (success, stdout, stderr) """ @@ -455,17 +960,17 @@ def execute_command(cls, command: str, timeout: int = 10) -> tuple[bool, str, st is_valid, error = cls.validate_command(command) if not is_valid: return False, "", f"Command blocked: {error}" - + # Check if this is a chained command has_chaining = any(re.search(p, command) for p in cls.CHAINING_PATTERNS) - + if has_chaining: # Split and execute each command separately subcommands = cls.split_chained_commands(command) all_stdout = [] all_stderr = [] overall_success = True - + for subcmd in subcommands: try: result = subprocess.run( @@ -475,18 +980,18 @@ def execute_command(cls, command: str, timeout: int = 10) -> tuple[bool, str, st text=True, timeout=timeout, ) - + if result.stdout.strip(): all_stdout.append(f"# {subcmd}\n{result.stdout.strip()}") if result.stderr.strip(): all_stderr.append(f"# {subcmd}\n{result.stderr.strip()}") - + if result.returncode != 0: overall_success = False # For && chaining, stop on first failure if "&&" in command: break - + except subprocess.TimeoutExpired: all_stderr.append(f"# {subcmd}\nCommand timed out after {timeout} seconds") overall_success = False @@ -495,13 +1000,13 @@ def execute_command(cls, command: str, timeout: int = 10) -> tuple[bool, str, st all_stderr.append(f"# {subcmd}\nExecution failed: {e}") overall_success = False break - + return ( overall_success, "\n\n".join(all_stdout), "\n\n".join(all_stderr), ) - + # Single command try: result = subprocess.run( @@ -524,14 +1029,14 @@ def execute_command(cls, command: str, timeout: int = 10) -> tuple[bool, str, st class AskHandler: """Handles natural language questions about the system using an agentic loop. - + The handler uses an iterative approach: 1. LLM generates a read-only command to gather information 2. Command is validated and executed 3. Output is sent back to LLM 4. LLM either generates another command or provides final answer 5. Max 5 iterations before giving up - + In --do mode, the handler can execute write and modify commands with user confirmation and privilege management. """ @@ -561,33 +1066,37 @@ def __init__( self.model = model or self._default_model() self.debug = debug self.do_mode = do_mode - + # Import rich console for debug output if self.debug: from rich.console import Console from rich.panel import Panel + self._console = Console() else: self._console = None - + # For expandable output storage self._last_output: str | None = None self._last_output_command: str | None = None - + # Interrupt flag - can be set externally to stop execution self._interrupted = False - + # Initialize DoHandler for --do mode self._do_handler = None if self.do_mode: try: from cortex.do_runner import DoHandler + # Pass LLM callback so DoHandler can make LLM calls for interactive session self._do_handler = DoHandler(llm_callback=self._call_llm_for_do) except (ImportError, OSError, Exception) as e: # Log error but don't fail - do mode just won't work if self.debug and self._console: - self._console.print(f"[yellow]Warning: Could not initialize DoHandler: {e}[/yellow]") + self._console.print( + f"[yellow]Warning: Could not initialize DoHandler: {e}[/yellow]" + ) pass # Initialize cache @@ -606,7 +1115,7 @@ def interrupt(self): # Also interrupt the DoHandler if it exists if self._do_handler: self._do_handler._interrupted = True - + def reset_interrupt(self): """Reset the interrupt flag before starting a new operation.""" self._interrupted = False @@ -623,61 +1132,67 @@ def _default_model(self) -> str: elif self.provider == "fake": return "fake" return "gpt-4o" - + def _debug_print(self, title: str, content: str, style: str = "dim") -> None: """Print debug output if debug mode is enabled.""" if self.debug and self._console: from rich.panel import Panel + self._console.print(Panel(content, title=f"[bold]{title}[/bold]", style=style)) - + def _print_query_summary(self, question: str, commands_run: list[str], answer: str) -> None: """Print a condensed summary for question queries with improved visual design.""" if not self._console: return - + + from rich import box from rich.panel import Panel from rich.table import Table from rich.text import Text - from rich import box - + # Clean the answer - remove any JSON/shell script that might have leaked clean_answer = answer import re - + # Check if answer looks like JSON or contains shell script fragments - if clean_answer.startswith('{') or '{"' in clean_answer[:100]: + if clean_answer.startswith("{") or '{"' in clean_answer[:100]: # Try to extract just the answer field if present answer_match = re.search(r'"answer"\s*:\s*"([^"]*)"', clean_answer, re.DOTALL) if answer_match: clean_answer = answer_match.group(1) # Unescape common JSON escapes - clean_answer = clean_answer.replace('\\n', '\n').replace('\\"', '"') - + clean_answer = clean_answer.replace("\\n", "\n").replace('\\"', '"') + # Remove shell script-like content that shouldn't be in the answer - if re.search(r'^(if \[|while |for |echo \$|sed |awk |grep -)', clean_answer, re.MULTILINE): + if re.search(r"^(if \[|while |for |echo \$|sed |awk |grep -)", clean_answer, re.MULTILINE): # This looks like shell script leaked - try to extract readable parts readable_lines = [] - for line in clean_answer.split('\n'): + for line in clean_answer.split("\n"): # Keep lines that look like actual content, not script - if not re.match(r'^(if \[|fi$|done$|else$|then$|do$|while |for |echo \$|sed |awk )', line.strip()): - if line.strip() and not line.strip().startswith('#!'): + if not re.match( + r"^(if \[|fi$|done$|else$|then$|do$|while |for |echo \$|sed |awk )", + line.strip(), + ): + if line.strip() and not line.strip().startswith("#!"): readable_lines.append(line) if readable_lines: - clean_answer = '\n'.join(readable_lines[:20]) # Limit to 20 lines - + clean_answer = "\n".join(readable_lines[:20]) # Limit to 20 lines + self._console.print() - + # Query section q_display = question[:80] + "..." if len(question) > 80 else question - self._console.print(Panel( - f"[bold]{q_display}[/bold]", - title="[bold white on blue] ๐Ÿ” Query [/bold white on blue]", - title_align="left", - border_style="blue", - padding=(0, 1), - expand=False, - )) - + self._console.print( + Panel( + f"[bold]{q_display}[/bold]", + title="[bold white on blue] ๐Ÿ” Query [/bold white on blue]", + title_align="left", + border_style="blue", + padding=(0, 1), + expand=False, + ) + ) + # Info gathered section if commands_run: info_table = Table( @@ -687,21 +1202,23 @@ def _print_query_summary(self, question: str, commands_run: list[str], answer: s expand=True, ) info_table.add_column("", style="dim") - + for cmd in commands_run[:4]: cmd_display = cmd[:60] + "..." if len(cmd) > 60 else cmd info_table.add_row(f"$ {cmd_display}") if len(commands_run) > 4: info_table.add_row(f"[dim]... and {len(commands_run) - 4} more commands[/dim]") - - self._console.print(Panel( - info_table, - title=f"[bold] ๐Ÿ“Š Info Gathered ({len(commands_run)} commands) [/bold]", - title_align="left", - border_style="dim", - padding=(0, 0), - )) - + + self._console.print( + Panel( + info_table, + title=f"[bold] ๐Ÿ“Š Info Gathered ({len(commands_run)} commands) [/bold]", + title_align="left", + border_style="dim", + padding=(0, 0), + ) + ) + # Answer section - make it prominent if clean_answer.strip(): # Truncate very long answers @@ -709,56 +1226,62 @@ def _print_query_summary(self, question: str, commands_run: list[str], answer: s display_answer = clean_answer[:800] + "\n\n[dim]... (answer truncated)[/dim]" else: display_answer = clean_answer - - self._console.print(Panel( - display_answer, - title="[bold white on green] ๐Ÿ’ก Answer [/bold white on green]", - title_align="left", - border_style="green", - padding=(1, 2), - )) - + + self._console.print( + Panel( + display_answer, + title="[bold white on green] ๐Ÿ’ก Answer [/bold white on green]", + title_align="left", + border_style="green", + padding=(1, 2), + ) + ) + def _show_expandable_output(self, console, output: str, command: str) -> None: """Show output with expand/collapse capability.""" from rich.panel import Panel from rich.text import Text - - lines = output.split('\n') + + lines = output.split("\n") total_lines = len(lines) - + # Always show first 3 lines as preview preview_count = 3 - + if total_lines <= preview_count + 2: # Small output - just show it all - console.print(Panel( - output, - title=f"[dim]Output[/dim]", - title_align="left", - border_style="dim", - padding=(0, 1), - )) + console.print( + Panel( + output, + title="[dim]Output[/dim]", + title_align="left", + border_style="dim", + padding=(0, 1), + ) + ) return - + # Show collapsed preview with expand option - preview = '\n'.join(lines[:preview_count]) + preview = "\n".join(lines[:preview_count]) remaining = total_lines - preview_count - + # Build the panel content content = Text() content.append(preview) content.append(f"\n\n[dim]โ”€โ”€โ”€ {remaining} more lines hidden โ”€โ”€โ”€[/dim]", style="dim") - - console.print(Panel( - content, - title=f"[dim]Output ({total_lines} lines)[/dim]", - subtitle="[dim italic]Type 'e' to expand[/dim italic]", - subtitle_align="right", - title_align="left", - border_style="dim", - padding=(0, 1), - )) - + + console.print( + Panel( + content, + title=f"[dim]Output ({total_lines} lines)[/dim]", + subtitle="[dim italic]Type 'e' to expand[/dim italic]", + subtitle_align="right", + title_align="left", + border_style="dim", + padding=(0, 1), + ) + ) + # Store for potential expansion self._last_output = output self._last_output_command = command @@ -780,12 +1303,14 @@ def _initialize_client(self): raise ImportError("OpenAI package not installed. Run: pip install openai") elif self.provider == "claude": try: - from anthropic import Anthropic import logging + + from anthropic import Anthropic + # Suppress noisy retry logging from anthropic client logging.getLogger("anthropic").setLevel(logging.WARNING) logging.getLogger("anthropic._base_client").setLevel(logging.WARNING) - + self.client = Anthropic(api_key=self.api_key) except ImportError: raise ImportError("Anthropic package not installed. Run: pip install anthropic") @@ -801,7 +1326,7 @@ def _get_system_prompt(self) -> str: if self.do_mode: return self._get_do_mode_system_prompt() return self._get_read_only_system_prompt() - + def _get_read_only_system_prompt(self) -> str: return """You are a Linux system assistant that answers questions by executing read-only shell commands. @@ -867,7 +1392,7 @@ def _get_read_only_system_prompt(self) -> str: - rm, mv, cp, mkdir, touch - echo "text" > file - command1 && command2""" - + def _get_do_mode_system_prompt(self) -> str: return """You are a Linux system assistant that can READ, WRITE, and EXECUTE commands to solve problems. @@ -1026,7 +1551,7 @@ def _get_do_mode_system_prompt(self) -> str: # Maximum characters of command output to include in history MAX_OUTPUT_CHARS = 2000 - + def _truncate_output(self, output: str) -> str: """Truncate command output to avoid context length issues.""" if len(output) <= self.MAX_OUTPUT_CHARS: @@ -1034,21 +1559,17 @@ def _truncate_output(self, output: str) -> str: # Keep first and last portions half = self.MAX_OUTPUT_CHARS // 2 return f"{output[:half]}\n\n... [truncated {len(output) - self.MAX_OUTPUT_CHARS} chars] ...\n\n{output[-half:]}" - - def _build_iteration_prompt( - self, - question: str, - history: list[dict[str, str]] - ) -> str: + + def _build_iteration_prompt(self, question: str, history: list[dict[str, str]]) -> str: """Build the prompt for the current iteration.""" prompt = f"User Question: {question}\n\n" - + if history: prompt += "Previous commands and results:\n" for i, entry in enumerate(history, 1): # Handle execution_failures context from do_commands if entry.get("type") == "execution_failures": - prompt += f"\n--- EXECUTION FAILURES (Need Repair) ---\n" + prompt += "\n--- EXECUTION FAILURES (Need Repair) ---\n" prompt += f"Message: {entry.get('message', 'Commands failed')}\n" for fail in entry.get("failures", []): prompt += f"\nFailed Command: {fail.get('command', 'unknown')}\n" @@ -1056,36 +1577,36 @@ def _build_iteration_prompt( prompt += f"Error: {fail.get('error', 'unknown')}\n" prompt += "\nPlease analyze these failures and propose repair commands or alternative approaches.\n" continue - + # Handle regular commands prompt += f"\n--- Attempt {i} ---\n" - + # Check if this is a do_command execution result if "executed_by" in entry: prompt += f"Command (executed by {entry['executed_by']}): {entry.get('command', 'unknown')}\n" prompt += f"Purpose: {entry.get('purpose', 'unknown')}\n" - if entry.get('success'): - truncated_output = self._truncate_output(entry.get('output', '')) + if entry.get("success"): + truncated_output = self._truncate_output(entry.get("output", "")) prompt += f"Status: SUCCESS\nOutput:\n{truncated_output}\n" else: prompt += f"Status: FAILED\nError: {entry.get('error', 'unknown')}\n" else: prompt += f"Command: {entry.get('command', 'unknown')}\n" - if entry.get('success'): - truncated_output = self._truncate_output(entry.get('output', '')) + if entry.get("success"): + truncated_output = self._truncate_output(entry.get("output", "")) prompt += f"Output:\n{truncated_output}\n" else: prompt += f"Error: {entry.get('error', 'unknown')}\n" - + prompt += "\n" - + # Check if there were recent failures has_failures = any( - e.get("type") == "execution_failures" or - (e.get("executed_by") and not e.get("success")) + e.get("type") == "execution_failures" + or (e.get("executed_by") and not e.get("success")) for e in history[-5:] # Check last 5 entries ) - + if has_failures: prompt += "IMPORTANT: There were command failures. Please:\n" prompt += "1. Analyze the error messages to understand what went wrong\n" @@ -1095,29 +1616,31 @@ def _build_iteration_prompt( prompt += "Based on the above results, either provide another command to gather more information, or provide the final answer.\n" else: prompt += "Generate a shell command to gather the information needed to answer this question.\n" - + prompt += "\nRespond with a JSON object as specified in the system prompt." return prompt def _clean_llm_response(self, text: str) -> str: """Clean raw LLM response to prevent JSON from being displayed to user. - + Extracts meaningful content like reasoning or answer from raw JSON, or returns a generic error message if the response is pure JSON. - + NOTE: This is only called as a fallback when JSON parsing fails. We should NOT return placeholder messages for valid response types. """ import re - + # If it looks like pure JSON, don't show it to user text = text.strip() - + # Check for partial JSON (starts with ], }, or other JSON fragments) - if text.startswith((']', '},', ',"', '"response_type"', '"do_commands"', '"command"', '"reasoning"')): + if text.startswith( + ("]", "},", ',"', '"response_type"', '"do_commands"', '"command"', '"reasoning"') + ): return "" # Return empty so loop continues - - if text.startswith('{') and text.endswith('}'): + + if text.startswith("{") and text.endswith("}"): # Try to extract useful fields try: data = json.loads(text) @@ -1127,7 +1650,9 @@ def _clean_llm_response(self, text: str) -> str: if data.get("reasoning") and data.get("response_type") == "answer": # Only use reasoning if it's an answer type reasoning = data["reasoning"] - if not any(p in reasoning for p in ['"command":', '"do_commands":', '"requires_sudo":']): + if not any( + p in reasoning for p in ['"command":', '"do_commands":', '"requires_sudo":'] + ): return f"Analysis: {reasoning}" # For do_commands or command types, return empty to let parsing retry if data.get("do_commands") or data.get("command"): @@ -1136,18 +1661,18 @@ def _clean_llm_response(self, text: str) -> str: return "" except json.JSONDecodeError: pass - + # Check for JSON-like patterns in the text json_patterns = [ r'"response_type"\s*:\s*"', r'"do_commands"\s*:\s*\[', r'"command"\s*:\s*"', r'"requires_sudo"\s*:\s*', - r'\[\s*\{', # Start of array of objects - r'\}\s*,\s*\{', # Object separator + r"\[\s*\{", # Start of array of objects + r"\}\s*,\s*\{", # Object separator r'\]\s*,\s*"', # End of array followed by key ] - + # If text contains raw JSON patterns, try to extract non-JSON parts has_json_patterns = any(re.search(p, text) for p in json_patterns) if has_json_patterns: @@ -1156,13 +1681,15 @@ def _clean_llm_response(self, text: str) -> str: clean_parts = [p.strip() for p in parts if p.strip() and len(p.strip()) > 20] if clean_parts: # Filter out parts that still look like JSON - clean_parts = [p for p in clean_parts if not any(j in p for j in ['":', '",', '{}', '[]'])] + clean_parts = [ + p for p in clean_parts if not any(j in p for j in ['":', '",', "{}", "[]"]) + ] if clean_parts: return " ".join(clean_parts) - + # No good text found, return generic message return "I'm processing your request. Please wait for the proper output." - + # Text doesn't look like JSON, return as-is return text @@ -1171,7 +1698,7 @@ def _parse_llm_response(self, response_text: str) -> SystemCommand: # Try to extract JSON from the response original_text = response_text.strip() response_text = original_text - + # Handle markdown code blocks if "```json" in response_text: response_text = response_text.split("```json")[1].split("```")[0].strip() @@ -1179,7 +1706,7 @@ def _parse_llm_response(self, response_text: str) -> SystemCommand: parts = response_text.split("```") if len(parts) >= 2: response_text = parts[1].split("```")[0].strip() - + # Try direct JSON parsing first try: data = json.loads(response_text) @@ -1194,17 +1721,17 @@ def _parse_llm_response(self, response_text: str) -> SystemCommand: brace_count = 0 json_end = 0 for i, char in enumerate(json_str): - if char == '{': + if char == "{": brace_count += 1 - elif char == '}': + elif char == "}": brace_count -= 1 if brace_count == 0: json_end = i + 1 break - + if json_end > 0: json_str = json_str[:json_end] - + data = json.loads(json_str) except json.JSONDecodeError: # If still fails, don't show raw JSON to user @@ -1212,7 +1739,7 @@ def _parse_llm_response(self, response_text: str) -> SystemCommand: return SystemCommand( response_type=LLMResponseType.ANSWER, answer=clean_answer, - reasoning="Could not parse structured response, treating as direct answer" + reasoning="Could not parse structured response, treating as direct answer", ) else: # No JSON found, clean up before treating as direct answer @@ -1220,17 +1747,17 @@ def _parse_llm_response(self, response_text: str) -> SystemCommand: return SystemCommand( response_type=LLMResponseType.ANSWER, answer=clean_answer, - reasoning="No JSON structure found, treating as direct answer" + reasoning="No JSON structure found, treating as direct answer", ) - + try: # Handle do_commands - convert dict list to DoCommand objects if data.get("response_type") == "do_commands" and "do_commands" in data: data["do_commands"] = [ - DoCommand(**cmd) if isinstance(cmd, dict) else cmd + DoCommand(**cmd) if isinstance(cmd, dict) else cmd for cmd in data["do_commands"] ] - + return SystemCommand(**data) except Exception as e: # If SystemCommand creation fails, don't show raw JSON to user @@ -1238,7 +1765,7 @@ def _parse_llm_response(self, response_text: str) -> SystemCommand: return SystemCommand( response_type=LLMResponseType.ANSWER, answer=clean_answer, - reasoning=f"Failed to create SystemCommand: {e}" + reasoning=f"Failed to create SystemCommand: {e}", ) def _call_llm(self, system_prompt: str, user_prompt: str) -> str: @@ -1246,7 +1773,7 @@ def _call_llm(self, system_prompt: str, user_prompt: str) -> str: # Check for interrupt before making API call if self._interrupted: raise InterruptedError("Operation interrupted by user") - + if self.provider == "openai": response = self.client.chat.completions.create( model=self.model, @@ -1262,7 +1789,7 @@ def _call_llm(self, system_prompt: str, user_prompt: str) -> str: except (IndexError, AttributeError): content = "" return content.strip() - + elif self.provider == "claude": response = self.client.messages.create( model=self.model, @@ -1276,19 +1803,21 @@ def _call_llm(self, system_prompt: str, user_prompt: str) -> str: except (IndexError, AttributeError): text = "" return text.strip() - + elif self.provider == "ollama": import urllib.request url = f"{self.ollama_url}/api/generate" prompt = f"{system_prompt}\n\n{user_prompt}" - data = json.dumps({ - "model": self.model, - "prompt": prompt, - "stream": False, - "options": {"temperature": 0.3}, - }).encode("utf-8") + data = json.dumps( + { + "model": self.model, + "prompt": prompt, + "stream": False, + "options": {"temperature": 0.3}, + } + ).encode("utf-8") req = urllib.request.Request( url, data=data, headers={"Content-Type": "application/json"} @@ -1297,30 +1826,32 @@ def _call_llm(self, system_prompt: str, user_prompt: str) -> str: with urllib.request.urlopen(req, timeout=60) as response: result = json.loads(response.read().decode("utf-8")) return result.get("response", "").strip() - + elif self.provider == "fake": # For testing - return a simple answer fake_response = os.environ.get("CORTEX_FAKE_RESPONSE", "") if fake_response: return fake_response - return json.dumps({ - "response_type": "answer", - "answer": "Test mode response", - "reasoning": "Fake provider for testing" - }) + return json.dumps( + { + "response_type": "answer", + "answer": "Test mode response", + "reasoning": "Fake provider for testing", + } + ) else: raise ValueError(f"Unsupported provider: {self.provider}") def _call_llm_for_do(self, user_request: str, context: dict | None = None) -> dict: """Call LLM to process a natural language request for the interactive session. - + This is passed to DoHandler as a callback so it can make LLM calls during the interactive session. - + Args: user_request: The user's natural language request context: Optional context dict with executed_commands, session_actions, etc. - + Returns: Dict with either: - {"response_type": "do_commands", "do_commands": [...], "reasoning": "..."} @@ -1328,7 +1859,7 @@ def _call_llm_for_do(self, user_request: str, context: dict | None = None) -> di - {"response_type": "command", "command": "...", "reasoning": "..."} """ context = context or {} - + system_prompt = """You are a Linux system assistant in an interactive session. The user has just completed some tasks and now wants to do something else. @@ -1371,43 +1902,51 @@ def _call_llm_for_do(self, user_request: str, context: dict | None = None) -> di "reasoning": "..." } """ - + # Build context-aware prompt - user_prompt = f"Context:\n" + user_prompt = "Context:\n" if context.get("original_query"): user_prompt += f"- Original task: {context['original_query']}\n" if context.get("executed_commands"): - user_prompt += f"- Commands already executed: {', '.join(context['executed_commands'][:5])}\n" + user_prompt += ( + f"- Commands already executed: {', '.join(context['executed_commands'][:5])}\n" + ) if context.get("session_actions"): - user_prompt += f"- Actions in this session: {', '.join(context['session_actions'][:3])}\n" - + user_prompt += ( + f"- Actions in this session: {', '.join(context['session_actions'][:3])}\n" + ) + user_prompt += f"\nUser request: {user_request}\n" user_prompt += "\nRespond with a JSON object." - + try: response_text = self._call_llm(system_prompt, user_prompt) - + # Parse the response parsed = self._parse_llm_response(response_text) - + # Convert to dict result = { "response_type": parsed.response_type.value, "reasoning": parsed.reasoning, } - + if parsed.response_type == LLMResponseType.DO_COMMANDS and parsed.do_commands: result["do_commands"] = [ - {"command": cmd.command, "purpose": cmd.purpose, "requires_sudo": cmd.requires_sudo} + { + "command": cmd.command, + "purpose": cmd.purpose, + "requires_sudo": cmd.requires_sudo, + } for cmd in parsed.do_commands ] elif parsed.response_type == LLMResponseType.COMMAND and parsed.command: result["command"] = parsed.command elif parsed.response_type == LLMResponseType.ANSWER and parsed.answer: result["answer"] = parsed.answer - + return result - + except Exception as e: return { "response_type": "error", @@ -1419,7 +1958,7 @@ def ask(self, question: str, system_prompt: str | None = None) -> str: Uses an agentic loop to execute read-only commands and gather information to answer the user's question. - + In --do mode, can also execute write/modify commands with user confirmation. Args: @@ -1438,7 +1977,7 @@ def ask(self, question: str, system_prompt: str | None = None) -> str: question = question.strip() system_prompt = self._get_system_prompt() - + # Don't cache in do_mode (each run is unique) cache_key = f"ask:v2:{question}" if self.cache is not None and not self.do_mode: @@ -1457,42 +1996,46 @@ def ask(self, question: str, system_prompt: str | None = None) -> str: history: list[dict[str, Any]] = [] tried_commands: list[str] = [] max_iterations = self.MAX_DO_ITERATIONS if self.do_mode else self.MAX_ITERATIONS - + if self.debug: mode_str = "[DO MODE]" if self.do_mode else "" self._debug_print("Ask Query", f"{mode_str} Question: {question}", style="cyan") - + # Import console for progress output from rich.console import Console + loop_console = Console() - + for iteration in range(max_iterations): # Check for interrupt at start of each iteration if self._interrupted: self._interrupted = False # Reset for next request return "Operation interrupted by user." - + if self.debug: self._debug_print( f"Iteration {iteration + 1}/{max_iterations}", f"Calling LLM ({self.provider}/{self.model})...", - style="blue" + style="blue", ) - + # Show progress to user (even without --debug) if self.do_mode and iteration > 0: from rich.panel import Panel + loop_console.print() - loop_console.print(Panel( - f"[bold cyan]Analyzing results...[/bold cyan] [dim]Step {iteration + 1}[/dim]", - border_style="dim cyan", - padding=(0, 1), - expand=False, - )) - + loop_console.print( + Panel( + f"[bold cyan]Analyzing results...[/bold cyan] [dim]Step {iteration + 1}[/dim]", + border_style="dim cyan", + padding=(0, 1), + expand=False, + ) + ) + # Build prompt with history user_prompt = self._build_iteration_prompt(question, history) - + # Call LLM try: response_text = self._call_llm(system_prompt, user_prompt) @@ -1509,13 +2052,17 @@ def ask(self, question: str, system_prompt: str | None = None) -> str: self._interrupted = False return "Operation interrupted by user." raise RuntimeError(f"LLM API call failed: {str(e)}") - + if self.debug: - self._debug_print("LLM Raw Response", response_text[:500] + ("..." if len(response_text) > 500 else ""), style="dim") - + self._debug_print( + "LLM Raw Response", + response_text[:500] + ("..." if len(response_text) > 500 else ""), + style="dim", + ) + # Parse response parsed = self._parse_llm_response(response_text) - + if self.debug: self._debug_print( "LLM Parsed Response", @@ -1524,45 +2071,52 @@ def ask(self, question: str, system_prompt: str | None = None) -> str: f"Command: {parsed.command or 'N/A'}\n" f"Do Commands: {len(parsed.do_commands) if parsed.do_commands else 0}\n" f"Answer: {(parsed.answer[:100] + '...') if parsed.answer and len(parsed.answer) > 100 else parsed.answer or 'N/A'}", - style="yellow" + style="yellow", ) - + # Show what the LLM decided to do if self.do_mode and not self.debug: from rich.panel import Panel + if parsed.response_type == LLMResponseType.COMMAND and parsed.command: - loop_console.print(Panel( - f"[bold]๐Ÿ” Gathering info[/bold]\n[cyan]{parsed.command}[/cyan]", - border_style="blue", - padding=(0, 1), - expand=False, - )) + loop_console.print( + Panel( + f"[bold]๐Ÿ” Gathering info[/bold]\n[cyan]{parsed.command}[/cyan]", + border_style="blue", + padding=(0, 1), + expand=False, + ) + ) elif parsed.response_type == LLMResponseType.DO_COMMANDS and parsed.do_commands: - loop_console.print(Panel( - f"[bold green]๐Ÿ“‹ Ready to execute[/bold green] [white]{len(parsed.do_commands)} command(s)[/white]", - border_style="green", - padding=(0, 1), - expand=False, - )) + loop_console.print( + Panel( + f"[bold green]๐Ÿ“‹ Ready to execute[/bold green] [white]{len(parsed.do_commands)} command(s)[/white]", + border_style="green", + padding=(0, 1), + expand=False, + ) + ) elif parsed.response_type == LLMResponseType.ANSWER and parsed.answer: pass # Will be handled below else: # LLM returned an unexpected or empty response - loop_console.print(f"[dim yellow]โณ Waiting for LLM to propose commands...[/dim yellow]") - + loop_console.print( + "[dim yellow]โณ Waiting for LLM to propose commands...[/dim yellow]" + ) + # If LLM provides a final answer, return it if parsed.response_type == LLMResponseType.ANSWER: answer = parsed.answer or "" - + # Skip empty answers (parsing fallback that should continue loop) if not answer.strip(): if self.do_mode: - loop_console.print(f"[dim] (waiting for LLM to propose commands...)[/dim]") + loop_console.print("[dim] (waiting for LLM to propose commands...)[/dim]") continue - + if self.debug: self._debug_print("Final Answer", answer, style="green") - + # Cache the response (not in do_mode) if self.cache is not None and answer and not self.do_mode: try: @@ -1575,73 +2129,87 @@ def ask(self, question: str, system_prompt: str | None = None) -> str: ) except (OSError, sqlite3.Error): pass - + # Print condensed summary for questions self._print_query_summary(question, tried_commands, answer) - + return answer - + # Handle do_commands in --do mode if parsed.response_type == LLMResponseType.DO_COMMANDS and self.do_mode: if not parsed.do_commands: # LLM said do_commands but provided none - ask it to try again - loop_console.print(f"[yellow]โš  LLM response incomplete, retrying...[/yellow]") - history.append({ - "type": "error", - "message": "Response contained no commands. Please provide specific commands to execute.", - }) + loop_console.print("[yellow]โš  LLM response incomplete, retrying...[/yellow]") + history.append( + { + "type": "error", + "message": "Response contained no commands. Please provide specific commands to execute.", + } + ) continue - + result = self._handle_do_commands(parsed, question, history) if result is not None: # Result is either a completion message or None (continue loop) return result - + # LLM wants to execute a read-only command if parsed.command: command = parsed.command tried_commands.append(command) - + if self.debug: self._debug_print("Executing Command", f"$ {command}", style="magenta") - + # Validate and execute the command success, stdout, stderr = CommandValidator.execute_command(command) - + # Show execution result to user with expandable output if self.do_mode and not self.debug: if success: - output_lines = len(stdout.split('\n')) if stdout else 0 - loop_console.print(f"[green] โœ“ Got {output_lines} lines of output[/green]") - + output_lines = len(stdout.split("\n")) if stdout else 0 + loop_console.print( + f"[green] โœ“ Got {output_lines} lines of output[/green]" + ) + # Show expandable output if stdout and output_lines > 0: self._show_expandable_output(loop_console, stdout, command) else: loop_console.print(f"[yellow] โš  Command failed: {stderr[:100]}[/yellow]") - + if self.debug: if success: - output_preview = stdout[:1000] + ("..." if len(stdout) > 1000 else "") if stdout else "(empty output)" + output_preview = ( + stdout[:1000] + ("..." if len(stdout) > 1000 else "") + if stdout + else "(empty output)" + ) self._debug_print("Command Output (SUCCESS)", output_preview, style="green") else: - self._debug_print("Command Output (FAILED)", f"Error: {stderr}", style="red") - - history.append({ - "command": command, - "success": success, - "output": stdout if success else "", - "error": stderr if not success else "", - }) + self._debug_print( + "Command Output (FAILED)", f"Error: {stderr}", style="red" + ) + + history.append( + { + "command": command, + "success": success, + "output": stdout if success else "", + "error": stderr if not success else "", + } + ) continue # Continue to next iteration with new info - + # If we get here, no valid action was taken # This means LLM returned something we couldn't use if self.do_mode and not self.debug: if parsed.reasoning: # Show reasoning if available - loop_console.print(f"[dim] LLM: {parsed.reasoning[:100]}{'...' if len(parsed.reasoning) > 100 else ''}[/dim]") - + loop_console.print( + f"[dim] LLM: {parsed.reasoning[:100]}{'...' if len(parsed.reasoning) > 100 else ''}[/dim]" + ) + # Max iterations reached if self.do_mode: if tried_commands: @@ -1649,143 +2217,156 @@ def ask(self, question: str, system_prompt: str | None = None) -> str: result = f"The LLM gathered information but didn't propose any commands to execute.\n\nInfo gathered with:\n{commands_list}\n\nTry being more specific about what you want to do." else: result = "The LLM couldn't determine what commands to run. Try rephrasing your request with more specific details." - + loop_console.print(f"[yellow]โš  {result}[/yellow]") else: commands_list = "\n".join(f" - {cmd}" for cmd in tried_commands) result = f"Could not find an answer after {max_iterations} attempts.\n\nTried commands:\n{commands_list}" - + if self.debug: self._debug_print("Max Iterations Reached", result, style="red") - + return result - + def _handle_do_commands( - self, - parsed: SystemCommand, - question: str, - history: list[dict[str, Any]] + self, parsed: SystemCommand, question: str, history: list[dict[str, Any]] ) -> str | None: """Handle do_commands response type - execute with user confirmation. - + Uses task tree execution for advanced auto-repair capabilities: - Spawns repair sub-tasks when commands fail - Requests additional permissions during execution - Monitors terminals during manual intervention - Provides detailed failure reasoning - + Returns: Result string if completed, None if should continue loop, or "USER_DECLINED:..." if user declined. """ if not self._do_handler or not parsed.do_commands: return None - + from rich.console import Console + console = Console() - + # Prepare commands for analysis - commands = [ - (cmd.command, cmd.purpose) for cmd in parsed.do_commands - ] - + commands = [(cmd.command, cmd.purpose) for cmd in parsed.do_commands] + # Analyze for protected paths analyzed = self._do_handler.analyze_commands_for_protected_paths(commands) - + # Show reasoning console.print() console.print(f"[bold cyan]๐Ÿค– Cortex Analysis:[/bold cyan] {parsed.reasoning}") console.print() - + # Show task tree preview console.print("[dim]๐Ÿ“‹ Planned tasks:[/dim]") for i, (cmd, purpose, protected) in enumerate(analyzed, 1): - protected_note = f" [yellow](protected: {', '.join(protected)})[/yellow]" if protected else "" + protected_note = ( + f" [yellow](protected: {', '.join(protected)})[/yellow]" if protected else "" + ) console.print(f"[dim] {i}. {cmd[:60]}...{protected_note}[/dim]") console.print() - + # Request user confirmation if self._do_handler.request_user_confirmation(analyzed): # User approved - execute using task tree for better error handling run = self._do_handler.execute_with_task_tree(analyzed, question) - + # Add execution results to history for cmd_log in run.commands: - history.append({ - "command": cmd_log.command, - "success": cmd_log.status.value == "success", - "output": cmd_log.output, - "error": cmd_log.error, - "purpose": cmd_log.purpose, - "executed_by": "cortex" if "Manual execution" not in (cmd_log.purpose or "") else "user_manual", - }) - + history.append( + { + "command": cmd_log.command, + "success": cmd_log.status.value == "success", + "output": cmd_log.output, + "error": cmd_log.error, + "purpose": cmd_log.purpose, + "executed_by": ( + "cortex" + if "Manual execution" not in (cmd_log.purpose or "") + else "user_manual" + ), + } + ) + # Check if any commands were completed manually during execution manual_completed = self._do_handler.get_completed_manual_commands() if manual_completed: - history.append({ - "type": "commands_completed_manually", - "commands": manual_completed, - "message": f"User manually executed these commands successfully: {', '.join(manual_completed)}. Do NOT re-propose them.", - }) - + history.append( + { + "type": "commands_completed_manually", + "commands": manual_completed, + "message": f"User manually executed these commands successfully: {', '.join(manual_completed)}. Do NOT re-propose them.", + } + ) + # Check if there were failures that need LLM input failures = [c for c in run.commands if c.status.value == "failed"] if failures: # Add failure context to history for LLM to help with failure_summary = [] for f in failures: - failure_summary.append({ - "command": f.command, - "error": f.error[:500] if f.error else "Unknown error", - "purpose": f.purpose, - }) - - history.append({ - "type": "execution_failures", - "failures": failure_summary, - "message": f"{len(failures)} command(s) failed during execution. Please analyze and suggest fixes.", - }) - + failure_summary.append( + { + "command": f.command, + "error": f.error[:500] if f.error else "Unknown error", + "purpose": f.purpose, + } + ) + + history.append( + { + "type": "execution_failures", + "failures": failure_summary, + "message": f"{len(failures)} command(s) failed during execution. Please analyze and suggest fixes.", + } + ) + # Continue loop so LLM can suggest next steps return None - + # All commands succeeded (automatically or manually) successes = [c for c in run.commands if c.status.value == "success"] if successes and not failures: # Everything worked - return success message summary = run.summary or f"Successfully executed {len(successes)} command(s)" return f"โœ… {summary}" - + # Return summary for now - LLM will provide final answer in next iteration return None else: # User declined automatic execution - provide manual instructions with monitoring run = self._do_handler.provide_manual_instructions(analyzed, question) - + # Check if any commands were completed manually manual_completed = self._do_handler.get_completed_manual_commands() - + # Check success/failure status from the run from cortex.do_runner.models import CommandStatus + successful_count = sum(1 for c in run.commands if c.status == CommandStatus.SUCCESS) failed_count = sum(1 for c in run.commands if c.status == CommandStatus.FAILED) total_expected = len(analyzed) - + if manual_completed and successful_count > 0: # Commands were completed successfully - go to end - history.append({ - "type": "commands_completed_manually", - "commands": manual_completed, - "message": f"User manually executed {successful_count} commands successfully.", - }) + history.append( + { + "type": "commands_completed_manually", + "commands": manual_completed, + "message": f"User manually executed {successful_count} commands successfully.", + } + ) return f"โœ… Commands completed manually. {successful_count} succeeded." - + # Commands were NOT all successful - ask user what they want to do console.print() from rich.panel import Panel from rich.prompt import Prompt - + status_msg = [] if successful_count > 0: status_msg.append(f"[green]โœ“ {successful_count} succeeded[/green]") @@ -1794,51 +2375,76 @@ def _handle_do_commands( remaining = total_expected - successful_count - failed_count if remaining > 0: status_msg.append(f"[yellow]โ—‹ {remaining} not executed[/yellow]") - - console.print(Panel( - " | ".join(status_msg) if status_msg else "[yellow]No commands were executed[/yellow]", - title="[bold] Manual Intervention Result [/bold]", - border_style="yellow", - padding=(0, 1), - )) - + + console.print( + Panel( + ( + " | ".join(status_msg) + if status_msg + else "[yellow]No commands were executed[/yellow]" + ), + title="[bold] Manual Intervention Result [/bold]", + border_style="yellow", + padding=(0, 1), + ) + ) + console.print() console.print("[bold]What would you like to do?[/bold]") console.print("[dim] โ€ข Type your request to retry or modify the approach[/dim]") console.print("[dim] โ€ข Say 'done', 'no', or 'skip' to finish without retrying[/dim]") console.print() - + try: user_response = Prompt.ask("[cyan]Your response[/cyan]").strip() except (EOFError, KeyboardInterrupt): user_response = "done" - + # Check if user wants to end - end_keywords = ["done", "no", "skip", "exit", "quit", "stop", "cancel", "n", "finish", "end"] + end_keywords = [ + "done", + "no", + "skip", + "exit", + "quit", + "stop", + "cancel", + "n", + "finish", + "end", + ] if user_response.lower() in end_keywords or not user_response: # User doesn't want to retry - go to end - history.append({ - "type": "manual_intervention_ended", - "message": f"User ended manual intervention. {successful_count} commands succeeded.", - }) + history.append( + { + "type": "manual_intervention_ended", + "message": f"User ended manual intervention. {successful_count} commands succeeded.", + } + ) if successful_count > 0: - return f"โœ… Session ended. {successful_count} command(s) completed successfully." + return ( + f"โœ… Session ended. {successful_count} command(s) completed successfully." + ) else: - return f"Session ended. No commands were executed." - + return "Session ended. No commands were executed." + # User wants to retry or modify - add their input to history - history.append({ - "type": "manual_intervention_feedback", - "user_input": user_response, - "previous_commands": [(cmd, purpose, []) for cmd, purpose, _ in analyzed], - "successful_count": successful_count, - "failed_count": failed_count, - "message": f"User requested: {user_response}. Previous attempt had {successful_count} successes and {failed_count} failures.", - }) - + history.append( + { + "type": "manual_intervention_feedback", + "user_input": user_response, + "previous_commands": [(cmd, purpose, []) for cmd, purpose, _ in analyzed], + "successful_count": successful_count, + "failed_count": failed_count, + "message": f"User requested: {user_response}. Previous attempt had {successful_count} successes and {failed_count} failures.", + } + ) + console.print() - console.print(f"[cyan]๐Ÿ”„ Processing your request: {user_response[:50]}{'...' if len(user_response) > 50 else ''}[/cyan]") - + console.print( + f"[cyan]๐Ÿ”„ Processing your request: {user_response[:50]}{'...' if len(user_response) > 50 else ''}[/cyan]" + ) + # Continue the loop with user's new input as additional context # The LLM will see the history and the user's feedback return None diff --git a/cortex/cli.py b/cortex/cli.py index 6964d9725..f376c58e9 100644 --- a/cortex/cli.py +++ b/cortex/cli.py @@ -791,7 +791,7 @@ def _sandbox_exec(self, sandbox, args: argparse.Namespace) -> int: def ask(self, question: str | None, debug: bool = False, do_mode: bool = False) -> int: """Answer a natural language question about the system. - + In --do mode, Cortex can execute write and modify commands with user confirmation. If no question is provided in --do mode, starts an interactive session. """ @@ -806,7 +806,10 @@ def ask(self, question: str | None, debug: bool = False, do_mode: bool = False) if do_mode: try: from cortex.do_runner import setup_cortex_user - cx_print("๐Ÿ”ง Do mode enabled - Cortex can execute commands to solve problems", "info") + + cx_print( + "๐Ÿ”ง Do mode enabled - Cortex can execute commands to solve problems", "info" + ) # Don't fail if user creation fails - we have fallbacks setup_cortex_user() except Exception as e: @@ -819,19 +822,21 @@ def ask(self, question: str | None, debug: bool = False, do_mode: bool = False) debug=debug, do_mode=do_mode, ) - + # If no question and in do mode, start interactive session if question is None and do_mode: return self._run_interactive_do_session(handler) elif question is None: self._print_error("Please provide a question or use --do for interactive mode") return 1 - + answer = handler.ask(question) # Don't print raw JSON or processing messages - if answer and not (answer.strip().startswith('{') or - "I'm processing your request" in answer or - "I have a plan to execute" in answer): + if answer and not ( + answer.strip().startswith("{") + or "I'm processing your request" in answer + or "I have a plan to execute" in answer + ): console.print(answer) return 0 except ImportError as e: @@ -847,41 +852,45 @@ def ask(self, question: str | None, debug: bool = False, do_mode: bool = False) except RuntimeError as e: self._print_error(str(e)) return 1 - + def _run_interactive_do_session(self, handler: AskHandler) -> int: """Run an interactive --do session where user can type queries.""" import signal + from rich.panel import Panel from rich.prompt import Prompt - + # Create a session from cortex.do_runner import DoRunDatabase + db = DoRunDatabase() session_id = db.create_session() - + # Pass session_id to handler if handler._do_handler: handler._do_handler.current_session_id = session_id - + # Track if we're currently processing a request processing_request = False request_interrupted = False - + class SessionInterrupt(Exception): """Exception raised to interrupt the current request and return to prompt.""" + pass - + class SessionExit(Exception): """Exception raised to exit the session immediately (Ctrl+C).""" + pass - + def handle_ctrl_z(signum, frame): """Handle Ctrl+Z - stop current operation, return to prompt.""" nonlocal request_interrupted - + # Set interrupt flag on the handler - this will be checked in the loop handler.interrupt() - + # If DoHandler has an active process, stop it if handler._do_handler and handler._do_handler._current_process: try: @@ -893,19 +902,19 @@ def handle_ctrl_z(signum, frame): except: pass handler._do_handler._current_process = None - + # If we're processing a request, interrupt it immediately if processing_request: request_interrupted = True console.print() - console.print(f"[yellow]โš  Ctrl+Z - Stopping current operation...[/yellow]") + console.print("[yellow]โš  Ctrl+Z - Stopping current operation...[/yellow]") # Raise exception to break out and return to prompt raise SessionInterrupt("Interrupted by Ctrl+Z") else: # Not processing anything, just inform the user console.print() - console.print(f"[dim]Ctrl+Z - Type 'exit' to end the session[/dim]") - + console.print("[dim]Ctrl+Z - Type 'exit' to end the session[/dim]") + def handle_ctrl_c(signum, frame): """Handle Ctrl+C - exit the session immediately.""" # Stop any active process first @@ -919,80 +928,88 @@ def handle_ctrl_c(signum, frame): except: pass handler._do_handler._current_process = None - + console.print() console.print("[cyan]๐Ÿ‘‹ Session ended (Ctrl+C).[/cyan]") raise SessionExit("Exited by Ctrl+C") - + # Set up signal handlers for the entire session # Ctrl+Z (SIGTSTP) -> stop current operation, return to prompt # Ctrl+C (SIGINT) -> exit session immediately original_sigtstp = signal.signal(signal.SIGTSTP, handle_ctrl_z) original_sigint = signal.signal(signal.SIGINT, handle_ctrl_c) - + try: console.print() - console.print(Panel( - "[bold cyan]๐Ÿš€ Cortex Interactive Session[/bold cyan]\n\n" - f"[dim]Session ID: {session_id[:30]}...[/dim]\n\n" - "Type what you want to do and Cortex will help you.\n" - "Commands will be shown for approval before execution.\n\n" - "[dim]Examples:[/dim]\n" - " โ€ข install docker and run nginx\n" - " โ€ข setup a postgresql database\n" - " โ€ข configure nginx to proxy port 3000\n" - " โ€ข check system resources\n\n" - "[dim]Type 'exit' or 'quit' to end the session.[/dim]\n" - "[dim]Press Ctrl+Z to stop current operation | Ctrl+C to exit immediately[/dim]", - title="[bold green]Welcome[/bold green]", - border_style="cyan", - )) + console.print( + Panel( + "[bold cyan]๐Ÿš€ Cortex Interactive Session[/bold cyan]\n\n" + f"[dim]Session ID: {session_id[:30]}...[/dim]\n\n" + "Type what you want to do and Cortex will help you.\n" + "Commands will be shown for approval before execution.\n\n" + "[dim]Examples:[/dim]\n" + " โ€ข install docker and run nginx\n" + " โ€ข setup a postgresql database\n" + " โ€ข configure nginx to proxy port 3000\n" + " โ€ข check system resources\n\n" + "[dim]Type 'exit' or 'quit' to end the session.[/dim]\n" + "[dim]Press Ctrl+Z to stop current operation | Ctrl+C to exit immediately[/dim]", + title="[bold green]Welcome[/bold green]", + border_style="cyan", + ) + ) console.print() - + session_history = [] # Track what was done in this session run_count = 0 - + while True: try: # Show compact session status (not the full history panel) if session_history: - console.print(f"[dim]Session: {len(session_history)} task(s) | {run_count} run(s) | Type 'history' to see details[/dim]") - + console.print( + f"[dim]Session: {len(session_history)} task(s) | {run_count} run(s) | Type 'history' to see details[/dim]" + ) + # Get user input query = Prompt.ask("[bold cyan]What would you like to do?[/bold cyan]") - + if not query.strip(): continue - + # Check for exit if query.lower().strip() in ["exit", "quit", "bye", "q"]: db.end_session(session_id) console.print() - console.print(f"[cyan]๐Ÿ‘‹ Session ended ({run_count} runs). Run 'cortex do history' to see past runs.[/cyan]") + console.print( + f"[cyan]๐Ÿ‘‹ Session ended ({run_count} runs). Run 'cortex do history' to see past runs.[/cyan]" + ) break - + # Check for help if query.lower().strip() in ["help", "?"]: console.print() console.print("[bold]Available commands:[/bold]") - console.print(" [green]exit[/green], [green]quit[/green] - End the session") + console.print( + " [green]exit[/green], [green]quit[/green] - End the session" + ) console.print(" [green]history[/green] - Show session history") console.print(" [green]clear[/green] - Clear session history") console.print(" Or type any request in natural language!") console.print() continue - + # Check for history if query.lower().strip() == "history": if session_history: - from rich.table import Table from rich.panel import Panel - + from rich.table import Table + console.print() table = Table( - show_header=True, + show_header=True, header_style="bold cyan", - title=f"[bold]Session History[/bold]", + title="[bold]Session History[/bold]", title_style="bold", ) table.add_column("#", style="dim", width=3) @@ -1000,50 +1017,70 @@ def handle_ctrl_c(signum, frame): table.add_column("Status", justify="center", width=8) table.add_column("Commands", justify="center", width=10) table.add_column("Run ID", style="dim", max_width=20) - + for i, item in enumerate(session_history, 1): - status = "[green]โœ“ Success[/green]" if item.get("success") else "[red]โœ— Failed[/red]" - query_short = item['query'][:42] + "..." if len(item['query']) > 42 else item['query'] - cmd_count = str(item.get('commands_count', 0)) if item.get('success') else "-" - run_id = item.get('run_id', '-')[:18] + "..." if item.get('run_id') and len(item.get('run_id', '')) > 18 else item.get('run_id', '-') + status = ( + "[green]โœ“ Success[/green]" + if item.get("success") + else "[red]โœ— Failed[/red]" + ) + query_short = ( + item["query"][:42] + "..." + if len(item["query"]) > 42 + else item["query"] + ) + cmd_count = ( + str(item.get("commands_count", 0)) + if item.get("success") + else "-" + ) + run_id = ( + item.get("run_id", "-")[:18] + "..." + if item.get("run_id") and len(item.get("run_id", "")) > 18 + else item.get("run_id", "-") + ) table.add_row(str(i), query_short, status, cmd_count, run_id) - + console.print(table) console.print() - console.print(f"[dim]Total: {len(session_history)} tasks | {run_count} runs | Session: {session_id[:20]}...[/dim]") + console.print( + f"[dim]Total: {len(session_history)} tasks | {run_count} runs | Session: {session_id[:20]}...[/dim]" + ) console.print() else: console.print("[dim]No tasks completed yet.[/dim]") continue - + # Check for clear if query.lower().strip() == "clear": session_history.clear() console.print("[dim]Session history cleared.[/dim]") continue - + # Update session with query db.update_session(session_id, query=query) - + # Process the query console.print() processing_request = True request_interrupted = False handler.reset_interrupt() # Reset interrupt flag before new request - + try: answer = handler.ask(query) - + # Check if request was interrupted if request_interrupted: console.print("[yellow]โš  Request was interrupted[/yellow]") - session_history.append({ - "query": query, - "success": False, - "error": "Interrupted by user", - }) + session_history.append( + { + "query": query, + "success": False, + "error": "Interrupted by user", + } + ) continue - + # Get the run_id and command count if one was created run_id = None commands_count = 0 @@ -1054,32 +1091,38 @@ def handle_ctrl_c(signum, frame): commands_count = len(handler._do_handler.current_run.commands) run_count += 1 db.update_session(session_id, increment_runs=True) - + # Track in session history - session_history.append({ - "query": query, - "success": True, - "answer": answer[:100] if answer else "", - "run_id": run_id, - "commands_count": commands_count, - }) - + session_history.append( + { + "query": query, + "success": True, + "answer": answer[:100] if answer else "", + "run_id": run_id, + "commands_count": commands_count, + } + ) + # Print response if it's informational (filter out JSON) if answer and not answer.startswith("USER_DECLINED"): # Don't print raw JSON or processing messages - if not (answer.strip().startswith('{') or - "I'm processing your request" in answer or - "I have a plan to execute" in answer): + if not ( + answer.strip().startswith("{") + or "I'm processing your request" in answer + or "I have a plan to execute" in answer + ): console.print(answer) - + except SessionInterrupt: # Ctrl+Z/Ctrl+C pressed - return to prompt immediately console.print() - session_history.append({ - "query": query, - "success": False, - "error": "Interrupted by user", - }) + session_history.append( + { + "query": query, + "success": False, + "error": "Interrupted by user", + } + ) continue # Go back to "What would you like to do?" prompt except Exception as e: if request_interrupted: @@ -1088,23 +1131,28 @@ def handle_ctrl_c(signum, frame): # Show user-friendly error without internal details error_msg = str(e) if isinstance(e, AttributeError): - console.print("[yellow]โš  Something went wrong. Please try again.[/yellow]") + console.print( + "[yellow]โš  Something went wrong. Please try again.[/yellow]" + ) # Log the actual error for debugging import logging + logging.debug(f"Internal error: {e}") else: console.print(f"[red]โš  {error_msg}[/red]") - session_history.append({ - "query": query, - "success": False, - "error": "Interrupted" if request_interrupted else str(e), - }) + session_history.append( + { + "query": query, + "success": False, + "error": "Interrupted" if request_interrupted else str(e), + } + ) finally: processing_request = False request_interrupted = False - + console.print() - + except SessionInterrupt: # Ctrl+Z - just return to prompt console.print() @@ -1119,12 +1167,12 @@ def handle_ctrl_c(signum, frame): console.print() console.print("[cyan]๐Ÿ‘‹ Session ended.[/cyan]") break - + finally: # Always restore signal handlers when session ends signal.signal(signal.SIGTSTP, original_sigtstp) signal.signal(signal.SIGINT, original_sigint) - + return 0 def install( @@ -3823,10 +3871,10 @@ def _env_path_clean( # --- Do Command (manage do-mode runs) --- def do_cmd(self, args: argparse.Namespace) -> int: """Handle `cortex do` commands for managing do-mode runs.""" - from cortex.do_runner import DoHandler, ProtectedPathsManager, CortexUserManager - + from cortex.do_runner import CortexUserManager, DoHandler, ProtectedPathsManager + action = getattr(args, "do_action", None) - + if not action: cx_print("\n๐Ÿ”ง Do Mode - Execute commands to solve problems\n", "info") console.print("Usage: cortex ask --do ") @@ -3839,7 +3887,7 @@ def do_cmd(self, args: argparse.Namespace) -> int: console.print(" cortex ask --do 'Fix my nginx configuration'") console.print(" cortex do history") return 0 - + if action == "history": return self._do_history(args) elif action == "setup": @@ -3849,56 +3897,58 @@ def do_cmd(self, args: argparse.Namespace) -> int: else: self._print_error(f"Unknown do action: {action}") return 1 - + def _do_history(self, args: argparse.Namespace) -> int: """Show do-mode run history.""" from cortex.do_runner import DoHandler - + handler = DoHandler() run_id = getattr(args, "run_id", None) - + if run_id: # Show specific run details run = handler.get_run(run_id) if not run: self._print_error(f"Run {run_id} not found") return 1 - + # Get statistics from database stats = handler.db.get_run_stats(run_id) - + console.print(f"\n[bold]Do Run: {run.run_id}[/bold]") console.print("=" * 70) - + # Show session ID if available session_id = getattr(run, "session_id", None) if session_id: console.print(f"[bold]Session:[/bold] [magenta]{session_id}[/magenta]") - + console.print(f"[bold]Query:[/bold] {run.user_query}") console.print(f"[bold]Mode:[/bold] {run.mode.value}") console.print(f"[bold]Started:[/bold] {run.started_at}") console.print(f"[bold]Completed:[/bold] {run.completed_at}") console.print(f"\n[bold]Summary:[/bold] {run.summary}") - + # Show statistics if stats: - console.print(f"\n[bold cyan]๐Ÿ“Š Command Statistics:[/bold cyan]") + console.print("\n[bold cyan]๐Ÿ“Š Command Statistics:[/bold cyan]") total = stats.get("total_commands", 0) success = stats.get("successful_commands", 0) failed = stats.get("failed_commands", 0) skipped = stats.get("skipped_commands", 0) - console.print(f" Total: {total} | [green]โœ“ Success: {success}[/green] | [red]โœ— Failed: {failed}[/red] | [yellow]โ—‹ Skipped: {skipped}[/yellow]") - + console.print( + f" Total: {total} | [green]โœ“ Success: {success}[/green] | [red]โœ— Failed: {failed}[/red] | [yellow]โ—‹ Skipped: {skipped}[/yellow]" + ) + if run.files_accessed: console.print(f"\n[bold]Files Accessed:[/bold] {', '.join(run.files_accessed)}") - + # Get detailed commands from database commands_detail = handler.db.get_run_commands(run_id) - - console.print(f"\n[bold cyan]๐Ÿ“‹ Commands Executed:[/bold cyan]") + + console.print("\n[bold cyan]๐Ÿ“‹ Commands Executed:[/bold cyan]") console.print("-" * 70) - + if commands_detail: for cmd in commands_detail: status = cmd["status"] @@ -3910,11 +3960,15 @@ def _do_history(self, args: argparse.Namespace) -> int: status_icon = "[yellow]โ—‹[/yellow]" else: status_icon = "[dim]?[/dim]" - - console.print(f"\n{status_icon} [bold]Command {cmd['index'] + 1}:[/bold] {cmd['command']}") + + console.print( + f"\n{status_icon} [bold]Command {cmd['index'] + 1}:[/bold] {cmd['command']}" + ) console.print(f" [dim]Purpose:[/dim] {cmd['purpose']}") - console.print(f" [dim]Status:[/dim] {status} | [dim]Duration:[/dim] {cmd['duration']:.2f}s") - + console.print( + f" [dim]Status:[/dim] {status} | [dim]Duration:[/dim] {cmd['duration']:.2f}s" + ) + if cmd["output"]: console.print(f" [dim]Output:[/dim] {cmd['output']}") if cmd["error"]: @@ -3922,30 +3976,36 @@ def _do_history(self, args: argparse.Namespace) -> int: else: # Fallback to run.commands if database commands not available for i, cmd in enumerate(run.commands): - status_icon = "[green]โœ“[/green]" if cmd.status.value == "success" else "[red]โœ—[/red]" + status_icon = ( + "[green]โœ“[/green]" if cmd.status.value == "success" else "[red]โœ—[/red]" + ) console.print(f"\n{status_icon} [bold]Command {i + 1}:[/bold] {cmd.command}") console.print(f" [dim]Purpose:[/dim] {cmd.purpose}") - console.print(f" [dim]Status:[/dim] {cmd.status.value} | [dim]Duration:[/dim] {cmd.duration_seconds:.2f}s") + console.print( + f" [dim]Status:[/dim] {cmd.status.value} | [dim]Duration:[/dim] {cmd.duration_seconds:.2f}s" + ) if cmd.output: - output_truncated = cmd.output[:250] + "..." if len(cmd.output) > 250 else cmd.output + output_truncated = ( + cmd.output[:250] + "..." if len(cmd.output) > 250 else cmd.output + ) console.print(f" [dim]Output:[/dim] {output_truncated}") if cmd.error: console.print(f" [red]Error:[/red] {cmd.error}") - + return 0 - + # List recent runs limit = getattr(args, "limit", 20) runs = handler.get_run_history(limit) - + if not runs: cx_print("No do-mode runs found", "info") return 0 - + # Group runs by session sessions = {} standalone_runs = [] - + for run in runs: session_id = getattr(run, "session_id", None) if session_id: @@ -3954,35 +4014,39 @@ def _do_history(self, args: argparse.Namespace) -> int: sessions[session_id].append(run) else: standalone_runs.append(run) - - console.print(f"\n[bold]๐Ÿ“œ Recent Do Runs:[/bold]") - console.print(f"[dim]Sessions: {len(sessions)} | Standalone runs: {len(standalone_runs)}[/dim]\n") - + + console.print("\n[bold]๐Ÿ“œ Recent Do Runs:[/bold]") + console.print( + f"[dim]Sessions: {len(sessions)} | Standalone runs: {len(standalone_runs)}[/dim]\n" + ) + import json as json_module - + # Show sessions first for session_id, session_runs in sessions.items(): console.print(f"[bold magenta]โ•ญ{'โ”€' * 68}โ•ฎ[/bold magenta]") - console.print(f"[bold magenta]โ”‚ ๐Ÿ“‚ Session: {session_id[:40]}...{' ' * 15}โ”‚[/bold magenta]") + console.print( + f"[bold magenta]โ”‚ ๐Ÿ“‚ Session: {session_id[:40]}...{' ' * 15}โ”‚[/bold magenta]" + ) console.print(f"[bold magenta]โ”‚ Runs: {len(session_runs)}{' ' * 57}โ”‚[/bold magenta]") console.print(f"[bold magenta]โ•ฐ{'โ”€' * 68}โ•ฏ[/bold magenta]") - + for run in session_runs: self._display_run_summary(handler, run, indent=" ") console.print() - + # Show standalone runs if standalone_runs: if sessions: console.print(f"[bold cyan]{'โ”€' * 70}[/bold cyan]") console.print("[bold]๐Ÿ“‹ Standalone Runs (no session):[/bold]") - + for run in standalone_runs: self._display_run_summary(handler, run) - - console.print(f"[dim]Use 'cortex do history ' for full details[/dim]") + + console.print("[dim]Use 'cortex do history ' for full details[/dim]") return 0 - + def _display_run_summary(self, handler, run, indent: str = "") -> None: """Display a single run summary.""" stats = handler.db.get_run_stats(run.run_id) @@ -3996,29 +4060,35 @@ def _display_run_summary(self, handler, run, indent: str = "") -> None: success_count = sum(1 for c in run.commands if c.status.value == "success") failed_count = sum(1 for c in run.commands if c.status.value == "failed") status_str = f"[green]โœ“{success_count}[/green]/[red]โœ—{failed_count}[/red]/{cmd_count}" - + commands_list = handler.db.get_commands_list(run.run_id) - + console.print(f"{indent}[bold cyan]{'โ”€' * 60}[/bold cyan]") console.print(f"{indent}[bold]Run ID:[/bold] {run.run_id}") - console.print(f"{indent}[bold]Query:[/bold] {run.user_query[:60]}{'...' if len(run.user_query) > 60 else ''}") - console.print(f"{indent}[bold]Status:[/bold] {status_str} | [bold]Started:[/bold] {run.started_at[:19] if run.started_at else '-'}") - + console.print( + f"{indent}[bold]Query:[/bold] {run.user_query[:60]}{'...' if len(run.user_query) > 60 else ''}" + ) + console.print( + f"{indent}[bold]Status:[/bold] {status_str} | [bold]Started:[/bold] {run.started_at[:19] if run.started_at else '-'}" + ) + if commands_list and len(commands_list) <= 3: - console.print(f"{indent}[bold]Commands:[/bold] {', '.join(cmd[:30] for cmd in commands_list)}") + console.print( + f"{indent}[bold]Commands:[/bold] {', '.join(cmd[:30] for cmd in commands_list)}" + ) elif commands_list: console.print(f"{indent}[bold]Commands:[/bold] {len(commands_list)} commands") - + def _do_setup(self) -> int: """Setup cortex user for privilege management.""" from cortex.do_runner import CortexUserManager - + cx_print("Setting up Cortex user for privilege management...", "info") - + if CortexUserManager.user_exists(): cx_print("โœ“ Cortex user already exists", "success") return 0 - + success, message = CortexUserManager.create_user() if success: cx_print(f"โœ“ {message}", "success") @@ -4026,39 +4096,39 @@ def _do_setup(self) -> int: else: self._print_error(message) return 1 - + def _do_protected(self, args: argparse.Namespace) -> int: """Manage protected paths.""" from cortex.do_runner import ProtectedPathsManager - + manager = ProtectedPathsManager() - + add_path = getattr(args, "add", None) remove_path = getattr(args, "remove", None) list_paths = getattr(args, "list", False) - + if add_path: manager.add_protected_path(add_path) cx_print(f"โœ“ Added '{add_path}' to protected paths", "success") return 0 - + if remove_path: if manager.remove_protected_path(remove_path): cx_print(f"โœ“ Removed '{remove_path}' from protected paths", "success") else: self._print_error(f"Path '{remove_path}' not found in user-defined protected paths") return 0 - + # Default: list all protected paths paths = manager.get_all_protected() console.print("\n[bold]Protected Paths:[/bold]") console.print("[dim](These paths require user confirmation for access)[/dim]\n") - + for path in paths: is_system = path in manager.SYSTEM_PROTECTED_PATHS tag = "[system]" if is_system else "[user]" console.print(f" {path} [dim]{tag}[/dim]") - + console.print(f"\n[dim]Total: {len(paths)} paths[/dim]") console.print("[dim]Use --add to add custom paths[/dim]") return 0 @@ -4068,79 +4138,91 @@ def info_cmd(self, args: argparse.Namespace) -> int: """Get system and application information using read-only commands.""" from rich.panel import Panel from rich.table import Table - + try: from cortex.system_info_generator import ( - SystemInfoGenerator, - get_system_info_generator, - COMMON_INFO_COMMANDS, APP_INFO_TEMPLATES, + COMMON_INFO_COMMANDS, + SystemInfoGenerator, + get_system_info_generator, ) except ImportError as e: self._print_error(f"System info generator not available: {e}") return 1 - + debug = getattr(args, "debug", False) - + # Handle --list if getattr(args, "list", False): console.print("\n[bold]๐Ÿ“Š Available Information Types[/bold]\n") - + console.print("[bold cyan]Quick Info Types (--quick):[/bold cyan]") for name in sorted(COMMON_INFO_COMMANDS.keys()): console.print(f" โ€ข {name}") - + console.print("\n[bold cyan]Application Templates (--app):[/bold cyan]") for name in sorted(APP_INFO_TEMPLATES.keys()): aspects = ", ".join(APP_INFO_TEMPLATES[name].keys()) console.print(f" โ€ข {name}: [dim]{aspects}[/dim]") - + console.print("\n[bold cyan]Categories (--category):[/bold cyan]") - console.print(" hardware, software, network, services, security, storage, performance, configuration") - + console.print( + " hardware, software, network, services, security, storage, performance, configuration" + ) + console.print("\n[dim]Examples:[/dim]") console.print(" cortex info --quick cpu") console.print(" cortex info --app nginx") console.print(" cortex info --category hardware") console.print(" cortex info What version of Python is installed?") return 0 - + # Handle --quick quick_type = getattr(args, "quick", None) if quick_type: console.print(f"\n[bold]๐Ÿ” Quick Info: {quick_type.upper()}[/bold]\n") - + if quick_type in COMMON_INFO_COMMANDS: for cmd_info in COMMON_INFO_COMMANDS[quick_type]: from cortex.ask import CommandValidator + success, stdout, stderr = CommandValidator.execute_command(cmd_info.command) - + if success and stdout: - console.print(Panel( - stdout[:1000] + ("..." if len(stdout) > 1000 else ""), - title=f"[cyan]{cmd_info.purpose}[/cyan]", - subtitle=f"[dim]{cmd_info.command[:60]}...[/dim]" if len(cmd_info.command) > 60 else f"[dim]{cmd_info.command}[/dim]", - )) + console.print( + Panel( + stdout[:1000] + ("..." if len(stdout) > 1000 else ""), + title=f"[cyan]{cmd_info.purpose}[/cyan]", + subtitle=( + f"[dim]{cmd_info.command[:60]}...[/dim]" + if len(cmd_info.command) > 60 + else f"[dim]{cmd_info.command}[/dim]" + ), + ) + ) elif stderr: console.print(f"[yellow]โš  {cmd_info.purpose}: {stderr[:100]}[/yellow]") else: self._print_error(f"Unknown quick info type: {quick_type}") return 1 return 0 - + # Handle --app app_name = getattr(args, "app", None) if app_name: console.print(f"\n[bold]๐Ÿ“ฆ Application Info: {app_name.upper()}[/bold]\n") - + if app_name.lower() in APP_INFO_TEMPLATES: templates = APP_INFO_TEMPLATES[app_name.lower()] for aspect, commands in templates.items(): console.print(f"[bold cyan]โ”€โ”€โ”€ {aspect.upper()} โ”€โ”€โ”€[/bold cyan]") for cmd_info in commands: from cortex.ask import CommandValidator - success, stdout, stderr = CommandValidator.execute_command(cmd_info.command, timeout=15) - + + success, stdout, stderr = CommandValidator.execute_command( + cmd_info.command, timeout=15 + ) + if success and stdout: output = stdout[:500] + ("..." if len(stdout) > 500 else "") console.print(f"[dim]{cmd_info.purpose}:[/dim]") @@ -4167,12 +4249,12 @@ def info_cmd(self, args: argparse.Namespace) -> int: self._print_error(f"Unknown app '{app_name}' and no API key for LLM lookup") return 1 return 0 - + # Handle --category category = getattr(args, "category", None) if category: console.print(f"\n[bold]๐Ÿ“Š Category Info: {category.upper()}[/bold]\n") - + api_key = self._get_api_key() if not api_key: # Fall back to running common commands without LLM @@ -4192,12 +4274,13 @@ def info_cmd(self, args: argparse.Namespace) -> int: console.print(f"[bold cyan]โ”€โ”€โ”€ {aspect.upper()} โ”€โ”€โ”€[/bold cyan]") for cmd_info in COMMON_INFO_COMMANDS[aspect]: from cortex.ask import CommandValidator + success, stdout, _ = CommandValidator.execute_command(cmd_info.command) if success and stdout: console.print(stdout[:400]) console.print() return 0 - + try: generator = SystemInfoGenerator( api_key=api_key, @@ -4210,19 +4293,21 @@ def info_cmd(self, args: argparse.Namespace) -> int: self._print_error(f"Could not get category info: {e}") return 1 return 0 - + # Handle natural language query query_parts = getattr(args, "query", []) if query_parts: query = " ".join(query_parts) - console.print(f"\n[bold]๐Ÿ” System Info Query[/bold]\n") + console.print("\n[bold]๐Ÿ” System Info Query[/bold]\n") console.print(f"[dim]Query: {query}[/dim]\n") - + api_key = self._get_api_key() if not api_key: - self._print_error("Natural language queries require an API key. Use --quick or --app instead.") + self._print_error( + "Natural language queries require an API key. Use --quick or --app instead." + ) return 1 - + try: generator = SystemInfoGenerator( api_key=api_key, @@ -4230,9 +4315,9 @@ def info_cmd(self, args: argparse.Namespace) -> int: debug=debug, ) result = generator.get_info(query) - + console.print(Panel(result.answer, title="[bold green]Answer[/bold green]")) - + if debug and result.commands_executed: table = Table(title="Commands Executed") table.add_column("Command", style="cyan", max_width=50) @@ -4243,27 +4328,34 @@ def info_cmd(self, args: argparse.Namespace) -> int: table.add_row( cmd.command[:50] + "..." if len(cmd.command) > 50 else cmd.command, status, - f"{cmd.execution_time:.2f}s" + f"{cmd.execution_time:.2f}s", ) console.print(table) - + except Exception as e: self._print_error(f"Query failed: {e}") if debug: import traceback + traceback.print_exc() return 1 return 0 - + # No arguments - show help console.print("\n[bold]๐Ÿ“Š Cortex Info - System Information Generator[/bold]\n") console.print("Get system and application information using read-only commands.\n") console.print("[bold cyan]Usage:[/bold cyan]") console.print(" cortex info --list List available info types") console.print(" cortex info --quick Quick lookup (cpu, memory, etc.)") - console.print(" cortex info --app Application info (nginx, docker, etc.)") - console.print(" cortex info --category Category info (hardware, network, etc.)") - console.print(" cortex info Natural language query (requires API key)") + console.print( + " cortex info --app Application info (nginx, docker, etc.)" + ) + console.print( + " cortex info --category Category info (hardware, network, etc.)" + ) + console.print( + " cortex info Natural language query (requires API key)" + ) console.print("\n[bold cyan]Examples:[/bold cyan]") console.print(" cortex info --quick memory") console.print(" cortex info --app nginx") @@ -4275,29 +4367,37 @@ def info_cmd(self, args: argparse.Namespace) -> int: def watch_cmd(self, args: argparse.Namespace) -> int: """Manage terminal watching for manual intervention mode.""" from rich.panel import Panel + from cortex.do_runner.terminal import TerminalMonitor - + monitor = TerminalMonitor(use_llm=False) system_wide = getattr(args, "system", False) as_service = getattr(args, "service", False) - + if getattr(args, "install", False): if as_service: # Install as systemd service console.print("\n[bold cyan]๐Ÿ”ง Installing Cortex Watch Service[/bold cyan]") - console.print("[dim]This will create a systemd user service that runs automatically[/dim]\n") - + console.print( + "[dim]This will create a systemd user service that runs automatically[/dim]\n" + ) + from cortex.watch_service import install_service + success, msg = install_service() console.print(msg) return 0 if success else 1 elif system_wide: - console.print("\n[bold cyan]๐Ÿ”ง Installing System-Wide Terminal Watch Hook[/bold cyan]") + console.print( + "\n[bold cyan]๐Ÿ”ง Installing System-Wide Terminal Watch Hook[/bold cyan]" + ) console.print("[dim]This will install to /etc/profile.d/ (requires sudo)[/dim]\n") success, msg = monitor.setup_system_wide_watch() if success: console.print(f"[green]{msg}[/green]") - console.print("\n[bold green]โœ“ All new terminals will automatically have Cortex watching![/bold green]") + console.print( + "\n[bold green]โœ“ All new terminals will automatically have Cortex watching![/bold green]" + ) else: console.print(f"[red]โœ— {msg}[/red]") return 1 @@ -4306,23 +4406,30 @@ def watch_cmd(self, args: argparse.Namespace) -> int: success, msg = monitor.setup_auto_watch(permanent=True) if success: console.print(f"[green]โœ“ {msg}[/green]") - console.print("\n[yellow]Note: New terminals will have the hook automatically.[/yellow]") + console.print( + "\n[yellow]Note: New terminals will have the hook automatically.[/yellow]" + ) console.print("[yellow]For existing terminals, run:[/yellow]") - console.print(f"[green]source ~/.cortex/watch_hook.sh[/green]") - console.print("\n[dim]Tip: For automatic activation in ALL terminals, run:[/dim]") + console.print("[green]source ~/.cortex/watch_hook.sh[/green]") + console.print( + "\n[dim]Tip: For automatic activation in ALL terminals, run:[/dim]" + ) console.print("[cyan]cortex watch --install --system[/cyan]") else: console.print(f"[red]โœ— {msg}[/red]") return 1 return 0 - + if getattr(args, "uninstall", False): if as_service: console.print("\n[bold cyan]๐Ÿ”ง Removing Cortex Watch Service[/bold cyan]\n") from cortex.watch_service import uninstall_service + success, msg = uninstall_service() elif system_wide: - console.print("\n[bold cyan]๐Ÿ”ง Removing System-Wide Terminal Watch Hook[/bold cyan]\n") + console.print( + "\n[bold cyan]๐Ÿ”ง Removing System-Wide Terminal Watch Hook[/bold cyan]\n" + ) success, msg = monitor.uninstall_system_wide_watch() else: console.print("\n[bold cyan]๐Ÿ”ง Removing Terminal Watch Hook[/bold cyan]\n") @@ -4333,99 +4440,106 @@ def watch_cmd(self, args: argparse.Namespace) -> int: console.print(f"[red]โœ— {msg}[/red]") return 1 return 0 - + if getattr(args, "test", False): console.print("\n[bold cyan]๐Ÿงช Testing Terminal Monitoring[/bold cyan]\n") monitor.test_monitoring() return 0 - + if getattr(args, "status", False): console.print("\n[bold cyan]๐Ÿ“Š Terminal Watch Status[/bold cyan]\n") - + from pathlib import Path + bashrc = Path.home() / ".bashrc" zshrc = Path.home() / ".zshrc" source_file = Path.home() / ".cortex" / "watch_hook.sh" watch_log = Path.home() / ".cortex" / "terminal_watch.log" system_hook = Path("/etc/profile.d/cortex-watch.sh") service_file = Path.home() / ".config" / "systemd" / "user" / "cortex-watch.service" - + console.print("[bold]Service Status:[/bold]") - + # Check systemd service if service_file.exists(): try: result = subprocess.run( ["systemctl", "--user", "is-active", "cortex-watch.service"], - capture_output=True, text=True, timeout=5 + capture_output=True, + text=True, + timeout=5, ) is_active = result.stdout.strip() == "active" if is_active: console.print(" [bold green]โœ“ SYSTEMD SERVICE RUNNING[/bold green]") console.print(" [dim]Automatic terminal monitoring active[/dim]") else: - console.print(" [yellow]โ—‹ Systemd service installed but not running[/yellow]") + console.print( + " [yellow]โ—‹ Systemd service installed but not running[/yellow]" + ) console.print(" [dim]Run: systemctl --user start cortex-watch[/dim]") except Exception: console.print(" [yellow]โ—‹ Systemd service installed (status unknown)[/yellow]") else: console.print(" [dim]โ—‹ Systemd service not installed[/dim]") console.print(" [dim]Run: cortex watch --install --service (recommended)[/dim]") - + console.print() console.print("[bold]Hook Status:[/bold]") - + # System-wide check if system_hook.exists(): console.print(" [green]โœ“ System-wide hook installed[/green]") else: console.print(" [dim]โ—‹ System-wide hook not installed[/dim]") - + # User-level checks if bashrc.exists() and "Cortex Terminal Watch Hook" in bashrc.read_text(): console.print(" [green]โœ“ Hook installed in .bashrc[/green]") else: console.print(" [dim]โ—‹ Not installed in .bashrc[/dim]") - + if zshrc.exists() and "Cortex Terminal Watch Hook" in zshrc.read_text(): console.print(" [green]โœ“ Hook installed in .zshrc[/green]") else: console.print(" [dim]โ—‹ Not installed in .zshrc[/dim]") - + console.print("\n[bold]Watch Log:[/bold]") if watch_log.exists(): size = watch_log.stat().st_size - lines = len(watch_log.read_text().strip().split('\n')) if size > 0 else 0 + lines = len(watch_log.read_text().strip().split("\n")) if size > 0 else 0 console.print(f" [green]โœ“ Log file exists: {watch_log}[/green]") console.print(f" [dim] Size: {size} bytes, {lines} commands logged[/dim]") else: - console.print(f" [dim]โ—‹ No log file yet (created when commands are run)[/dim]") - + console.print(" [dim]โ—‹ No log file yet (created when commands are run)[/dim]") + return 0 - + # Default: show help console.print() - console.print(Panel( - "[bold cyan]Terminal Watch[/bold cyan] - Real-time monitoring for manual intervention mode\n\n" - "When Cortex enters manual intervention mode, it watches your other terminals\n" - "to provide real-time feedback and AI-powered suggestions.\n\n" - "[bold]Commands:[/bold]\n" - " [cyan]cortex watch --install --service[/cyan] Install as systemd service (RECOMMENDED)\n" - " [cyan]cortex watch --install --system[/cyan] Install system-wide hook (requires sudo)\n" - " [cyan]cortex watch --install[/cyan] Install hook to .bashrc/.zshrc\n" - " [cyan]cortex watch --uninstall --service[/cyan] Remove systemd service\n" - " [cyan]cortex watch --status[/cyan] Show installation status\n" - " [cyan]cortex watch --test[/cyan] Test monitoring setup\n\n" - "[bold green]Recommended Setup:[/bold green]\n" - " Run [green]cortex watch --install --service[/green]\n\n" - " This creates a background service that:\n" - " โ€ข Starts automatically on login\n" - " โ€ข Restarts if it crashes\n" - " โ€ข Monitors ALL terminal activity\n" - " โ€ข No manual setup in each terminal!", - title="[green]๐Ÿ” Cortex Watch[/green]", - border_style="cyan", - )) + console.print( + Panel( + "[bold cyan]Terminal Watch[/bold cyan] - Real-time monitoring for manual intervention mode\n\n" + "When Cortex enters manual intervention mode, it watches your other terminals\n" + "to provide real-time feedback and AI-powered suggestions.\n\n" + "[bold]Commands:[/bold]\n" + " [cyan]cortex watch --install --service[/cyan] Install as systemd service (RECOMMENDED)\n" + " [cyan]cortex watch --install --system[/cyan] Install system-wide hook (requires sudo)\n" + " [cyan]cortex watch --install[/cyan] Install hook to .bashrc/.zshrc\n" + " [cyan]cortex watch --uninstall --service[/cyan] Remove systemd service\n" + " [cyan]cortex watch --status[/cyan] Show installation status\n" + " [cyan]cortex watch --test[/cyan] Test monitoring setup\n\n" + "[bold green]Recommended Setup:[/bold green]\n" + " Run [green]cortex watch --install --service[/green]\n\n" + " This creates a background service that:\n" + " โ€ข Starts automatically on login\n" + " โ€ข Restarts if it crashes\n" + " โ€ข Monitors ALL terminal activity\n" + " โ€ข No manual setup in each terminal!", + title="[green]๐Ÿ” Cortex Watch[/green]", + border_style="cyan", + ) + ) return 0 # --- Import Dependencies Command --- @@ -5045,12 +5159,20 @@ def main(): # Ask command ask_parser = subparsers.add_parser("ask", help="Ask a question about your system") - ask_parser.add_argument("question", type=str, nargs="?", default=None, help="Natural language question (optional with --do)") - ask_parser.add_argument("--debug", action="store_true", help="Show debug output for agentic loop") ask_parser.add_argument( - "--do", - action="store_true", - help="Enable do mode - Cortex can write, read, and execute commands to solve problems. If no question is provided, starts interactive session." + "question", + type=str, + nargs="?", + default=None, + help="Natural language question (optional with --do)", + ) + ask_parser.add_argument( + "--debug", action="store_true", help="Show debug output for agentic loop" + ) + ask_parser.add_argument( + "--do", + action="store_true", + help="Enable do mode - Cortex can write, read, and execute commands to solve problems. If no question is provided, starts interactive session.", ) # Install command @@ -5538,34 +5660,48 @@ def main(): info_parser = subparsers.add_parser("info", help="Get system and application information") info_parser.add_argument("query", nargs="*", help="Information query (natural language)") info_parser.add_argument( - "--app", "-a", - type=str, - help="Get info about a specific application (nginx, docker, etc.)" + "--app", "-a", type=str, help="Get info about a specific application (nginx, docker, etc.)" ) info_parser.add_argument( - "--quick", "-q", + "--quick", + "-q", type=str, - choices=["cpu", "memory", "disk", "gpu", "os", "kernel", "network", "dns", - "services", "security", "processes", "environment"], - help="Quick lookup for common info types" + choices=[ + "cpu", + "memory", + "disk", + "gpu", + "os", + "kernel", + "network", + "dns", + "services", + "security", + "processes", + "environment", + ], + help="Quick lookup for common info types", ) info_parser.add_argument( - "--category", "-c", + "--category", + "-c", type=str, - choices=["hardware", "software", "network", "services", "security", - "storage", "performance", "configuration"], - help="Get structured info for a category" + choices=[ + "hardware", + "software", + "network", + "services", + "security", + "storage", + "performance", + "configuration", + ], + help="Get structured info for a category", ) info_parser.add_argument( - "--list", "-l", - action="store_true", - help="List available info types and applications" - ) - info_parser.add_argument( - "--debug", - action="store_true", - help="Show debug output" + "--list", "-l", action="store_true", help="List available info types and applications" ) + info_parser.add_argument("--debug", action="store_true", help="Show debug output") # --- Do Command (manage do-mode runs) --- do_parser = subparsers.add_parser("do", help="Manage do-mode execution runs") @@ -5573,7 +5709,9 @@ def main(): # do history [--limit N] do_history_parser = do_subs.add_parser("history", help="View do-mode run history") - do_history_parser.add_argument("--limit", "-n", type=int, default=20, help="Number of runs to show") + do_history_parser.add_argument( + "--limit", "-n", type=int, default=20, help="Number of runs to show" + ) do_history_parser.add_argument("run_id", nargs="?", help="Show details for specific run ID") # do setup - setup cortex user @@ -5587,11 +5725,21 @@ def main(): # -------------------------- # --- Watch Command (terminal monitoring setup) --- - watch_parser = subparsers.add_parser("watch", help="Manage terminal watching for manual intervention mode") - watch_parser.add_argument("--install", action="store_true", help="Install terminal watch hook to .bashrc/.zshrc") - watch_parser.add_argument("--uninstall", action="store_true", help="Remove terminal watch hook from shell configs") - watch_parser.add_argument("--system", action="store_true", help="Install/uninstall system-wide (requires sudo)") - watch_parser.add_argument("--service", action="store_true", help="Install/uninstall as systemd service (recommended)") + watch_parser = subparsers.add_parser( + "watch", help="Manage terminal watching for manual intervention mode" + ) + watch_parser.add_argument( + "--install", action="store_true", help="Install terminal watch hook to .bashrc/.zshrc" + ) + watch_parser.add_argument( + "--uninstall", action="store_true", help="Remove terminal watch hook from shell configs" + ) + watch_parser.add_argument( + "--system", action="store_true", help="Install/uninstall system-wide (requires sudo)" + ) + watch_parser.add_argument( + "--service", action="store_true", help="Install/uninstall as systemd service (recommended)" + ) watch_parser.add_argument("--status", action="store_true", help="Show terminal watch status") watch_parser.add_argument("--test", action="store_true", help="Test terminal monitoring") # -------------------------- @@ -5790,9 +5938,9 @@ def main(): ) elif args.command == "ask": return cli.ask( - getattr(args, "question", None), - debug=args.debug, - do_mode=getattr(args, "do", False) + getattr(args, "question", None), + debug=args.debug, + do_mode=getattr(args, "do", False), ) elif args.command == "install": return cli.install( @@ -5904,6 +6052,7 @@ def main(): print("โŒ Something went wrong. Please try again.", file=sys.stderr) if "--verbose" in sys.argv or "-v" in sys.argv: import traceback + traceback.print_exc() return 1 except Exception as e: diff --git a/cortex/demo.py b/cortex/demo.py index 6fd487eeb..c324c1b3e 100644 --- a/cortex/demo.py +++ b/cortex/demo.py @@ -4,9 +4,9 @@ import sys from rich.console import Console -from rich.panel import Panel -from rich.prompt import Prompt, Confirm from rich.markdown import Markdown +from rich.panel import Panel +from rich.prompt import Confirm, Prompt from cortex.branding import show_banner @@ -41,11 +41,11 @@ def run_demo() -> int: """Run the interactive Cortex demo.""" console.clear() show_banner() - + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ # INTRODUCTION # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - + intro = """ **Cortex** - The AI-native package manager for Linux. @@ -56,91 +56,80 @@ def run_demo() -> int: """ console.print(Panel(Markdown(intro), title="[cyan]Demo[/cyan]", border_style="cyan")) _wait_for_enter() - + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ # ASK COMMAND # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - - _section( - "๐Ÿ” Ask Command", - "Query your system without memorizing Linux commands." - ) - + + _section("๐Ÿ” Ask Command", "Query your system without memorizing Linux commands.") + console.print("[dim]Examples: 'What Python version?', 'How much disk space?'[/dim]\n") - + user_question = Prompt.ask( - "[cyan]What would you like to ask?[/cyan]", - default="What version of Python is installed?" + "[cyan]What would you like to ask?[/cyan]", default="What version of Python is installed?" ) - - console.print(f"\n[yellow]$[/yellow] cortex ask \"{user_question}\"\n") + + console.print(f'\n[yellow]$[/yellow] cortex ask "{user_question}"\n') _run_cortex_command(["ask", user_question]) - + _wait_for_enter() - + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ # INSTALL COMMAND # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - - _section( - "๐Ÿ“ฆ Install Command", - "Describe what you want - Cortex finds the right packages." - ) - + + _section("๐Ÿ“ฆ Install Command", "Describe what you want - Cortex finds the right packages.") + console.print("[dim]Examples: 'a web server', 'python dev tools', 'docker'[/dim]\n") - + user_install = Prompt.ask( - "[cyan]What would you like to install?[/cyan]", - default="a lightweight text editor" + "[cyan]What would you like to install?[/cyan]", default="a lightweight text editor" ) - - console.print(f"\n[yellow]$[/yellow] cortex install \"{user_install}\" --dry-run\n") + + console.print(f'\n[yellow]$[/yellow] cortex install "{user_install}" --dry-run\n') _run_cortex_command(["install", user_install, "--dry-run"]) - + console.print() if Confirm.ask("Actually install this?", default=False): - console.print(f"\n[yellow]$[/yellow] cortex install \"{user_install}\" --execute\n") + console.print(f'\n[yellow]$[/yellow] cortex install "{user_install}" --execute\n') _run_cortex_command(["install", user_install, "--execute"]) - + _wait_for_enter() - + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ # ROLLBACK COMMAND # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - - _section( - "โช Rollback Command", - "Undo any installation by reverting to the previous state." - ) - + + _section("โช Rollback Command", "Undo any installation by reverting to the previous state.") + console.print("[dim]First, let's see your installation history with IDs:[/dim]\n") console.print("[yellow]$[/yellow] cortex history --limit 5\n") _run_cortex_command(["history", "--limit", "5"]) - + _wait_for_enter() - + if Confirm.ask("Preview a rollback?", default=False): console.print("\n[cyan]Copy an installation ID from the history above:[/cyan]") console.print("[dim]$ cortex rollback [/dim]", end="") rollback_id = input().strip() - + if rollback_id: console.print(f"\n[yellow]$[/yellow] cortex rollback {rollback_id} --dry-run\n") _run_cortex_command(["rollback", rollback_id, "--dry-run"]) - + if Confirm.ask("Actually rollback?", default=False): console.print(f"\n[yellow]$[/yellow] cortex rollback {rollback_id}\n") _run_cortex_command(["rollback", rollback_id]) - + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ # SUMMARY # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - + console.print(f"\n[bold cyan]{'โ”€' * 50}[/bold cyan]") console.print("[bold green]โœ“ Demo Complete![/bold green]\n") console.print("[dim]Commands: ask, install, history, rollback, stack, status[/dim]") console.print("[dim]Run 'cortex --help' for more.[/dim]\n") - + return 0 diff --git a/cortex/do_runner.py b/cortex/do_runner.py index e5e2cea3f..ea56ecc41 100644 --- a/cortex/do_runner.py +++ b/cortex/do_runner.py @@ -8,33 +8,25 @@ """ # Re-export everything from the modular package -from cortex.do_runner import ( - # Models +from cortex.do_runner import ( # Diagnosis; Models; Verification; Managers; Handler; Database; Executor; Terminal + AutoFixer, CommandLog, CommandStatus, + ConflictDetector, + CortexUserManager, + DoHandler, DoRun, + DoRunDatabase, + ErrorDiagnoser, + FileUsefulnessAnalyzer, + ProtectedPathsManager, RunMode, TaskNode, TaskTree, + TaskTreeExecutor, TaskType, - # Database - DoRunDatabase, - # Managers - CortexUserManager, - ProtectedPathsManager, - # Terminal TerminalMonitor, - # Executor - TaskTreeExecutor, - # Diagnosis - AutoFixer, - ErrorDiagnoser, - # Verification - ConflictDetector, - FileUsefulnessAnalyzer, VerificationRunner, - # Handler - DoHandler, get_do_handler, setup_cortex_user, ) diff --git a/cortex/do_runner/__init__.py b/cortex/do_runner/__init__.py index 906fd1883..135159b2a 100644 --- a/cortex/do_runner/__init__.py +++ b/cortex/do_runner/__init__.py @@ -15,36 +15,16 @@ - handler: Main DoHandler class """ -from .models import ( - CommandLog, - CommandStatus, - DoRun, - RunMode, - TaskNode, - TaskTree, - TaskType, -) - from .database import DoRunDatabase - -from .managers import ( - CortexUserManager, - ProtectedPathsManager, -) - -from .terminal import TerminalMonitor - -from .executor import TaskTreeExecutor - from .diagnosis import ( + ALL_ERROR_PATTERNS, + LOGIN_REQUIREMENTS, + UBUNTU_PACKAGE_MAP, + UBUNTU_SERVICE_MAP, AutoFixer, ErrorDiagnoser, LoginHandler, LoginRequirement, - LOGIN_REQUIREMENTS, - UBUNTU_PACKAGE_MAP, - UBUNTU_SERVICE_MAP, - ALL_ERROR_PATTERNS, get_error_category, get_severity, is_critical_error, @@ -52,29 +32,42 @@ # New structured diagnosis engine from .diagnosis_v2 import ( + ERROR_PATTERNS, DiagnosisEngine, - ErrorCategory, DiagnosisResult, + ErrorCategory, + ErrorStackEntry, + ExecutionResult, FixCommand, FixPlan, VariableResolution, - ExecutionResult, - ErrorStackEntry, - ERROR_PATTERNS, get_diagnosis_engine, ) - -from .verification import ( - ConflictDetector, - FileUsefulnessAnalyzer, - VerificationRunner, -) - +from .executor import TaskTreeExecutor from .handler import ( DoHandler, get_do_handler, setup_cortex_user, ) +from .managers import ( + CortexUserManager, + ProtectedPathsManager, +) +from .models import ( + CommandLog, + CommandStatus, + DoRun, + RunMode, + TaskNode, + TaskTree, + TaskType, +) +from .terminal import TerminalMonitor +from .verification import ( + ConflictDetector, + FileUsefulnessAnalyzer, + VerificationRunner, +) __all__ = [ # Models @@ -126,4 +119,3 @@ "get_do_handler", "setup_cortex_user", ] - diff --git a/cortex/do_runner/database.py b/cortex/do_runner/database.py index b153fe1da..8d09ae667 100644 --- a/cortex/do_runner/database.py +++ b/cortex/do_runner/database.py @@ -17,12 +17,12 @@ class DoRunDatabase: """SQLite database for storing do run history.""" - + def __init__(self, db_path: Path | None = None): self.db_path = db_path or Path.home() / ".cortex" / "do_runs.db" self._ensure_directory() self._init_db() - + def _ensure_directory(self): """Ensure the database directory exists with proper permissions.""" try: @@ -33,8 +33,10 @@ def _ensure_directory(self): alt_path = Path("/tmp") / ".cortex" / "do_runs.db" alt_path.parent.mkdir(parents=True, exist_ok=True) self.db_path = alt_path - console.print(f"[yellow]Warning: Using alternate database path: {self.db_path}[/yellow]") - + console.print( + f"[yellow]Warning: Using alternate database path: {self.db_path}[/yellow]" + ) + def _init_db(self): """Initialize the database schema.""" try: @@ -59,7 +61,7 @@ def _init_db(self): skipped_commands INTEGER DEFAULT 0 ) """) - + # Create sessions table conn.execute(""" CREATE TABLE IF NOT EXISTS do_sessions ( @@ -70,7 +72,7 @@ def _init_db(self): total_queries TEXT ) """) - + conn.execute(""" CREATE TABLE IF NOT EXISTS do_run_commands ( id INTEGER PRIMARY KEY AUTOINCREMENT, @@ -87,27 +89,27 @@ def _init_db(self): FOREIGN KEY (run_id) REFERENCES do_runs(run_id) ) """) - + conn.execute(""" CREATE INDEX IF NOT EXISTS idx_do_runs_started ON do_runs(started_at DESC) """) - + conn.execute(""" CREATE INDEX IF NOT EXISTS idx_do_run_commands_run_id ON do_run_commands(run_id) """) - + self._migrate_schema(conn) conn.commit() except sqlite3.OperationalError as e: raise OSError(f"Failed to initialize database at {self.db_path}: {e}") - + def _migrate_schema(self, conn: sqlite3.Connection): """Add new columns to existing tables if they don't exist.""" cursor = conn.execute("PRAGMA table_info(do_runs)") existing_columns = {row[1] for row in cursor.fetchall()} - + new_columns = [ ("total_commands", "INTEGER DEFAULT 0"), ("successful_commands", "INTEGER DEFAULT 0"), @@ -116,19 +118,19 @@ def _migrate_schema(self, conn: sqlite3.Connection): ("commands_list", "TEXT"), ("session_id", "TEXT"), ] - + for col_name, col_type in new_columns: if col_name not in existing_columns: try: conn.execute(f"ALTER TABLE do_runs ADD COLUMN {col_name} {col_type}") except sqlite3.OperationalError: pass - + cursor = conn.execute(""" SELECT run_id, full_data FROM do_runs WHERE total_commands IS NULL OR total_commands = 0 OR commands_list IS NULL """) - + for row in cursor.fetchall(): run_id = row[0] try: @@ -138,10 +140,11 @@ def _migrate_schema(self, conn: sqlite3.Connection): success = sum(1 for c in commands if c.get("status") == "success") failed = sum(1 for c in commands if c.get("status") == "failed") skipped = sum(1 for c in commands if c.get("status") == "skipped") - + commands_list = json.dumps([c.get("command", "") for c in commands]) - - conn.execute(""" + + conn.execute( + """ UPDATE do_runs SET total_commands = ?, successful_commands = ?, @@ -149,43 +152,48 @@ def _migrate_schema(self, conn: sqlite3.Connection): skipped_commands = ?, commands_list = ? WHERE run_id = ? - """, (total, success, failed, skipped, commands_list, run_id)) - + """, + (total, success, failed, skipped, commands_list, run_id), + ) + for idx, cmd in enumerate(commands): exists = conn.execute( "SELECT 1 FROM do_run_commands WHERE run_id = ? AND command_index = ?", - (run_id, idx) + (run_id, idx), ).fetchone() - + if not exists: output = cmd.get("output", "")[:250] if cmd.get("output") else "" error = cmd.get("error", "")[:250] if cmd.get("error") else "" - conn.execute(""" + conn.execute( + """ INSERT INTO do_run_commands (run_id, command_index, command, purpose, status, output_truncated, error_truncated, duration_seconds, timestamp, useful) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - """, ( - run_id, - idx, - cmd.get("command", ""), - cmd.get("purpose", ""), - cmd.get("status", "pending"), - output, - error, - cmd.get("duration_seconds", 0), - cmd.get("timestamp", ""), - 1 if cmd.get("useful", True) else 0, - )) + """, + ( + run_id, + idx, + cmd.get("command", ""), + cmd.get("purpose", ""), + cmd.get("status", "pending"), + output, + error, + cmd.get("duration_seconds", 0), + cmd.get("timestamp", ""), + 1 if cmd.get("useful", True) else 0, + ), + ) except (json.JSONDecodeError, KeyError): pass - + def _generate_run_id(self) -> str: """Generate a unique run ID.""" timestamp = datetime.datetime.now().strftime("%Y%m%d%H%M%S%f") random_part = hashlib.sha256(os.urandom(16)).hexdigest()[:8] return f"do_{timestamp}_{random_part}" - + def _truncate_output(self, text: str, max_length: int = 250) -> str: """Truncate output to specified length.""" if not text: @@ -193,81 +201,85 @@ def _truncate_output(self, text: str, max_length: int = 250) -> str: if len(text) <= max_length: return text return text[:max_length] + "... [truncated]" - + def save_run(self, run: DoRun) -> str: """Save a do run to the database with detailed command information.""" if not run.run_id: run.run_id = self._generate_run_id() - + commands_log = run.get_commands_log_string() - + total_commands = len(run.commands) successful_commands = sum(1 for c in run.commands if c.status == CommandStatus.SUCCESS) failed_commands = sum(1 for c in run.commands if c.status == CommandStatus.FAILED) skipped_commands = sum(1 for c in run.commands if c.status == CommandStatus.SKIPPED) - + commands_list = json.dumps([cmd.command for cmd in run.commands]) - + with sqlite3.connect(str(self.db_path)) as conn: - conn.execute(""" + conn.execute( + """ INSERT OR REPLACE INTO do_runs (run_id, session_id, summary, commands_log, commands_list, mode, user_query, started_at, completed_at, files_accessed, privileges_granted, full_data, total_commands, successful_commands, failed_commands, skipped_commands) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - """, ( - run.run_id, - run.session_id or None, - run.summary, - commands_log, - commands_list, - run.mode.value, - run.user_query, - run.started_at, - run.completed_at, - json.dumps(run.files_accessed), - json.dumps(run.privileges_granted), - json.dumps(run.to_dict()), - total_commands, - successful_commands, - failed_commands, - skipped_commands, - )) - + """, + ( + run.run_id, + run.session_id or None, + run.summary, + commands_log, + commands_list, + run.mode.value, + run.user_query, + run.started_at, + run.completed_at, + json.dumps(run.files_accessed), + json.dumps(run.privileges_granted), + json.dumps(run.to_dict()), + total_commands, + successful_commands, + failed_commands, + skipped_commands, + ), + ) + conn.execute("DELETE FROM do_run_commands WHERE run_id = ?", (run.run_id,)) - + for idx, cmd in enumerate(run.commands): - conn.execute(""" + conn.execute( + """ INSERT INTO do_run_commands (run_id, command_index, command, purpose, status, output_truncated, error_truncated, duration_seconds, timestamp, useful) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - """, ( - run.run_id, - idx, - cmd.command, - cmd.purpose, - cmd.status.value, - self._truncate_output(cmd.output, 250), - self._truncate_output(cmd.error, 250), - cmd.duration_seconds, - cmd.timestamp, - 1 if cmd.useful else 0, - )) - + """, + ( + run.run_id, + idx, + cmd.command, + cmd.purpose, + cmd.status.value, + self._truncate_output(cmd.output, 250), + self._truncate_output(cmd.error, 250), + cmd.duration_seconds, + cmd.timestamp, + 1 if cmd.useful else 0, + ), + ) + conn.commit() - + return run.run_id - + def get_run(self, run_id: str) -> DoRun | None: """Get a specific run by ID.""" with sqlite3.connect(str(self.db_path)) as conn: conn.row_factory = sqlite3.Row - cursor = conn.execute( - "SELECT * FROM do_runs WHERE run_id = ?", (run_id,) - ) + cursor = conn.execute("SELECT * FROM do_runs WHERE run_id = ?", (run_id,)) row = cursor.fetchone() - + if row: full_data = json.loads(row["full_data"]) run = DoRun( @@ -284,45 +296,53 @@ def get_run(self, run_id: str) -> DoRun | None: ) return run return None - + def get_run_commands(self, run_id: str) -> list[dict[str, Any]]: """Get detailed command information for a run.""" with sqlite3.connect(str(self.db_path)) as conn: conn.row_factory = sqlite3.Row - cursor = conn.execute(""" + cursor = conn.execute( + """ SELECT command_index, command, purpose, status, output_truncated, error_truncated, duration_seconds, timestamp, useful FROM do_run_commands WHERE run_id = ? ORDER BY command_index - """, (run_id,)) - + """, + (run_id,), + ) + commands = [] for row in cursor: - commands.append({ - "index": row["command_index"], - "command": row["command"], - "purpose": row["purpose"], - "status": row["status"], - "output": row["output_truncated"], - "error": row["error_truncated"], - "duration": row["duration_seconds"], - "timestamp": row["timestamp"], - "useful": bool(row["useful"]), - }) + commands.append( + { + "index": row["command_index"], + "command": row["command"], + "purpose": row["purpose"], + "status": row["status"], + "output": row["output_truncated"], + "error": row["error_truncated"], + "duration": row["duration_seconds"], + "timestamp": row["timestamp"], + "useful": bool(row["useful"]), + } + ) return commands - + def get_run_stats(self, run_id: str) -> dict[str, Any] | None: """Get command statistics for a run.""" with sqlite3.connect(str(self.db_path)) as conn: conn.row_factory = sqlite3.Row - cursor = conn.execute(""" + cursor = conn.execute( + """ SELECT run_id, summary, total_commands, successful_commands, failed_commands, skipped_commands, started_at, completed_at FROM do_runs WHERE run_id = ? - """, (run_id,)) + """, + (run_id,), + ) row = cursor.fetchone() - + if row: return { "run_id": row["run_id"], @@ -335,35 +355,33 @@ def get_run_stats(self, run_id: str) -> dict[str, Any] | None: "completed_at": row["completed_at"], } return None - + def get_commands_list(self, run_id: str) -> list[str]: """Get just the list of commands for a run.""" with sqlite3.connect(str(self.db_path)) as conn: conn.row_factory = sqlite3.Row - cursor = conn.execute( - "SELECT commands_list FROM do_runs WHERE run_id = ?", (run_id,) - ) + cursor = conn.execute("SELECT commands_list FROM do_runs WHERE run_id = ?", (run_id,)) row = cursor.fetchone() - + if row and row["commands_list"]: try: return json.loads(row["commands_list"]) except (json.JSONDecodeError, TypeError): pass - + cursor = conn.execute( "SELECT command FROM do_run_commands WHERE run_id = ? ORDER BY command_index", - (run_id,) + (run_id,), ) return [row["command"] for row in cursor.fetchall()] - + def get_recent_runs(self, limit: int = 20) -> list[DoRun]: """Get recent do runs.""" with sqlite3.connect(str(self.db_path)) as conn: conn.row_factory = sqlite3.Row cursor = conn.execute( "SELECT full_data, session_id FROM do_runs ORDER BY started_at DESC LIMIT ?", - (limit,) + (limit,), ) runs = [] for row in cursor: @@ -382,35 +400,36 @@ def get_recent_runs(self, limit: int = 20) -> list[DoRun]: run.session_id = row["session_id"] runs.append(run) return runs - + def create_session(self) -> str: """Create a new session and return the session ID.""" session_id = f"session_{datetime.datetime.now().strftime('%Y%m%d%H%M%S%f')}_{hashlib.md5(str(datetime.datetime.now().timestamp()).encode()).hexdigest()[:8]}" - + with sqlite3.connect(str(self.db_path)) as conn: conn.execute( """INSERT INTO do_sessions (session_id, started_at, total_runs, total_queries) VALUES (?, ?, 0, '[]')""", - (session_id, datetime.datetime.now().isoformat()) + (session_id, datetime.datetime.now().isoformat()), ) conn.commit() - + return session_id - - def update_session(self, session_id: str, query: str | None = None, increment_runs: bool = False): + + def update_session( + self, session_id: str, query: str | None = None, increment_runs: bool = False + ): """Update a session with new query or run count.""" with sqlite3.connect(str(self.db_path)) as conn: if increment_runs: conn.execute( "UPDATE do_sessions SET total_runs = total_runs + 1 WHERE session_id = ?", - (session_id,) + (session_id,), ) - + if query: # Get current queries cursor = conn.execute( - "SELECT total_queries FROM do_sessions WHERE session_id = ?", - (session_id,) + "SELECT total_queries FROM do_sessions WHERE session_id = ?", (session_id,) ) row = cursor.fetchone() if row: @@ -418,27 +437,27 @@ def update_session(self, session_id: str, query: str | None = None, increment_ru queries.append(query) conn.execute( "UPDATE do_sessions SET total_queries = ? WHERE session_id = ?", - (json.dumps(queries), session_id) + (json.dumps(queries), session_id), ) - + conn.commit() - + def end_session(self, session_id: str): """Mark a session as ended.""" with sqlite3.connect(str(self.db_path)) as conn: conn.execute( "UPDATE do_sessions SET ended_at = ? WHERE session_id = ?", - (datetime.datetime.now().isoformat(), session_id) + (datetime.datetime.now().isoformat(), session_id), ) conn.commit() - + def get_session_runs(self, session_id: str) -> list[DoRun]: """Get all runs in a session.""" with sqlite3.connect(str(self.db_path)) as conn: conn.row_factory = sqlite3.Row cursor = conn.execute( "SELECT full_data FROM do_runs WHERE session_id = ? ORDER BY started_at ASC", - (session_id,) + (session_id,), ) runs = [] for row in cursor: @@ -455,7 +474,7 @@ def get_session_runs(self, session_id: str) -> list[DoRun]: run.session_id = session_id runs.append(run) return runs - + def get_recent_sessions(self, limit: int = 10) -> list[dict]: """Get recent sessions with their run counts.""" with sqlite3.connect(str(self.db_path)) as conn: @@ -463,16 +482,17 @@ def get_recent_sessions(self, limit: int = 10) -> list[dict]: cursor = conn.execute( """SELECT session_id, started_at, ended_at, total_runs, total_queries FROM do_sessions ORDER BY started_at DESC LIMIT ?""", - (limit,) + (limit,), ) sessions = [] for row in cursor: - sessions.append({ - "session_id": row["session_id"], - "started_at": row["started_at"], - "ended_at": row["ended_at"], - "total_runs": row["total_runs"], - "queries": json.loads(row["total_queries"]) if row["total_queries"] else [], - }) + sessions.append( + { + "session_id": row["session_id"], + "started_at": row["started_at"], + "ended_at": row["ended_at"], + "total_runs": row["total_runs"], + "queries": json.loads(row["total_queries"]) if row["total_queries"] else [], + } + ) return sessions - diff --git a/cortex/do_runner/diagnosis.py b/cortex/do_runner/diagnosis.py index 0a824611b..4e9463ee0 100644 --- a/cortex/do_runner/diagnosis.py +++ b/cortex/do_runner/diagnosis.py @@ -21,10 +21,11 @@ import os import re -import subprocess import shutil -from typing import Any, Callable +import subprocess +from collections.abc import Callable from dataclasses import dataclass, field +from typing import Any from rich.console import Console @@ -35,9 +36,11 @@ # Error Pattern Definitions by Category # ============================================================================ + @dataclass class ErrorPattern: """Defines an error pattern and its fix strategy.""" + pattern: str error_type: str category: str @@ -50,533 +53,1657 @@ class ErrorPattern: # Category 1: Command & Shell Errors COMMAND_SHELL_ERRORS = [ # Timeout errors (check first for our specific message) - ErrorPattern(r"[Cc]ommand timed out after \d+ seconds", "command_timeout", "timeout", - "Command timed out - operation took too long", True, "retry_with_longer_timeout"), - ErrorPattern(r"[Tt]imed out", "timeout", "timeout", - "Operation timed out", True, "retry_with_longer_timeout"), - ErrorPattern(r"[Tt]imeout", "timeout", "timeout", - "Operation timed out", True, "retry_with_longer_timeout"), + ErrorPattern( + r"[Cc]ommand timed out after \d+ seconds", + "command_timeout", + "timeout", + "Command timed out - operation took too long", + True, + "retry_with_longer_timeout", + ), + ErrorPattern( + r"[Tt]imed out", + "timeout", + "timeout", + "Operation timed out", + True, + "retry_with_longer_timeout", + ), + ErrorPattern( + r"[Tt]imeout", + "timeout", + "timeout", + "Operation timed out", + True, + "retry_with_longer_timeout", + ), # Standard command errors - ErrorPattern(r"command not found", "command_not_found", "command_shell", - "Command not installed", True, "install_package"), - ErrorPattern(r"No such file or directory", "not_found", "command_shell", - "File or directory not found", True, "create_path"), - ErrorPattern(r"Permission denied", "permission_denied", "command_shell", - "Permission denied", True, "use_sudo"), - ErrorPattern(r"Operation not permitted", "operation_not_permitted", "command_shell", - "Operation not permitted (may need root)", True, "use_sudo"), - ErrorPattern(r"Not a directory", "not_a_directory", "command_shell", - "Expected directory but found file", False, "check_path"), - ErrorPattern(r"Is a directory", "is_a_directory", "command_shell", - "Expected file but found directory", False, "check_path"), - ErrorPattern(r"Invalid argument", "invalid_argument", "command_shell", - "Invalid argument passed", False, "check_args"), - ErrorPattern(r"Too many arguments", "too_many_args", "command_shell", - "Too many arguments provided", False, "check_args"), - ErrorPattern(r"[Mm]issing operand", "missing_operand", "command_shell", - "Required argument missing", False, "check_args"), - ErrorPattern(r"[Aa]mbiguous redirect", "ambiguous_redirect", "command_shell", - "Shell redirect is ambiguous", False, "fix_redirect"), - ErrorPattern(r"[Bb]ad substitution", "bad_substitution", "command_shell", - "Shell variable substitution error", False, "fix_syntax"), - ErrorPattern(r"[Uu]nbound variable", "unbound_variable", "command_shell", - "Variable not set", True, "set_variable"), - ErrorPattern(r"[Ss]yntax error near unexpected token", "syntax_error_token", "command_shell", - "Shell syntax error", False, "fix_syntax"), - ErrorPattern(r"[Uu]nexpected EOF", "unexpected_eof", "command_shell", - "Unclosed quote or bracket", False, "fix_syntax"), - ErrorPattern(r"[Cc]annot execute binary file", "cannot_execute_binary", "command_shell", - "Binary incompatible with system", False, "check_architecture"), - ErrorPattern(r"[Ee]xec format error", "exec_format_error", "command_shell", - "Invalid executable format", False, "check_architecture"), - ErrorPattern(r"[Ii]llegal option", "illegal_option", "command_shell", - "Unrecognized command option", False, "check_help"), - ErrorPattern(r"[Ii]nvalid option", "invalid_option", "command_shell", - "Invalid command option", False, "check_help"), - ErrorPattern(r"[Rr]ead-only file ?system", "readonly_fs", "command_shell", - "Filesystem is read-only", True, "remount_rw"), - ErrorPattern(r"[Ii]nput/output error", "io_error", "command_shell", - "I/O error (disk issue)", False, "check_disk", "critical"), - ErrorPattern(r"[Tt]ext file busy", "text_file_busy", "command_shell", - "File is being executed", True, "wait_retry"), - ErrorPattern(r"[Aa]rgument list too long", "arg_list_too_long", "command_shell", - "Too many arguments for command", True, "use_xargs"), - ErrorPattern(r"[Bb]roken pipe", "broken_pipe", "command_shell", - "Pipe closed unexpectedly", False, "check_pipe"), + ErrorPattern( + r"command not found", + "command_not_found", + "command_shell", + "Command not installed", + True, + "install_package", + ), + ErrorPattern( + r"No such file or directory", + "not_found", + "command_shell", + "File or directory not found", + True, + "create_path", + ), + ErrorPattern( + r"Permission denied", + "permission_denied", + "command_shell", + "Permission denied", + True, + "use_sudo", + ), + ErrorPattern( + r"Operation not permitted", + "operation_not_permitted", + "command_shell", + "Operation not permitted (may need root)", + True, + "use_sudo", + ), + ErrorPattern( + r"Not a directory", + "not_a_directory", + "command_shell", + "Expected directory but found file", + False, + "check_path", + ), + ErrorPattern( + r"Is a directory", + "is_a_directory", + "command_shell", + "Expected file but found directory", + False, + "check_path", + ), + ErrorPattern( + r"Invalid argument", + "invalid_argument", + "command_shell", + "Invalid argument passed", + False, + "check_args", + ), + ErrorPattern( + r"Too many arguments", + "too_many_args", + "command_shell", + "Too many arguments provided", + False, + "check_args", + ), + ErrorPattern( + r"[Mm]issing operand", + "missing_operand", + "command_shell", + "Required argument missing", + False, + "check_args", + ), + ErrorPattern( + r"[Aa]mbiguous redirect", + "ambiguous_redirect", + "command_shell", + "Shell redirect is ambiguous", + False, + "fix_redirect", + ), + ErrorPattern( + r"[Bb]ad substitution", + "bad_substitution", + "command_shell", + "Shell variable substitution error", + False, + "fix_syntax", + ), + ErrorPattern( + r"[Uu]nbound variable", + "unbound_variable", + "command_shell", + "Variable not set", + True, + "set_variable", + ), + ErrorPattern( + r"[Ss]yntax error near unexpected token", + "syntax_error_token", + "command_shell", + "Shell syntax error", + False, + "fix_syntax", + ), + ErrorPattern( + r"[Uu]nexpected EOF", + "unexpected_eof", + "command_shell", + "Unclosed quote or bracket", + False, + "fix_syntax", + ), + ErrorPattern( + r"[Cc]annot execute binary file", + "cannot_execute_binary", + "command_shell", + "Binary incompatible with system", + False, + "check_architecture", + ), + ErrorPattern( + r"[Ee]xec format error", + "exec_format_error", + "command_shell", + "Invalid executable format", + False, + "check_architecture", + ), + ErrorPattern( + r"[Ii]llegal option", + "illegal_option", + "command_shell", + "Unrecognized command option", + False, + "check_help", + ), + ErrorPattern( + r"[Ii]nvalid option", + "invalid_option", + "command_shell", + "Invalid command option", + False, + "check_help", + ), + ErrorPattern( + r"[Rr]ead-only file ?system", + "readonly_fs", + "command_shell", + "Filesystem is read-only", + True, + "remount_rw", + ), + ErrorPattern( + r"[Ii]nput/output error", + "io_error", + "command_shell", + "I/O error (disk issue)", + False, + "check_disk", + "critical", + ), + ErrorPattern( + r"[Tt]ext file busy", + "text_file_busy", + "command_shell", + "File is being executed", + True, + "wait_retry", + ), + ErrorPattern( + r"[Aa]rgument list too long", + "arg_list_too_long", + "command_shell", + "Too many arguments for command", + True, + "use_xargs", + ), + ErrorPattern( + r"[Bb]roken pipe", + "broken_pipe", + "command_shell", + "Pipe closed unexpectedly", + False, + "check_pipe", + ), ] # Category 2: File & Directory Errors FILE_DIRECTORY_ERRORS = [ - ErrorPattern(r"[Ff]ile exists", "file_exists", "file_directory", - "File already exists", True, "backup_overwrite"), - ErrorPattern(r"[Ff]ile name too long", "filename_too_long", "file_directory", - "Filename exceeds limit", False, "shorten_name"), - ErrorPattern(r"[Tt]oo many.*symbolic links", "symlink_loop", "file_directory", - "Symbolic link loop detected", True, "fix_symlink"), - ErrorPattern(r"[Ss]tale file handle", "stale_handle", "file_directory", - "NFS file handle stale", True, "remount_nfs"), - ErrorPattern(r"[Dd]irectory not empty", "dir_not_empty", "file_directory", - "Directory has contents", True, "rm_recursive"), - ErrorPattern(r"[Cc]ross-device link", "cross_device_link", "file_directory", - "Cannot link across filesystems", True, "copy_instead"), - ErrorPattern(r"[Tt]oo many open files", "too_many_files", "file_directory", - "File descriptor limit reached", True, "increase_ulimit"), - ErrorPattern(r"[Qq]uota exceeded", "quota_exceeded", "file_directory", - "Disk quota exceeded", False, "check_quota"), - ErrorPattern(r"[Oo]peration timed out", "operation_timeout", "file_directory", - "Operation timed out", True, "increase_timeout"), + ErrorPattern( + r"[Ff]ile exists", + "file_exists", + "file_directory", + "File already exists", + True, + "backup_overwrite", + ), + ErrorPattern( + r"[Ff]ile name too long", + "filename_too_long", + "file_directory", + "Filename exceeds limit", + False, + "shorten_name", + ), + ErrorPattern( + r"[Tt]oo many.*symbolic links", + "symlink_loop", + "file_directory", + "Symbolic link loop detected", + True, + "fix_symlink", + ), + ErrorPattern( + r"[Ss]tale file handle", + "stale_handle", + "file_directory", + "NFS file handle stale", + True, + "remount_nfs", + ), + ErrorPattern( + r"[Dd]irectory not empty", + "dir_not_empty", + "file_directory", + "Directory has contents", + True, + "rm_recursive", + ), + ErrorPattern( + r"[Cc]ross-device link", + "cross_device_link", + "file_directory", + "Cannot link across filesystems", + True, + "copy_instead", + ), + ErrorPattern( + r"[Tt]oo many open files", + "too_many_files", + "file_directory", + "File descriptor limit reached", + True, + "increase_ulimit", + ), + ErrorPattern( + r"[Qq]uota exceeded", + "quota_exceeded", + "file_directory", + "Disk quota exceeded", + False, + "check_quota", + ), + ErrorPattern( + r"[Oo]peration timed out", + "operation_timeout", + "file_directory", + "Operation timed out", + True, + "increase_timeout", + ), ] # Category 3: Permission & Ownership Errors PERMISSION_ERRORS = [ - ErrorPattern(r"[Aa]ccess denied", "access_denied", "permission", - "Access denied", True, "use_sudo"), - ErrorPattern(r"[Aa]uthentication fail", "auth_failure", "permission", - "Authentication failed", False, "check_credentials"), - ErrorPattern(r"[Ii]nvalid user", "invalid_user", "permission", - "User does not exist", True, "create_user"), - ErrorPattern(r"[Ii]nvalid group", "invalid_group", "permission", - "Group does not exist", True, "create_group"), - ErrorPattern(r"[Nn]ot owner", "not_owner", "permission", - "Not the owner of file", True, "use_sudo"), + ErrorPattern( + r"[Aa]ccess denied", "access_denied", "permission", "Access denied", True, "use_sudo" + ), + ErrorPattern( + r"[Aa]uthentication fail", + "auth_failure", + "permission", + "Authentication failed", + False, + "check_credentials", + ), + ErrorPattern( + r"[Ii]nvalid user", "invalid_user", "permission", "User does not exist", True, "create_user" + ), + ErrorPattern( + r"[Ii]nvalid group", + "invalid_group", + "permission", + "Group does not exist", + True, + "create_group", + ), + ErrorPattern( + r"[Nn]ot owner", "not_owner", "permission", "Not the owner of file", True, "use_sudo" + ), ] # Category 4: Process & Execution Errors PROCESS_ERRORS = [ - ErrorPattern(r"[Nn]o such process", "no_such_process", "process", - "Process does not exist", False, "check_pid"), - ErrorPattern(r"[Pp]rocess already running", "already_running", "process", - "Process already running", True, "kill_existing"), - ErrorPattern(r"[Pp]rocess terminated", "process_terminated", "process", - "Process was terminated", False, "check_logs"), - ErrorPattern(r"[Kk]illed", "killed", "process", - "Process was killed (OOM?)", False, "check_memory", "critical"), - ErrorPattern(r"[Ss]egmentation fault", "segfault", "process", - "Memory access violation", False, "debug_crash", "critical"), - ErrorPattern(r"[Bb]us error", "bus_error", "process", - "Bus error (memory alignment)", False, "debug_crash", "critical"), - ErrorPattern(r"[Ff]loating point exception", "fpe", "process", - "Floating point exception", False, "debug_crash"), - ErrorPattern(r"[Ii]llegal instruction", "illegal_instruction", "process", - "CPU instruction error", False, "check_architecture", "critical"), - ErrorPattern(r"[Tt]race.*trap", "trace_trap", "process", - "Debugger trap", False, "check_debugger"), - ErrorPattern(r"[Rr]esource temporarily unavailable", "resource_unavailable", "process", - "Resource busy", True, "wait_retry"), - ErrorPattern(r"[Tt]oo many processes", "too_many_processes", "process", - "Process limit reached", True, "increase_ulimit"), - ErrorPattern(r"[Oo]peration canceled", "operation_canceled", "process", - "Operation was canceled", False, "check_timeout"), + ErrorPattern( + r"[Nn]o such process", + "no_such_process", + "process", + "Process does not exist", + False, + "check_pid", + ), + ErrorPattern( + r"[Pp]rocess already running", + "already_running", + "process", + "Process already running", + True, + "kill_existing", + ), + ErrorPattern( + r"[Pp]rocess terminated", + "process_terminated", + "process", + "Process was terminated", + False, + "check_logs", + ), + ErrorPattern( + r"[Kk]illed", + "killed", + "process", + "Process was killed (OOM?)", + False, + "check_memory", + "critical", + ), + ErrorPattern( + r"[Ss]egmentation fault", + "segfault", + "process", + "Memory access violation", + False, + "debug_crash", + "critical", + ), + ErrorPattern( + r"[Bb]us error", + "bus_error", + "process", + "Bus error (memory alignment)", + False, + "debug_crash", + "critical", + ), + ErrorPattern( + r"[Ff]loating point exception", + "fpe", + "process", + "Floating point exception", + False, + "debug_crash", + ), + ErrorPattern( + r"[Ii]llegal instruction", + "illegal_instruction", + "process", + "CPU instruction error", + False, + "check_architecture", + "critical", + ), + ErrorPattern( + r"[Tt]race.*trap", "trace_trap", "process", "Debugger trap", False, "check_debugger" + ), + ErrorPattern( + r"[Rr]esource temporarily unavailable", + "resource_unavailable", + "process", + "Resource busy", + True, + "wait_retry", + ), + ErrorPattern( + r"[Tt]oo many processes", + "too_many_processes", + "process", + "Process limit reached", + True, + "increase_ulimit", + ), + ErrorPattern( + r"[Oo]peration canceled", + "operation_canceled", + "process", + "Operation was canceled", + False, + "check_timeout", + ), ] # Category 5: Memory & Resource Errors MEMORY_ERRORS = [ - ErrorPattern(r"[Oo]ut of memory", "oom", "memory", - "Out of memory", True, "free_memory", "critical"), - ErrorPattern(r"[Cc]annot allocate memory", "cannot_allocate", "memory", - "Memory allocation failed", True, "free_memory", "critical"), - ErrorPattern(r"[Mm]emory exhausted", "memory_exhausted", "memory", - "Memory exhausted", True, "free_memory", "critical"), - ErrorPattern(r"[Ss]tack overflow", "stack_overflow", "memory", - "Stack overflow", False, "increase_stack", "critical"), - ErrorPattern(r"[Dd]evice or resource busy", "device_busy", "memory", - "Device or resource busy", True, "wait_retry"), - ErrorPattern(r"[Nn]o space left on device", "no_space", "memory", - "Disk full", True, "free_disk", "critical"), - ErrorPattern(r"[Dd]isk quota exceeded", "disk_quota", "memory", - "Disk quota exceeded", False, "check_quota"), - ErrorPattern(r"[Ff]ile table overflow", "file_table_overflow", "memory", - "System file table full", True, "increase_ulimit", "critical"), + ErrorPattern( + r"[Oo]ut of memory", "oom", "memory", "Out of memory", True, "free_memory", "critical" + ), + ErrorPattern( + r"[Cc]annot allocate memory", + "cannot_allocate", + "memory", + "Memory allocation failed", + True, + "free_memory", + "critical", + ), + ErrorPattern( + r"[Mm]emory exhausted", + "memory_exhausted", + "memory", + "Memory exhausted", + True, + "free_memory", + "critical", + ), + ErrorPattern( + r"[Ss]tack overflow", + "stack_overflow", + "memory", + "Stack overflow", + False, + "increase_stack", + "critical", + ), + ErrorPattern( + r"[Dd]evice or resource busy", + "device_busy", + "memory", + "Device or resource busy", + True, + "wait_retry", + ), + ErrorPattern( + r"[Nn]o space left on device", + "no_space", + "memory", + "Disk full", + True, + "free_disk", + "critical", + ), + ErrorPattern( + r"[Dd]isk quota exceeded", + "disk_quota", + "memory", + "Disk quota exceeded", + False, + "check_quota", + ), + ErrorPattern( + r"[Ff]ile table overflow", + "file_table_overflow", + "memory", + "System file table full", + True, + "increase_ulimit", + "critical", + ), ] # Category 6: Disk & Filesystem Errors FILESYSTEM_ERRORS = [ - ErrorPattern(r"[Ww]rong fs type", "wrong_fs_type", "filesystem", - "Wrong filesystem type", False, "check_fstype"), - ErrorPattern(r"[Ff]ilesystem.*corrupt", "fs_corrupt", "filesystem", - "Filesystem corrupted", False, "fsck", "critical"), - ErrorPattern(r"[Ss]uperblock invalid", "superblock_invalid", "filesystem", - "Superblock invalid", False, "fsck", "critical"), - ErrorPattern(r"[Mm]ount point does not exist", "mount_point_missing", "filesystem", - "Mount point missing", True, "create_mountpoint"), - ErrorPattern(r"[Dd]evice is busy", "device_busy_mount", "filesystem", - "Device busy (in use)", True, "lazy_umount"), - ErrorPattern(r"[Nn]ot mounted", "not_mounted", "filesystem", - "Filesystem not mounted", True, "mount_fs"), - ErrorPattern(r"[Aa]lready mounted", "already_mounted", "filesystem", - "Already mounted", False, "check_mount"), - ErrorPattern(r"[Bb]ad magic number", "bad_magic", "filesystem", - "Bad magic number in superblock", False, "fsck", "critical"), - ErrorPattern(r"[Ss]tructure needs cleaning", "needs_cleaning", "filesystem", - "Filesystem needs fsck", False, "fsck"), - ErrorPattern(r"[Jj]ournal has aborted", "journal_aborted", "filesystem", - "Journal aborted", False, "fsck", "critical"), + ErrorPattern( + r"[Ww]rong fs type", + "wrong_fs_type", + "filesystem", + "Wrong filesystem type", + False, + "check_fstype", + ), + ErrorPattern( + r"[Ff]ilesystem.*corrupt", + "fs_corrupt", + "filesystem", + "Filesystem corrupted", + False, + "fsck", + "critical", + ), + ErrorPattern( + r"[Ss]uperblock invalid", + "superblock_invalid", + "filesystem", + "Superblock invalid", + False, + "fsck", + "critical", + ), + ErrorPattern( + r"[Mm]ount point does not exist", + "mount_point_missing", + "filesystem", + "Mount point missing", + True, + "create_mountpoint", + ), + ErrorPattern( + r"[Dd]evice is busy", + "device_busy_mount", + "filesystem", + "Device busy (in use)", + True, + "lazy_umount", + ), + ErrorPattern( + r"[Nn]ot mounted", "not_mounted", "filesystem", "Filesystem not mounted", True, "mount_fs" + ), + ErrorPattern( + r"[Aa]lready mounted", + "already_mounted", + "filesystem", + "Already mounted", + False, + "check_mount", + ), + ErrorPattern( + r"[Bb]ad magic number", + "bad_magic", + "filesystem", + "Bad magic number in superblock", + False, + "fsck", + "critical", + ), + ErrorPattern( + r"[Ss]tructure needs cleaning", + "needs_cleaning", + "filesystem", + "Filesystem needs fsck", + False, + "fsck", + ), + ErrorPattern( + r"[Jj]ournal has aborted", + "journal_aborted", + "filesystem", + "Journal aborted", + False, + "fsck", + "critical", + ), ] # Category 7: Networking Errors NETWORK_ERRORS = [ - ErrorPattern(r"[Nn]etwork is unreachable", "network_unreachable", "network", - "Network unreachable", True, "check_network"), - ErrorPattern(r"[Nn]o route to host", "no_route", "network", - "No route to host", True, "check_routing"), - ErrorPattern(r"[Cc]onnection refused", "connection_refused", "network", - "Connection refused", True, "check_service"), - ErrorPattern(r"[Cc]onnection timed out", "connection_timeout", "network", - "Connection timed out", True, "check_firewall"), - ErrorPattern(r"[Cc]onnection reset by peer", "connection_reset", "network", - "Connection reset", False, "check_remote"), - ErrorPattern(r"[Hh]ost is down", "host_down", "network", - "Remote host down", False, "check_host"), - ErrorPattern(r"[Tt]emporary failure in name resolution", "dns_temp_fail", "network", - "DNS temporary failure", True, "retry_dns"), - ErrorPattern(r"[Nn]ame or service not known", "dns_unknown", "network", - "DNS lookup failed", True, "check_dns"), - ErrorPattern(r"[Dd]NS lookup failed", "dns_failed", "network", - "DNS lookup failed", True, "check_dns"), - ErrorPattern(r"[Aa]ddress already in use", "address_in_use", "network", - "Port already in use", True, "find_port_user"), - ErrorPattern(r"[Cc]annot assign requested address", "cannot_assign_addr", "network", - "Address not available", False, "check_interface"), - ErrorPattern(r"[Pp]rotocol not supported", "protocol_not_supported", "network", - "Protocol not supported", False, "check_protocol"), - ErrorPattern(r"[Ss]ocket operation on non-socket", "not_socket", "network", - "Invalid socket operation", False, "check_fd"), + ErrorPattern( + r"[Nn]etwork is unreachable", + "network_unreachable", + "network", + "Network unreachable", + True, + "check_network", + ), + ErrorPattern( + r"[Nn]o route to host", "no_route", "network", "No route to host", True, "check_routing" + ), + ErrorPattern( + r"[Cc]onnection refused", + "connection_refused", + "network", + "Connection refused", + True, + "check_service", + ), + ErrorPattern( + r"[Cc]onnection timed out", + "connection_timeout", + "network", + "Connection timed out", + True, + "check_firewall", + ), + ErrorPattern( + r"[Cc]onnection reset by peer", + "connection_reset", + "network", + "Connection reset", + False, + "check_remote", + ), + ErrorPattern( + r"[Hh]ost is down", "host_down", "network", "Remote host down", False, "check_host" + ), + ErrorPattern( + r"[Tt]emporary failure in name resolution", + "dns_temp_fail", + "network", + "DNS temporary failure", + True, + "retry_dns", + ), + ErrorPattern( + r"[Nn]ame or service not known", + "dns_unknown", + "network", + "DNS lookup failed", + True, + "check_dns", + ), + ErrorPattern( + r"[Dd]NS lookup failed", "dns_failed", "network", "DNS lookup failed", True, "check_dns" + ), + ErrorPattern( + r"[Aa]ddress already in use", + "address_in_use", + "network", + "Port already in use", + True, + "find_port_user", + ), + ErrorPattern( + r"[Cc]annot assign requested address", + "cannot_assign_addr", + "network", + "Address not available", + False, + "check_interface", + ), + ErrorPattern( + r"[Pp]rotocol not supported", + "protocol_not_supported", + "network", + "Protocol not supported", + False, + "check_protocol", + ), + ErrorPattern( + r"[Ss]ocket operation on non-socket", + "not_socket", + "network", + "Invalid socket operation", + False, + "check_fd", + ), ] # Category 8: Package Manager Errors (Ubuntu/Debian apt) PACKAGE_ERRORS = [ - ErrorPattern(r"[Uu]nable to locate package", "package_not_found", "package", - "Package not found", True, "update_repos"), - ErrorPattern(r"[Pp]ackage.*not found", "package_not_found", "package", - "Package not found", True, "update_repos"), - ErrorPattern(r"[Ff]ailed to fetch", "fetch_failed", "package", - "Failed to download package", True, "change_mirror"), - ErrorPattern(r"[Hh]ash [Ss]um mismatch", "hash_mismatch", "package", - "Package checksum mismatch", True, "clean_apt"), - ErrorPattern(r"[Rr]epository.*not signed", "repo_not_signed", "package", - "Repository not signed", True, "add_key"), - ErrorPattern(r"[Gg][Pp][Gg] error", "gpg_error", "package", - "GPG signature error", True, "fix_gpg"), - ErrorPattern(r"[Dd]ependency problems", "dependency_problems", "package", - "Dependency issues", True, "fix_dependencies"), - ErrorPattern(r"[Uu]nmet dependencies", "unmet_dependencies", "package", - "Unmet dependencies", True, "fix_dependencies"), - ErrorPattern(r"[Bb]roken packages", "broken_packages", "package", - "Broken packages", True, "fix_broken"), - ErrorPattern(r"[Vv]ery bad inconsistent state", "inconsistent_state", "package", - "Package in bad state", True, "force_reinstall"), - ErrorPattern(r"[Cc]onflicts with", "package_conflict", "package", - "Package conflict", True, "resolve_conflict"), - ErrorPattern(r"dpkg.*lock", "dpkg_lock", "package", - "Package manager locked", True, "clear_lock"), - ErrorPattern(r"apt.*lock", "apt_lock", "package", - "APT locked", True, "clear_lock"), - ErrorPattern(r"E: Could not get lock", "could_not_get_lock", "package", - "Package manager locked", True, "clear_lock"), + ErrorPattern( + r"[Uu]nable to locate package", + "package_not_found", + "package", + "Package not found", + True, + "update_repos", + ), + ErrorPattern( + r"[Pp]ackage.*not found", + "package_not_found", + "package", + "Package not found", + True, + "update_repos", + ), + ErrorPattern( + r"[Ff]ailed to fetch", + "fetch_failed", + "package", + "Failed to download package", + True, + "change_mirror", + ), + ErrorPattern( + r"[Hh]ash [Ss]um mismatch", + "hash_mismatch", + "package", + "Package checksum mismatch", + True, + "clean_apt", + ), + ErrorPattern( + r"[Rr]epository.*not signed", + "repo_not_signed", + "package", + "Repository not signed", + True, + "add_key", + ), + ErrorPattern( + r"[Gg][Pp][Gg] error", "gpg_error", "package", "GPG signature error", True, "fix_gpg" + ), + ErrorPattern( + r"[Dd]ependency problems", + "dependency_problems", + "package", + "Dependency issues", + True, + "fix_dependencies", + ), + ErrorPattern( + r"[Uu]nmet dependencies", + "unmet_dependencies", + "package", + "Unmet dependencies", + True, + "fix_dependencies", + ), + ErrorPattern( + r"[Bb]roken packages", "broken_packages", "package", "Broken packages", True, "fix_broken" + ), + ErrorPattern( + r"[Vv]ery bad inconsistent state", + "inconsistent_state", + "package", + "Package in bad state", + True, + "force_reinstall", + ), + ErrorPattern( + r"[Cc]onflicts with", + "package_conflict", + "package", + "Package conflict", + True, + "resolve_conflict", + ), + ErrorPattern( + r"dpkg.*lock", "dpkg_lock", "package", "Package manager locked", True, "clear_lock" + ), + ErrorPattern(r"apt.*lock", "apt_lock", "package", "APT locked", True, "clear_lock"), + ErrorPattern( + r"E: Could not get lock", + "could_not_get_lock", + "package", + "Package manager locked", + True, + "clear_lock", + ), ] # Category 9: User & Authentication Errors USER_AUTH_ERRORS = [ - ErrorPattern(r"[Uu]ser does not exist", "user_not_exist", "user_auth", - "User does not exist", True, "create_user"), - ErrorPattern(r"[Gg]roup does not exist", "group_not_exist", "user_auth", - "Group does not exist", True, "create_group"), - ErrorPattern(r"[Aa]ccount expired", "account_expired", "user_auth", - "Account expired", False, "renew_account"), - ErrorPattern(r"[Pp]assword expired", "password_expired", "user_auth", - "Password expired", False, "change_password"), - ErrorPattern(r"[Ii]ncorrect password", "wrong_password", "user_auth", - "Wrong password", False, "check_password"), - ErrorPattern(r"[Aa]ccount locked", "account_locked", "user_auth", - "Account locked", False, "unlock_account"), + ErrorPattern( + r"[Uu]ser does not exist", + "user_not_exist", + "user_auth", + "User does not exist", + True, + "create_user", + ), + ErrorPattern( + r"[Gg]roup does not exist", + "group_not_exist", + "user_auth", + "Group does not exist", + True, + "create_group", + ), + ErrorPattern( + r"[Aa]ccount expired", + "account_expired", + "user_auth", + "Account expired", + False, + "renew_account", + ), + ErrorPattern( + r"[Pp]assword expired", + "password_expired", + "user_auth", + "Password expired", + False, + "change_password", + ), + ErrorPattern( + r"[Ii]ncorrect password", + "wrong_password", + "user_auth", + "Wrong password", + False, + "check_password", + ), + ErrorPattern( + r"[Aa]ccount locked", + "account_locked", + "user_auth", + "Account locked", + False, + "unlock_account", + ), ] # Category 16: Docker/Container Errors DOCKER_ERRORS = [ # Container name conflicts - ErrorPattern(r"[Cc]onflict.*container name.*already in use", "container_name_conflict", "docker", - "Container name already in use", True, "remove_or_rename_container"), - ErrorPattern(r"is already in use by container", "container_name_conflict", "docker", - "Container name already in use", True, "remove_or_rename_container"), + ErrorPattern( + r"[Cc]onflict.*container name.*already in use", + "container_name_conflict", + "docker", + "Container name already in use", + True, + "remove_or_rename_container", + ), + ErrorPattern( + r"is already in use by container", + "container_name_conflict", + "docker", + "Container name already in use", + True, + "remove_or_rename_container", + ), # Container not found - ErrorPattern(r"[Nn]o such container", "container_not_found", "docker", - "Container does not exist", True, "check_container_name"), - ErrorPattern(r"[Ee]rror: No such container", "container_not_found", "docker", - "Container does not exist", True, "check_container_name"), + ErrorPattern( + r"[Nn]o such container", + "container_not_found", + "docker", + "Container does not exist", + True, + "check_container_name", + ), + ErrorPattern( + r"[Ee]rror: No such container", + "container_not_found", + "docker", + "Container does not exist", + True, + "check_container_name", + ), # Image not found - ErrorPattern(r"[Uu]nable to find image", "image_not_found", "docker", - "Docker image not found locally", True, "pull_image"), - ErrorPattern(r"[Rr]epository.*not found", "image_not_found", "docker", - "Docker image repository not found", True, "check_image_name"), - ErrorPattern(r"manifest.*not found", "manifest_not_found", "docker", - "Image manifest not found", True, "check_image_tag"), + ErrorPattern( + r"[Uu]nable to find image", + "image_not_found", + "docker", + "Docker image not found locally", + True, + "pull_image", + ), + ErrorPattern( + r"[Rr]epository.*not found", + "image_not_found", + "docker", + "Docker image repository not found", + True, + "check_image_name", + ), + ErrorPattern( + r"manifest.*not found", + "manifest_not_found", + "docker", + "Image manifest not found", + True, + "check_image_tag", + ), # Container already running/stopped - ErrorPattern(r"is already running", "container_already_running", "docker", - "Container is already running", True, "stop_or_use_existing"), - ErrorPattern(r"is not running", "container_not_running", "docker", - "Container is not running", True, "start_container"), + ErrorPattern( + r"is already running", + "container_already_running", + "docker", + "Container is already running", + True, + "stop_or_use_existing", + ), + ErrorPattern( + r"is not running", + "container_not_running", + "docker", + "Container is not running", + True, + "start_container", + ), # Port conflicts - ErrorPattern(r"[Pp]ort.*already allocated", "port_in_use", "docker", - "Port is already in use", True, "free_port_or_use_different"), - ErrorPattern(r"[Bb]ind.*address already in use", "port_in_use", "docker", - "Port is already in use", True, "free_port_or_use_different"), + ErrorPattern( + r"[Pp]ort.*already allocated", + "port_in_use", + "docker", + "Port is already in use", + True, + "free_port_or_use_different", + ), + ErrorPattern( + r"[Bb]ind.*address already in use", + "port_in_use", + "docker", + "Port is already in use", + True, + "free_port_or_use_different", + ), # Volume errors - ErrorPattern(r"[Vv]olume.*not found", "volume_not_found", "docker", - "Docker volume not found", True, "create_volume"), - ErrorPattern(r"[Mm]ount.*denied", "mount_denied", "docker", - "Mount point access denied", True, "check_mount_permissions"), + ErrorPattern( + r"[Vv]olume.*not found", + "volume_not_found", + "docker", + "Docker volume not found", + True, + "create_volume", + ), + ErrorPattern( + r"[Mm]ount.*denied", + "mount_denied", + "docker", + "Mount point access denied", + True, + "check_mount_permissions", + ), # Network errors - ErrorPattern(r"[Nn]etwork.*not found", "network_not_found", "docker", - "Docker network not found", True, "create_network"), + ErrorPattern( + r"[Nn]etwork.*not found", + "network_not_found", + "docker", + "Docker network not found", + True, + "create_network", + ), # Daemon errors - ErrorPattern(r"[Cc]annot connect to the Docker daemon", "docker_daemon_not_running", "docker", - "Docker daemon is not running", True, "start_docker_daemon"), - ErrorPattern(r"[Ii]s the docker daemon running", "docker_daemon_not_running", "docker", - "Docker daemon is not running", True, "start_docker_daemon"), + ErrorPattern( + r"[Cc]annot connect to the Docker daemon", + "docker_daemon_not_running", + "docker", + "Docker daemon is not running", + True, + "start_docker_daemon", + ), + ErrorPattern( + r"[Ii]s the docker daemon running", + "docker_daemon_not_running", + "docker", + "Docker daemon is not running", + True, + "start_docker_daemon", + ), # OOM errors - ErrorPattern(r"[Oo]ut of memory", "container_oom", "docker", - "Container ran out of memory", True, "increase_memory_limit"), + ErrorPattern( + r"[Oo]ut of memory", + "container_oom", + "docker", + "Container ran out of memory", + True, + "increase_memory_limit", + ), # Exec errors - ErrorPattern(r"[Oo]CI runtime.*not found", "runtime_not_found", "docker", - "Container runtime not found", False, "check_docker_installation"), + ErrorPattern( + r"[Oo]CI runtime.*not found", + "runtime_not_found", + "docker", + "Container runtime not found", + False, + "check_docker_installation", + ), ] # Category 17: Login/Credential Required Errors LOGIN_REQUIRED_ERRORS = [ # Docker/Container registry login errors - ErrorPattern(r"[Uu]sername.*[Rr]equired", "docker_username_required", "login_required", - "Docker username required", True, "prompt_docker_login"), - ErrorPattern(r"[Nn]on-null [Uu]sername", "docker_username_required", "login_required", - "Docker username required", True, "prompt_docker_login"), - ErrorPattern(r"unauthorized.*authentication required", "docker_auth_required", "login_required", - "Docker authentication required", True, "prompt_docker_login"), - ErrorPattern(r"denied.*requested access", "docker_access_denied", "login_required", - "Docker registry access denied", True, "prompt_docker_login"), - ErrorPattern(r"denied:.*access", "docker_access_denied", "login_required", - "Docker registry access denied", True, "prompt_docker_login"), - ErrorPattern(r"access.*denied", "docker_access_denied", "login_required", - "Docker registry access denied", True, "prompt_docker_login"), - ErrorPattern(r"no basic auth credentials", "docker_no_credentials", "login_required", - "Docker credentials not found", True, "prompt_docker_login"), - ErrorPattern(r"docker login", "docker_login_needed", "login_required", - "Docker login required", True, "prompt_docker_login"), + ErrorPattern( + r"[Uu]sername.*[Rr]equired", + "docker_username_required", + "login_required", + "Docker username required", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"[Nn]on-null [Uu]sername", + "docker_username_required", + "login_required", + "Docker username required", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"unauthorized.*authentication required", + "docker_auth_required", + "login_required", + "Docker authentication required", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"denied.*requested access", + "docker_access_denied", + "login_required", + "Docker registry access denied", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"denied:.*access", + "docker_access_denied", + "login_required", + "Docker registry access denied", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"access.*denied", + "docker_access_denied", + "login_required", + "Docker registry access denied", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"no basic auth credentials", + "docker_no_credentials", + "login_required", + "Docker credentials not found", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"docker login", + "docker_login_needed", + "login_required", + "Docker login required", + True, + "prompt_docker_login", + ), # ghcr.io (GitHub Container Registry) specific errors - ErrorPattern(r"ghcr\.io.*denied", "ghcr_access_denied", "login_required", - "GitHub Container Registry access denied - login required", True, "prompt_docker_login"), - ErrorPattern(r"Head.*ghcr\.io.*denied", "ghcr_access_denied", "login_required", - "GitHub Container Registry access denied - login required", True, "prompt_docker_login"), + ErrorPattern( + r"ghcr\.io.*denied", + "ghcr_access_denied", + "login_required", + "GitHub Container Registry access denied - login required", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"Head.*ghcr\.io.*denied", + "ghcr_access_denied", + "login_required", + "GitHub Container Registry access denied - login required", + True, + "prompt_docker_login", + ), # Generic registry denied patterns - ErrorPattern(r"Error response from daemon.*denied", "registry_access_denied", "login_required", - "Container registry access denied - login may be required", True, "prompt_docker_login"), - ErrorPattern(r"pull access denied", "pull_access_denied", "login_required", - "Pull access denied - login required or image doesn't exist", True, "prompt_docker_login"), - ErrorPattern(r"requested resource.*denied", "resource_access_denied", "login_required", - "Resource access denied - authentication required", True, "prompt_docker_login"), - + ErrorPattern( + r"Error response from daemon.*denied", + "registry_access_denied", + "login_required", + "Container registry access denied - login may be required", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"pull access denied", + "pull_access_denied", + "login_required", + "Pull access denied - login required or image doesn't exist", + True, + "prompt_docker_login", + ), + ErrorPattern( + r"requested resource.*denied", + "resource_access_denied", + "login_required", + "Resource access denied - authentication required", + True, + "prompt_docker_login", + ), # Git credential errors - ErrorPattern(r"[Cc]ould not read.*[Uu]sername", "git_username_required", "login_required", - "Git username required", True, "prompt_git_login"), - ErrorPattern(r"[Ff]atal:.*[Aa]uthentication failed", "git_auth_failed", "login_required", - "Git authentication failed", True, "prompt_git_login"), - ErrorPattern(r"[Pp]assword.*authentication.*removed", "git_token_required", "login_required", - "Git token required (password auth disabled)", True, "prompt_git_token"), - ErrorPattern(r"[Pp]ermission denied.*publickey", "git_ssh_required", "login_required", - "Git SSH key required", True, "setup_git_ssh"), - + ErrorPattern( + r"[Cc]ould not read.*[Uu]sername", + "git_username_required", + "login_required", + "Git username required", + True, + "prompt_git_login", + ), + ErrorPattern( + r"[Ff]atal:.*[Aa]uthentication failed", + "git_auth_failed", + "login_required", + "Git authentication failed", + True, + "prompt_git_login", + ), + ErrorPattern( + r"[Pp]assword.*authentication.*removed", + "git_token_required", + "login_required", + "Git token required (password auth disabled)", + True, + "prompt_git_token", + ), + ErrorPattern( + r"[Pp]ermission denied.*publickey", + "git_ssh_required", + "login_required", + "Git SSH key required", + True, + "setup_git_ssh", + ), # npm login errors - ErrorPattern(r"npm ERR!.*E401", "npm_auth_required", "login_required", - "npm authentication required", True, "prompt_npm_login"), - ErrorPattern(r"npm ERR!.*ENEEDAUTH", "npm_need_auth", "login_required", - "npm authentication needed", True, "prompt_npm_login"), - ErrorPattern(r"You must be logged in", "npm_login_required", "login_required", - "npm login required", True, "prompt_npm_login"), - + ErrorPattern( + r"npm ERR!.*E401", + "npm_auth_required", + "login_required", + "npm authentication required", + True, + "prompt_npm_login", + ), + ErrorPattern( + r"npm ERR!.*ENEEDAUTH", + "npm_need_auth", + "login_required", + "npm authentication needed", + True, + "prompt_npm_login", + ), + ErrorPattern( + r"You must be logged in", + "npm_login_required", + "login_required", + "npm login required", + True, + "prompt_npm_login", + ), # AWS credential errors - ErrorPattern(r"[Uu]nable to locate credentials", "aws_no_credentials", "login_required", - "AWS credentials not configured", True, "prompt_aws_configure"), - ErrorPattern(r"[Ii]nvalid[Aa]ccess[Kk]ey", "aws_invalid_key", "login_required", - "AWS access key invalid", True, "prompt_aws_configure"), - ErrorPattern(r"[Ss]ignature.*[Dd]oes[Nn]ot[Mm]atch", "aws_secret_invalid", "login_required", - "AWS secret key invalid", True, "prompt_aws_configure"), - ErrorPattern(r"[Ee]xpired[Tt]oken", "aws_token_expired", "login_required", - "AWS token expired", True, "prompt_aws_configure"), - + ErrorPattern( + r"[Uu]nable to locate credentials", + "aws_no_credentials", + "login_required", + "AWS credentials not configured", + True, + "prompt_aws_configure", + ), + ErrorPattern( + r"[Ii]nvalid[Aa]ccess[Kk]ey", + "aws_invalid_key", + "login_required", + "AWS access key invalid", + True, + "prompt_aws_configure", + ), + ErrorPattern( + r"[Ss]ignature.*[Dd]oes[Nn]ot[Mm]atch", + "aws_secret_invalid", + "login_required", + "AWS secret key invalid", + True, + "prompt_aws_configure", + ), + ErrorPattern( + r"[Ee]xpired[Tt]oken", + "aws_token_expired", + "login_required", + "AWS token expired", + True, + "prompt_aws_configure", + ), # PyPI/pip login errors - ErrorPattern(r"HTTPError: 403.*upload", "pypi_auth_required", "login_required", - "PyPI authentication required", True, "prompt_pypi_login"), - + ErrorPattern( + r"HTTPError: 403.*upload", + "pypi_auth_required", + "login_required", + "PyPI authentication required", + True, + "prompt_pypi_login", + ), # Generic credential prompts - ErrorPattern(r"[Ee]nter.*[Uu]sername", "username_prompt", "login_required", - "Username required", True, "prompt_credentials"), - ErrorPattern(r"[Ee]nter.*[Pp]assword", "password_prompt", "login_required", - "Password required", True, "prompt_credentials"), - ErrorPattern(r"[Aa]ccess [Tt]oken.*[Rr]equired", "token_required", "login_required", - "Access token required", True, "prompt_token"), - ErrorPattern(r"[Aa][Pp][Ii].*[Kk]ey.*[Rr]equired", "api_key_required", "login_required", - "API key required", True, "prompt_api_key"), + ErrorPattern( + r"[Ee]nter.*[Uu]sername", + "username_prompt", + "login_required", + "Username required", + True, + "prompt_credentials", + ), + ErrorPattern( + r"[Ee]nter.*[Pp]assword", + "password_prompt", + "login_required", + "Password required", + True, + "prompt_credentials", + ), + ErrorPattern( + r"[Aa]ccess [Tt]oken.*[Rr]equired", + "token_required", + "login_required", + "Access token required", + True, + "prompt_token", + ), + ErrorPattern( + r"[Aa][Pp][Ii].*[Kk]ey.*[Rr]equired", + "api_key_required", + "login_required", + "API key required", + True, + "prompt_api_key", + ), ] # Category 10: Device & Hardware Errors DEVICE_ERRORS = [ - ErrorPattern(r"[Nn]o such device", "no_device", "device", - "Device not found", False, "check_device"), - ErrorPattern(r"[Dd]evice not configured", "device_not_configured", "device", - "Device not configured", False, "configure_device"), - ErrorPattern(r"[Hh]ardware error", "hardware_error", "device", - "Hardware error", False, "check_hardware", "critical"), - ErrorPattern(r"[Dd]evice offline", "device_offline", "device", - "Device offline", False, "bring_online"), - ErrorPattern(r"[Mm]edia not present", "no_media", "device", - "No media in device", False, "insert_media"), - ErrorPattern(r"[Rr]ead error", "read_error", "device", - "Device read error", False, "check_disk", "critical"), - ErrorPattern(r"[Ww]rite error", "write_error", "device", - "Device write error", False, "check_disk", "critical"), + ErrorPattern( + r"[Nn]o such device", "no_device", "device", "Device not found", False, "check_device" + ), + ErrorPattern( + r"[Dd]evice not configured", + "device_not_configured", + "device", + "Device not configured", + False, + "configure_device", + ), + ErrorPattern( + r"[Hh]ardware error", + "hardware_error", + "device", + "Hardware error", + False, + "check_hardware", + "critical", + ), + ErrorPattern( + r"[Dd]evice offline", "device_offline", "device", "Device offline", False, "bring_online" + ), + ErrorPattern( + r"[Mm]edia not present", "no_media", "device", "No media in device", False, "insert_media" + ), + ErrorPattern( + r"[Rr]ead error", + "read_error", + "device", + "Device read error", + False, + "check_disk", + "critical", + ), + ErrorPattern( + r"[Ww]rite error", + "write_error", + "device", + "Device write error", + False, + "check_disk", + "critical", + ), ] # Category 11: Compilation & Build Errors BUILD_ERRORS = [ - ErrorPattern(r"[Nn]o rule to make target", "no_make_rule", "build", - "Make target not found", False, "check_makefile"), - ErrorPattern(r"[Mm]issing separator", "missing_separator", "build", - "Makefile syntax error", False, "fix_makefile"), - ErrorPattern(r"[Uu]ndefined reference", "undefined_reference", "build", - "Undefined symbol", True, "add_library"), - ErrorPattern(r"[Ss]ymbol lookup error", "symbol_lookup", "build", - "Symbol not found", True, "fix_ldpath"), - ErrorPattern(r"[Ll]ibrary not found", "library_not_found", "build", - "Library not found", True, "install_lib"), - ErrorPattern(r"[Hh]eader.*not found", "header_not_found", "build", - "Header file not found", True, "install_dev"), - ErrorPattern(r"[Rr]elocation error", "relocation_error", "build", - "Relocation error", True, "fix_ldpath"), - ErrorPattern(r"[Cc]ompilation terminated", "compilation_failed", "build", - "Compilation failed", False, "check_errors"), + ErrorPattern( + r"[Nn]o rule to make target", + "no_make_rule", + "build", + "Make target not found", + False, + "check_makefile", + ), + ErrorPattern( + r"[Mm]issing separator", + "missing_separator", + "build", + "Makefile syntax error", + False, + "fix_makefile", + ), + ErrorPattern( + r"[Uu]ndefined reference", + "undefined_reference", + "build", + "Undefined symbol", + True, + "add_library", + ), + ErrorPattern( + r"[Ss]ymbol lookup error", "symbol_lookup", "build", "Symbol not found", True, "fix_ldpath" + ), + ErrorPattern( + r"[Ll]ibrary not found", + "library_not_found", + "build", + "Library not found", + True, + "install_lib", + ), + ErrorPattern( + r"[Hh]eader.*not found", + "header_not_found", + "build", + "Header file not found", + True, + "install_dev", + ), + ErrorPattern( + r"[Rr]elocation error", "relocation_error", "build", "Relocation error", True, "fix_ldpath" + ), + ErrorPattern( + r"[Cc]ompilation terminated", + "compilation_failed", + "build", + "Compilation failed", + False, + "check_errors", + ), ] # Category 12: Archive & Compression Errors ARCHIVE_ERRORS = [ - ErrorPattern(r"[Uu]nexpected end of file", "unexpected_eof_archive", "archive", - "Archive truncated", False, "redownload"), - ErrorPattern(r"[Cc]orrupt archive", "corrupt_archive", "archive", - "Archive corrupted", False, "redownload"), - ErrorPattern(r"[Ii]nvalid tar magic", "invalid_tar", "archive", - "Invalid tar archive", False, "check_format"), - ErrorPattern(r"[Cc]hecksum error", "checksum_error", "archive", - "Checksum mismatch", False, "redownload"), - ErrorPattern(r"[Nn]ot in gzip format", "not_gzip", "archive", - "Not gzip format", False, "check_format"), - ErrorPattern(r"[Dd]ecompression failed", "decompress_failed", "archive", - "Decompression failed", False, "check_format"), + ErrorPattern( + r"[Uu]nexpected end of file", + "unexpected_eof_archive", + "archive", + "Archive truncated", + False, + "redownload", + ), + ErrorPattern( + r"[Cc]orrupt archive", + "corrupt_archive", + "archive", + "Archive corrupted", + False, + "redownload", + ), + ErrorPattern( + r"[Ii]nvalid tar magic", + "invalid_tar", + "archive", + "Invalid tar archive", + False, + "check_format", + ), + ErrorPattern( + r"[Cc]hecksum error", "checksum_error", "archive", "Checksum mismatch", False, "redownload" + ), + ErrorPattern( + r"[Nn]ot in gzip format", "not_gzip", "archive", "Not gzip format", False, "check_format" + ), + ErrorPattern( + r"[Dd]ecompression failed", + "decompress_failed", + "archive", + "Decompression failed", + False, + "check_format", + ), ] # Category 13: Shell Script Errors SCRIPT_ERRORS = [ - ErrorPattern(r"[Bb]ad interpreter", "bad_interpreter", "script", - "Interpreter not found", True, "fix_shebang"), - ErrorPattern(r"[Ll]ine \d+:.*command not found", "script_cmd_not_found", "script", - "Command in script not found", True, "install_dependency"), - ErrorPattern(r"[Ii]nteger expression expected", "integer_expected", "script", - "Expected integer", False, "fix_syntax"), - ErrorPattern(r"[Cc]onditional binary operator expected", "conditional_expected", "script", - "Expected conditional", False, "fix_syntax"), + ErrorPattern( + r"[Bb]ad interpreter", + "bad_interpreter", + "script", + "Interpreter not found", + True, + "fix_shebang", + ), + ErrorPattern( + r"[Ll]ine \d+:.*command not found", + "script_cmd_not_found", + "script", + "Command in script not found", + True, + "install_dependency", + ), + ErrorPattern( + r"[Ii]nteger expression expected", + "integer_expected", + "script", + "Expected integer", + False, + "fix_syntax", + ), + ErrorPattern( + r"[Cc]onditional binary operator expected", + "conditional_expected", + "script", + "Expected conditional", + False, + "fix_syntax", + ), ] # Category 14: Environment & PATH Errors ENVIRONMENT_ERRORS = [ - ErrorPattern(r"[Vv]ariable not set", "var_not_set", "environment", - "Environment variable not set", True, "set_variable"), - ErrorPattern(r"[Pp][Aa][Tt][Hh] not set", "path_not_set", "environment", - "PATH not configured", True, "set_path"), - ErrorPattern(r"[Ee]nvironment corrupt", "env_corrupt", "environment", - "Environment corrupted", True, "reset_env"), - ErrorPattern(r"[Ll]ibrary path not found", "lib_path_missing", "environment", - "Library path missing", True, "set_ldpath"), - ErrorPattern(r"LD_LIBRARY_PATH", "ld_path_issue", "environment", - "Library path issue", True, "set_ldpath"), + ErrorPattern( + r"[Vv]ariable not set", + "var_not_set", + "environment", + "Environment variable not set", + True, + "set_variable", + ), + ErrorPattern( + r"[Pp][Aa][Tt][Hh] not set", + "path_not_set", + "environment", + "PATH not configured", + True, + "set_path", + ), + ErrorPattern( + r"[Ee]nvironment corrupt", + "env_corrupt", + "environment", + "Environment corrupted", + True, + "reset_env", + ), + ErrorPattern( + r"[Ll]ibrary path not found", + "lib_path_missing", + "environment", + "Library path missing", + True, + "set_ldpath", + ), + ErrorPattern( + r"LD_LIBRARY_PATH", "ld_path_issue", "environment", "Library path issue", True, "set_ldpath" + ), ] # Category 15: Service & System Errors # Category 16: Config File Errors (Nginx, Apache, etc.) CONFIG_ERRORS = [ # Nginx errors - ErrorPattern(r"nginx:.*\[emerg\]", "nginx_config_error", "config", - "Nginx configuration error", True, "fix_nginx_config"), - ErrorPattern(r"nginx.*syntax.*error", "nginx_syntax_error", "config", - "Nginx syntax error", True, "fix_nginx_config"), - ErrorPattern(r"nginx.*unexpected", "nginx_unexpected", "config", - "Nginx unexpected token", True, "fix_nginx_config"), - ErrorPattern(r"nginx.*unknown directive", "nginx_unknown_directive", "config", - "Nginx unknown directive", True, "fix_nginx_config"), - ErrorPattern(r"nginx.*test failed", "nginx_test_failed", "config", - "Nginx config test failed", True, "fix_nginx_config"), - ErrorPattern(r"nginx.*could not open", "nginx_file_error", "config", - "Nginx could not open file", True, "fix_nginx_permissions"), + ErrorPattern( + r"nginx:.*\[emerg\]", + "nginx_config_error", + "config", + "Nginx configuration error", + True, + "fix_nginx_config", + ), + ErrorPattern( + r"nginx.*syntax.*error", + "nginx_syntax_error", + "config", + "Nginx syntax error", + True, + "fix_nginx_config", + ), + ErrorPattern( + r"nginx.*unexpected", + "nginx_unexpected", + "config", + "Nginx unexpected token", + True, + "fix_nginx_config", + ), + ErrorPattern( + r"nginx.*unknown directive", + "nginx_unknown_directive", + "config", + "Nginx unknown directive", + True, + "fix_nginx_config", + ), + ErrorPattern( + r"nginx.*test failed", + "nginx_test_failed", + "config", + "Nginx config test failed", + True, + "fix_nginx_config", + ), + ErrorPattern( + r"nginx.*could not open", + "nginx_file_error", + "config", + "Nginx could not open file", + True, + "fix_nginx_permissions", + ), # Apache errors - ErrorPattern(r"apache.*syntax error", "apache_syntax_error", "config", - "Apache syntax error", True, "fix_apache_config"), - ErrorPattern(r"apache2?ctl.*configtest", "apache_config_error", "config", - "Apache config test failed", True, "fix_apache_config"), - ErrorPattern(r"[Ss]yntax error on line \d+", "config_line_error", "config", - "Config syntax error at line", True, "fix_config_line"), + ErrorPattern( + r"apache.*syntax error", + "apache_syntax_error", + "config", + "Apache syntax error", + True, + "fix_apache_config", + ), + ErrorPattern( + r"apache2?ctl.*configtest", + "apache_config_error", + "config", + "Apache config test failed", + True, + "fix_apache_config", + ), + ErrorPattern( + r"[Ss]yntax error on line \d+", + "config_line_error", + "config", + "Config syntax error at line", + True, + "fix_config_line", + ), # MySQL/MariaDB errors - ErrorPattern(r"mysql.*error.*config", "mysql_config_error", "config", - "MySQL configuration error", True, "fix_mysql_config"), + ErrorPattern( + r"mysql.*error.*config", + "mysql_config_error", + "config", + "MySQL configuration error", + True, + "fix_mysql_config", + ), # PostgreSQL errors - ErrorPattern(r"postgres.*error.*config", "postgres_config_error", "config", - "PostgreSQL configuration error", True, "fix_postgres_config"), + ErrorPattern( + r"postgres.*error.*config", + "postgres_config_error", + "config", + "PostgreSQL configuration error", + True, + "fix_postgres_config", + ), # Generic config errors - ErrorPattern(r"configuration.*syntax", "generic_config_syntax", "config", - "Configuration syntax error", True, "fix_config_syntax"), - ErrorPattern(r"invalid.*configuration", "invalid_config", "config", - "Invalid configuration", True, "fix_config_syntax"), - ErrorPattern(r"[Cc]onfig.*parse error", "config_parse_error", "config", - "Config parse error", True, "fix_config_syntax"), + ErrorPattern( + r"configuration.*syntax", + "generic_config_syntax", + "config", + "Configuration syntax error", + True, + "fix_config_syntax", + ), + ErrorPattern( + r"invalid.*configuration", + "invalid_config", + "config", + "Invalid configuration", + True, + "fix_config_syntax", + ), + ErrorPattern( + r"[Cc]onfig.*parse error", + "config_parse_error", + "config", + "Config parse error", + True, + "fix_config_syntax", + ), ] SERVICE_ERRORS = [ - ErrorPattern(r"[Ss]ervice failed to start", "service_failed", "service", - "Service failed to start", True, "check_service_logs"), - ErrorPattern(r"[Uu]nit.*failed", "unit_failed", "service", - "Systemd unit failed", True, "check_service_logs"), - ErrorPattern(r"[Jj]ob for.*\.service failed", "job_failed", "service", - "Service job failed", True, "check_service_logs"), - ErrorPattern(r"[Ff]ailed to start.*\.service", "start_failed", "service", - "Failed to start service", True, "check_service_logs"), - ErrorPattern(r"[Dd]ependency failed", "dependency_failed", "service", - "Service dependency failed", True, "start_dependency"), - ErrorPattern(r"[Ii]nactive.*dead", "service_inactive", "service", - "Service not running", True, "start_service"), - ErrorPattern(r"[Mm]asked", "service_masked", "service", - "Service is masked", True, "unmask_service"), - ErrorPattern(r"[Ee]nabled-runtime", "service_enabled_runtime", "service", - "Service enabled at runtime", False, "check_service"), - ErrorPattern(r"[Cc]ontrol process exited with error", "control_process_error", "service", - "Service control process failed", True, "check_service_logs"), - ErrorPattern(r"[Aa]ctivation.*timed out", "activation_timeout", "service", - "Service activation timed out", True, "check_service_logs"), + ErrorPattern( + r"[Ss]ervice failed to start", + "service_failed", + "service", + "Service failed to start", + True, + "check_service_logs", + ), + ErrorPattern( + r"[Uu]nit.*failed", + "unit_failed", + "service", + "Systemd unit failed", + True, + "check_service_logs", + ), + ErrorPattern( + r"[Jj]ob for.*\.service failed", + "job_failed", + "service", + "Service job failed", + True, + "check_service_logs", + ), + ErrorPattern( + r"[Ff]ailed to start.*\.service", + "start_failed", + "service", + "Failed to start service", + True, + "check_service_logs", + ), + ErrorPattern( + r"[Dd]ependency failed", + "dependency_failed", + "service", + "Service dependency failed", + True, + "start_dependency", + ), + ErrorPattern( + r"[Ii]nactive.*dead", + "service_inactive", + "service", + "Service not running", + True, + "start_service", + ), + ErrorPattern( + r"[Mm]asked", "service_masked", "service", "Service is masked", True, "unmask_service" + ), + ErrorPattern( + r"[Ee]nabled-runtime", + "service_enabled_runtime", + "service", + "Service enabled at runtime", + False, + "check_service", + ), + ErrorPattern( + r"[Cc]ontrol process exited with error", + "control_process_error", + "service", + "Service control process failed", + True, + "check_service_logs", + ), + ErrorPattern( + r"[Aa]ctivation.*timed out", + "activation_timeout", + "service", + "Service activation timed out", + True, + "check_service_logs", + ), ] # Combine all error patterns ALL_ERROR_PATTERNS = ( - DOCKER_ERRORS + # Check Docker errors first (common) - LOGIN_REQUIRED_ERRORS + # Check login errors (interactive) - CONFIG_ERRORS + # Check config errors (more specific) - COMMAND_SHELL_ERRORS + - FILE_DIRECTORY_ERRORS + - PERMISSION_ERRORS + - PROCESS_ERRORS + - MEMORY_ERRORS + - FILESYSTEM_ERRORS + - NETWORK_ERRORS + - PACKAGE_ERRORS + - USER_AUTH_ERRORS + - DEVICE_ERRORS + - BUILD_ERRORS + - ARCHIVE_ERRORS + - SCRIPT_ERRORS + - ENVIRONMENT_ERRORS + - SERVICE_ERRORS + DOCKER_ERRORS # Check Docker errors first (common) + + LOGIN_REQUIRED_ERRORS # Check login errors (interactive) + + CONFIG_ERRORS # Check config errors (more specific) + + COMMAND_SHELL_ERRORS + + FILE_DIRECTORY_ERRORS + + PERMISSION_ERRORS + + PROCESS_ERRORS + + MEMORY_ERRORS + + FILESYSTEM_ERRORS + + NETWORK_ERRORS + + PACKAGE_ERRORS + + USER_AUTH_ERRORS + + DEVICE_ERRORS + + BUILD_ERRORS + + ARCHIVE_ERRORS + + SCRIPT_ERRORS + + ENVIRONMENT_ERRORS + + SERVICE_ERRORS ) @@ -584,9 +1711,11 @@ class ErrorPattern: # Login/Credential Requirements Configuration # ============================================================================ + @dataclass class LoginRequirement: """Defines credentials required for a service login.""" + service: str display_name: str command_pattern: str # Regex to match commands that need this login @@ -740,40 +1869,87 @@ class LoginRequirement: UBUNTU_PACKAGE_MAP = { # Commands to packages - "nginx": "nginx", "apache2": "apache2", "httpd": "apache2", - "mysql": "mysql-server", "mysqld": "mysql-server", - "postgres": "postgresql", "psql": "postgresql-client", - "redis": "redis-server", "redis-server": "redis-server", - "mongo": "mongodb", "mongod": "mongodb", - "node": "nodejs", "npm": "npm", "yarn": "yarnpkg", - "python": "python3", "python3": "python3", "pip": "python3-pip", "pip3": "python3-pip", - "docker": "docker.io", "docker-compose": "docker-compose", - "git": "git", "curl": "curl", "wget": "wget", - "vim": "vim", "nano": "nano", "emacs": "emacs", - "gcc": "gcc", "g++": "g++", "make": "make", "cmake": "cmake", - "java": "default-jdk", "javac": "default-jdk", - "ruby": "ruby", "gem": "ruby", - "go": "golang-go", "cargo": "cargo", "rustc": "rustc", - "php": "php", "composer": "composer", - "ffmpeg": "ffmpeg", "imagemagick": "imagemagick", "convert": "imagemagick", - "htop": "htop", "tree": "tree", "jq": "jq", - "nc": "netcat-openbsd", "netcat": "netcat-openbsd", - "ss": "iproute2", "ip": "iproute2", - "dig": "dnsutils", "nslookup": "dnsutils", - "zip": "zip", "unzip": "unzip", - "tar": "tar", "gzip": "gzip", - "rsync": "rsync", "ssh": "openssh-client", "sshd": "openssh-server", - "screen": "screen", "tmux": "tmux", - "awk": "gawk", "sed": "sed", "grep": "grep", - "setfacl": "acl", "getfacl": "acl", - "lsof": "lsof", "strace": "strace", + "nginx": "nginx", + "apache2": "apache2", + "httpd": "apache2", + "mysql": "mysql-server", + "mysqld": "mysql-server", + "postgres": "postgresql", + "psql": "postgresql-client", + "redis": "redis-server", + "redis-server": "redis-server", + "mongo": "mongodb", + "mongod": "mongodb", + "node": "nodejs", + "npm": "npm", + "yarn": "yarnpkg", + "python": "python3", + "python3": "python3", + "pip": "python3-pip", + "pip3": "python3-pip", + "docker": "docker.io", + "docker-compose": "docker-compose", + "git": "git", + "curl": "curl", + "wget": "wget", + "vim": "vim", + "nano": "nano", + "emacs": "emacs", + "gcc": "gcc", + "g++": "g++", + "make": "make", + "cmake": "cmake", + "java": "default-jdk", + "javac": "default-jdk", + "ruby": "ruby", + "gem": "ruby", + "go": "golang-go", + "cargo": "cargo", + "rustc": "rustc", + "php": "php", + "composer": "composer", + "ffmpeg": "ffmpeg", + "imagemagick": "imagemagick", + "convert": "imagemagick", + "htop": "htop", + "tree": "tree", + "jq": "jq", + "nc": "netcat-openbsd", + "netcat": "netcat-openbsd", + "ss": "iproute2", + "ip": "iproute2", + "dig": "dnsutils", + "nslookup": "dnsutils", + "zip": "zip", + "unzip": "unzip", + "tar": "tar", + "gzip": "gzip", + "rsync": "rsync", + "ssh": "openssh-client", + "sshd": "openssh-server", + "screen": "screen", + "tmux": "tmux", + "awk": "gawk", + "sed": "sed", + "grep": "grep", + "setfacl": "acl", + "getfacl": "acl", + "lsof": "lsof", + "strace": "strace", # System monitoring tools - "sensors": "lm-sensors", "sensors-detect": "lm-sensors", - "htop": "htop", "iotop": "iotop", "iftop": "iftop", - "nmap": "nmap", "netstat": "net-tools", "ifconfig": "net-tools", - "smartctl": "smartmontools", "hdparm": "hdparm", + "sensors": "lm-sensors", + "sensors-detect": "lm-sensors", + "htop": "htop", + "iotop": "iotop", + "iftop": "iftop", + "nmap": "nmap", + "netstat": "net-tools", + "ifconfig": "net-tools", + "smartctl": "smartmontools", + "hdparm": "hdparm", # Optional tools (may not be in all repos) - "snap": "snapd", "flatpak": "flatpak", + "snap": "snapd", + "flatpak": "flatpak", } UBUNTU_SERVICE_MAP = { @@ -794,12 +1970,13 @@ class LoginRequirement: # Error Diagnoser Class # ============================================================================ + class ErrorDiagnoser: """Comprehensive error diagnosis for all system error types.""" - + def __init__(self): self._compile_patterns() - + def _compile_patterns(self): """Pre-compile regex patterns for performance.""" self._compiled_patterns = [] @@ -809,7 +1986,7 @@ def _compile_patterns(self): self._compiled_patterns.append((compiled, ep)) except re.error: console.print(f"[yellow]Warning: Invalid pattern: {ep.pattern}[/yellow]") - + def extract_path_from_error(self, stderr: str, cmd: str) -> str | None: """Extract the problematic file path from an error message.""" patterns = [ @@ -824,49 +2001,62 @@ def extract_path_from_error(self, stderr: str, cmd: str) -> str | None: r"touch: cannot touch ['\"]?([/\w\.\-_]+)['\"]?", r"cp: cannot (?:create|stat|access) ['\"]?([/\w\.\-_]+)['\"]?", ] - + for pattern in patterns: match = re.search(pattern, stderr, re.IGNORECASE) if match: path = match.group(1) if path.startswith("/"): return path - + # Extract from command itself for part in cmd.split(): - if part.startswith("/") and any(c in part for c in ["/etc/", "/var/", "/usr/", "/home/", "/opt/", "/tmp/"]): + if part.startswith("/") and any( + c in part for c in ["/etc/", "/var/", "/usr/", "/home/", "/opt/", "/tmp/"] + ): return part - + return None - + def extract_service_from_error(self, stderr: str, cmd: str) -> str | None: """Extract service name from error message or command.""" cmd_parts = cmd.split() - + # From systemctl/service commands for i, part in enumerate(cmd_parts): if part in ["systemctl", "service"]: for j in range(i + 1, len(cmd_parts)): candidate = cmd_parts[j] - if candidate not in ["start", "stop", "restart", "reload", "status", - "enable", "disable", "is-active", "is-enabled", - "-q", "--quiet", "--no-pager"]: + if candidate not in [ + "start", + "stop", + "restart", + "reload", + "status", + "enable", + "disable", + "is-active", + "is-enabled", + "-q", + "--quiet", + "--no-pager", + ]: return candidate.replace(".service", "") - + # From error message patterns = [ r"(?:Unit|Service) ([a-zA-Z0-9\-_]+)(?:\.service)? (?:not found|failed|could not)", r"Failed to (?:start|stop|restart|enable|disable) ([a-zA-Z0-9\-_]+)", r"([a-zA-Z0-9\-_]+)\.service", ] - + for pattern in patterns: match = re.search(pattern, stderr, re.IGNORECASE) if match: return match.group(1).replace(".service", "") - + return None - + def extract_package_from_error(self, stderr: str, cmd: str) -> str | None: """Extract package name from error.""" patterns = [ @@ -875,14 +2065,14 @@ def extract_package_from_error(self, stderr: str, cmd: str) -> str | None: r"[Nn]o package '?([a-zA-Z0-9\-_\.]+)'? (?:found|available)", r"apt.*install.*?([a-zA-Z0-9\-_\.]+)", ] - + for pattern in patterns: match = re.search(pattern, stderr + " " + cmd, re.IGNORECASE) if match: return match.group(1) - + return None - + def extract_port_from_error(self, stderr: str) -> int | None: """Extract port number from error.""" patterns = [ @@ -890,32 +2080,32 @@ def extract_port_from_error(self, stderr: str) -> int | None: r"[Aa]ddress.*:(\d+)", r":(\d{2,5})\s", ] - + for pattern in patterns: match = re.search(pattern, stderr) if match: port = int(match.group(1)) if 1 <= port <= 65535: return port - + return None - + def _extract_container_name(self, stderr: str) -> str | None: """Extract Docker container name from error message.""" patterns = [ r'container name ["\'/]([a-zA-Z0-9_\-]+)["\'/]', r'["\'/]([a-zA-Z0-9_\-]+)["\'/] is already in use', r'container ["\']?([a-zA-Z0-9_\-]+)["\']?', - r'No such container:?\s*([a-zA-Z0-9_\-]+)', + r"No such container:?\s*([a-zA-Z0-9_\-]+)", ] - + for pattern in patterns: match = re.search(pattern, stderr, re.IGNORECASE) if match: return match.group(1) - + return None - + def _extract_image_name(self, stderr: str, cmd: str) -> str | None: """Extract Docker image name from error or command.""" # From command @@ -930,47 +2120,47 @@ def _extract_image_name(self, stderr: str, cmd: str) -> str | None: return candidate elif not candidate.startswith("-") and j == len(parts) - 1: return candidate - + # From error patterns = [ r'[Uu]nable to find image ["\']([^"\']+)["\']', r'repository ["\']?([^"\':\s]+(?::[^"\':\s]+)?)["\']? not found', - r'manifest for ([^\s]+) not found', + r"manifest for ([^\s]+) not found", ] - + for pattern in patterns: match = re.search(pattern, stderr) if match: return match.group(1) - + return None - + def _extract_port(self, stderr: str) -> str | None: """Extract port from Docker error.""" patterns = [ - r'[Pp]ort (\d+)', - r':(\d+)->', - r'address.*:(\d+)', - r'-p\s*(\d+):', + r"[Pp]ort (\d+)", + r":(\d+)->", + r"address.*:(\d+)", + r"-p\s*(\d+):", ] - + for pattern in patterns: match = re.search(pattern, stderr) if match: return match.group(1) - + return None - + def extract_config_file_and_line(self, stderr: str) -> tuple[str | None, int | None]: """Extract config file path and line number from error.""" patterns = [ - r'in\s+(/[^\s:]+):(\d+)', # "in /path:line" - r'at\s+(/[^\s:]+):(\d+)', # "at /path:line" - r'(/[^\s:]+):(\d+):', # "/path:line:" - r'line\s+(\d+)\s+of\s+(/[^\s:]+)', # "line X of /path" - r'(/[^\s:]+)\s+line\s+(\d+)', # "/path line X" + r"in\s+(/[^\s:]+):(\d+)", # "in /path:line" + r"at\s+(/[^\s:]+):(\d+)", # "at /path:line" + r"(/[^\s:]+):(\d+):", # "/path:line:" + r"line\s+(\d+)\s+of\s+(/[^\s:]+)", # "line X of /path" + r"(/[^\s:]+)\s+line\s+(\d+)", # "/path line X" ] - + for pattern in patterns: match = re.search(pattern, stderr, re.IGNORECASE) if match: @@ -979,9 +2169,9 @@ def extract_config_file_and_line(self, stderr: str) -> tuple[str | None, int | N return groups[0], int(groups[1]) elif len(groups) > 1 and groups[1].startswith("/"): return groups[1], int(groups[0]) - + return None, None - + def extract_command_from_error(self, stderr: str) -> str | None: """Extract the failing command name from error.""" patterns = [ @@ -990,18 +2180,18 @@ def extract_command_from_error(self, stderr: str) -> str | None: r"bash: ([a-zA-Z0-9\-_]+):", r"/usr/bin/env: '?([a-zA-Z0-9\-_]+)'?:", ] - + for pattern in patterns: match = re.search(pattern, stderr, re.IGNORECASE) if match: return match.group(1) - + return None - + def diagnose_error(self, cmd: str, stderr: str) -> dict[str, Any]: """ Comprehensive error diagnosis using pattern matching. - + Returns a detailed diagnosis dict with: - error_type: Specific error type - category: Error category (command_shell, network, etc.) @@ -1023,20 +2213,20 @@ def diagnose_error(self, cmd: str, stderr: str) -> dict[str, Any]: "extracted_info": {}, "severity": "error", } - + stderr_lower = stderr.lower() - + # Extract common info diagnosis["extracted_path"] = self.extract_path_from_error(stderr, cmd) diagnosis["extracted_info"]["service"] = self.extract_service_from_error(stderr, cmd) diagnosis["extracted_info"]["package"] = self.extract_package_from_error(stderr, cmd) diagnosis["extracted_info"]["port"] = self.extract_port_from_error(stderr) - + config_file, line_num = self.extract_config_file_and_line(stderr) if config_file: diagnosis["extracted_info"]["config_file"] = config_file diagnosis["extracted_info"]["line_num"] = line_num - + # Match against compiled patterns for compiled, ep in self._compiled_patterns: if compiled.search(stderr): @@ -1046,12 +2236,12 @@ def diagnose_error(self, cmd: str, stderr: str) -> dict[str, Any]: diagnosis["can_auto_fix"] = ep.can_auto_fix diagnosis["fix_strategy"] = ep.fix_strategy diagnosis["severity"] = ep.severity - + # Generate fix commands based on category and strategy self._generate_fix_commands(diagnosis, cmd, stderr) - + return diagnosis - + # Fallback: try generic patterns if "permission denied" in stderr_lower: diagnosis["error_type"] = "permission_denied" @@ -1061,7 +2251,7 @@ def diagnose_error(self, cmd: str, stderr: str) -> dict[str, Any]: diagnosis["fix_strategy"] = "use_sudo" if not cmd.strip().startswith("sudo"): diagnosis["fix_commands"] = [f"sudo {cmd}"] - + elif "not found" in stderr_lower or "no such" in stderr_lower: diagnosis["error_type"] = "not_found" diagnosis["category"] = "file_directory" @@ -1069,47 +2259,44 @@ def diagnose_error(self, cmd: str, stderr: str) -> dict[str, Any]: if diagnosis["extracted_path"]: diagnosis["can_auto_fix"] = True diagnosis["fix_strategy"] = "create_path" - + return diagnosis - + def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None: """Generate specific fix commands based on the error type and strategy.""" strategy = diagnosis.get("fix_strategy", "") extracted = diagnosis.get("extracted_info", {}) path = diagnosis.get("extracted_path") - + # Permission/Sudo strategies if strategy == "use_sudo": if not cmd.strip().startswith("sudo"): diagnosis["fix_commands"] = [f"sudo {cmd}"] - + # Path creation strategies elif strategy == "create_path": if path: parent = os.path.dirname(path) if parent: diagnosis["fix_commands"] = [f"sudo mkdir -p {parent}"] - + # Package installation elif strategy == "install_package": missing_cmd = self.extract_command_from_error(stderr) or cmd.split()[0] pkg = UBUNTU_PACKAGE_MAP.get(missing_cmd, missing_cmd) - diagnosis["fix_commands"] = [ - "sudo apt-get update", - f"sudo apt-get install -y {pkg}" - ] + diagnosis["fix_commands"] = ["sudo apt-get update", f"sudo apt-get install -y {pkg}"] diagnosis["extracted_info"]["missing_command"] = missing_cmd diagnosis["extracted_info"]["suggested_package"] = pkg - + # Service management elif strategy == "start_service" or strategy == "check_service": service = extracted.get("service") if service: diagnosis["fix_commands"] = [ f"sudo systemctl start {service}", - f"sudo systemctl status {service}" + f"sudo systemctl status {service}", ] - + elif strategy == "check_service_logs": service = extracted.get("service") if service: @@ -1142,22 +2329,22 @@ def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None f"sudo systemctl reset-failed {service} 2>/dev/null || true", f"sudo systemctl start {service}", ] - + elif strategy == "unmask_service": service = extracted.get("service") if service: diagnosis["fix_commands"] = [ f"sudo systemctl unmask {service}", - f"sudo systemctl start {service}" + f"sudo systemctl start {service}", ] - + # Config file fixes elif strategy in ["fix_nginx_config", "fix_nginx_permissions"]: config_file = extracted.get("config_file") line_num = extracted.get("line_num") if config_file: diagnosis["fix_commands"] = [ - f"sudo nginx -t 2>&1", + "sudo nginx -t 2>&1", f"# Check config at: {config_file}" + (f":{line_num}" if line_num else ""), ] else: @@ -1165,7 +2352,7 @@ def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None "sudo nginx -t 2>&1", "# Check /etc/nginx/nginx.conf and sites-enabled/*", ] - + elif strategy == "fix_apache_config": config_file = extracted.get("config_file") diagnosis["fix_commands"] = [ @@ -1174,7 +2361,7 @@ def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None ] if config_file: diagnosis["fix_commands"].append(f"# Check config at: {config_file}") - + elif strategy in ["fix_config_syntax", "fix_config_line"]: config_file = extracted.get("config_file") line_num = extracted.get("line_num") @@ -1188,138 +2375,154 @@ def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None f"sudo cat {config_file}", f"# Edit: sudo nano {config_file}", ] - + elif strategy == "fix_mysql_config": diagnosis["fix_commands"] = [ "sudo mysql --help --verbose 2>&1 | grep -A 1 'Default options'", "# Edit: sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf", ] - + elif strategy == "fix_postgres_config": diagnosis["fix_commands"] = [ "sudo -u postgres psql -c 'SHOW config_file;'", "# Edit: sudo nano /etc/postgresql/*/main/postgresql.conf", ] - + # Package manager elif strategy == "clear_lock": diagnosis["fix_commands"] = [ "sudo rm -f /var/lib/dpkg/lock-frontend", "sudo rm -f /var/lib/dpkg/lock", "sudo rm -f /var/cache/apt/archives/lock", - "sudo dpkg --configure -a" + "sudo dpkg --configure -a", ] - + elif strategy == "update_repos": pkg = extracted.get("package") diagnosis["fix_commands"] = ["sudo apt-get update"] if pkg: diagnosis["fix_commands"].append(f"apt-cache search {pkg}") - + elif strategy == "fix_dependencies": diagnosis["fix_commands"] = [ "sudo apt-get install -f", "sudo dpkg --configure -a", "sudo apt-get update", - "sudo apt-get upgrade" + "sudo apt-get upgrade", ] - + elif strategy == "fix_broken": diagnosis["fix_commands"] = [ "sudo apt-get install -f", "sudo dpkg --configure -a", "sudo apt-get clean", - "sudo apt-get update" + "sudo apt-get update", ] - + elif strategy == "clean_apt": diagnosis["fix_commands"] = [ "sudo apt-get clean", "sudo rm -rf /var/lib/apt/lists/*", - "sudo apt-get update" + "sudo apt-get update", ] - + elif strategy == "fix_gpg": diagnosis["fix_commands"] = [ "sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com", - "sudo apt-get update" + "sudo apt-get update", ] - + # Docker strategies elif strategy == "remove_or_rename_container": container_name = self._extract_container_name(stderr) if container_name: diagnosis["fix_commands"] = [ f"docker rm -f {container_name}", - "# Or rename: docker rename {container_name} {container_name}_old" + "# Or rename: docker rename {container_name} {container_name}_old", ] - diagnosis["suggestion"] = f"Container '{container_name}' already exists. Removing it and retrying." + diagnosis["suggestion"] = ( + f"Container '{container_name}' already exists. Removing it and retrying." + ) else: diagnosis["fix_commands"] = [ "docker ps -a", - "# Then: docker rm -f " + "# Then: docker rm -f ", ] - + elif strategy == "stop_or_use_existing": container_name = self._extract_container_name(stderr) diagnosis["fix_commands"] = [ f"docker stop {container_name}" if container_name else "docker stop ", - "# Or connect to existing: docker exec -it /bin/sh" + "# Or connect to existing: docker exec -it /bin/sh", ] - + elif strategy == "start_container": container_name = self._extract_container_name(stderr) diagnosis["fix_commands"] = [ f"docker start {container_name}" if container_name else "docker start " ] - + elif strategy == "pull_image": image_name = self._extract_image_name(stderr, cmd) diagnosis["fix_commands"] = [ f"docker pull {image_name}" if image_name else "docker pull " ] - + elif strategy == "free_port_or_use_different": port = self._extract_port(stderr) if port: diagnosis["fix_commands"] = [ f"sudo lsof -i :{port}", f"# Kill process using port: sudo kill $(sudo lsof -t -i:{port})", - f"# Or use different port: -p {int(port)+1}:{port}" + f"# Or use different port: -p {int(port)+1}:{port}", ] else: diagnosis["fix_commands"] = ["docker ps", "# Check which ports are in use"] - + elif strategy == "start_docker_daemon": diagnosis["fix_commands"] = [ "sudo systemctl start docker", - "sudo systemctl status docker" + "sudo systemctl status docker", ] - + elif strategy == "create_volume": volume_name = extracted.get("volume") diagnosis["fix_commands"] = [ - f"docker volume create {volume_name}" if volume_name else "docker volume create " + ( + f"docker volume create {volume_name}" + if volume_name + else "docker volume create " + ) ] - + elif strategy == "create_network": network_name = extracted.get("network") diagnosis["fix_commands"] = [ - f"docker network create {network_name}" if network_name else "docker network create " + ( + f"docker network create {network_name}" + if network_name + else "docker network create " + ) ] - + elif strategy == "check_container_name": diagnosis["fix_commands"] = [ "docker ps -a", - "# Check container names and use correct one" + "# Check container names and use correct one", ] - + # Timeout strategies elif strategy == "retry_with_longer_timeout": # Check if this is an interactive command that needs TTY - interactive_patterns = ["docker exec -it", "docker run -it", "-ti ", "ollama run", "ollama chat"] + interactive_patterns = [ + "docker exec -it", + "docker run -it", + "-ti ", + "ollama run", + "ollama chat", + ] is_interactive = any(p in cmd.lower() for p in interactive_patterns) - + if is_interactive: diagnosis["fix_commands"] = [ "# This is an INTERACTIVE command that requires a terminal (TTY)", @@ -1327,54 +2530,51 @@ def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None f"# {cmd}", ] diagnosis["description"] = "Interactive command cannot run in background" - diagnosis["suggestion"] = "This command needs interactive input. Please run it in a separate terminal." + diagnosis["suggestion"] = ( + "This command needs interactive input. Please run it in a separate terminal." + ) else: diagnosis["fix_commands"] = [ "# This command timed out - it may still be running or need more time", "# For docker pull: The image may be very large, try again with better network", "# Check if the operation completed in background", ] - diagnosis["suggestion"] = "The operation timed out. This often happens with large downloads. You can retry manually." + diagnosis["suggestion"] = ( + "The operation timed out. This often happens with large downloads. You can retry manually." + ) diagnosis["can_auto_fix"] = False # Let user decide what to do - + # Network strategies elif strategy == "check_network": - diagnosis["fix_commands"] = [ - "ping -c 2 8.8.8.8", - "ip route", - "cat /etc/resolv.conf" - ] - + diagnosis["fix_commands"] = ["ping -c 2 8.8.8.8", "ip route", "cat /etc/resolv.conf"] + elif strategy == "check_dns": diagnosis["fix_commands"] = [ "cat /etc/resolv.conf", "systemd-resolve --status", - "sudo systemctl restart systemd-resolved" + "sudo systemctl restart systemd-resolved", ] - + elif strategy == "check_service": port = extracted.get("port") if port: diagnosis["fix_commands"] = [ f"sudo ss -tlnp sport = :{port}", - f"sudo lsof -i :{port}" + f"sudo lsof -i :{port}", ] - + elif strategy == "find_port_user": port = extracted.get("port") if port: diagnosis["fix_commands"] = [ f"sudo lsof -i :{port}", f"sudo ss -tlnp sport = :{port}", - f"# Kill process: sudo kill " + "# Kill process: sudo kill ", ] - + elif strategy == "check_firewall": - diagnosis["fix_commands"] = [ - "sudo ufw status", - "sudo iptables -L -n" - ] - + diagnosis["fix_commands"] = ["sudo ufw status", "sudo iptables -L -n"] + # Disk/Memory strategies elif strategy == "free_disk": diagnosis["fix_commands"] = [ @@ -1382,55 +2582,52 @@ def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None "sudo apt-get clean", "sudo apt-get autoremove -y", "sudo journalctl --vacuum-size=100M", - "du -sh /var/log/*" + "du -sh /var/log/*", ] - + elif strategy == "free_memory": diagnosis["fix_commands"] = [ "free -h", "sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches", - "top -b -n 1 | head -20" + "top -b -n 1 | head -20", ] - + elif strategy == "increase_ulimit": diagnosis["fix_commands"] = [ "ulimit -a", "# Add to /etc/security/limits.conf:", "# * soft nofile 65535", - "# * hard nofile 65535" + "# * hard nofile 65535", ] - + # Filesystem strategies elif strategy == "remount_rw": if path: mount_point = self._find_mount_point(path) if mount_point: diagnosis["fix_commands"] = [f"sudo mount -o remount,rw {mount_point}"] - + elif strategy == "create_mountpoint": if path: diagnosis["fix_commands"] = [f"sudo mkdir -p {path}"] - + elif strategy == "mount_fs": diagnosis["fix_commands"] = ["mount", "cat /etc/fstab"] - + # User strategies elif strategy == "create_user": # Extract username from error if possible match = re.search(r"user '?([a-zA-Z0-9_-]+)'?", stderr, re.IGNORECASE) if match: user = match.group(1) - diagnosis["fix_commands"] = [ - f"sudo useradd -m {user}", - f"sudo passwd {user}" - ] - + diagnosis["fix_commands"] = [f"sudo useradd -m {user}", f"sudo passwd {user}"] + elif strategy == "create_group": match = re.search(r"group '?([a-zA-Z0-9_-]+)'?", stderr, re.IGNORECASE) if match: group = match.group(1) diagnosis["fix_commands"] = [f"sudo groupadd {group}"] - + # Build strategies elif strategy == "install_lib": lib_match = re.search(r"library.*?([a-zA-Z0-9_-]+)", stderr, re.IGNORECASE) @@ -1438,41 +2635,38 @@ def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None lib = lib_match.group(1) diagnosis["fix_commands"] = [ f"apt-cache search {lib}", - f"# Install with: sudo apt-get install lib{lib}-dev" + f"# Install with: sudo apt-get install lib{lib}-dev", ] - + elif strategy == "install_dev": header_match = re.search(r"([a-zA-Z0-9_/]+\.h)", stderr) if header_match: header = header_match.group(1) diagnosis["fix_commands"] = [ f"apt-file search {header}", - "# Install the -dev package that provides this header" + "# Install the -dev package that provides this header", ] - + elif strategy == "fix_ldpath": diagnosis["fix_commands"] = [ "sudo ldconfig", "echo $LD_LIBRARY_PATH", - "cat /etc/ld.so.conf.d/*.conf" + "cat /etc/ld.so.conf.d/*.conf", ] - + # Wait/Retry strategies elif strategy == "wait_retry": - diagnosis["fix_commands"] = [ - "sleep 2", - f"# Then retry: {cmd}" - ] - + diagnosis["fix_commands"] = ["sleep 2", f"# Then retry: {cmd}"] + # Script strategies elif strategy == "fix_shebang": if path: diagnosis["fix_commands"] = [ f"head -1 {path}", "# Fix shebang line to point to correct interpreter", - "# e.g., #!/usr/bin/env python3" + "# e.g., #!/usr/bin/env python3", ] - + # Environment strategies elif strategy == "set_variable": var_match = re.search(r"([A-Z_]+).*not set", stderr, re.IGNORECASE) @@ -1480,55 +2674,55 @@ def _generate_fix_commands(self, diagnosis: dict, cmd: str, stderr: str) -> None var = var_match.group(1) diagnosis["fix_commands"] = [ f"export {var}=", - f"# Add to ~/.bashrc: export {var}=" + f"# Add to ~/.bashrc: export {var}=", ] - + elif strategy == "set_path": diagnosis["fix_commands"] = [ "echo $PATH", "export PATH=$PATH:/usr/local/bin", - "# Add to ~/.bashrc" + "# Add to ~/.bashrc", ] - + elif strategy == "set_ldpath": diagnosis["fix_commands"] = [ "echo $LD_LIBRARY_PATH", "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH", - "sudo ldconfig" + "sudo ldconfig", ] - + # Backup/Overwrite strategy elif strategy == "backup_overwrite": if path: diagnosis["fix_commands"] = [ f"sudo mv {path} {path}.backup", - f"# Then retry: {cmd}" + f"# Then retry: {cmd}", ] - + # Symlink strategy elif strategy == "fix_symlink": if path: diagnosis["fix_commands"] = [ f"ls -la {path}", f"readlink -f {path}", - f"# Remove broken symlink: sudo rm {path}" + f"# Remove broken symlink: sudo rm {path}", ] - + # Directory not empty elif strategy == "rm_recursive": if path: diagnosis["fix_commands"] = [ f"ls -la {path}", - f"# Remove recursively (CAUTION): sudo rm -rf {path}" + f"# Remove recursively (CAUTION): sudo rm -rf {path}", ] - + # Copy instead of link elif strategy == "copy_instead": diagnosis["fix_commands"] = [ "# Use cp instead of ln/mv for cross-device operations", - f"# cp -a " + "# cp -a ", ] - + def _find_mount_point(self, path: str) -> str | None: """Find the mount point for a given path.""" try: @@ -1546,46 +2740,49 @@ def _find_mount_point(self, path: str) -> str | None: # Login Handler Class # ============================================================================ + class LoginHandler: """Handles interactive login/credential prompts for various services.""" - + CREDENTIALS_FILE = os.path.expanduser("~/.cortex/credentials.json") - + def __init__(self): self.cached_credentials: dict[str, dict] = {} self._ensure_credentials_dir() self._load_saved_credentials() - + def _ensure_credentials_dir(self) -> None: """Ensure the credentials directory exists with proper permissions.""" cred_dir = os.path.dirname(self.CREDENTIALS_FILE) if not os.path.exists(cred_dir): os.makedirs(cred_dir, mode=0o700, exist_ok=True) - + def _encode_credential(self, value: str) -> str: """Encode a credential value (basic obfuscation, not encryption).""" import base64 + return base64.b64encode(value.encode()).decode() - + def _decode_credential(self, encoded: str) -> str: """Decode a credential value.""" import base64 + try: return base64.b64decode(encoded.encode()).decode() except Exception: return "" - + def _load_saved_credentials(self) -> None: """Load saved credentials from file.""" import json - + if not os.path.exists(self.CREDENTIALS_FILE): return - + try: - with open(self.CREDENTIALS_FILE, 'r') as f: + with open(self.CREDENTIALS_FILE) as f: saved = json.load(f) - + # Decode all saved credentials for service, creds in saved.items(): decoded = {} @@ -1595,73 +2792,73 @@ def _load_saved_credentials(self) -> None: else: decoded[field] = self._decode_credential(value) self.cached_credentials[service] = decoded - - except (json.JSONDecodeError, IOError) as e: + + except (OSError, json.JSONDecodeError) as e: console.print(f"[dim]Note: Could not load saved credentials: {e}[/dim]") - + def _save_credentials(self, service: str, credentials: dict[str, str]) -> None: """Save credentials to file.""" import json from datetime import datetime - + # Load existing credentials all_creds = {} if os.path.exists(self.CREDENTIALS_FILE): try: - with open(self.CREDENTIALS_FILE, 'r') as f: + with open(self.CREDENTIALS_FILE) as f: all_creds = json.load(f) - except (json.JSONDecodeError, IOError): + except (OSError, json.JSONDecodeError): pass - + # Encode new credentials encoded = {} for field, value in credentials.items(): if value: # Only save non-empty values encoded[field] = self._encode_credential(value) - + # Add metadata encoded["_saved_at"] = datetime.now().isoformat() - + all_creds[service] = encoded - + # Save to file with restricted permissions try: - with open(self.CREDENTIALS_FILE, 'w') as f: + with open(self.CREDENTIALS_FILE, "w") as f: json.dump(all_creds, f, indent=2) os.chmod(self.CREDENTIALS_FILE, 0o600) # Read/write only for owner console.print(f"[green]โœ“ Credentials saved to {self.CREDENTIALS_FILE}[/green]") - except IOError as e: + except OSError as e: console.print(f"[yellow]Warning: Could not save credentials: {e}[/yellow]") - + def _delete_saved_credentials(self, service: str) -> None: """Delete saved credentials for a service.""" import json - + if not os.path.exists(self.CREDENTIALS_FILE): return - + try: - with open(self.CREDENTIALS_FILE, 'r') as f: + with open(self.CREDENTIALS_FILE) as f: all_creds = json.load(f) - + if service in all_creds: del all_creds[service] - - with open(self.CREDENTIALS_FILE, 'w') as f: + + with open(self.CREDENTIALS_FILE, "w") as f: json.dump(all_creds, f, indent=2) - + console.print(f"[dim]Removed saved credentials for {service}[/dim]") - except (json.JSONDecodeError, IOError): + except (OSError, json.JSONDecodeError): pass - + def _has_saved_credentials(self, service: str) -> bool: """Check if we have saved credentials for a service.""" return service in self.cached_credentials and bool(self.cached_credentials[service]) - + def _ask_use_saved(self, service: str, requirement: LoginRequirement) -> bool: """Ask user if they want to use saved credentials.""" saved = self.cached_credentials.get(service, {}) - + # Show what we have saved (without showing secrets) saved_fields = [] for field in requirement.required_fields: @@ -1674,53 +2871,53 @@ def _ask_use_saved(self, service: str, requirement: LoginRequirement) -> bool: if len(value) > 20: value = value[:17] + "..." saved_fields.append(f"{field}={value}") - + if not saved_fields: return False - + console.print() console.print(f"[cyan]๐Ÿ“ Found saved credentials for {requirement.display_name}:[/cyan]") console.print(f"[dim] {', '.join(saved_fields)}[/dim]") - + if "_saved_at" in saved: console.print(f"[dim] Saved: {saved['_saved_at'][:19]}[/dim]") - + console.print() try: response = input("Use saved credentials? (y/n/delete): ").strip().lower() except (EOFError, KeyboardInterrupt): return False - + if response in ["d", "delete", "del", "remove"]: self._delete_saved_credentials(service) if service in self.cached_credentials: del self.cached_credentials[service] return False - + return response in ["y", "yes", ""] - + def _ask_save_credentials(self, service: str, credentials: dict[str, str]) -> None: """Ask user if they want to save credentials for next time.""" console.print() - console.print(f"[cyan]๐Ÿ’พ Save these credentials for next time?[/cyan]") + console.print("[cyan]๐Ÿ’พ Save these credentials for next time?[/cyan]") console.print(f"[dim] Credentials will be stored in {self.CREDENTIALS_FILE}[/dim]") - console.print(f"[dim] (encoded, readable only by you)[/dim]") - + console.print("[dim] (encoded, readable only by you)[/dim]") + try: response = input("Save credentials? (y/n): ").strip().lower() except (EOFError, KeyboardInterrupt): return - + if response in ["y", "yes"]: self._save_credentials(service, credentials) # Also update cache self.cached_credentials[service] = credentials.copy() - + def detect_login_requirement(self, cmd: str, stderr: str) -> LoginRequirement | None: """Detect which service needs login based on command and error.""" cmd_lower = cmd.lower() stderr_lower = stderr.lower() - + # Check for specific registries in docker commands if "docker" in cmd_lower: if "ghcr.io" in cmd_lower or "ghcr.io" in stderr_lower: @@ -1728,14 +2925,14 @@ def detect_login_requirement(self, cmd: str, stderr: str) -> LoginRequirement | if "gcr.io" in cmd_lower or "gcr.io" in stderr_lower: return LOGIN_REQUIREMENTS.get("gcloud") return LOGIN_REQUIREMENTS.get("docker") - + # Check other services for service, req in LOGIN_REQUIREMENTS.items(): if re.search(req.command_pattern, cmd, re.IGNORECASE): return req - + return None - + def check_env_credentials(self, requirement: LoginRequirement) -> dict[str, str]: """Check if credentials are available in environment variables.""" found = {} @@ -1744,42 +2941,46 @@ def check_env_credentials(self, requirement: LoginRequirement) -> dict[str, str] if value: found[field] = value return found - + def prompt_for_credentials( - self, - requirement: LoginRequirement, - pre_filled: dict[str, str] | None = None + self, requirement: LoginRequirement, pre_filled: dict[str, str] | None = None ) -> dict[str, str] | None: """Prompt user for required credentials.""" import getpass - + console.print() - console.print(f"[bold cyan]๐Ÿ” {requirement.display_name} Authentication Required[/bold cyan]") + console.print( + f"[bold cyan]๐Ÿ” {requirement.display_name} Authentication Required[/bold cyan]" + ) console.print() - + if requirement.signup_url: console.print(f"[dim]Don't have an account? Sign up at: {requirement.signup_url}[/dim]") if requirement.docs_url: console.print(f"[dim]Documentation: {requirement.docs_url}[/dim]") console.print() - + # Check for existing env vars env_creds = self.check_env_credentials(requirement) if env_creds: - console.print(f"[green]Found credentials in environment: {', '.join(env_creds.keys())}[/green]") - + console.print( + f"[green]Found credentials in environment: {', '.join(env_creds.keys())}[/green]" + ) + credentials = pre_filled.copy() if pre_filled else {} credentials.update(env_creds) - + try: for field in requirement.required_fields: if field in credentials and credentials[field]: - console.print(f"[dim]{requirement.field_prompts[field]}: (using existing)[/dim]") + console.print( + f"[dim]{requirement.field_prompts[field]}: (using existing)[/dim]" + ) continue - + prompt_text = requirement.field_prompts.get(field, f"Enter {field}") is_secret = requirement.field_secret.get(field, False) - + # Handle special defaults default_value = "" if field == "registry": @@ -1788,12 +2989,12 @@ def prompt_for_credentials( default_value = "us-east-1" elif field == "kubeconfig": default_value = os.path.expanduser("~/.kube/config") - + if default_value: prompt_text = f"{prompt_text} [{default_value}]" - + console.print(f"[bold]{prompt_text}:[/bold] ", end="") - + if is_secret: value = getpass.getpass("") else: @@ -1802,62 +3003,62 @@ def prompt_for_credentials( except (EOFError, KeyboardInterrupt): console.print("\n[yellow]Authentication cancelled.[/yellow]") return None - + # Use default if empty if not value and default_value: value = default_value console.print(f"[dim]Using default: {default_value}[/dim]") - + if not value and field != "registry": # registry can be empty for Docker Hub console.print(f"[red]Error: {field} is required.[/red]") return None - + credentials[field] = value - + return credentials - + except (EOFError, KeyboardInterrupt): console.print("\n[yellow]Authentication cancelled.[/yellow]") return None - + def execute_login( - self, - requirement: LoginRequirement, - credentials: dict[str, str] + self, requirement: LoginRequirement, credentials: dict[str, str] ) -> tuple[bool, str, str]: """Execute the login command with provided credentials.""" - + # Build the login command if not requirement.login_command_template: return False, "", "No login command template defined" - + # Handle special cases if requirement.service == "docker" and credentials.get("registry") in ["", "docker.io"]: credentials["registry"] = "" # Docker Hub doesn't need registry in command - + # Format the command try: login_cmd = requirement.login_command_template.format(**credentials) except KeyError as e: return False, "", f"Missing credential: {e}" - + # For Docker, use stdin for password to avoid it showing in ps if requirement.service in ["docker", "ghcr"]: password = credentials.get("password") or credentials.get("token", "") username = credentials.get("username", "") registry = credentials.get("registry", "") - + if requirement.service == "ghcr": registry = "ghcr.io" - + # Build safe command if registry: cmd_parts = ["docker", "login", registry, "-u", username, "--password-stdin"] else: cmd_parts = ["docker", "login", "-u", username, "--password-stdin"] - - console.print(f"[dim]Executing: docker login {registry or 'docker.io'} -u {username}[/dim]") - + + console.print( + f"[dim]Executing: docker login {registry or 'docker.io'} -u {username}[/dim]" + ) + try: process = subprocess.Popen( cmd_parts, @@ -1873,9 +3074,9 @@ def execute_login( return False, "", "Login timed out" except Exception as e: return False, "", str(e) - + # For other services, execute directly - console.print(f"[dim]Executing login...[/dim]") + console.print("[dim]Executing login...[/dim]") try: result = subprocess.run( login_cmd, @@ -1889,22 +3090,22 @@ def execute_login( return False, "", "Login timed out" except Exception as e: return False, "", str(e) - + def handle_login(self, cmd: str, stderr: str) -> tuple[bool, str]: """ Main entry point: detect login requirement, prompt, and execute. - + Returns: (success, message) """ requirement = self.detect_login_requirement(cmd, stderr) - + if not requirement: return False, "Could not determine which service needs authentication" - + used_saved = False credentials = None - + # Check for saved credentials first if self._has_saved_credentials(requirement.service): if self._ask_use_saved(requirement.service, requirement): @@ -1913,19 +3114,23 @@ def handle_login(self, cmd: str, stderr: str) -> tuple[bool, str]: # Remove metadata fields credentials = {k: v for k, v in credentials.items() if not k.startswith("_")} used_saved = True - - console.print(f"[cyan]Using saved credentials...[/cyan]") + + console.print("[cyan]Using saved credentials...[/cyan]") success, stdout, login_stderr = self.execute_login(requirement, credentials) - + if success: - console.print(f"[green]โœ“ Successfully logged in to {requirement.display_name} using saved credentials[/green]") + console.print( + f"[green]โœ“ Successfully logged in to {requirement.display_name} using saved credentials[/green]" + ) return True, f"Logged in to {requirement.display_name} using saved credentials" else: - console.print(f"[yellow]Saved credentials didn't work: {login_stderr[:100] if login_stderr else 'Unknown error'}[/yellow]") - console.print(f"[dim]Let's enter new credentials...[/dim]") + console.print( + f"[yellow]Saved credentials didn't work: {login_stderr[:100] if login_stderr else 'Unknown error'}[/yellow]" + ) + console.print("[dim]Let's enter new credentials...[/dim]") credentials = None used_saved = False - + # Prompt for new credentials if we don't have valid ones if not credentials: # Pre-fill with any partial saved credentials (like username) @@ -1933,61 +3138,68 @@ def handle_login(self, cmd: str, stderr: str) -> tuple[bool, str]: if requirement.service in self.cached_credentials: saved = self.cached_credentials[requirement.service] for field in requirement.required_fields: - if field in saved and saved[field] and not requirement.field_secret.get(field, False): + if ( + field in saved + and saved[field] + and not requirement.field_secret.get(field, False) + ): pre_filled[field] = saved[field] - - credentials = self.prompt_for_credentials(requirement, pre_filled if pre_filled else None) - + + credentials = self.prompt_for_credentials( + requirement, pre_filled if pre_filled else None + ) + if not credentials: return False, "Authentication cancelled by user" - + # Execute login success, stdout, login_stderr = self.execute_login(requirement, credentials) - + if success: console.print(f"[green]โœ“ Successfully logged in to {requirement.display_name}[/green]") - + # Ask to save credentials if they weren't from saved file if not used_saved: self._ask_save_credentials(requirement.service, credentials) - + # Update session cache self.cached_credentials[requirement.service] = credentials.copy() - + return True, f"Successfully authenticated with {requirement.display_name}" else: error_msg = login_stderr or "Login failed" console.print(f"[red]โœ— Login failed: {error_msg}[/red]") - + # Offer to retry console.print() try: retry = input("Would you like to try again? (y/n): ").strip().lower() except (EOFError, KeyboardInterrupt): retry = "n" - + if retry in ["y", "yes"]: # Clear cached credentials for this service since they failed if requirement.service in self.cached_credentials: del self.cached_credentials[requirement.service] return self.handle_login(cmd, stderr) # Recursive retry - + return False, f"Login failed: {error_msg}" # Auto-Fixer Class # ============================================================================ + class AutoFixer: """Auto-fixes errors based on diagnosis.""" - + def __init__(self, llm_callback: Callable[[str, dict], dict] | None = None): self.diagnoser = ErrorDiagnoser() self.llm_callback = llm_callback # Track all attempted fixes across multiple calls to avoid repeating self._attempted_fixes: dict[str, set[str]] = {} # cmd -> set of fix commands tried self._attempted_strategies: dict[str, set[str]] = {} # cmd -> set of strategies tried - + def _get_fix_key(self, cmd: str) -> str: """Generate a key for tracking fixes for a command.""" # Normalize the command (strip sudo, whitespace) @@ -1995,44 +3207,44 @@ def _get_fix_key(self, cmd: str) -> str: if normalized.startswith("sudo "): normalized = normalized[5:].strip() return normalized - + def _is_fix_attempted(self, original_cmd: str, fix_cmd: str) -> bool: """Check if a fix command has already been attempted for this command.""" key = self._get_fix_key(original_cmd) fix_normalized = fix_cmd.strip() - + if key not in self._attempted_fixes: return False - + return fix_normalized in self._attempted_fixes[key] - + def _mark_fix_attempted(self, original_cmd: str, fix_cmd: str) -> None: """Mark a fix command as attempted.""" key = self._get_fix_key(original_cmd) - + if key not in self._attempted_fixes: self._attempted_fixes[key] = set() - + self._attempted_fixes[key].add(fix_cmd.strip()) - + def _is_strategy_attempted(self, original_cmd: str, strategy: str, error_type: str) -> bool: """Check if a strategy has been attempted for this command/error combination.""" key = f"{self._get_fix_key(original_cmd)}:{error_type}" - + if key not in self._attempted_strategies: return False - + return strategy in self._attempted_strategies[key] - + def _mark_strategy_attempted(self, original_cmd: str, strategy: str, error_type: str) -> None: """Mark a strategy as attempted for this command/error combination.""" key = f"{self._get_fix_key(original_cmd)}:{error_type}" - + if key not in self._attempted_strategies: self._attempted_strategies[key] = set() - + self._attempted_strategies[key].add(strategy) - + def reset_attempts(self, cmd: str | None = None) -> None: """Reset attempted fixes tracking. If cmd is None, reset all.""" if cmd is None: @@ -2046,21 +3258,21 @@ def reset_attempts(self, cmd: str | None = None) -> None: to_delete = [k for k in self._attempted_strategies if k.startswith(key)] for k in to_delete: del self._attempted_strategies[k] - + def _get_llm_fix(self, cmd: str, stderr: str, diagnosis: dict) -> dict | None: """Use LLM to diagnose error and suggest fix commands. - + This is called when pattern matching fails to identify the error. """ if not self.llm_callback: return None - + context = { "error_command": cmd, "error_output": stderr[:1000], # Truncate for LLM context "current_diagnosis": diagnosis, } - + # Create a targeted prompt for error diagnosis prompt = f"""Analyze this Linux command error and provide fix commands. @@ -2081,66 +3293,69 @@ def _get_llm_fix(self, cmd: str, stderr: str, diagnosis: dict) -> dict | None: Example response: {{"fix_commands": ["docker rm -f ollama", "docker run ..."], "reasoning": "Container 'ollama' already exists, removing it first"}}""" - + try: response = self.llm_callback(prompt, context) - + if response and response.get("response_type") != "error": # Check if the response contains fix commands directly if response.get("fix_commands"): return { "fix_commands": response["fix_commands"], - "reasoning": response.get("reasoning", "AI-suggested fix") + "reasoning": response.get("reasoning", "AI-suggested fix"), } - + # Check if it's a do_commands response if response.get("do_commands"): return { "fix_commands": [cmd["command"] for cmd in response["do_commands"]], - "reasoning": response.get("reasoning", "AI-suggested fix") + "reasoning": response.get("reasoning", "AI-suggested fix"), } - + # Try to parse answer as fix suggestion if response.get("answer"): # Extract commands from natural language response answer = response["answer"] commands = [] - for line in answer.split('\n'): + for line in answer.split("\n"): line = line.strip() - if line.startswith('$') or line.startswith('sudo ') or line.startswith('docker '): - commands.append(line.lstrip('$ ')) + if ( + line.startswith("$") + or line.startswith("sudo ") + or line.startswith("docker ") + ): + commands.append(line.lstrip("$ ")) if commands: - return { - "fix_commands": commands, - "reasoning": "Extracted from AI response" - } - + return {"fix_commands": commands, "reasoning": "Extracted from AI response"} + return None - + except Exception as e: console.print(f"[dim] LLM fix generation failed: {e}[/dim]") return None - - def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 120) -> tuple[bool, str, str]: + + def _execute_command( + self, cmd: str, needs_sudo: bool = False, timeout: int = 120 + ) -> tuple[bool, str, str]: """Execute a single command.""" import sys - + try: if needs_sudo and not cmd.strip().startswith("sudo"): cmd = f"sudo {cmd}" - + # Handle comments if cmd.strip().startswith("#"): return True, "", "" - + # For sudo commands, we need to handle the password prompt specially is_sudo = cmd.strip().startswith("sudo") - + if is_sudo: # Flush output before sudo to ensure clean state sys.stdout.flush() sys.stderr.flush() - + result = subprocess.run( cmd, shell=True, @@ -2148,19 +3363,19 @@ def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 12 text=True, timeout=timeout, ) - + if is_sudo: # After sudo, ensure console is in clean state # Print empty line to reset cursor position after potential password prompt - sys.stdout.write('\n') + sys.stdout.write("\n") sys.stdout.flush() - + return result.returncode == 0, result.stdout.strip(), result.stderr.strip() except subprocess.TimeoutExpired: return False, "", f"Command timed out after {timeout} seconds" except Exception as e: return False, "", str(e) - + def auto_fix_error( self, cmd: str, @@ -2170,9 +3385,9 @@ def auto_fix_error( ) -> tuple[bool, str, list[str]]: """ General-purpose auto-fix system with retry logic. - + Tracks attempted fixes to avoid repeating the same fixes. - + Returns: Tuple of (fixed, message, commands_executed) """ @@ -2182,31 +3397,33 @@ def auto_fix_error( attempt = 0 skipped_attempts = 0 max_skips = 3 # Max attempts to skip before giving up - + while attempt < max_attempts and skipped_attempts < max_skips: attempt += 1 error_type = current_diagnosis.get("error_type", "unknown") strategy = current_diagnosis.get("fix_strategy", "") category = current_diagnosis.get("category", "unknown") - + # Check if this strategy was already attempted for this error if self._is_strategy_attempted(cmd, strategy, error_type): - console.print(f"[dim] Skipping already-tried strategy: {strategy} for {error_type}[/dim]") + console.print( + f"[dim] Skipping already-tried strategy: {strategy} for {error_type}[/dim]" + ) skipped_attempts += 1 - + # Try to get a different diagnosis by re-analyzing if current_stderr: # Force a different approach by marking current strategy as exhausted current_diagnosis["fix_strategy"] = "" current_diagnosis["can_auto_fix"] = False continue - + # Mark this strategy as attempted self._mark_strategy_attempted(cmd, strategy, error_type) - + # Check fix commands that would be generated fix_commands = current_diagnosis.get("fix_commands", []) - + # Filter out already-attempted fix commands new_fix_commands = [] for fix_cmd in fix_commands: @@ -2216,144 +3433,171 @@ def auto_fix_error( console.print(f"[dim] Skipping already-executed: {fix_cmd[:50]}...[/dim]") else: new_fix_commands.append(fix_cmd) - + # If all fix commands were already tried, skip this attempt if fix_commands and not new_fix_commands: console.print(f"[dim] All fix commands already tried for {error_type}[/dim]") skipped_attempts += 1 continue - + # Update diagnosis with filtered commands current_diagnosis["fix_commands"] = new_fix_commands - + # Reset skip counter since we found something new to try skipped_attempts = 0 - + severity = current_diagnosis.get("severity", "error") - + # Visual grouping for auto-fix attempts from rich.panel import Panel from rich.text import Text - + fix_title = Text() fix_title.append("๐Ÿ”ง AUTO-FIX ", style="bold yellow") fix_title.append(f"Attempt {attempt}/{max_attempts}", style="dim") - + severity_color = "red" if severity == "critical" else "yellow" fix_content = Text() if severity == "critical": fix_content.append("โš ๏ธ CRITICAL: ", style="bold red") fix_content.append(f"[{category}] ", style="dim") fix_content.append(error_type, style=f"bold {severity_color}") - + console.print() - console.print(Panel( - fix_content, - title=fix_title, - title_align="left", - border_style=severity_color, - padding=(0, 1), - )) - + console.print( + Panel( + fix_content, + title=fix_title, + title_align="left", + border_style=severity_color, + padding=(0, 1), + ) + ) + # Ensure output is flushed before executing fixes import sys + sys.stdout.flush() - + fixed, message, commands = self.apply_single_fix(cmd, current_stderr, current_diagnosis) - + # Mark all executed commands as attempted for exec_cmd in commands: self._mark_fix_attempted(cmd, exec_cmd) all_commands_executed.extend(commands) - + if fixed: # Check if it's just a "use sudo" suggestion if message == "Will retry with sudo": sudo_cmd = f"sudo {cmd}" if not cmd.startswith("sudo") else cmd - + # Check if we already tried sudo if self._is_fix_attempted(cmd, sudo_cmd): - console.print(f"[dim] Already tried sudo, skipping...[/dim]") + console.print("[dim] Already tried sudo, skipping...[/dim]") skipped_attempts += 1 continue - + self._mark_fix_attempted(cmd, sudo_cmd) success, stdout, new_stderr = self._execute_command(sudo_cmd) all_commands_executed.append(sudo_cmd) - + if success: - console.print(Panel( - "[bold green]โœ“ Fixed with sudo[/bold green]", - border_style="green", - padding=(0, 1), - expand=False, - )) - return True, f"Fixed with sudo after {attempt} attempt(s)", all_commands_executed + console.print( + Panel( + "[bold green]โœ“ Fixed with sudo[/bold green]", + border_style="green", + padding=(0, 1), + expand=False, + ) + ) + return ( + True, + f"Fixed with sudo after {attempt} attempt(s)", + all_commands_executed, + ) else: current_stderr = new_stderr current_diagnosis = self.diagnoser.diagnose_error(cmd, new_stderr) continue - + # Verify the original command now works - console.print(Panel( - f"[bold cyan]โœ“ Fix applied:[/bold cyan] {message}\n[dim]Verifying original command...[/dim]", - border_style="cyan", - padding=(0, 1), - expand=False, - )) - + console.print( + Panel( + f"[bold cyan]โœ“ Fix applied:[/bold cyan] {message}\n[dim]Verifying original command...[/dim]", + border_style="cyan", + padding=(0, 1), + expand=False, + ) + ) + verify_cmd = f"sudo {cmd}" if not cmd.startswith("sudo") else cmd success, stdout, new_stderr = self._execute_command(verify_cmd) all_commands_executed.append(verify_cmd) - + if success: - console.print(Panel( - "[bold green]โœ“ Verified![/bold green] Command now succeeds", - border_style="green", - padding=(0, 1), - expand=False, - )) - return True, f"Fixed after {attempt} attempt(s): {message}", all_commands_executed + console.print( + Panel( + "[bold green]โœ“ Verified![/bold green] Command now succeeds", + border_style="green", + padding=(0, 1), + expand=False, + ) + ) + return ( + True, + f"Fixed after {attempt} attempt(s): {message}", + all_commands_executed, + ) else: new_diagnosis = self.diagnoser.diagnose_error(cmd, new_stderr) - + if new_diagnosis["error_type"] == error_type: - console.print(f" [dim yellow]Same error persists, trying different approach...[/dim yellow]") + console.print( + " [dim yellow]Same error persists, trying different approach...[/dim yellow]" + ) else: - console.print(f" [yellow]New error: {new_diagnosis['error_type']}[/yellow]") - + console.print( + f" [yellow]New error: {new_diagnosis['error_type']}[/yellow]" + ) + current_stderr = new_stderr current_diagnosis = new_diagnosis else: console.print(f" [dim red]Fix attempt failed: {message}[/dim red]") - console.print(f" [dim]Trying fallback...[/dim]") - + console.print(" [dim]Trying fallback...[/dim]") + # Try with sudo as fallback sudo_fallback = f"sudo {cmd}" - if not cmd.strip().startswith("sudo") and not self._is_fix_attempted(cmd, sudo_fallback): + if not cmd.strip().startswith("sudo") and not self._is_fix_attempted( + cmd, sudo_fallback + ): self._mark_fix_attempted(cmd, sudo_fallback) success, _, new_stderr = self._execute_command(sudo_fallback) all_commands_executed.append(sudo_fallback) - + if success: - return True, f"Fixed with sudo fallback", all_commands_executed - + return True, "Fixed with sudo fallback", all_commands_executed + current_stderr = new_stderr current_diagnosis = self.diagnoser.diagnose_error(cmd, new_stderr) else: if cmd.strip().startswith("sudo"): - console.print(f"[dim] Already running with sudo, no more fallbacks[/dim]") + console.print("[dim] Already running with sudo, no more fallbacks[/dim]") else: - console.print(f"[dim] Sudo fallback already tried[/dim]") + console.print("[dim] Sudo fallback already tried[/dim]") break - + # Final summary of what was attempted unique_attempts = len(self._attempted_fixes.get(self._get_fix_key(cmd), set())) if unique_attempts > 0: console.print(f"[dim] Total unique fixes attempted: {unique_attempts}[/dim]") - - return False, f"Could not fix after {attempt} attempts ({skipped_attempts} skipped as duplicates)", all_commands_executed - + + return ( + False, + f"Could not fix after {attempt} attempts ({skipped_attempts} skipped as duplicates)", + all_commands_executed, + ) + def apply_single_fix( self, cmd: str, @@ -2367,56 +3611,62 @@ def apply_single_fix( fix_commands = diagnosis.get("fix_commands", []) extracted = diagnosis.get("extracted_info", {}) path = diagnosis.get("extracted_path") - + commands_executed = [] - + # Strategy-based fixes - + # === Use Sudo === - if strategy == "use_sudo" or error_type in ["permission_denied", "operation_not_permitted", "access_denied"]: + if strategy == "use_sudo" or error_type in [ + "permission_denied", + "operation_not_permitted", + "access_denied", + ]: if not cmd.strip().startswith("sudo"): console.print("[dim] Adding sudo...[/dim]") return True, "Will retry with sudo", [] - + # === Create Path === if strategy == "create_path" or error_type == "not_found": missing_path = path or extracted.get("missing_path") - + if missing_path: parent_dir = os.path.dirname(missing_path) - + if parent_dir and not os.path.exists(parent_dir): console.print(f"[dim] Creating directory: {parent_dir}[/dim]") mkdir_cmd = f"sudo mkdir -p {parent_dir}" success, _, mkdir_err = self._execute_command(mkdir_cmd) commands_executed.append(mkdir_cmd) - + if success: return True, f"Created directory {parent_dir}", commands_executed else: return False, f"Failed to create directory: {mkdir_err}", commands_executed - + # === Install Package === if strategy == "install_package" or error_type == "command_not_found": - missing_cmd = extracted.get("missing_command") or self.diagnoser.extract_command_from_error(stderr) + missing_cmd = extracted.get( + "missing_command" + ) or self.diagnoser.extract_command_from_error(stderr) if not missing_cmd: missing_cmd = cmd.split()[0] if cmd.split() else "" - + suggested_pkg = UBUNTU_PACKAGE_MAP.get(missing_cmd, missing_cmd) - + if missing_cmd: console.print(f"[dim] Installing package: {suggested_pkg}[/dim]") - + # Update repos first update_cmd = "sudo apt-get update" self._execute_command(update_cmd) commands_executed.append(update_cmd) - + # Install package install_cmd = f"sudo apt-get install -y {suggested_pkg}" success, _, install_err = self._execute_command(install_cmd) commands_executed.append(install_cmd) - + if success: return True, f"Installed {suggested_pkg}", commands_executed else: @@ -2427,51 +3677,58 @@ def apply_single_fix( commands_executed.append(install_cmd2) if success: return True, f"Installed {missing_cmd}", commands_executed - + return False, f"Failed to install: {install_err[:100]}", commands_executed - + # === Clear Package Lock === - if strategy == "clear_lock" or error_type in ["dpkg_lock", "apt_lock", "could_not_get_lock"]: + if strategy == "clear_lock" or error_type in [ + "dpkg_lock", + "apt_lock", + "could_not_get_lock", + ]: console.print("[dim] Clearing package locks...[/dim]") - + lock_cmds = [ "sudo rm -f /var/lib/dpkg/lock-frontend", "sudo rm -f /var/lib/dpkg/lock", "sudo rm -f /var/cache/apt/archives/lock", "sudo dpkg --configure -a", ] - + for lock_cmd in lock_cmds: self._execute_command(lock_cmd) commands_executed.append(lock_cmd) - + return True, "Cleared package locks", commands_executed - + # === Fix Dependencies === if strategy in ["fix_dependencies", "fix_broken"]: console.print("[dim] Fixing package dependencies...[/dim]") - + fix_cmds = [ "sudo apt-get install -f -y", "sudo dpkg --configure -a", ] - + for fix_cmd in fix_cmds: success, _, _ = self._execute_command(fix_cmd) commands_executed.append(fix_cmd) - + return True, "Attempted dependency fix", commands_executed - + # === Start Service === - if strategy in ["start_service", "check_service"] or error_type in ["service_inactive", "service_not_running"]: + if strategy in ["start_service", "check_service"] or error_type in [ + "service_inactive", + "service_not_running", + ]: service = extracted.get("service") - + if service: console.print(f"[dim] Starting service: {service}[/dim]") start_cmd = f"sudo systemctl start {service}" success, _, start_err = self._execute_command(start_cmd) commands_executed.append(start_cmd) - + if success: return True, f"Started service {service}", commands_executed else: @@ -2482,71 +3739,85 @@ def apply_single_fix( if success: return True, f"Enabled and started {service}", commands_executed return False, f"Failed to start {service}: {start_err[:100]}", commands_executed - + # === Unmask Service === if strategy == "unmask_service" or error_type == "service_masked": service = extracted.get("service") - + if service: console.print(f"[dim] Unmasking service: {service}[/dim]") unmask_cmd = f"sudo systemctl unmask {service}" success, _, _ = self._execute_command(unmask_cmd) commands_executed.append(unmask_cmd) - + if success: start_cmd = f"sudo systemctl start {service}" self._execute_command(start_cmd) commands_executed.append(start_cmd) return True, f"Unmasked and started {service}", commands_executed - + # === Free Disk Space === if strategy == "free_disk" or error_type == "no_space": console.print("[dim] Cleaning up disk space...[/dim]") - + cleanup_cmds = [ "sudo apt-get clean", "sudo apt-get autoremove -y", "sudo journalctl --vacuum-size=100M", ] - + for cleanup_cmd in cleanup_cmds: self._execute_command(cleanup_cmd) commands_executed.append(cleanup_cmd) - + return True, "Freed disk space", commands_executed - + # === Free Memory === - if strategy == "free_memory" or error_type in ["oom", "cannot_allocate", "memory_exhausted"]: + if strategy == "free_memory" or error_type in [ + "oom", + "cannot_allocate", + "memory_exhausted", + ]: console.print("[dim] Freeing memory...[/dim]") - + mem_cmds = [ "sudo sync", "echo 3 | sudo tee /proc/sys/vm/drop_caches", ] - + for mem_cmd in mem_cmds: self._execute_command(mem_cmd) commands_executed.append(mem_cmd) - + return True, "Freed memory caches", commands_executed - + # === Fix Config Syntax (all config error types) === config_error_types = [ - "config_syntax_error", "nginx_config_error", "nginx_syntax_error", - "nginx_unexpected", "nginx_unknown_directive", "nginx_test_failed", - "apache_syntax_error", "apache_config_error", "config_line_error", - "mysql_config_error", "postgres_config_error", "generic_config_syntax", - "invalid_config", "config_parse_error", "syntax_error" + "config_syntax_error", + "nginx_config_error", + "nginx_syntax_error", + "nginx_unexpected", + "nginx_unknown_directive", + "nginx_test_failed", + "apache_syntax_error", + "apache_config_error", + "config_line_error", + "mysql_config_error", + "postgres_config_error", + "generic_config_syntax", + "invalid_config", + "config_parse_error", + "syntax_error", ] - + if error_type in config_error_types or category == "config": config_file = extracted.get("config_file") line_num = extracted.get("line_num") - + # Try to extract config file/line from error if not already done if not config_file: config_file, line_num = self.diagnoser.extract_config_file_and_line(stderr) - + if config_file and line_num: console.print(f"[dim] Config error at {config_file}:{line_num}[/dim]") fixed, msg = self.fix_config_syntax(config_file, line_num, stderr, cmd) @@ -2559,7 +3830,7 @@ def apply_single_fix( if v_success: return True, f"{msg} - nginx config now valid", commands_executed else: - console.print(f"[yellow] Config still has errors[/yellow]") + console.print("[yellow] Config still has errors[/yellow]") # Re-diagnose for next iteration return False, f"{msg} but still has errors", commands_executed return True, msg, commands_executed @@ -2580,17 +3851,21 @@ def apply_single_fix( if fixed: return True, msg, commands_executed return False, "Could not identify config file/line to fix", commands_executed - + # === Network Fixes === if category == "network": - if strategy == "check_dns" or error_type in ["dns_temp_fail", "dns_unknown", "dns_failed"]: + if strategy == "check_dns" or error_type in [ + "dns_temp_fail", + "dns_unknown", + "dns_failed", + ]: console.print("[dim] Restarting DNS resolver...[/dim]") dns_cmd = "sudo systemctl restart systemd-resolved" success, _, _ = self._execute_command(dns_cmd) commands_executed.append(dns_cmd) if success: return True, "Restarted DNS resolver", commands_executed - + if strategy == "find_port_user" or error_type == "address_in_use": port = extracted.get("port") if port: @@ -2600,8 +3875,12 @@ def apply_single_fix( commands_executed.append(lsof_cmd) if stdout: console.print(f"[dim] Process using port: {stdout[:100]}[/dim]") - return False, f"Port {port} is in use - kill the process first", commands_executed - + return ( + False, + f"Port {port} is in use - kill the process first", + commands_executed, + ) + # === Remount Read-Write === if strategy == "remount_rw" or error_type == "readonly_fs": if path: @@ -2614,13 +3893,13 @@ def apply_single_fix( mount_point = check_path break check_path = os.path.dirname(check_path) - + remount_cmd = f"sudo mount -o remount,rw {mount_point}" success, _, remount_err = self._execute_command(remount_cmd) commands_executed.append(remount_cmd) if success: return True, f"Remounted {mount_point} read-write", commands_executed - + # === Fix Symlink Loop === if strategy == "fix_symlink" or error_type == "symlink_loop": if path: @@ -2632,19 +3911,24 @@ def apply_single_fix( commands_executed.append(rm_cmd) if success: return True, f"Removed broken symlink {path}", commands_executed - + # === Wait and Retry === - if strategy == "wait_retry" or error_type in ["resource_unavailable", "text_file_busy", "device_busy"]: + if strategy == "wait_retry" or error_type in [ + "resource_unavailable", + "text_file_busy", + "device_busy", + ]: import time + console.print("[dim] Waiting for resource...[/dim]") time.sleep(2) return True, "Waited 2 seconds", commands_executed - + # === Use xargs for long argument lists === if strategy == "use_xargs" or error_type == "arg_list_too_long": console.print("[dim] Argument list too long - need to use xargs or loop[/dim]") return False, "Use xargs or a loop to process files in batches", commands_executed - + # === Execute provided fix commands === if fix_commands: console.print("[dim] Executing fix commands...[/dim]") @@ -2655,10 +3939,10 @@ def apply_single_fix( commands_executed.append(fix_cmd) if not success and err: console.print(f"[dim] Warning: {fix_cmd} failed: {err[:50]}[/dim]") - + if commands_executed: return True, f"Executed {len(commands_executed)} fix commands", commands_executed - + # === Try LLM-based fix if available === if self.llm_callback and error_type == "unknown": console.print("[dim] Using AI to diagnose error...[/dim]") @@ -2666,35 +3950,37 @@ def apply_single_fix( if llm_fix: fix_commands = llm_fix.get("fix_commands", []) reasoning = llm_fix.get("reasoning", "AI-suggested fix") - + if fix_commands: console.print(f"[cyan] ๐Ÿค– AI diagnosis: {reasoning}[/cyan]") for fix_cmd in fix_commands: if self._is_fix_attempted(cmd, fix_cmd): console.print(f"[dim] Skipping (already tried): {fix_cmd}[/dim]") continue - + console.print(f"[dim] Executing: {fix_cmd}[/dim]") self._mark_fix_attempted(cmd, fix_cmd) - + needs_sudo = fix_cmd.strip().startswith("sudo") or "docker" in fix_cmd - success, stdout, stderr = self._execute_command(fix_cmd, needs_sudo=needs_sudo) + success, stdout, stderr = self._execute_command( + fix_cmd, needs_sudo=needs_sudo + ) commands_executed.append(fix_cmd) - + if success: console.print(f"[green] โœ“ Fixed: {fix_cmd}[/green]") return True, reasoning, commands_executed - + if commands_executed: - return True, f"Executed AI-suggested fixes", commands_executed - + return True, "Executed AI-suggested fixes", commands_executed + # === Fallback: try with sudo === if not cmd.strip().startswith("sudo"): console.print("[dim] Fallback: will try with sudo...[/dim]") return True, "Will retry with sudo", [] - + return False, f"No fix strategy for {error_type}", commands_executed - + def fix_config_syntax( self, config_file: str, @@ -2704,21 +3990,21 @@ def fix_config_syntax( ) -> tuple[bool, str]: """Fix configuration file syntax errors.""" console.print(f"[dim] Analyzing config: {config_file}:{line_num}[/dim]") - + # Read the config file success, config_content, read_err = self._execute_command(f"sudo cat {config_file}") if not success or not config_content: return False, f"Could not read {config_file}: {read_err}" - - lines = config_content.split('\n') + + lines = config_content.split("\n") if line_num > len(lines) or line_num < 1: return False, f"Invalid line number {line_num}" - + problem_line = lines[line_num - 1] console.print(f"[dim] Line {line_num}: {problem_line.strip()[:60]}...[/dim]") - + stderr_lower = stderr.lower() - + # Duplicate entry if "duplicate" in stderr_lower: console.print("[cyan] Commenting out duplicate entry...[/cyan]") @@ -2726,18 +4012,18 @@ def fix_config_syntax( success, _, _ = self._execute_command(fix_cmd) if success: return True, f"Commented out duplicate at line {line_num}" - + # Missing semicolon (for nginx, etc.) if "unexpected" in stderr_lower or "expecting" in stderr_lower: stripped = problem_line.strip() - if stripped and not stripped.endswith((';', '{', '}', ':', ',', '#', ')')): + if stripped and not stripped.endswith((";", "{", "}", ":", ",", "#", ")")): console.print("[cyan] Adding missing semicolon...[/cyan]") - escaped_line = stripped.replace('/', '\\/').replace('&', '\\&') + escaped_line = stripped.replace("/", "\\/").replace("&", "\\&") fix_cmd = f"sudo sed -i '{line_num}s/.*/ {escaped_line};/' {config_file}" success, _, _ = self._execute_command(fix_cmd) if success: return True, f"Added semicolon at line {line_num}" - + # Unknown directive if "unknown" in stderr_lower and ("directive" in stderr_lower or "option" in stderr_lower): console.print("[cyan] Commenting out unknown directive...[/cyan]") @@ -2745,7 +4031,7 @@ def fix_config_syntax( success, _, _ = self._execute_command(fix_cmd) if success: return True, f"Commented out unknown directive at line {line_num}" - + # Invalid value/argument if "invalid" in stderr_lower: console.print("[cyan] Commenting out line with invalid value...[/cyan]") @@ -2753,7 +4039,7 @@ def fix_config_syntax( success, _, _ = self._execute_command(fix_cmd) if success: return True, f"Commented out invalid line at line {line_num}" - + # Unterminated string if "unterminated" in stderr_lower or ("string" in stderr_lower and "quote" in stderr_lower): if problem_line.count('"') % 2 == 1: @@ -2764,18 +4050,18 @@ def fix_config_syntax( return True, f"Added missing quote at line {line_num}" elif problem_line.count("'") % 2 == 1: console.print("[cyan] Adding missing single quote...[/cyan]") - fix_cmd = f"sudo sed -i \"{line_num}s/$/'/\" {config_file}" + fix_cmd = f'sudo sed -i "{line_num}s/$/\'/" {config_file}' success, _, _ = self._execute_command(fix_cmd) if success: return True, f"Added missing quote at line {line_num}" - + # Fallback: comment out problematic line console.print("[cyan] Fallback: commenting out problematic line...[/cyan]") fix_cmd = f"sudo sed -i '{line_num}s/^/# ERROR: /' {config_file}" success, _, _ = self._execute_command(fix_cmd) if success: return True, f"Commented out problematic line {line_num}" - + return False, "Could not identify a fix for this config error" @@ -2783,6 +4069,7 @@ def fix_config_syntax( # Utility Functions # ============================================================================ + def get_error_category(error_type: str) -> str: """Get the category for an error type.""" for pattern in ALL_ERROR_PATTERNS: diff --git a/cortex/do_runner/diagnosis_v2.py b/cortex/do_runner/diagnosis_v2.py index 9cb0bdb40..b3ad5635b 100644 --- a/cortex/do_runner/diagnosis_v2.py +++ b/cortex/do_runner/diagnosis_v2.py @@ -17,9 +17,10 @@ import re import subprocess import time +from collections.abc import Callable from dataclasses import dataclass, field from enum import Enum -from typing import Any, Callable +from typing import Any from rich.console import Console from rich.panel import Panel @@ -33,9 +34,10 @@ # ERROR CATEGORIES # ============================================================================= + class ErrorCategory(str, Enum): """Broad categories of errors that can occur during command execution.""" - + # File & Directory Errors (LOCAL) FILE_NOT_FOUND = "file_not_found" FILE_EXISTS = "file_exists" @@ -43,59 +45,59 @@ class ErrorCategory(str, Enum): PERMISSION_DENIED_LOCAL = "permission_denied_local" # Local file/dir permission READ_ONLY_FILESYSTEM = "read_only_filesystem" DISK_FULL = "disk_full" - + # URL/Link Permission Errors (REMOTE) PERMISSION_DENIED_URL = "permission_denied_url" # URL/API permission ACCESS_DENIED_REGISTRY = "access_denied_registry" # Container registry ACCESS_DENIED_REPO = "access_denied_repo" # Git/package repo ACCESS_DENIED_API = "access_denied_api" # API endpoint - + # Authentication & Login Errors LOGIN_REQUIRED = "login_required" AUTH_FAILED = "auth_failed" TOKEN_EXPIRED = "token_expired" INVALID_CREDENTIALS = "invalid_credentials" - + # Legacy - for backward compatibility PERMISSION_DENIED = "permission_denied" # Will be resolved to LOCAL or URL - + # Package & Resource Errors PACKAGE_NOT_FOUND = "package_not_found" IMAGE_NOT_FOUND = "image_not_found" RESOURCE_NOT_FOUND = "resource_not_found" DEPENDENCY_MISSING = "dependency_missing" VERSION_CONFLICT = "version_conflict" - + # Command Errors COMMAND_NOT_FOUND = "command_not_found" SYNTAX_ERROR = "syntax_error" INVALID_ARGUMENT = "invalid_argument" MISSING_ARGUMENT = "missing_argument" DEPRECATED_SYNTAX = "deprecated_syntax" - + # Service & Process Errors SERVICE_NOT_RUNNING = "service_not_running" SERVICE_FAILED = "service_failed" PORT_IN_USE = "port_in_use" PROCESS_KILLED = "process_killed" TIMEOUT = "timeout" - + # Network Errors NETWORK_UNREACHABLE = "network_unreachable" CONNECTION_REFUSED = "connection_refused" DNS_FAILED = "dns_failed" SSL_ERROR = "ssl_error" - + # Configuration Errors CONFIG_SYNTAX_ERROR = "config_syntax_error" CONFIG_INVALID_VALUE = "config_invalid_value" CONFIG_MISSING_KEY = "config_missing_key" - + # Resource Errors OUT_OF_MEMORY = "out_of_memory" CPU_LIMIT = "cpu_limit" QUOTA_EXCEEDED = "quota_exceeded" - + # Unknown UNKNOWN = "unknown" @@ -127,14 +129,12 @@ class ErrorCategory(str, Enum): (r"Operation not permitted.*(/[^\s:]+)", "path"), (r"EACCES.*(/[^\s]+)", "path"), ], - # URL/Link permission denied (registries, APIs, repos) ErrorCategory.PERMISSION_DENIED_URL: [ (r"403 Forbidden.*https?://([^\s/]+)", "host"), (r"401 Unauthorized.*https?://([^\s/]+)", "host"), (r"Access denied.*https?://([^\s/]+)", "host"), ], - ErrorCategory.ACCESS_DENIED_REGISTRY: [ (r"denied: requested access to the resource is denied", "registry"), (r"pull access denied", "registry"), # Higher priority pattern @@ -144,7 +144,6 @@ class ErrorCategory(str, Enum): (r"UNAUTHORIZED.*registry", "registry"), (r"unauthorized to access repository", "registry"), ], - ErrorCategory.ACCESS_DENIED_REPO: [ (r"Repository not found.*https?://([^\s]+)", "repo"), (r"fatal: could not read from remote repository", "repo"), @@ -152,7 +151,6 @@ class ErrorCategory(str, Enum): (r"Host key verification failed", "host"), (r"remote: Permission to ([^\s]+) denied", "repo"), ], - ErrorCategory.ACCESS_DENIED_API: [ (r"API.*access denied", "api"), (r"AccessDenied.*Access denied", "api"), # AWS-style error @@ -161,7 +159,6 @@ class ErrorCategory(str, Enum): (r"An error occurred \(AccessDenied\)", "api"), # AWS CLI error (r"not authorized to perform", "api"), ], - # Legacy pattern for generic permission denied ErrorCategory.PERMISSION_DENIED: [ (r"Permission denied", "resource"), @@ -176,7 +173,6 @@ class ErrorCategory(str, Enum): (r"No space left on device", "device"), (r"Disk quota exceeded", "quota"), ], - # Authentication & Login ErrorCategory.LOGIN_REQUIRED: [ (r"Login required", "service"), @@ -202,7 +198,6 @@ class ErrorCategory(str, Enum): (r"bad credentials", "type"), (r"incorrect password", "auth"), ], - # Package & Resource ErrorCategory.PACKAGE_NOT_FOUND: [ (r"Unable to locate package ([^\s]+)", "package"), @@ -237,7 +232,6 @@ class ErrorCategory(str, Enum): (r"incompatible version", "version"), (r"requires.*but ([^\s]+) is installed", "conflict"), ], - # Command Errors ErrorCategory.COMMAND_NOT_FOUND: [ (r"command not found", "command"), @@ -269,7 +263,6 @@ class ErrorCategory(str, Enum): (r"obsolete", "feature"), (r"use.*instead", "replacement"), ], - # Service & Process ErrorCategory.SERVICE_NOT_RUNNING: [ (r"is not running", "service"), @@ -302,7 +295,6 @@ class ErrorCategory(str, Enum): (r"timeout", "operation"), (r"deadline exceeded", "operation"), ], - # Network ErrorCategory.NETWORK_UNREACHABLE: [ (r"Network is unreachable", "network"), @@ -324,7 +316,6 @@ class ErrorCategory(str, Enum): (r"certificate.*error", "certificate"), (r"CERT_", "certificate"), ], - # Configuration ErrorCategory.CONFIG_SYNTAX_ERROR: [ (r"configuration.*syntax.*error", "config"), @@ -343,7 +334,6 @@ class ErrorCategory(str, Enum): (r"required.*not set", "key"), (r"undefined variable", "variable"), ], - # Resource ErrorCategory.OUT_OF_MEMORY: [ (r"Out of memory", "memory"), @@ -363,9 +353,11 @@ class ErrorCategory(str, Enum): # DATA STRUCTURES # ============================================================================= + @dataclass class DiagnosisResult: """Result of error diagnosis (Step 1).""" + category: ErrorCategory error_message: str extracted_info: dict[str, str] = field(default_factory=dict) @@ -376,24 +368,26 @@ class DiagnosisResult: @dataclass class FixCommand: """A single fix command with variable placeholders.""" + command_template: str # Command with {variable} placeholders purpose: str variables: list[str] = field(default_factory=list) # Variable names found requires_sudo: bool = False - + def __post_init__(self): # Extract variables from template - self.variables = re.findall(r'\{(\w+)\}', self.command_template) + self.variables = re.findall(r"\{(\w+)\}", self.command_template) -@dataclass +@dataclass class FixPlan: """Plan for fixing an error (Step 2 output).""" + category: ErrorCategory commands: list[FixCommand] reasoning: str all_variables: set[str] = field(default_factory=set) - + def __post_init__(self): # Collect all unique variables for cmd in self.commands: @@ -403,6 +397,7 @@ def __post_init__(self): @dataclass class VariableResolution: """Resolution for a variable (Step 3).""" + name: str value: str source: str # "query", "llm", "system_info", "default" @@ -411,6 +406,7 @@ class VariableResolution: @dataclass class ExecutionResult: """Result of executing a fix command (Step 4).""" + command: str success: bool stdout: str @@ -421,6 +417,7 @@ class ExecutionResult: @dataclass class ErrorStackEntry: """Entry in the error stack for tracking.""" + original_command: str intent: str error: str @@ -434,10 +431,11 @@ class ErrorStackEntry: # DIAGNOSIS ENGINE # ============================================================================= + class DiagnosisEngine: """ Main diagnosis engine implementing the structured error resolution flow. - + Flow: 1. Categorize error type 2. LLM generates fix commands with variables @@ -446,10 +444,10 @@ class DiagnosisEngine: 5. If error, push to stack and repeat 6. Test original command """ - + MAX_FIX_ATTEMPTS = 5 MAX_STACK_DEPTH = 10 - + # Known URL/remote service patterns in commands URL_COMMAND_PATTERNS = [ r"docker\s+(pull|push|login)", @@ -465,7 +463,7 @@ class DiagnosisEngine: r"az\s+", # Azure CLI r"gh\s+", # GitHub CLI ] - + # Known registries and their authentication services KNOWN_SERVICES = { "ghcr.io": "ghcr", @@ -479,7 +477,7 @@ class DiagnosisEngine: "amazonaws.com": "aws", "gcr.io": "gcloud", } - + def __init__( self, api_key: str | None = None, @@ -487,53 +485,58 @@ def __init__( model: str | None = None, debug: bool = False, ): - self.api_key = api_key or os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("OPENAI_API_KEY") + self.api_key = ( + api_key or os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("OPENAI_API_KEY") + ) self.provider = provider.lower() self.model = model or self._default_model() self.debug = debug - + # Error stack for tracking command errors self.error_stack: list[ErrorStackEntry] = [] - + # Resolution cache to avoid re-resolving same variables self.variable_cache: dict[str, str] = {} - + # Execution history for logging self.execution_history: list[dict[str, Any]] = [] - + # Initialize LoginHandler for credential management self._login_handler = None try: from cortex.do_runner.diagnosis import LoginHandler + self._login_handler = LoginHandler() except ImportError: pass - + self._initialize_client() - + def _default_model(self) -> str: if self.provider == "openai": return "gpt-4o" elif self.provider == "claude": return "claude-sonnet-4-20250514" return "gpt-4o" - + def _initialize_client(self): """Initialize the LLM client.""" if not self.api_key: console.print("[yellow]โš  No API key found - LLM features disabled[/yellow]") self.client = None return - + if self.provider == "openai": try: from openai import OpenAI + self.client = OpenAI(api_key=self.api_key) except ImportError: self.client = None elif self.provider == "claude": try: from anthropic import Anthropic + self.client = Anthropic(api_key=self.api_key) except ImportError: self.client = None @@ -543,20 +546,21 @@ def _initialize_client(self): # ========================================================================= # PERMISSION TYPE DETECTION # ========================================================================= - - def _is_url_based_permission_error(self, command: str, stderr: str) -> tuple[bool, str | None, str | None]: + + def _is_url_based_permission_error( + self, command: str, stderr: str + ) -> tuple[bool, str | None, str | None]: """ Determine if permission denied is for a local file/dir or a URL/link. - + Returns: Tuple of (is_url_based, service_name, url_or_host) """ # Check if command involves known remote operations is_remote_command = any( - re.search(pattern, command, re.IGNORECASE) - for pattern in self.URL_COMMAND_PATTERNS + re.search(pattern, command, re.IGNORECASE) for pattern in self.URL_COMMAND_PATTERNS ) - + # Check stderr for URL patterns url_patterns = [ r"https?://([^\s/]+)", @@ -564,14 +568,14 @@ def _is_url_based_permission_error(self, command: str, stderr: str) -> tuple[boo r"registry[.\s]", r"(ghcr\.io|docker\.io|gcr\.io|quay\.io)", ] - + found_host = None for pattern in url_patterns: match = re.search(pattern, stderr, re.IGNORECASE) if match: found_host = match.group(1) if match.groups() else match.group(0) break - + # Also check command for URLs/hosts if not found_host: for pattern in url_patterns: @@ -579,7 +583,7 @@ def _is_url_based_permission_error(self, command: str, stderr: str) -> tuple[boo if match: found_host = match.group(1) if match.groups() else match.group(0) break - + # Determine service service = None if found_host: @@ -587,7 +591,7 @@ def _is_url_based_permission_error(self, command: str, stderr: str) -> tuple[boo if host_pattern in found_host.lower(): service = svc break - + # Detect service from command if not found from host if not service: if "git " in command.lower(): @@ -602,7 +606,7 @@ def _is_url_based_permission_error(self, command: str, stderr: str) -> tuple[boo service = "docker" elif "npm " in command.lower(): service = "npm" - + # Git-specific patterns git_remote_patterns = [ "remote:" in stderr.lower(), @@ -611,37 +615,44 @@ def _is_url_based_permission_error(self, command: str, stderr: str) -> tuple[boo "could not read from remote repository" in stderr.lower(), "fatal: authentication failed" in stderr.lower(), ] - + # AWS-specific patterns aws_patterns = [ "accessdenied" in stderr.lower().replace(" ", ""), "an error occurred" in stderr.lower() and "denied" in stderr.lower(), "not authorized" in stderr.lower(), ] - + # If it's a remote command with a host or URL-based error patterns - is_url_based = bool(is_remote_command and found_host) or any([ - "401" in stderr, - "403" in stderr, - "unauthorized" in stderr.lower(), - "authentication required" in stderr.lower(), - "login required" in stderr.lower(), - "access denied" in stderr.lower() and found_host, - "pull access denied" in stderr.lower(), - "denied: requested access" in stderr.lower(), - ]) or any(git_remote_patterns) or any(aws_patterns) - + is_url_based = ( + bool(is_remote_command and found_host) + or any( + [ + "401" in stderr, + "403" in stderr, + "unauthorized" in stderr.lower(), + "authentication required" in stderr.lower(), + "login required" in stderr.lower(), + "access denied" in stderr.lower() and found_host, + "pull access denied" in stderr.lower(), + "denied: requested access" in stderr.lower(), + ] + ) + or any(git_remote_patterns) + or any(aws_patterns) + ) + if is_url_based: - console.print(f"[cyan] ๐ŸŒ Detected URL-based permission error[/cyan]") + console.print("[cyan] ๐ŸŒ Detected URL-based permission error[/cyan]") console.print(f"[dim] Host: {found_host or 'unknown'}[/dim]") console.print(f"[dim] Service: {service or 'unknown'}[/dim]") - + return is_url_based, service, found_host - + def _is_local_file_permission_error(self, command: str, stderr: str) -> tuple[bool, str | None]: """ Check if permission error is for a local file/directory. - + Returns: Tuple of (is_local_file, file_path) """ @@ -655,41 +666,41 @@ def _is_local_file_permission_error(self, command: str, stderr: str) -> tuple[bo r"failed to open '([^']+)'", r"open\(\) \"([^\"]+)\" failed", ] - + for pattern in local_patterns: match = re.search(pattern, stderr, re.IGNORECASE) if match: path = match.group(1) # Verify it's a local path (starts with / or ./) if path.startswith("/") or path.startswith("./"): - console.print(f"[cyan] ๐Ÿ“ Detected local file permission error[/cyan]") + console.print("[cyan] ๐Ÿ“ Detected local file permission error[/cyan]") console.print(f"[dim] Path: {path}[/dim]") return True, path - + # Check command for local paths being accessed path_match = re.search(r"(/[^\s]+)", command) if path_match and "permission denied" in stderr.lower(): path = path_match.group(1) - console.print(f"[cyan] ๐Ÿ“ Detected local file permission error (from command)[/cyan]") + console.print("[cyan] ๐Ÿ“ Detected local file permission error (from command)[/cyan]") console.print(f"[dim] Path: {path}[/dim]") return True, path - + return False, None - + def _resolve_permission_error_type( - self, - command: str, + self, + command: str, stderr: str, current_category: ErrorCategory, ) -> tuple[ErrorCategory, dict[str, str]]: """ Resolve generic PERMISSION_DENIED to specific LOCAL or URL category. - + Returns: Tuple of (refined_category, additional_info) """ additional_info = {} - + # Only process if it's a generic permission error permission_categories = [ ErrorCategory.PERMISSION_DENIED, @@ -700,16 +711,16 @@ def _resolve_permission_error_type( ErrorCategory.ACCESS_DENIED_API, ErrorCategory.AUTH_FAILED, ] - + if current_category not in permission_categories: return current_category, additional_info - + # Check URL-based first (more specific) is_url, service, host = self._is_url_based_permission_error(command, stderr) if is_url: additional_info["service"] = service or "unknown" additional_info["host"] = host or "unknown" - + # Determine more specific category if "registry" in stderr.lower() or service in ["docker", "ghcr", "gcloud"]: return ErrorCategory.ACCESS_DENIED_REGISTRY, additional_info @@ -718,60 +729,64 @@ def _resolve_permission_error_type( elif "api" in stderr.lower() or service in ["aws", "gcloud", "azure"]: # AWS, GCloud, Azure are API-based services return ErrorCategory.ACCESS_DENIED_API, additional_info - elif "aws " in command.lower() or "az " in command.lower() or "gcloud " in command.lower(): + elif ( + "aws " in command.lower() + or "az " in command.lower() + or "gcloud " in command.lower() + ): # Cloud CLI commands are API-based return ErrorCategory.ACCESS_DENIED_API, additional_info else: return ErrorCategory.PERMISSION_DENIED_URL, additional_info - + # Check local file is_local, path = self._is_local_file_permission_error(command, stderr) if is_local: additional_info["path"] = path or "" return ErrorCategory.PERMISSION_DENIED_LOCAL, additional_info - + # Default to local for generic permission denied return ErrorCategory.PERMISSION_DENIED_LOCAL, additional_info # ========================================================================= # STEP 1: Categorize Error # ========================================================================= - + def categorize_error(self, command: str, stderr: str, stdout: str = "") -> DiagnosisResult: """ Step 1: Categorize the error type. - + Examines stderr (and stdout) to determine the broad category of error. For permission errors, distinguishes between local file/dir and URL/link. """ self._log_step(1, "Categorizing error type") - + combined_output = f"{stderr}\n{stdout}".lower() - + best_match: tuple[ErrorCategory, dict[str, str], float] | None = None - + for category, patterns in ERROR_PATTERNS.items(): for pattern, info_key in patterns: match = re.search(pattern, stderr, re.IGNORECASE) if match: extracted_info = {info_key: match.group(1) if match.groups() else ""} - + # Calculate confidence based on pattern specificity confidence = len(pattern) / 50.0 # Longer patterns = more specific confidence = min(confidence, 1.0) - + if best_match is None or confidence > best_match[2]: best_match = (category, extracted_info, confidence) - + if best_match: category, extracted_info, confidence = best_match - + # Refine permission errors to LOCAL or URL refined_category, additional_info = self._resolve_permission_error_type( command, stderr, category ) extracted_info.update(additional_info) - + result = DiagnosisResult( category=refined_category, error_message=stderr[:500], @@ -786,34 +801,29 @@ def categorize_error(self, command: str, stderr: str, stdout: str = "") -> Diagn confidence=0.0, raw_stderr=stderr, ) - + self._print_diagnosis(result, command) return result # ========================================================================= # STEP 2: Generate Fix Plan via LLM # ========================================================================= - - def generate_fix_plan( - self, - command: str, - intent: str, - diagnosis: DiagnosisResult - ) -> FixPlan: + + def generate_fix_plan(self, command: str, intent: str, diagnosis: DiagnosisResult) -> FixPlan: """ Step 2: LLM generates fix commands with variable placeholders. - + Context given: command, intent, error, category Output: List of commands with {variable} placeholders """ self._log_step(2, "Generating fix plan via LLM") - + if not self.client: # Fallback to rule-based fix generation return self._generate_fallback_fix_plan(command, intent, diagnosis) - + system_prompt = self._get_fix_generation_prompt() - + user_prompt = f"""Generate fix commands for this error: **Command:** `{command}` @@ -838,35 +848,37 @@ def generate_fix_plan( try: response = self._call_llm(system_prompt, user_prompt) - + # Parse response - json_match = re.search(r'\{[\s\S]*\}', response) + json_match = re.search(r"\{[\s\S]*\}", response) if json_match: data = json.loads(json_match.group()) - + commands = [] for cmd_data in data.get("commands", []): - commands.append(FixCommand( - command_template=cmd_data.get("command", ""), - purpose=cmd_data.get("purpose", ""), - requires_sudo=cmd_data.get("requires_sudo", False), - )) - + commands.append( + FixCommand( + command_template=cmd_data.get("command", ""), + purpose=cmd_data.get("purpose", ""), + requires_sudo=cmd_data.get("requires_sudo", False), + ) + ) + plan = FixPlan( category=diagnosis.category, commands=commands, reasoning=data.get("reasoning", ""), ) - + self._print_fix_plan(plan) return plan - + except Exception as e: console.print(f"[yellow]โš  LLM fix generation failed: {e}[/yellow]") - + # Fallback return self._generate_fallback_fix_plan(command, intent, diagnosis) - + def _get_fix_generation_prompt(self) -> str: return """You are a Linux system error diagnosis expert. Generate shell commands to fix errors. @@ -909,28 +921,27 @@ def _get_fix_generation_prompt(self) -> str: }""" def _generate_fallback_fix_plan( - self, - command: str, - intent: str, - diagnosis: DiagnosisResult + self, command: str, intent: str, diagnosis: DiagnosisResult ) -> FixPlan: """Generate a fix plan using rules when LLM is unavailable.""" commands: list[FixCommand] = [] reasoning = f"Rule-based fix for {diagnosis.category.value}" - + category = diagnosis.category info = diagnosis.extracted_info - + # LOCAL permission denied - use sudo if category == ErrorCategory.PERMISSION_DENIED_LOCAL: path = info.get("path", "") - reasoning = f"Local file/directory permission denied - using elevated privileges" - commands.append(FixCommand( - command_template=f"sudo {command}", - purpose=f"Retry with elevated privileges for local path{' ' + path if path else ''}", - requires_sudo=True, - )) - + reasoning = "Local file/directory permission denied - using elevated privileges" + commands.append( + FixCommand( + command_template=f"sudo {command}", + purpose=f"Retry with elevated privileges for local path{' ' + path if path else ''}", + requires_sudo=True, + ) + ) + # URL-based permission - handle login elif category in [ ErrorCategory.PERMISSION_DENIED_URL, @@ -941,178 +952,210 @@ def _generate_fallback_fix_plan( service = info.get("service", "unknown") host = info.get("host", "unknown") reasoning = f"URL/remote access denied - requires authentication to {service or host}" - + # Generate login command based on service if service == "docker" or service == "ghcr" or "registry" in category.value: registry = host if host != "unknown" else "{registry}" - commands.extend([ - FixCommand( - command_template=f"docker login {registry}", - purpose=f"Login to container registry {registry}", - ), - FixCommand( - command_template=command, - purpose="Retry original command after login", - ), - ]) + commands.extend( + [ + FixCommand( + command_template=f"docker login {registry}", + purpose=f"Login to container registry {registry}", + ), + FixCommand( + command_template=command, + purpose="Retry original command after login", + ), + ] + ) elif service == "git_https" or "repo" in category.value: - commands.extend([ - FixCommand( - command_template="git config --global credential.helper store", - purpose="Enable credential storage for git", - ), - FixCommand( - command_template=command, - purpose="Retry original command (will prompt for credentials)", - ), - ]) + commands.extend( + [ + FixCommand( + command_template="git config --global credential.helper store", + purpose="Enable credential storage for git", + ), + FixCommand( + command_template=command, + purpose="Retry original command (will prompt for credentials)", + ), + ] + ) elif service == "npm": - commands.extend([ - FixCommand( - command_template="npm login", - purpose="Login to npm registry", - ), - FixCommand( - command_template=command, - purpose="Retry original command after login", - ), - ]) + commands.extend( + [ + FixCommand( + command_template="npm login", + purpose="Login to npm registry", + ), + FixCommand( + command_template=command, + purpose="Retry original command after login", + ), + ] + ) elif service == "aws": - commands.extend([ + commands.extend( + [ + FixCommand( + command_template="aws configure", + purpose="Configure AWS credentials", + ), + FixCommand( + command_template=command, + purpose="Retry original command after configuration", + ), + ] + ) + else: + # Generic login placeholder + commands.append( FixCommand( - command_template="aws configure", - purpose="Configure AWS credentials", - ), + command_template="{login_command}", + purpose=f"Login to {service or host}", + ) + ) + commands.append( FixCommand( command_template=command, - purpose="Retry original command after configuration", - ), - ]) - else: - # Generic login placeholder - commands.append(FixCommand( - command_template="{login_command}", - purpose=f"Login to {service or host}", - )) - commands.append(FixCommand( - command_template=command, - purpose="Retry original command after login", - )) - + purpose="Retry original command after login", + ) + ) + # Legacy generic permission denied - try to determine type elif category == ErrorCategory.PERMISSION_DENIED: - commands.append(FixCommand( - command_template=f"sudo {command}", - purpose="Retry with elevated privileges", - requires_sudo=True, - )) - + commands.append( + FixCommand( + command_template=f"sudo {command}", + purpose="Retry with elevated privileges", + requires_sudo=True, + ) + ) + elif category == ErrorCategory.FILE_NOT_FOUND: file_path = info.get("file", "{file_path}") - commands.append(FixCommand( - command_template=f"touch {file_path}", - purpose=f"Create missing file", - )) - + commands.append( + FixCommand( + command_template=f"touch {file_path}", + purpose="Create missing file", + ) + ) + elif category == ErrorCategory.DIRECTORY_NOT_FOUND: dir_path = info.get("directory", info.get("parent_directory", "{dir_path}")) - commands.append(FixCommand( - command_template=f"mkdir -p {dir_path}", - purpose="Create missing directory", - )) - + commands.append( + FixCommand( + command_template=f"mkdir -p {dir_path}", + purpose="Create missing directory", + ) + ) + elif category == ErrorCategory.COMMAND_NOT_FOUND: # Try to guess package from command cmd_name = command.split()[0] if command else "{package}" - commands.append(FixCommand( - command_template=f"sudo apt install -y {{package}}", - purpose=f"Install package providing the command", - requires_sudo=True, - )) - + commands.append( + FixCommand( + command_template="sudo apt install -y {package}", + purpose="Install package providing the command", + requires_sudo=True, + ) + ) + elif category == ErrorCategory.SERVICE_NOT_RUNNING: service = info.get("service", "{service}") - commands.append(FixCommand( - command_template=f"sudo systemctl start {service}", - purpose="Start the service", - requires_sudo=True, - )) - + commands.append( + FixCommand( + command_template=f"sudo systemctl start {service}", + purpose="Start the service", + requires_sudo=True, + ) + ) + elif category == ErrorCategory.LOGIN_REQUIRED: service = info.get("service", "{service}") - commands.append(FixCommand( - command_template="{login_command}", - purpose=f"Login to {service}", - )) - + commands.append( + FixCommand( + command_template="{login_command}", + purpose=f"Login to {service}", + ) + ) + elif category == ErrorCategory.PACKAGE_NOT_FOUND: package = info.get("package", "{package}") - commands.extend([ - FixCommand( - command_template="sudo apt update", - purpose="Update package lists", - requires_sudo=True, - ), - FixCommand( - command_template=f"sudo apt install -y {package}", - purpose=f"Install the package", - requires_sudo=True, - ), - ]) - + commands.extend( + [ + FixCommand( + command_template="sudo apt update", + purpose="Update package lists", + requires_sudo=True, + ), + FixCommand( + command_template=f"sudo apt install -y {package}", + purpose="Install the package", + requires_sudo=True, + ), + ] + ) + elif category == ErrorCategory.PORT_IN_USE: port = info.get("port", "{port}") - commands.extend([ - FixCommand( - command_template=f"sudo lsof -i :{port}", - purpose="Find process using the port", - requires_sudo=True, - ), - FixCommand( - command_template="sudo kill -9 {pid}", - purpose="Kill the process using the port", - requires_sudo=True, - ), - ]) - + commands.extend( + [ + FixCommand( + command_template=f"sudo lsof -i :{port}", + purpose="Find process using the port", + requires_sudo=True, + ), + FixCommand( + command_template="sudo kill -9 {pid}", + purpose="Kill the process using the port", + requires_sudo=True, + ), + ] + ) + elif category == ErrorCategory.CONFIG_SYNTAX_ERROR: config_file = info.get("config", info.get("nginx_config", "{config_file}")) - commands.extend([ - FixCommand( - command_template=f"cat -n {config_file}", - purpose="Show config file with line numbers", - ), - FixCommand( - command_template=f"sudo nano {config_file}", - purpose="Edit config file to fix syntax", - requires_sudo=True, - ), - ]) - + commands.extend( + [ + FixCommand( + command_template=f"cat -n {config_file}", + purpose="Show config file with line numbers", + ), + FixCommand( + command_template=f"sudo nano {config_file}", + purpose="Edit config file to fix syntax", + requires_sudo=True, + ), + ] + ) + else: # Generic retry with sudo - commands.append(FixCommand( - command_template=f"sudo {command}", - purpose="Retry with elevated privileges", - requires_sudo=True, - )) - + commands.append( + FixCommand( + command_template=f"sudo {command}", + purpose="Retry with elevated privileges", + requires_sudo=True, + ) + ) + plan = FixPlan( category=diagnosis.category, commands=commands, reasoning=reasoning, ) - + self._print_fix_plan(plan) return plan # ========================================================================= # STEP 3: Resolve Variables # ========================================================================= - + def resolve_variables( - self, - fix_plan: FixPlan, + self, + fix_plan: FixPlan, original_query: str, command: str, diagnosis: DiagnosisResult, @@ -1124,66 +1167,67 @@ def resolve_variables( 3. system_info_command_generator """ self._log_step(3, "Resolving variables") - + if not fix_plan.all_variables: console.print("[dim] No variables to resolve[/dim]") return {} - + console.print(f"[cyan] Variables to resolve: {', '.join(fix_plan.all_variables)}[/cyan]") - + resolved: dict[str, str] = {} - + for var_name in fix_plan.all_variables: # Check cache first if var_name in self.variable_cache: resolved[var_name] = self.variable_cache[var_name] console.print(f"[dim] {var_name}: {resolved[var_name]} (cached)[/dim]") continue - + # Try extraction from diagnosis info value = self._try_extract_from_diagnosis(var_name, diagnosis) if value: resolved[var_name] = value console.print(f"[green] โœ“ {var_name}: {value} (from error)[/green]") continue - + # Try extraction from query value = self._try_extract_from_query(var_name, original_query) if value: resolved[var_name] = value console.print(f"[green] โœ“ {var_name}: {value} (from query)[/green]") continue - + # Try system_info_command_generator value = self._try_system_info(var_name, command, diagnosis) if value: resolved[var_name] = value console.print(f"[green] โœ“ {var_name}: {value} (from system)[/green]") continue - + # Fall back to LLM value = self._try_llm_resolution(var_name, original_query, command, diagnosis) if value: resolved[var_name] = value console.print(f"[green] โœ“ {var_name}: {value} (from LLM)[/green]") continue - + # Prompt user as last resort console.print(f"[yellow] โš  Could not resolve {var_name}[/yellow]") try: from rich.prompt import Prompt + value = Prompt.ask(f" Enter value for {var_name}") if value: resolved[var_name] = value console.print(f"[green] โœ“ {var_name}: {value} (from user)[/green]") except Exception: pass - + # Update cache self.variable_cache.update(resolved) - + return resolved - + def _try_extract_from_diagnosis(self, var_name: str, diagnosis: DiagnosisResult) -> str | None: """Try to extract variable from diagnosis extracted_info.""" # Map variable names to diagnosis info keys @@ -1197,14 +1241,14 @@ def _try_extract_from_diagnosis(self, var_name: str, diagnosis: DiagnosisResult) "user": ["user"], "image": ["image", "repository"], } - + keys_to_check = mappings.get(var_name, [var_name]) for key in keys_to_check: if key in diagnosis.extracted_info and diagnosis.extracted_info[key]: return diagnosis.extracted_info[key] - + return None - + def _try_extract_from_query(self, var_name: str, query: str) -> str | None: """Try to extract variable from the original query.""" # Pattern-based extraction from query @@ -1216,27 +1260,29 @@ def _try_extract_from_query(self, var_name: str, query: str) -> str | None: "port": [r"port\s+(\d+)", r":(\d{2,5})"], "image": [r"image\s+([^\s]+)", r"docker.*\s+([^\s]+:[^\s]*)"], } - + if var_name in patterns: for pattern in patterns[var_name]: match = re.search(pattern, query, re.IGNORECASE) if match: return match.group(1) - + return None - - def _try_system_info(self, var_name: str, command: str, diagnosis: DiagnosisResult) -> str | None: + + def _try_system_info( + self, var_name: str, command: str, diagnosis: DiagnosisResult + ) -> str | None: """Use system_info_command_generator to get variable value.""" try: from cortex.system_info_generator import SystemInfoGenerator - + # System info commands for different variable types system_queries = { "user": "whoami", "home_dir": "echo $HOME", "current_dir": "pwd", } - + if var_name in system_queries: result = subprocess.run( system_queries[var_name], @@ -1247,7 +1293,7 @@ def _try_system_info(self, var_name: str, command: str, diagnosis: DiagnosisResu ) if result.returncode == 0 and result.stdout.strip(): return result.stdout.strip() - + # For package commands, try to find the package if var_name == "package": cmd_name = command.split()[0] if command else "" @@ -1268,7 +1314,7 @@ def _try_system_info(self, var_name: str, command: str, diagnosis: DiagnosisResu } if cmd_name in package_map: return package_map[cmd_name] - + # Try apt-file search if available result = subprocess.run( f"apt-file search --regexp 'bin/{cmd_name}$' 2>/dev/null | head -1 | cut -d: -f1", @@ -1279,31 +1325,31 @@ def _try_system_info(self, var_name: str, command: str, diagnosis: DiagnosisResu ) if result.returncode == 0 and result.stdout.strip(): return result.stdout.strip() - + # For service names, try systemctl if var_name == "service": # Extract service name from command if present - service_match = re.search(r'systemctl\s+\w+\s+(\S+)', command) + service_match = re.search(r"systemctl\s+\w+\s+(\S+)", command) if service_match: return service_match.group(1) - + except Exception as e: if self.debug: console.print(f"[dim] System info failed for {var_name}: {e}[/dim]") - + return None - + def _try_llm_resolution( - self, - var_name: str, - query: str, + self, + var_name: str, + query: str, command: str, diagnosis: DiagnosisResult, ) -> str | None: """Use LLM to resolve variable value.""" if not self.client: return None - + prompt = f"""Extract the value for variable '{var_name}' from this context: Query: {query} @@ -1315,18 +1361,18 @@ def _try_llm_resolution( try: response = self._call_llm("You extract specific values from context.", prompt) - value = response.strip().strip('"\'') + value = response.strip().strip("\"'") if value and value.upper() != "UNKNOWN": return value except Exception: pass - + return None # ========================================================================= # URL AUTHENTICATION HANDLING # ========================================================================= - + def handle_url_authentication( self, command: str, @@ -1334,38 +1380,38 @@ def handle_url_authentication( ) -> tuple[bool, str]: """ Handle URL-based permission errors by prompting for login. - + Uses LoginHandler to: 1. Detect the service/website 2. Prompt for credentials 3. Store credentials for future use 4. Execute login command - + Returns: Tuple of (success, message) """ console.print("\n[bold cyan]๐Ÿ” URL Authentication Required[/bold cyan]") - + if not self._login_handler: console.print("[yellow]โš  LoginHandler not available[/yellow]") return False, "LoginHandler not available" - + service = diagnosis.extracted_info.get("service", "unknown") host = diagnosis.extracted_info.get("host", "") - + console.print(f"[dim] Service: {service}[/dim]") console.print(f"[dim] Host: {host}[/dim]") - + try: # Use LoginHandler to manage authentication login_req = self._login_handler.detect_login_requirement(command, diagnosis.raw_stderr) - + if login_req: console.print(f"\n[cyan]๐Ÿ“ Login to {login_req.display_name}[/cyan]") - + # Handle login (will prompt, execute, and optionally save credentials) success, message = self._login_handler.handle_login(command, diagnosis.raw_stderr) - + if success: console.print(f"[green]โœ“ {message}[/green]") return True, message @@ -1376,34 +1422,34 @@ def handle_url_authentication( # No matching login requirement, try generic approach console.print("[yellow] Unknown service, trying generic login...[/yellow]") return self._handle_generic_login(command, diagnosis) - + except Exception as e: console.print(f"[red]โœ— Authentication error: {e}[/red]") return False, str(e) - + def _handle_generic_login( self, command: str, diagnosis: DiagnosisResult, ) -> tuple[bool, str]: """Handle login for unknown services with interactive prompts.""" - from rich.prompt import Prompt, Confirm - + from rich.prompt import Confirm, Prompt + host = diagnosis.extracted_info.get("host", "unknown service") - + console.print(f"\n[cyan]Login required for: {host}[/cyan]") - + try: # Prompt for credentials username = Prompt.ask("Username") if not username: return False, "Username is required" - + password = Prompt.ask("Password", password=True) - + # Determine login command based on command context login_cmd = None - + if "docker" in command.lower(): registry = diagnosis.extracted_info.get("host", "") login_cmd = f"docker login {registry}" if registry else "docker login" @@ -1415,10 +1461,10 @@ def _handle_generic_login( login_cmd = "npm login" elif "pip" in command.lower() or "pypi" in host.lower(): login_cmd = f"pip config set global.index-url https://{username}:{{password}}@pypi.org/simple/" - + if login_cmd: console.print(f"[dim] Running: {login_cmd}[/dim]") - + # Execute login with password via stdin if needed if "{password}" in login_cmd: login_cmd = login_cmd.replace("{password}", password) @@ -1432,22 +1478,27 @@ def _handle_generic_login( capture_output=True, text=True, ) - + if result.returncode == 0: # Offer to save credentials - if self._login_handler and Confirm.ask("Save credentials for future use?", default=True): - self._login_handler._save_credentials(host, { - "username": username, - "password": password, - }) + if self._login_handler and Confirm.ask( + "Save credentials for future use?", default=True + ): + self._login_handler._save_credentials( + host, + { + "username": username, + "password": password, + }, + ) console.print("[green]โœ“ Credentials saved[/green]") - + return True, f"Logged in to {host}" else: return False, f"Login failed: {result.stderr[:200]}" - + return False, "Could not determine login command" - + except KeyboardInterrupt: return False, "Login cancelled" except Exception as e: @@ -1456,41 +1507,43 @@ def _handle_generic_login( # ========================================================================= # STEP 4: Execute Fix Commands # ========================================================================= - + def execute_fix_commands( - self, - fix_plan: FixPlan, - resolved_variables: dict[str, str] + self, fix_plan: FixPlan, resolved_variables: dict[str, str] ) -> list[ExecutionResult]: """ Step 4: Execute fix commands with resolved variables. """ self._log_step(4, "Executing fix commands") - + results: list[ExecutionResult] = [] - + for i, fix_cmd in enumerate(fix_plan.commands, 1): # Substitute variables command = fix_cmd.command_template for var_name, value in resolved_variables.items(): command = command.replace(f"{{{var_name}}}", value) - + # Check for unresolved variables - unresolved = re.findall(r'\{(\w+)\}', command) + unresolved = re.findall(r"\{(\w+)\}", command) if unresolved: - console.print(f"[yellow] โš  Skipping command with unresolved variables: {unresolved}[/yellow]") - results.append(ExecutionResult( - command=command, - success=False, - stdout="", - stderr=f"Unresolved variables: {unresolved}", - execution_time=0, - )) + console.print( + f"[yellow] โš  Skipping command with unresolved variables: {unresolved}[/yellow]" + ) + results.append( + ExecutionResult( + command=command, + success=False, + stdout="", + stderr=f"Unresolved variables: {unresolved}", + execution_time=0, + ) + ) continue - + console.print(f"\n[cyan] [{i}/{len(fix_plan.commands)}] {command}[/cyan]") console.print(f"[dim] โ””โ”€ {fix_cmd.purpose}[/dim]") - + # Execute start_time = time.time() try: @@ -1502,7 +1555,7 @@ def execute_fix_commands( timeout=120, ) execution_time = time.time() - start_time - + exec_result = ExecutionResult( command=command, success=result.returncode == 0, @@ -1510,64 +1563,70 @@ def execute_fix_commands( stderr=result.stderr.strip(), execution_time=execution_time, ) - + if exec_result.success: console.print(f"[green] โœ“ Success ({execution_time:.2f}s)[/green]") if exec_result.stdout and self.debug: console.print(f"[dim] Output: {exec_result.stdout[:200]}[/dim]") else: console.print(f"[red] โœ— Failed: {exec_result.stderr[:200]}[/red]") - + results.append(exec_result) - + # Log to history - self.execution_history.append({ - "command": command, - "success": exec_result.success, - "stderr": exec_result.stderr[:500], - "timestamp": time.time(), - }) - + self.execution_history.append( + { + "command": command, + "success": exec_result.success, + "stderr": exec_result.stderr[:500], + "timestamp": time.time(), + } + ) + except subprocess.TimeoutExpired: - console.print(f"[red] โœ— Timeout after 120s[/red]") - results.append(ExecutionResult( - command=command, - success=False, - stdout="", - stderr="Command timed out", - execution_time=120, - )) + console.print("[red] โœ— Timeout after 120s[/red]") + results.append( + ExecutionResult( + command=command, + success=False, + stdout="", + stderr="Command timed out", + execution_time=120, + ) + ) except Exception as e: console.print(f"[red] โœ— Error: {e}[/red]") - results.append(ExecutionResult( - command=command, - success=False, - stdout="", - stderr=str(e), - execution_time=time.time() - start_time, - )) - + results.append( + ExecutionResult( + command=command, + success=False, + stdout="", + stderr=str(e), + execution_time=time.time() - start_time, + ) + ) + return results # ========================================================================= # STEP 5 & 6: Error Stack Management and Retry Logic # ========================================================================= - + def push_error(self, entry: ErrorStackEntry) -> None: """Push an error onto the stack.""" if len(self.error_stack) >= self.MAX_STACK_DEPTH: console.print(f"[red]โš  Error stack depth limit ({self.MAX_STACK_DEPTH}) reached[/red]") return - + self.error_stack.append(entry) self._print_error_stack() - + def pop_error(self) -> ErrorStackEntry | None: """Pop an error from the stack.""" if self.error_stack: return self.error_stack.pop() return None - + def diagnose_and_fix( self, command: str, @@ -1578,18 +1637,20 @@ def diagnose_and_fix( ) -> tuple[bool, str]: """ Main diagnosis and fix flow. - + Returns: Tuple of (success, message) """ - console.print(Panel( - f"[bold]Starting Diagnosis[/bold]\n" - f"Command: [cyan]{command}[/cyan]\n" - f"Intent: {intent}", - title="๐Ÿ”ง Cortex Diagnosis Engine", - border_style="blue", - )) - + console.print( + Panel( + f"[bold]Starting Diagnosis[/bold]\n" + f"Command: [cyan]{command}[/cyan]\n" + f"Intent: {intent}", + title="๐Ÿ”ง Cortex Diagnosis Engine", + border_style="blue", + ) + ) + # Push initial error to stack initial_entry = ErrorStackEntry( original_command=command, @@ -1598,23 +1659,27 @@ def diagnose_and_fix( category=ErrorCategory.UNKNOWN, # Will be set in Step 1 ) self.push_error(initial_entry) - + # Process error stack while self.error_stack: entry = self.error_stack[-1] # Peek at top - + if entry.fix_attempts >= self.MAX_FIX_ATTEMPTS: - console.print(f"[red]โœ— Max fix attempts ({self.MAX_FIX_ATTEMPTS}) reached for command[/red]") + console.print( + f"[red]โœ— Max fix attempts ({self.MAX_FIX_ATTEMPTS}) reached for command[/red]" + ) self.pop_error() continue - + entry.fix_attempts += 1 - console.print(f"\n[bold]Fix Attempt {entry.fix_attempts}/{self.MAX_FIX_ATTEMPTS}[/bold]") - + console.print( + f"\n[bold]Fix Attempt {entry.fix_attempts}/{self.MAX_FIX_ATTEMPTS}[/bold]" + ) + # Step 1: Categorize error diagnosis = self.categorize_error(entry.original_command, entry.error) entry.category = diagnosis.category - + # SPECIAL HANDLING: URL-based permission errors need authentication url_auth_categories = [ ErrorCategory.PERMISSION_DENIED_URL, @@ -1623,19 +1688,20 @@ def diagnose_and_fix( ErrorCategory.ACCESS_DENIED_API, ErrorCategory.LOGIN_REQUIRED, ] - + if diagnosis.category in url_auth_categories: - console.print(f"[cyan]๐ŸŒ URL-based access error detected - handling authentication[/cyan]") - + console.print( + "[cyan]๐ŸŒ URL-based access error detected - handling authentication[/cyan]" + ) + auth_success, auth_message = self.handle_url_authentication( - entry.original_command, - diagnosis + entry.original_command, diagnosis ) - + if auth_success: # Re-test the original command after login - console.print(f"\n[cyan]๐Ÿ“‹ Testing original command after login...[/cyan]") - + console.print("\n[cyan]๐Ÿ“‹ Testing original command after login...[/cyan]") + test_result = subprocess.run( entry.original_command, shell=True, @@ -1643,9 +1709,9 @@ def diagnose_and_fix( text=True, timeout=120, ) - + if test_result.returncode == 0: - console.print(f"[green]โœ“ Command succeeded after authentication![/green]") + console.print("[green]โœ“ Command succeeded after authentication![/green]") self.pop_error() if not self.error_stack: return True, f"Fixed via authentication: {auth_message}" @@ -1653,42 +1719,40 @@ def diagnose_and_fix( else: # Different error after login entry.error = test_result.stderr.strip() - console.print(f"[yellow]โš  New error after login, continuing diagnosis...[/yellow]") + console.print( + "[yellow]โš  New error after login, continuing diagnosis...[/yellow]" + ) continue else: console.print(f"[yellow]โš  Authentication failed: {auth_message}[/yellow]") # Continue with normal fix flow - + # Step 2: Generate fix plan - fix_plan = self.generate_fix_plan( - entry.original_command, - entry.intent, - diagnosis - ) + fix_plan = self.generate_fix_plan(entry.original_command, entry.intent, diagnosis) entry.fix_plan = fix_plan - + # Step 3: Resolve variables resolved_vars = self.resolve_variables( - fix_plan, + fix_plan, original_query, entry.original_command, diagnosis, ) - + # Check if all variables resolved unresolved = fix_plan.all_variables - set(resolved_vars.keys()) if unresolved: console.print(f"[yellow]โš  Could not resolve all variables: {unresolved}[/yellow]") # Continue anyway with what we have - + # Step 4: Execute fix commands results = self.execute_fix_commands(fix_plan, resolved_vars) - + # Check for errors in fix commands (Step 5) fix_errors = [r for r in results if not r.success] if fix_errors: console.print(f"\n[yellow]โš  {len(fix_errors)} fix command(s) failed[/yellow]") - + # Push the first error back to stack for diagnosis first_error = fix_errors[0] if first_error.stderr and "Unresolved variables" not in first_error.stderr: @@ -1700,10 +1764,10 @@ def diagnose_and_fix( ) self.push_error(new_entry) continue - + # Step 6: Test original command console.print(f"\n[cyan]๐Ÿ“‹ Testing original command: {entry.original_command}[/cyan]") - + test_result = subprocess.run( entry.original_command, shell=True, @@ -1711,30 +1775,30 @@ def diagnose_and_fix( text=True, timeout=120, ) - + if test_result.returncode == 0: - console.print(f"[green]โœ“ Original command now succeeds![/green]") + console.print("[green]โœ“ Original command now succeeds![/green]") self.pop_error() - + # Check if stack is empty if not self.error_stack: return True, "All errors resolved successfully" else: new_error = test_result.stderr.strip() - console.print(f"[yellow]โš  Original command still fails[/yellow]") - + console.print("[yellow]โš  Original command still fails[/yellow]") + if new_error != entry.error: - console.print(f"[cyan] New error detected, updating...[/cyan]") + console.print("[cyan] New error detected, updating...[/cyan]") entry.error = new_error # Loop will continue with same entry - + # Stack empty but we didn't explicitly succeed return False, "Could not resolve all errors" # ========================================================================= # HELPERS # ========================================================================= - + def _call_llm(self, system_prompt: str, user_prompt: str) -> str: """Call the LLM and return response text.""" if self.provider == "claude": @@ -1757,52 +1821,59 @@ def _call_llm(self, system_prompt: str, user_prompt: str) -> str: return response.choices[0].message.content else: raise ValueError(f"Unsupported provider: {self.provider}") - + def _log_step(self, step_num: int, description: str) -> None: """Log a diagnosis step.""" console.print(f"\n[bold blue]Step {step_num}:[/bold blue] {description}") - + def _print_diagnosis(self, diagnosis: DiagnosisResult, command: str) -> None: """Print diagnosis result.""" table = Table(title="Error Diagnosis", show_header=False, border_style="dim") table.add_column("Field", style="bold") table.add_column("Value") - + table.add_row("Category", f"[cyan]{diagnosis.category.value}[/cyan]") table.add_row("Confidence", f"{diagnosis.confidence:.0%}") - + if diagnosis.extracted_info: info_str = ", ".join(f"{k}={v}" for k, v in diagnosis.extracted_info.items() if v) table.add_row("Extracted", info_str) - - table.add_row("Error", diagnosis.error_message[:100] + "..." if len(diagnosis.error_message) > 100 else diagnosis.error_message) - + + table.add_row( + "Error", + ( + diagnosis.error_message[:100] + "..." + if len(diagnosis.error_message) > 100 + else diagnosis.error_message + ), + ) + console.print(table) - + def _print_fix_plan(self, plan: FixPlan) -> None: """Print fix plan.""" console.print(f"\n[bold]Fix Plan:[/bold] {plan.reasoning}") - + for i, cmd in enumerate(plan.commands, 1): sudo_tag = "[sudo]" if cmd.requires_sudo else "" vars_tag = f"[vars: {', '.join(cmd.variables)}]" if cmd.variables else "" console.print(f" {i}. [cyan]{cmd.command_template}[/cyan] {sudo_tag} {vars_tag}") console.print(f" [dim]{cmd.purpose}[/dim]") - + def _print_error_stack(self) -> None: """Print current error stack.""" if not self.error_stack: console.print("[dim] Error stack: empty[/dim]") return - + tree = Tree("[bold]Error Stack[/bold]") for i, entry in enumerate(reversed(self.error_stack)): branch = tree.add(f"[{'yellow' if i == 0 else 'dim'}]{entry.original_command[:50]}[/]") branch.add(f"[dim]Category: {entry.category.value}[/dim]") branch.add(f"[dim]Attempts: {entry.fix_attempts}[/dim]") - + console.print(tree) - + def get_execution_summary(self) -> dict[str, Any]: """Get summary of all executions.""" return { @@ -1818,6 +1889,7 @@ def get_execution_summary(self) -> dict[str, Any]: # FACTORY FUNCTION # ============================================================================= + def get_diagnosis_engine( provider: str = "claude", debug: bool = False, @@ -1833,25 +1905,27 @@ def get_diagnosis_engine( if __name__ == "__main__": import sys - + console.print("[bold]Diagnosis Engine Test[/bold]\n") - + engine = get_diagnosis_engine(debug=True) - + # Test error categorization test_cases = [ ("cat /nonexistent/file", "cat: /nonexistent/file: No such file or directory"), ("docker pull ghcr.io/test/image", "Error: Non-null Username Required"), ("apt install fakepackage", "E: Unable to locate package fakepackage"), - ("nginx -t", "nginx: [emerg] unknown directive \"invalid\" in /etc/nginx/nginx.conf:10"), - ("systemctl start myservice", "Failed to start myservice.service: Unit myservice.service not found."), + ("nginx -t", 'nginx: [emerg] unknown directive "invalid" in /etc/nginx/nginx.conf:10'), + ( + "systemctl start myservice", + "Failed to start myservice.service: Unit myservice.service not found.", + ), ] - + for cmd, error in test_cases: console.print(f"\n[bold]Test:[/bold] {cmd}") console.print(f"[dim]Error: {error}[/dim]") - + diagnosis = engine.categorize_error(cmd, error) console.print(f"[green]Category: {diagnosis.category.value}[/green]") console.print("") - diff --git a/cortex/do_runner/executor.py b/cortex/do_runner/executor.py index dce6b0c7f..15769fcda 100644 --- a/cortex/do_runner/executor.py +++ b/cortex/do_runner/executor.py @@ -3,7 +3,8 @@ import os import subprocess import time -from typing import Any, Callable +from collections.abc import Callable +from typing import Any from rich.console import Console from rich.prompt import Confirm @@ -24,7 +25,7 @@ class TaskTreeExecutor: """ Executes a task tree with auto-repair capabilities. - + This handles: - Executing commands in order - Spawning repair sub-tasks when commands fail @@ -32,7 +33,7 @@ class TaskTreeExecutor: - Monitoring terminals during manual intervention - Providing detailed reasoning for failures """ - + def __init__( self, user_manager: type, @@ -46,10 +47,10 @@ def __init__( self._granted_privileges: list[str] = [] self._permission_sets_requested: int = 0 self._terminal_monitor: TerminalMonitor | None = None - + self._in_manual_mode = False self._manual_commands_executed: list[dict] = [] - + def build_tree_from_commands( self, commands: list[dict[str, str]], @@ -61,7 +62,7 @@ def build_tree_from_commands( purpose=cmd.get("purpose", ""), ) return self.tree - + def execute_tree( self, confirm_callback: Callable[[list[TaskNode]], bool] | None = None, @@ -69,7 +70,7 @@ def execute_tree( ) -> tuple[bool, str]: """ Execute the task tree with auto-repair. - + Returns: Tuple of (success, summary) """ @@ -77,14 +78,14 @@ def execute_tree( total_failed = 0 total_repaired = 0 repair_details = [] - + for root_task in self.tree.root_tasks: success, repaired = self._execute_task_with_repair( root_task, confirm_callback, notify_callback, ) - + if success: total_success += 1 if repaired: @@ -92,22 +93,24 @@ def execute_tree( else: total_failed += 1 if root_task.failure_reason: - repair_details.append(f"- {root_task.command[:40]}...: {root_task.failure_reason}") - + repair_details.append( + f"- {root_task.command[:40]}...: {root_task.failure_reason}" + ) + summary_parts = [ f"Completed: {total_success}", f"Failed: {total_failed}", ] if total_repaired > 0: summary_parts.append(f"Auto-repaired: {total_repaired}") - + summary = f"Tasks: {' | '.join(summary_parts)}" - + if repair_details: summary += "\n\nFailure reasons:\n" + "\n".join(repair_details) - + return total_failed == 0, summary - + def _execute_task_with_repair( self, task: TaskNode, @@ -116,33 +119,35 @@ def _execute_task_with_repair( ) -> tuple[bool, bool]: """Execute a task and attempt repair if it fails.""" was_repaired = False - + task.status = CommandStatus.RUNNING success, output, error, duration = self._execute_command(task.command) - + task.output = output task.error = error task.duration_seconds = duration - + if success: task.status = CommandStatus.SUCCESS console.print(f"[green]โœ“[/green] {task.purpose}") return True, False - + task.status = CommandStatus.NEEDS_REPAIR diagnosis = self._diagnose_error(task.command, error, output) task.failure_reason = diagnosis.get("description", "Unknown error") - + console.print(f"[yellow]โš [/yellow] {task.purpose} - {diagnosis['error_type']}") console.print(f"[dim] โ””โ”€ {diagnosis['description']}[/dim]") - + if diagnosis.get("can_auto_fix") and task.repair_attempts < task.max_repair_attempts: task.repair_attempts += 1 fix_commands = diagnosis.get("fix_commands", []) - + if fix_commands: - console.print(f"[cyan]๐Ÿ”ง Attempting auto-repair ({task.repair_attempts}/{task.max_repair_attempts})...[/cyan]") - + console.print( + f"[cyan]๐Ÿ”ง Attempting auto-repair ({task.repair_attempts}/{task.max_repair_attempts})...[/cyan]" + ) + new_paths = self._identify_paths_needing_privileges(fix_commands) if new_paths and confirm_callback: repair_tasks = [] @@ -154,10 +159,12 @@ def _execute_task_with_repair( reasoning=diagnosis.get("reasoning", ""), ) repair_tasks.append(repair_task) - + self._permission_sets_requested += 1 - console.print(f"\n[yellow]๐Ÿ” Permission request #{self._permission_sets_requested} for repair commands:[/yellow]") - + console.print( + f"\n[yellow]๐Ÿ” Permission request #{self._permission_sets_requested} for repair commands:[/yellow]" + ) + if confirm_callback(repair_tasks): all_repairs_success = True for repair_task in repair_tasks: @@ -166,18 +173,22 @@ def _execute_task_with_repair( ) if not repair_success: all_repairs_success = False - + if all_repairs_success: - console.print(f"[cyan]โ†ป Retrying original command...[/cyan]") + console.print("[cyan]โ†ป Retrying original command...[/cyan]") success, output, error, duration = self._execute_command(task.command) task.output = output task.error = error task.duration_seconds += duration - + if success: task.status = CommandStatus.SUCCESS - task.reasoning = f"Auto-repaired after {task.repair_attempts} attempt(s)" - console.print(f"[green]โœ“[/green] {task.purpose} [dim](repaired)[/dim]") + task.reasoning = ( + f"Auto-repaired after {task.repair_attempts} attempt(s)" + ) + console.print( + f"[green]โœ“[/green] {task.purpose} [dim](repaired)[/dim]" + ) return True, True else: all_repairs_success = True @@ -193,28 +204,32 @@ def _execute_task_with_repair( ) if not repair_success: all_repairs_success = False - + if all_repairs_success: - console.print(f"[cyan]โ†ป Retrying original command...[/cyan]") + console.print("[cyan]โ†ป Retrying original command...[/cyan]") success, output, error, duration = self._execute_command(task.command) task.output = output task.error = error task.duration_seconds += duration - + if success: task.status = CommandStatus.SUCCESS - task.reasoning = f"Auto-repaired after {task.repair_attempts} attempt(s)" + task.reasoning = ( + f"Auto-repaired after {task.repair_attempts} attempt(s)" + ) console.print(f"[green]โœ“[/green] {task.purpose} [dim](repaired)[/dim]") return True, True - + task.status = CommandStatus.FAILED task.reasoning = self._generate_failure_reasoning(task, diagnosis) - + if diagnosis.get("manual_suggestion") and notify_callback: - console.print(f"\n[yellow]๐Ÿ“‹ Manual intervention suggested:[/yellow]") + console.print("\n[yellow]๐Ÿ“‹ Manual intervention suggested:[/yellow]") console.print(f"[dim]{diagnosis['manual_suggestion']}[/dim]") - - if Confirm.ask("Would you like to run this manually while Cortex monitors?", default=False): + + if Confirm.ask( + "Would you like to run this manually while Cortex monitors?", default=False + ): success = self._supervise_manual_intervention( task, diagnosis.get("manual_suggestion", ""), @@ -224,22 +239,22 @@ def _execute_task_with_repair( task.status = CommandStatus.SUCCESS task.reasoning = "Completed via manual intervention with Cortex monitoring" return True, True - + console.print(f"\n[red]โœ— Failed:[/red] {task.purpose}") console.print(f"[dim] Reason: {task.reasoning}[/dim]") - + return False, was_repaired - + def _execute_command(self, command: str) -> tuple[bool, str, str, float]: """Execute a command.""" start_time = time.time() - + try: needs_sudo = self._needs_sudo(command) - + if needs_sudo and not command.strip().startswith("sudo"): command = f"sudo {command}" - + result = subprocess.run( command, shell=True, @@ -247,45 +262,71 @@ def _execute_command(self, command: str) -> tuple[bool, str, str, float]: text=True, timeout=300, ) - + duration = time.time() - start_time success = result.returncode == 0 - + return success, result.stdout, result.stderr, duration - + except subprocess.TimeoutExpired: return False, "", "Command timed out after 300 seconds", time.time() - start_time except Exception as e: return False, "", str(e), time.time() - start_time - + def _needs_sudo(self, command: str) -> bool: """Determine if a command needs sudo.""" sudo_keywords = [ - "systemctl", "service", "apt", "apt-get", "dpkg", - "useradd", "usermod", "userdel", "groupadd", - "chmod", "chown", "mount", "umount", "fdisk", - "iptables", "ufw", "firewall-cmd", + "systemctl", + "service", + "apt", + "apt-get", + "dpkg", + "useradd", + "usermod", + "userdel", + "groupadd", + "chmod", + "chown", + "mount", + "umount", + "fdisk", + "iptables", + "ufw", + "firewall-cmd", ] - + system_paths = ["/etc/", "/var/", "/usr/", "/opt/", "/sys/", "/proc/"] - + cmd_parts = command.strip().split() if not cmd_parts: return False - + base_cmd = cmd_parts[0] - + if base_cmd in sudo_keywords: return True - + for part in cmd_parts: for path in system_paths: if path in part: - if any(op in command for op in [">", ">>", "cp ", "mv ", "rm ", "mkdir ", "touch ", "sed ", "tee "]): + if any( + op in command + for op in [ + ">", + ">>", + "cp ", + "mv ", + "rm ", + "mkdir ", + "touch ", + "sed ", + "tee ", + ] + ): return True - + return False - + def _diagnose_error( self, command: str, @@ -295,9 +336,10 @@ def _diagnose_error( """Diagnose why a command failed and suggest repairs.""" error_lower = stderr.lower() combined = (stderr + stdout).lower() - + if "permission denied" in error_lower: import re + path_match = None path_patterns = [ r"cannot (?:create|open|access|stat|remove|modify) (?:regular file |directory )?['\"]?([^'\":\n]+)['\"]?", @@ -309,21 +351,24 @@ def _diagnose_error( if match: path_match = match.group(1).strip() break - + return { "error_type": "Permission Denied", "description": f"Insufficient permissions to access: {path_match or 'unknown path'}", "can_auto_fix": True, - "fix_commands": [f"sudo {command}"] if not command.strip().startswith("sudo") else [], + "fix_commands": ( + [f"sudo {command}"] if not command.strip().startswith("sudo") else [] + ), "manual_suggestion": f"Run with sudo: sudo {command}", "reasoning": f"The command tried to access '{path_match or 'a protected resource'}' without sufficient privileges.", } - + if "no such file or directory" in error_lower: import re + path_match = re.search(r"['\"]?([^'\"\n]+)['\"]?: [Nn]o such file", stderr) missing_path = path_match.group(1) if path_match else None - + if missing_path: parent_dir = os.path.dirname(missing_path) if parent_dir: @@ -335,7 +380,7 @@ def _diagnose_error( "manual_suggestion": f"Create the directory: sudo mkdir -p {parent_dir}", "reasoning": f"The target path '{missing_path}' doesn't exist.", } - + return { "error_type": "File Not Found", "description": "A required file or directory does not exist", @@ -344,48 +389,53 @@ def _diagnose_error( "manual_suggestion": "Check the file path and ensure it exists", "reasoning": "The command references a non-existent path.", } - + if "command not found" in error_lower or "not found" in error_lower: import re + cmd_match = re.search(r"(\w+): (?:command )?not found", stderr) missing_cmd = cmd_match.group(1) if cmd_match else None - + return { "error_type": "Command Not Found", "description": f"Command not installed: {missing_cmd or 'unknown'}", "can_auto_fix": bool(missing_cmd), "fix_commands": [f"sudo apt install -y {missing_cmd}"] if missing_cmd else [], - "manual_suggestion": f"Install: sudo apt install {missing_cmd}" if missing_cmd else "Install the required command", + "manual_suggestion": ( + f"Install: sudo apt install {missing_cmd}" + if missing_cmd + else "Install the required command" + ), "reasoning": f"The command '{missing_cmd or 'required'}' is not installed.", } - + return { "error_type": "Unknown Error", "description": stderr[:200] if stderr else "Command failed with no error output", "can_auto_fix": False, "fix_commands": [], "manual_suggestion": f"Review the error and try: {command}", - "reasoning": f"The command failed with an unexpected error.", + "reasoning": "The command failed with an unexpected error.", } - + def _generate_failure_reasoning(self, task: TaskNode, diagnosis: dict) -> str: """Generate detailed reasoning for why a task failed.""" parts = [ f"Error type: {diagnosis.get('error_type', 'Unknown')}", f"Description: {diagnosis.get('description', 'No details available')}", ] - + if task.repair_attempts > 0: parts.append(f"Repair attempts: {task.repair_attempts} (all failed)") - + if diagnosis.get("reasoning"): parts.append(f"Analysis: {diagnosis['reasoning']}") - + if diagnosis.get("manual_suggestion"): parts.append(f"Suggestion: {diagnosis['manual_suggestion']}") - + return " | ".join(parts) - + def _identify_paths_needing_privileges(self, commands: list[str]) -> list[str]: """Identify paths in commands that need privilege grants.""" paths = [] @@ -395,7 +445,7 @@ def _identify_paths_needing_privileges(self, commands: list[str]) -> list[str]: if part.startswith("/") and self.paths_manager.is_protected(part): paths.append(part) return paths - + def _supervise_manual_intervention( self, task: TaskNode, @@ -404,28 +454,28 @@ def _supervise_manual_intervention( ) -> bool: """Supervise manual command execution with terminal monitoring.""" self._in_manual_mode = True - + console.print("\n[bold cyan]โ•โ•โ• Manual Intervention Mode โ•โ•โ•[/bold cyan]") - console.print(f"\n[yellow]Run this command in another terminal:[/yellow]") + console.print("\n[yellow]Run this command in another terminal:[/yellow]") console.print(f"[bold]{instruction}[/bold]") - + self._terminal_monitor = TerminalMonitor( notification_callback=lambda title, msg: notify_callback(title, msg) ) self._terminal_monitor.start() - + console.print("\n[dim]Cortex is now monitoring your terminal for issues...[/dim]") - + try: while True: choice = Confirm.ask( "\nHave you completed the manual step?", default=True, ) - + if choice: success = Confirm.ask("Was it successful?", default=True) - + if success: console.print("[green]โœ“ Manual step completed successfully[/green]") return True @@ -434,30 +484,30 @@ def _supervise_manual_intervention( console.print("1. Permission denied") console.print("2. File not found") console.print("3. Other error") - + try: error_choice = int(input("Enter choice (1-3): ")) except ValueError: error_choice = 3 - + if error_choice == 1: console.print(f"[yellow]Try: sudo {instruction}[/yellow]") elif error_choice == 2: console.print("[yellow]Check the file path exists[/yellow]") else: console.print("[yellow]Describe the error and try again[/yellow]") - + continue_trying = Confirm.ask("Continue trying?", default=True) if not continue_trying: return False else: console.print("[dim]Take your time. Cortex is still monitoring...[/dim]") - + finally: self._in_manual_mode = False if self._terminal_monitor: self._terminal_monitor.stop() - + def get_tree_summary(self) -> dict: """Get a summary of the task tree execution.""" return { @@ -465,4 +515,3 @@ def get_tree_summary(self) -> dict: "permission_requests": self._permission_sets_requested, "manual_commands": self._manual_commands_executed, } - diff --git a/cortex/do_runner/handler.py b/cortex/do_runner/handler.py index fbf954b23..5143a3156 100644 --- a/cortex/do_runner/handler.py +++ b/cortex/do_runner/handler.py @@ -7,8 +7,9 @@ import subprocess import sys import time +from collections.abc import Callable from pathlib import Path -from typing import Any, Callable +from typing import Any from rich.console import Console from rich.panel import Panel @@ -38,7 +39,7 @@ class DoHandler: """Main handler for the --do functionality.""" - + def __init__(self, llm_callback: Callable[[str], dict] | None = None): self.db = DoRunDatabase() self.paths_manager = ProtectedPathsManager() @@ -46,19 +47,19 @@ def __init__(self, llm_callback: Callable[[str], dict] | None = None): self.current_run: DoRun | None = None self._granted_privileges: list[str] = [] self.llm_callback = llm_callback - + self._task_tree: TaskTree | None = None self._permission_requests_count = 0 - + self._terminal_monitor: TerminalMonitor | None = None - + # Manual intervention tracking self._expected_manual_commands: list[str] = [] self._completed_manual_commands: list[str] = [] - + # Session tracking self.current_session_id: str | None = None - + # Initialize helper classes self._diagnoser = ErrorDiagnoser() self._auto_fixer = AutoFixer(llm_callback=llm_callback) @@ -66,23 +67,27 @@ def __init__(self, llm_callback: Callable[[str], dict] | None = None): self._conflict_detector = ConflictDetector() self._verification_runner = VerificationRunner() self._file_analyzer = FileUsefulnessAnalyzer() - + # Execution state tracking for interruption handling self._current_process: subprocess.Popen | None = None self._current_command: str | None = None self._executed_commands: list[dict] = [] self._interrupted = False - self._interrupted_command: str | None = None # Track which command was interrupted for retry - self._remaining_commands: list[tuple[str, str, list[str]]] = [] # Commands that weren't executed + self._interrupted_command: str | None = ( + None # Track which command was interrupted for retry + ) + self._remaining_commands: list[tuple[str, str, list[str]]] = ( + [] + ) # Commands that weren't executed self._original_sigtstp = None self._original_sigint = None - + def cleanup(self) -> None: """Clean up any running threads or resources.""" if self._terminal_monitor: self._terminal_monitor.stop() self._terminal_monitor = None - + def _is_json_like(self, text: str) -> bool: """Check if text looks like raw JSON that shouldn't be displayed.""" if not text: @@ -90,31 +95,31 @@ def _is_json_like(self, text: str) -> bool: text = text.strip() # Check for obvious JSON patterns json_indicators = [ - text.startswith(('{', '[', ']', '}')), + text.startswith(("{", "[", "]", "}")), '"response_type"' in text, '"do_commands"' in text, '"command":' in text, '"requires_sudo"' in text, '{"' in text and '":' in text, - text.count('"') > 6 and ':' in text, # Multiple quoted keys + text.count('"') > 6 and ":" in text, # Multiple quoted keys ] return any(json_indicators) - + def _setup_signal_handlers(self): """Set up signal handlers for Ctrl+Z and Ctrl+C.""" self._original_sigtstp = signal.signal(signal.SIGTSTP, self._handle_interrupt) self._original_sigint = signal.signal(signal.SIGINT, self._handle_interrupt) - + def _restore_signal_handlers(self): """Restore original signal handlers.""" if self._original_sigtstp is not None: signal.signal(signal.SIGTSTP, self._original_sigtstp) if self._original_sigint is not None: signal.signal(signal.SIGINT, self._original_sigint) - + def _handle_interrupt(self, signum, frame): """Handle Ctrl+Z (SIGTSTP) or Ctrl+C (SIGINT) to stop current command only. - + This does NOT exit the session - it only stops the currently executing command. The session continues so the user can decide what to do next. """ @@ -122,10 +127,10 @@ def _handle_interrupt(self, signum, frame): # Store the interrupted command for potential retry self._interrupted_command = self._current_command signal_name = "Ctrl+Z" if signum == signal.SIGTSTP else "Ctrl+C" - + console.print() console.print(f"[yellow]โš  {signal_name} detected - Stopping current command...[/yellow]") - + # Kill current subprocess if running if self._current_process and self._current_process.poll() is None: try: @@ -138,27 +143,31 @@ def _handle_interrupt(self, signum, frame): console.print(f"[yellow] Stopped: {self._current_command}[/yellow]") except Exception as e: console.print(f"[dim] Error stopping process: {e}[/dim]") - + # Note: We do NOT raise KeyboardInterrupt here # The session continues - only the current command is stopped - + def _track_command_start(self, command: str, process: subprocess.Popen | None = None): """Track when a command starts executing.""" self._current_command = command self._current_process = process - - def _track_command_complete(self, command: str, success: bool, output: str = "", error: str = ""): + + def _track_command_complete( + self, command: str, success: bool, output: str = "", error: str = "" + ): """Track when a command completes.""" - self._executed_commands.append({ - "command": command, - "success": success, - "output": output[:500] if output else "", - "error": error[:200] if error else "", - "timestamp": datetime.datetime.now().isoformat(), - }) + self._executed_commands.append( + { + "command": command, + "success": success, + "output": output[:500] if output else "", + "error": error[:200] if error else "", + "timestamp": datetime.datetime.now().isoformat(), + } + ) self._current_command = None self._current_process = None - + def _reset_execution_state(self): """Reset execution tracking state for a new run.""" self._current_process = None @@ -167,81 +176,88 @@ def _reset_execution_state(self): self._interrupted = False self._interrupted_command = None self._remaining_commands = [] - + def __del__(self): """Destructor to ensure cleanup.""" self.cleanup() - + def _show_expandable_output(self, output: str, command: str) -> None: """Show output with expand/collapse capability.""" from rich.panel import Panel - from rich.text import Text from rich.prompt import Prompt - - lines = output.split('\n') + from rich.text import Text + + lines = output.split("\n") total_lines = len(lines) - + # Always show first 3 lines as preview preview_count = 3 - + if total_lines <= preview_count + 2: # Small output - just show it all - console.print(Panel( - output, - title=f"[dim]Output[/dim]", - title_align="left", - border_style="dim", - padding=(0, 1), - )) + console.print( + Panel( + output, + title="[dim]Output[/dim]", + title_align="left", + border_style="dim", + padding=(0, 1), + ) + ) return - + # Show collapsed preview - preview = '\n'.join(lines[:preview_count]) + preview = "\n".join(lines[:preview_count]) remaining = total_lines - preview_count - + content = Text() content.append(preview) content.append(f"\n\n[dim]โ”€โ”€โ”€ {remaining} more lines hidden โ”€โ”€โ”€[/dim]", style="dim") - - console.print(Panel( - content, - title=f"[dim]Output ({total_lines} lines)[/dim]", - subtitle="[dim italic]Press Enter to continue, 'e' to expand[/dim italic]", - subtitle_align="right", - title_align="left", - border_style="dim", - padding=(0, 1), - )) - + + console.print( + Panel( + content, + title=f"[dim]Output ({total_lines} lines)[/dim]", + subtitle="[dim italic]Press Enter to continue, 'e' to expand[/dim italic]", + subtitle_align="right", + title_align="left", + border_style="dim", + padding=(0, 1), + ) + ) + # Quick check if user wants to expand try: response = input().strip().lower() - if response == 'e': + if response == "e": # Show full output - console.print(Panel( - output, - title=f"[dim]Full Output ({total_lines} lines)[/dim]", - title_align="left", - border_style="green", - padding=(0, 1), - )) + console.print( + Panel( + output, + title=f"[dim]Full Output ({total_lines} lines)[/dim]", + title_align="left", + border_style="green", + padding=(0, 1), + ) + ) except (EOFError, KeyboardInterrupt): pass - + # Initialize notification manager try: from cortex.notification_manager import NotificationManager + self.notifier = NotificationManager() except ImportError: self.notifier = None - + def _send_notification(self, title: str, message: str, level: str = "normal"): """Send a desktop notification.""" if self.notifier: self.notifier.send(title, message, level=level) else: console.print(f"[bold yellow]๐Ÿ”” {title}:[/bold yellow] {message}") - + def setup_cortex_user(self) -> bool: """Ensure the cortex user exists.""" if not self.user_manager.user_exists(): @@ -253,14 +269,13 @@ def setup_cortex_user(self) -> bool: console.print(f"[red]โœ— {message}[/red]") return success return True - + def analyze_commands_for_protected_paths( - self, - commands: list[tuple[str, str]] + self, commands: list[tuple[str, str]] ) -> list[tuple[str, str, list[str]]]: """Analyze commands and identify protected paths they access.""" results = [] - + for command, purpose in commands: protected = [] parts = command.split() @@ -269,24 +284,23 @@ def analyze_commands_for_protected_paths( path = os.path.expanduser(part) if self.paths_manager.is_protected(path): protected.append(path) - + results.append((command, purpose, protected)) - + return results - + def request_user_confirmation( self, commands: list[tuple[str, str, list[str]]], ) -> bool: """Show commands to user and request confirmation with improved visual UI.""" + from rich import box + from rich.columns import Columns from rich.panel import Panel - from rich.table import Table from rich.text import Text - from rich.columns import Columns - from rich import box - + console.print() - + # Create a table for commands cmd_table = Table( show_header=True, @@ -299,108 +313,169 @@ def request_user_confirmation( cmd_table.add_column("#", style="bold cyan", width=3, justify="right") cmd_table.add_column("Command", style="bold white") cmd_table.add_column("Purpose", style="dim italic") - + all_protected = [] for i, (cmd, purpose, protected) in enumerate(commands, 1): # Truncate long commands for display cmd_display = cmd if len(cmd) <= 60 else cmd[:57] + "..." purpose_display = purpose if len(purpose) <= 50 else purpose[:47] + "..." - + # Add protected path indicator if protected: cmd_display = f"{cmd_display} [yellow]โš [/yellow]" all_protected.extend(protected) - + cmd_table.add_row(str(i), cmd_display, purpose_display) - + # Create header header_text = Text() header_text.append("๐Ÿ” ", style="bold") header_text.append("Permission Required", style="bold white") - header_text.append(f" ({len(commands)} command{'s' if len(commands) > 1 else ''})", style="dim") - - console.print(Panel( - cmd_table, - title=header_text, - title_align="left", - border_style="blue", - padding=(1, 1), - )) - + header_text.append( + f" ({len(commands)} command{'s' if len(commands) > 1 else ''})", style="dim" + ) + + console.print( + Panel( + cmd_table, + title=header_text, + title_align="left", + border_style="blue", + padding=(1, 1), + ) + ) + # Show protected paths if any if all_protected: protected_set = set(all_protected) protected_text = Text() protected_text.append("โš  Protected paths: ", style="bold yellow") protected_text.append(", ".join(protected_set), style="dim yellow") - console.print(Panel( - protected_text, - border_style="yellow", - padding=(0, 1), - expand=False, - )) - + console.print( + Panel( + protected_text, + border_style="yellow", + padding=(0, 1), + expand=False, + ) + ) + console.print() return Confirm.ask("[bold]Proceed?[/bold]", default=False) - + def _needs_sudo(self, cmd: str, protected_paths: list[str]) -> bool: """Determine if a command needs sudo to execute.""" sudo_commands = [ - "systemctl", "service", "apt", "apt-get", "dpkg", - "mount", "umount", "fdisk", "mkfs", "chown", "chmod", - "useradd", "userdel", "usermod", "groupadd", "groupdel", + "systemctl", + "service", + "apt", + "apt-get", + "dpkg", + "mount", + "umount", + "fdisk", + "mkfs", + "chown", + "chmod", + "useradd", + "userdel", + "usermod", + "groupadd", + "groupdel", ] - + cmd_parts = cmd.split() if not cmd_parts: return False - + base_cmd = cmd_parts[0] - + if base_cmd in sudo_commands: return True - + if protected_paths: return True - + if any(p in cmd for p in ["/etc/", "/var/lib/", "/usr/", "/opt/", "/root/"]): return True - + return False - + # Commands that benefit from streaming output (long-running with progress) STREAMING_COMMANDS = [ - "docker pull", "docker push", "docker build", - "apt install", "apt-get install", "apt update", "apt-get update", "apt upgrade", "apt-get upgrade", - "pip install", "pip3 install", "pip download", "pip3 download", - "npm install", "npm ci", "yarn install", "yarn add", - "cargo build", "cargo install", - "go build", "go install", "go get", - "gem install", "bundle install", - "wget", "curl -o", "curl -O", - "git clone", "git pull", "git fetch", - "make", "cmake", "ninja", - "rsync", "scp", + "docker pull", + "docker push", + "docker build", + "apt install", + "apt-get install", + "apt update", + "apt-get update", + "apt upgrade", + "apt-get upgrade", + "pip install", + "pip3 install", + "pip download", + "pip3 download", + "npm install", + "npm ci", + "yarn install", + "yarn add", + "cargo build", + "cargo install", + "go build", + "go install", + "go get", + "gem install", + "bundle install", + "wget", + "curl -o", + "curl -O", + "git clone", + "git pull", + "git fetch", + "make", + "cmake", + "ninja", + "rsync", + "scp", ] - + # Interactive commands that need a TTY - cannot be run in background/automated INTERACTIVE_COMMANDS = [ - "docker exec -it", "docker exec -ti", "docker run -it", "docker run -ti", + "docker exec -it", + "docker exec -ti", + "docker run -it", + "docker run -ti", "docker attach", - "ollama run", "ollama chat", - "ssh ", - "bash -i", "sh -i", "zsh -i", - "vi ", "vim ", "nano ", "emacs ", - "python -i", "python3 -i", "ipython", "node -i", - "mysql -u", "psql -U", "mongo ", "redis-cli", - "htop", "top -i", "less ", "more ", + "ollama run", + "ollama chat", + "ssh ", + "bash -i", + "sh -i", + "zsh -i", + "vi ", + "vim ", + "nano ", + "emacs ", + "python -i", + "python3 -i", + "ipython", + "node -i", + "mysql -u", + "psql -U", + "mongo ", + "redis-cli", + "htop", + "top -i", + "less ", + "more ", ] - + def _should_stream_output(self, cmd: str) -> bool: """Check if command should use streaming output.""" cmd_lower = cmd.lower() return any(streaming_cmd in cmd_lower for streaming_cmd in self.STREAMING_COMMANDS) - + def _is_interactive_command(self, cmd: str) -> bool: """Check if command requires interactive TTY and cannot be automated.""" cmd_lower = cmd.lower() @@ -408,31 +483,35 @@ def _is_interactive_command(self, cmd: str) -> bool: if any(interactive in cmd_lower for interactive in self.INTERACTIVE_COMMANDS): return True # Check for -it or -ti flags in docker commands - if "docker" in cmd_lower and (" -it " in cmd_lower or " -ti " in cmd_lower or - cmd_lower.endswith(" -it") or cmd_lower.endswith(" -ti")): + if "docker" in cmd_lower and ( + " -it " in cmd_lower + or " -ti " in cmd_lower + or cmd_lower.endswith(" -it") + or cmd_lower.endswith(" -ti") + ): return True return False - + # Timeout settings by command type (in seconds) COMMAND_TIMEOUTS = { - "docker pull": 1800, # 30 minutes for large images - "docker push": 1800, # 30 minutes for large images - "docker build": 3600, # 1 hour for complex builds - "apt install": 900, # 15 minutes + "docker pull": 1800, # 30 minutes for large images + "docker push": 1800, # 30 minutes for large images + "docker build": 3600, # 1 hour for complex builds + "apt install": 900, # 15 minutes "apt-get install": 900, - "apt update": 300, # 5 minutes + "apt update": 300, # 5 minutes "apt-get update": 300, - "apt upgrade": 1800, # 30 minutes + "apt upgrade": 1800, # 30 minutes "apt-get upgrade": 1800, - "pip install": 600, # 10 minutes + "pip install": 600, # 10 minutes "pip3 install": 600, - "npm install": 900, # 15 minutes + "npm install": 900, # 15 minutes "yarn install": 900, - "git clone": 600, # 10 minutes - "make": 1800, # 30 minutes + "git clone": 600, # 10 minutes + "make": 1800, # 30 minutes "cargo build": 1800, } - + def _get_command_timeout(self, cmd: str) -> int: """Get appropriate timeout for a command.""" cmd_lower = cmd.lower() @@ -440,7 +519,7 @@ def _get_command_timeout(self, cmd: str) -> int: if cmd_pattern in cmd_lower: return timeout return 600 # Default 10 minutes for streaming commands - + def _execute_with_streaming( self, cmd: str, @@ -450,18 +529,20 @@ def _execute_with_streaming( """Execute a command with real-time output streaming.""" import select import sys - + # Auto-detect timeout if not specified if timeout is None: timeout = self._get_command_timeout(cmd) - + # Show timeout info for long operations if timeout > 300: - console.print(f"[dim] โฑ๏ธ Timeout: {timeout // 60} minutes (large operation)[/dim]") - + console.print( + f"[dim] โฑ๏ธ Timeout: {timeout // 60} minutes (large operation)[/dim]" + ) + stdout_lines = [] stderr_lines = [] - + try: if needs_sudo: process = subprocess.Popen( @@ -480,17 +561,22 @@ def _execute_with_streaming( text=True, bufsize=1, ) - + # Use select for non-blocking reads on both stdout and stderr import time + start_time = time.time() - + while True: # Check timeout if time.time() - start_time > timeout: process.kill() - return False, "\n".join(stdout_lines), f"Command timed out after {timeout} seconds" - + return ( + False, + "\n".join(stdout_lines), + f"Command timed out after {timeout} seconds", + ) + # Check if process has finished if process.poll() is not None: # Read any remaining output @@ -504,11 +590,11 @@ def _execute_with_streaming( stderr_lines.append(line) self._print_progress_line(line, is_stderr=True) break - + # Try to read from stdout/stderr without blocking try: readable, _, _ = select.select([process.stdout, process.stderr], [], [], 0.1) - + for stream in readable: line = stream.readline() if line: @@ -522,31 +608,53 @@ def _execute_with_streaming( except (ValueError, OSError): # Stream closed break - + return ( process.returncode == 0, "\n".join(stdout_lines).strip(), "\n".join(stderr_lines).strip(), ) - + except Exception as e: return False, "\n".join(stdout_lines), str(e) - + def _print_progress_line(self, line: str, is_stderr: bool = False) -> None: """Print a progress line with appropriate formatting.""" if not line.strip(): return - + line = line.strip() - + # Docker pull progress patterns - if any(p in line for p in ["Pulling from", "Digest:", "Status:", "Pull complete", "Downloading", "Extracting"]): + if any( + p in line + for p in [ + "Pulling from", + "Digest:", + "Status:", + "Pull complete", + "Downloading", + "Extracting", + ] + ): console.print(f"[dim] ๐Ÿ“ฆ {line}[/dim]") # Docker build progress elif line.startswith("Step ") or line.startswith("---> "): console.print(f"[dim] ๐Ÿ”จ {line}[/dim]") # apt progress patterns - elif any(p in line for p in ["Get:", "Hit:", "Fetched", "Reading", "Building", "Setting up", "Processing", "Unpacking"]): + elif any( + p in line + for p in [ + "Get:", + "Hit:", + "Fetched", + "Reading", + "Building", + "Setting up", + "Processing", + "Unpacking", + ] + ): console.print(f"[dim] ๐Ÿ“ฆ {line}[/dim]") # pip progress patterns elif any(p in line for p in ["Collecting", "Downloading", "Installing", "Successfully"]): @@ -555,43 +663,44 @@ def _print_progress_line(self, line: str, is_stderr: bool = False) -> None: elif any(p in line for p in ["npm", "added", "packages", "audited"]): console.print(f"[dim] ๐Ÿ“ฆ {line}[/dim]") # git progress patterns - elif any(p in line for p in ["Cloning", "remote:", "Receiving", "Resolving", "Checking out"]): + elif any( + p in line for p in ["Cloning", "remote:", "Receiving", "Resolving", "Checking out"] + ): console.print(f"[dim] ๐Ÿ“ฆ {line}[/dim]") # wget/curl progress elif "%" in line and any(c.isdigit() for c in line): # Progress percentage - update in place console.print(f"[dim] โฌ‡๏ธ {line[:80]}[/dim]", end="\r") # Error lines - elif is_stderr and any(p in line.lower() for p in ["error", "fail", "denied", "cannot", "unable"]): + elif is_stderr and any( + p in line.lower() for p in ["error", "fail", "denied", "cannot", "unable"] + ): console.print(f"[yellow] โš  {line}[/yellow]") # Truncate very long lines elif len(line) > 100: console.print(f"[dim] {line[:100]}...[/dim]") - + def _execute_single_command( - self, - cmd: str, - needs_sudo: bool, - timeout: int = 120 + self, cmd: str, needs_sudo: bool, timeout: int = 120 ) -> tuple[bool, str, str]: """Execute a single command with proper privilege handling and interruption support.""" # Check for interactive commands that need a TTY if self._is_interactive_command(cmd): return self._handle_interactive_command(cmd, needs_sudo) - + # Use streaming for long-running commands if self._should_stream_output(cmd): return self._execute_with_streaming(cmd, needs_sudo, timeout=300) - + # Track command start self._track_command_start(cmd) - + try: # Flush output before sudo to handle password prompts cleanly if needs_sudo: sys.stdout.flush() sys.stderr.flush() - + # Use Popen for interruptibility if needs_sudo: process = subprocess.Popen( @@ -608,73 +717,86 @@ def _execute_single_command( stderr=subprocess.PIPE, text=True, ) - + # Store process for interruption handling self._current_process = process - + try: stdout, stderr = process.communicate(timeout=timeout) - + # Check if interrupted during execution if self._interrupted: - self._track_command_complete(cmd, False, stdout or "", "Command interrupted by user") + self._track_command_complete( + cmd, False, stdout or "", "Command interrupted by user" + ) return False, stdout.strip() if stdout else "", "Command interrupted by user" - + success = process.returncode == 0 - + # Track completion self._track_command_complete(cmd, success, stdout, stderr) - + # After sudo, reset console state if needs_sudo: - sys.stdout.write('') # Force flush + sys.stdout.write("") # Force flush sys.stdout.flush() - + return (success, stdout.strip(), stderr.strip()) - + except subprocess.TimeoutExpired: process.kill() stdout, stderr = process.communicate() - self._track_command_complete(cmd, False, stdout, f"Command timed out after {timeout} seconds") - return False, stdout.strip() if stdout else "", f"Command timed out after {timeout} seconds" + self._track_command_complete( + cmd, False, stdout, f"Command timed out after {timeout} seconds" + ) + return ( + False, + stdout.strip() if stdout else "", + f"Command timed out after {timeout} seconds", + ) except Exception as e: self._track_command_complete(cmd, False, "", str(e)) return False, "", str(e) - - def _handle_interactive_command( - self, - cmd: str, - needs_sudo: bool - ) -> tuple[bool, str, str]: + + def _handle_interactive_command(self, cmd: str, needs_sudo: bool) -> tuple[bool, str, str]: """Handle interactive commands that need a TTY. - + These commands cannot be run in the background - they need user interaction. We'll either: 1. Try to open in a new terminal window 2. Or inform the user to run it manually """ console.print() - console.print(f"[yellow]โšก Interactive command detected[/yellow]") - console.print(f"[dim] This command requires a terminal for interaction.[/dim]") + console.print("[yellow]โšก Interactive command detected[/yellow]") + console.print("[dim] This command requires a terminal for interaction.[/dim]") console.print() - + full_cmd = f"sudo {cmd}" if needs_sudo else cmd - + # Try to detect if we can open a new terminal terminal_cmds = [ - ("gnome-terminal", f'gnome-terminal -- bash -c "{full_cmd}; echo; echo Press Enter to close...; read"'), - ("konsole", f'konsole -e bash -c "{full_cmd}; echo; echo Press Enter to close...; read"'), + ( + "gnome-terminal", + f'gnome-terminal -- bash -c "{full_cmd}; echo; echo Press Enter to close...; read"', + ), + ( + "konsole", + f'konsole -e bash -c "{full_cmd}; echo; echo Press Enter to close...; read"', + ), ("xterm", f'xterm -e bash -c "{full_cmd}; echo; echo Press Enter to close...; read"'), - ("x-terminal-emulator", f'x-terminal-emulator -e bash -c "{full_cmd}; echo; echo Press Enter to close...; read"'), + ( + "x-terminal-emulator", + f'x-terminal-emulator -e bash -c "{full_cmd}; echo; echo Press Enter to close...; read"', + ), ] - + # Check which terminal is available for term_name, term_cmd in terminal_cmds: if shutil.which(term_name): console.print(f"[cyan]๐Ÿ–ฅ๏ธ Opening in new terminal window ({term_name})...[/cyan]") console.print(f"[dim] Command: {full_cmd}[/dim]") console.print() - + try: # Start the terminal in background subprocess.Popen( @@ -687,19 +809,21 @@ def _handle_interactive_command( except Exception as e: console.print(f"[yellow] โš  Could not open terminal: {e}[/yellow]") break - + # Fallback: ask user to run manually - console.print(f"[bold cyan]๐Ÿ“‹ Please run this command manually in another terminal:[/bold cyan]") + console.print( + "[bold cyan]๐Ÿ“‹ Please run this command manually in another terminal:[/bold cyan]" + ) console.print() console.print(f" [green]{full_cmd}[/green]") console.print() - console.print(f"[dim] This command needs interactive input (TTY).[/dim]") - console.print(f"[dim] Cortex cannot capture its output automatically.[/dim]") + console.print("[dim] This command needs interactive input (TTY).[/dim]") + console.print("[dim] Cortex cannot capture its output automatically.[/dim]") console.print() - + # Return special status indicating manual run needed return True, "INTERACTIVE_COMMAND_MANUAL", f"Interactive command - run manually: {full_cmd}" - + def execute_commands_as_cortex( self, commands: list[tuple[str, str, list[str]]], @@ -715,124 +839,140 @@ def execute_commands_as_cortex( session_id=self.current_session_id or "", ) self.current_run = run - + console.print() console.print("[bold cyan]๐Ÿš€ Executing commands with conflict detection...[/bold cyan]") console.print() - + # Phase 1: Conflict Detection console.print("[dim]Checking for conflicts...[/dim]") - + cleanup_commands = [] for cmd, purpose, protected in commands: conflict = self._conflict_detector.check_for_conflicts(cmd, purpose) if conflict["has_conflict"]: - console.print(f"[yellow] โš  {conflict['conflict_type']}: {conflict['suggestion']}[/yellow]") + console.print( + f"[yellow] โš  {conflict['conflict_type']}: {conflict['suggestion']}[/yellow]" + ) if conflict["cleanup_commands"]: cleanup_commands.extend(conflict["cleanup_commands"]) - + if cleanup_commands: console.print("[dim]Running cleanup commands...[/dim]") for cleanup_cmd in cleanup_commands: self._execute_single_command(cleanup_cmd, needs_sudo=True) - + console.print() - + all_protected = set() for _, _, protected in commands: all_protected.update(protected) - + if all_protected: console.print(f"[dim]๐Ÿ“ Protected paths involved: {', '.join(all_protected)}[/dim]") console.print() - + # Phase 2: Execute Commands from rich.panel import Panel from rich.text import Text - + for i, (cmd, purpose, protected) in enumerate(commands, 1): # Create a visually distinct panel for each command cmd_header = Text() cmd_header.append(f"[{i}/{len(commands)}] ", style="bold white on blue") cmd_header.append(f" {cmd}", style="bold cyan") - + console.print() - console.print(Panel( - f"[bold cyan]{cmd}[/bold cyan]\n[dim]โ””โ”€ {purpose}[/dim]", - title=f"[bold white] Command {i}/{len(commands)} [/bold white]", - title_align="left", - border_style="blue", - padding=(0, 1), - )) - - file_check = self._file_analyzer.check_file_exists_and_usefulness(cmd, purpose, user_query) - + console.print( + Panel( + f"[bold cyan]{cmd}[/bold cyan]\n[dim]โ””โ”€ {purpose}[/dim]", + title=f"[bold white] Command {i}/{len(commands)} [/bold white]", + title_align="left", + border_style="blue", + padding=(0, 1), + ) + ) + + file_check = self._file_analyzer.check_file_exists_and_usefulness( + cmd, purpose, user_query + ) + if file_check["recommendations"]: self._file_analyzer.apply_file_recommendations(file_check["recommendations"]) - + cmd_log = CommandLog( command=cmd, purpose=purpose, timestamp=datetime.datetime.now().isoformat(), status=CommandStatus.RUNNING, ) - + start_time = time.time() needs_sudo = self._needs_sudo(cmd, protected) - + success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) - + if not success: diagnosis = self._diagnoser.diagnose_error(cmd, stderr) - + # Create error panel for visual grouping error_info = ( f"[bold red]โš  {diagnosis['description']}[/bold red]\n" f"[dim]Type: {diagnosis['error_type']} | Category: {diagnosis.get('category', 'unknown')}[/dim]" ) - console.print(Panel( - error_info, - title="[bold red] โŒ Error Detected [/bold red]", - title_align="left", - border_style="red", - padding=(0, 1), - )) - + console.print( + Panel( + error_info, + title="[bold red] โŒ Error Detected [/bold red]", + title_align="left", + border_style="red", + padding=(0, 1), + ) + ) + # Check if this is a login/credential required error if diagnosis.get("category") == "login_required": - console.print(Panel( - "[bold cyan]๐Ÿ” Authentication required for this command[/bold cyan]", - border_style="cyan", - padding=(0, 1), - expand=False, - )) - - login_success, login_msg = self._login_handler.handle_login(cmd, stderr) - - if login_success: - console.print(Panel( - f"[bold green]โœ“ {login_msg}[/bold green]\n[dim]Retrying command...[/dim]", - border_style="green", + console.print( + Panel( + "[bold cyan]๐Ÿ” Authentication required for this command[/bold cyan]", + border_style="cyan", padding=(0, 1), expand=False, - )) - - # Retry the command after successful login - success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) - - if success: - console.print(Panel( - "[bold green]โœ“ Command succeeded after authentication![/bold green]", + ) + ) + + login_success, login_msg = self._login_handler.handle_login(cmd, stderr) + + if login_success: + console.print( + Panel( + f"[bold green]โœ“ {login_msg}[/bold green]\n[dim]Retrying command...[/dim]", border_style="green", padding=(0, 1), expand=False, - )) + ) + ) + + # Retry the command after successful login + success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) + + if success: + console.print( + Panel( + "[bold green]โœ“ Command succeeded after authentication![/bold green]", + border_style="green", + padding=(0, 1), + expand=False, + ) + ) else: - console.print(Panel( - f"[bold yellow]Command still failed after login[/bold yellow]\n[dim]{stderr[:100]}[/dim]", - border_style="yellow", - padding=(0, 1), - )) + console.print( + Panel( + f"[bold yellow]Command still failed after login[/bold yellow]\n[dim]{stderr[:100]}[/dim]", + border_style="yellow", + padding=(0, 1), + ) + ) else: console.print(f"[yellow]{login_msg}[/yellow]") else: @@ -844,142 +984,167 @@ def execute_commands_as_cortex( for key, value in diagnosis["extracted_info"].items(): if value: extra_info.append(f"[dim]{key}:[/dim] {value}") - + if extra_info: - console.print(Panel( - "\n".join(extra_info), - title="[dim] Error Details [/dim]", - title_align="left", - border_style="dim", - padding=(0, 1), - expand=False, - )) - + console.print( + Panel( + "\n".join(extra_info), + title="[dim] Error Details [/dim]", + title_align="left", + border_style="dim", + padding=(0, 1), + expand=False, + ) + ) + fixed, fix_message, fix_commands = self._auto_fixer.auto_fix_error( cmd, stderr, diagnosis, max_attempts=3 ) - + if fixed: success = True - console.print(Panel( - f"[bold green]โœ“ Auto-fixed:[/bold green] {fix_message}", - title="[bold green] Fix Successful [/bold green]", - title_align="left", - border_style="green", - padding=(0, 1), - expand=False, - )) + console.print( + Panel( + f"[bold green]โœ“ Auto-fixed:[/bold green] {fix_message}", + title="[bold green] Fix Successful [/bold green]", + title_align="left", + border_style="green", + padding=(0, 1), + expand=False, + ) + ) _, stdout, stderr = self._execute_single_command(cmd, needs_sudo=True) else: fix_info = [] if fix_commands: - fix_info.append(f"[dim]Attempted:[/dim] {len(fix_commands)} fix command(s)") + fix_info.append( + f"[dim]Attempted:[/dim] {len(fix_commands)} fix command(s)" + ) fix_info.append(f"[bold yellow]Result:[/bold yellow] {fix_message}") - console.print(Panel( - "\n".join(fix_info), - title="[bold yellow] Fix Incomplete [/bold yellow]", - title_align="left", - border_style="yellow", - padding=(0, 1), - )) - + console.print( + Panel( + "\n".join(fix_info), + title="[bold yellow] Fix Incomplete [/bold yellow]", + title_align="left", + border_style="yellow", + padding=(0, 1), + ) + ) + cmd_log.duration_seconds = time.time() - start_time cmd_log.output = stdout cmd_log.error = stderr cmd_log.status = CommandStatus.SUCCESS if success else CommandStatus.FAILED - + run.commands.append(cmd_log) run.files_accessed.extend(protected) - + if success: - console.print(Panel( - f"[bold green]โœ“ Success[/bold green] [dim]({cmd_log.duration_seconds:.2f}s)[/dim]", - border_style="green", - padding=(0, 1), - expand=False, - )) + console.print( + Panel( + f"[bold green]โœ“ Success[/bold green] [dim]({cmd_log.duration_seconds:.2f}s)[/dim]", + border_style="green", + padding=(0, 1), + expand=False, + ) + ) if stdout: self._show_expandable_output(stdout, cmd) else: - console.print(Panel( - f"[bold red]โœ— Failed[/bold red]\n[dim]{stderr[:200]}[/dim]", - border_style="red", - padding=(0, 1), - )) - + console.print( + Panel( + f"[bold red]โœ— Failed[/bold red]\n[dim]{stderr[:200]}[/dim]", + border_style="red", + padding=(0, 1), + ) + ) + final_diagnosis = self._diagnoser.diagnose_error(cmd, stderr) if final_diagnosis["fix_commands"] and not final_diagnosis["can_auto_fix"]: # Create a manual intervention panel - manual_content = [f"[bold yellow]Issue:[/bold yellow] {final_diagnosis['description']}", ""] + manual_content = [ + f"[bold yellow]Issue:[/bold yellow] {final_diagnosis['description']}", + "", + ] manual_content.append("[bold]Suggested commands:[/bold]") for fix_cmd in final_diagnosis["fix_commands"]: if not fix_cmd.startswith("#"): manual_content.append(f" [cyan]$ {fix_cmd}[/cyan]") else: manual_content.append(f" [dim]{fix_cmd}[/dim]") - - console.print(Panel( - "\n".join(manual_content), - title="[bold yellow] ๐Ÿ’ก Manual Intervention Required [/bold yellow]", - title_align="left", - border_style="yellow", - padding=(0, 1), - )) - + + console.print( + Panel( + "\n".join(manual_content), + title="[bold yellow] ๐Ÿ’ก Manual Intervention Required [/bold yellow]", + title_align="left", + border_style="yellow", + padding=(0, 1), + ) + ) + console.print() - + self._granted_privileges = [] - + # Phase 3: Verification Tests console.print() - console.print(Panel( - "[bold]Running verification tests...[/bold]", - title="[bold cyan] ๐Ÿงช Verification Phase [/bold cyan]", - title_align="left", - border_style="cyan", - padding=(0, 1), - expand=False, - )) - all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) - - # Phase 4: Auto-repair if tests failed - if not all_tests_passed: - console.print() - console.print(Panel( - "[bold yellow]Attempting to repair test failures...[/bold yellow]", - title="[bold yellow] ๐Ÿ”ง Auto-Repair Phase [/bold yellow]", + console.print( + Panel( + "[bold]Running verification tests...[/bold]", + title="[bold cyan] ๐Ÿงช Verification Phase [/bold cyan]", title_align="left", - border_style="yellow", + border_style="cyan", padding=(0, 1), expand=False, - )) - + ) + ) + all_tests_passed, test_results = self._verification_runner.run_verification_tests( + run.commands, user_query + ) + + # Phase 4: Auto-repair if tests failed + if not all_tests_passed: + console.print() + console.print( + Panel( + "[bold yellow]Attempting to repair test failures...[/bold yellow]", + title="[bold yellow] ๐Ÿ”ง Auto-Repair Phase [/bold yellow]", + title_align="left", + border_style="yellow", + padding=(0, 1), + expand=False, + ) + ) + repair_success = self._handle_test_failures(test_results, run) - + if repair_success: console.print("[dim]Re-running verification tests...[/dim]") - all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) - + all_tests_passed, test_results = self._verification_runner.run_verification_tests( + run.commands, user_query + ) + run.completed_at = datetime.datetime.now().isoformat() run.summary = self._generate_summary(run) - + if test_results: passed = sum(1 for t in test_results if t["passed"]) run.summary += f" | Tests: {passed}/{len(test_results)} passed" - + self.db.save_run(run) - + # Generate LLM summary/answer llm_answer = self._generate_llm_answer(run, user_query) - + # Print condensed execution summary with answer self._print_execution_summary(run, answer=llm_answer) - + console.print() console.print(f"[dim]Run ID: {run.run_id}[/dim]") - + return run - + def _handle_resource_conflict( self, idx: int, @@ -989,11 +1154,11 @@ def _handle_resource_conflict( cleanup_commands: list, ) -> bool: """Handle any resource conflict with user options. - + This is a GENERAL handler for all resource types: - Docker containers - Services - - Files/directories + - Files/directories - Packages - Ports - Users/groups @@ -1007,7 +1172,7 @@ def _handle_resource_conflict( suggestion = conflict.get("suggestion", "") is_active = conflict.get("is_active", True) alternatives = conflict.get("alternative_actions", []) - + # Resource type icons icons = { "container": "๐Ÿณ", @@ -1027,143 +1192,166 @@ def _handle_resource_conflict( "cron_job": "โฐ", } icon = icons.get(resource_type, "๐Ÿ“Œ") - + # Display the conflict with visual grouping from rich.panel import Panel - - status_text = "[bold cyan]Active[/bold cyan]" if is_active else "[dim yellow]Inactive[/dim yellow]" + + status_text = ( + "[bold cyan]Active[/bold cyan]" if is_active else "[dim yellow]Inactive[/dim yellow]" + ) conflict_content = ( f"{icon} [bold]{resource_type.replace('_', ' ').title()}:[/bold] '{resource_name}'\n" f"[dim]Status:[/dim] {status_text}\n" f"[dim]{suggestion}[/dim]" ) - + console.print() - console.print(Panel( - conflict_content, - title="[bold yellow] โš ๏ธ Resource Conflict [/bold yellow]", - title_align="left", - border_style="yellow", - padding=(0, 1), - )) - + console.print( + Panel( + conflict_content, + title="[bold yellow] โš ๏ธ Resource Conflict [/bold yellow]", + title_align="left", + border_style="yellow", + padding=(0, 1), + ) + ) + # If there are alternatives, show them if alternatives: options_content = ["[bold]What would you like to do?[/bold]", ""] for j, alt in enumerate(alternatives, 1): options_content.append(f" {j}. {alt['description']}") - - console.print(Panel( - "\n".join(options_content), - border_style="dim", - padding=(0, 1), - )) - + + console.print( + Panel( + "\n".join(options_content), + border_style="dim", + padding=(0, 1), + ) + ) + from rich.prompt import Prompt + choice = Prompt.ask( " Choose an option", choices=[str(k) for k in range(1, len(alternatives) + 1)], - default="1" + default="1", ) - + selected = alternatives[int(choice) - 1] action = selected["action"] action_commands = selected.get("commands", []) - + # Handle different actions if action in ["use_existing", "use_different"]: - console.print(f"[green] โœ“ Using existing {resource_type} '{resource_name}'[/green]") + console.print( + f"[green] โœ“ Using existing {resource_type} '{resource_name}'[/green]" + ) commands_to_skip.add(idx) return True - + elif action == "start_existing": console.print(f"[cyan] Starting existing {resource_type}...[/cyan]") for start_cmd in action_commands: needs_sudo = start_cmd.startswith("sudo") - success, _, stderr = self._execute_single_command(start_cmd, needs_sudo=needs_sudo) + success, _, stderr = self._execute_single_command( + start_cmd, needs_sudo=needs_sudo + ) if success: console.print(f"[green] โœ“ {start_cmd}[/green]") else: console.print(f"[red] โœ— {start_cmd}: {stderr[:50]}[/red]") commands_to_skip.add(idx) return True - + elif action in ["restart", "upgrade", "reinstall"]: console.print(f"[cyan] {action.title()}ing {resource_type}...[/cyan]") for action_cmd in action_commands: needs_sudo = action_cmd.startswith("sudo") - success, _, stderr = self._execute_single_command(action_cmd, needs_sudo=needs_sudo) + success, _, stderr = self._execute_single_command( + action_cmd, needs_sudo=needs_sudo + ) if success: console.print(f"[green] โœ“ {action_cmd}[/green]") else: console.print(f"[red] โœ— {action_cmd}: {stderr[:50]}[/red]") commands_to_skip.add(idx) return True - + elif action in ["recreate", "backup", "replace", "stop_existing"]: console.print(f"[cyan] Preparing to {action.replace('_', ' ')}...[/cyan]") for action_cmd in action_commands: needs_sudo = action_cmd.startswith("sudo") - success, _, stderr = self._execute_single_command(action_cmd, needs_sudo=needs_sudo) + success, _, stderr = self._execute_single_command( + action_cmd, needs_sudo=needs_sudo + ) if success: console.print(f"[green] โœ“ {action_cmd}[/green]") else: console.print(f"[red] โœ— {action_cmd}: {stderr[:50]}[/red]") # Don't skip - let the original command run after cleanup return True - + elif action == "modify": console.print(f"[cyan] Will modify existing {resource_type}[/cyan]") # Don't skip - let the original command run to modify return True - + elif action == "install_first": # Install a missing tool/dependency first - console.print(f"[cyan] Installing required dependency '{resource_name}'...[/cyan]") + console.print( + f"[cyan] Installing required dependency '{resource_name}'...[/cyan]" + ) all_success = True for action_cmd in action_commands: needs_sudo = action_cmd.startswith("sudo") - success, stdout, stderr = self._execute_single_command(action_cmd, needs_sudo=needs_sudo) + success, stdout, stderr = self._execute_single_command( + action_cmd, needs_sudo=needs_sudo + ) if success: console.print(f"[green] โœ“ {action_cmd}[/green]") else: console.print(f"[red] โœ— {action_cmd}: {stderr[:50]}[/red]") all_success = False - + if all_success: - console.print(f"[green] โœ“ '{resource_name}' installed. Continuing with original command...[/green]") + console.print( + f"[green] โœ“ '{resource_name}' installed. Continuing with original command...[/green]" + ) # Don't skip - run the original command now that the tool is installed return True else: console.print(f"[red] โœ— Failed to install '{resource_name}'[/red]") commands_to_skip.add(idx) return True - + elif action == "use_apt": # User chose to use apt instead of snap - console.print(f"[cyan] Skipping snap command - use apt instead[/cyan]") + console.print("[cyan] Skipping snap command - use apt instead[/cyan]") commands_to_skip.add(idx) return True - + elif action == "refresh": # Refresh snap package - console.print(f"[cyan] Refreshing snap package...[/cyan]") + console.print("[cyan] Refreshing snap package...[/cyan]") for action_cmd in action_commands: needs_sudo = action_cmd.startswith("sudo") - success, _, stderr = self._execute_single_command(action_cmd, needs_sudo=needs_sudo) + success, _, stderr = self._execute_single_command( + action_cmd, needs_sudo=needs_sudo + ) if success: console.print(f"[green] โœ“ {action_cmd}[/green]") else: console.print(f"[red] โœ— {action_cmd}: {stderr[:50]}[/red]") commands_to_skip.add(idx) return True - + # No alternatives - use default behavior (add to cleanup if available) if conflict.get("cleanup_commands"): cleanup_commands.extend(conflict["cleanup_commands"]) - + return False - + def _handle_test_failures( self, test_results: list[dict[str, Any]], @@ -1171,41 +1359,46 @@ def _handle_test_failures( ) -> bool: """Handle failed verification tests by attempting auto-repair.""" failed_tests = [t for t in test_results if not t["passed"]] - + if not failed_tests: return True - + console.print() console.print("[bold yellow]๐Ÿ”ง Attempting to fix test failures...[/bold yellow]") - + all_fixed = True - + for test in failed_tests: test_name = test["test"] output = test["output"] - + console.print(f"[dim] Fixing: {test_name}[/dim]") - + if "nginx -t" in test_name: diagnosis = self._diagnoser.diagnose_error("nginx -t", output) - fixed, msg, _ = self._auto_fixer.auto_fix_error("nginx -t", output, diagnosis, max_attempts=3) + fixed, msg, _ = self._auto_fixer.auto_fix_error( + "nginx -t", output, diagnosis, max_attempts=3 + ) if fixed: console.print(f"[green] โœ“ Fixed: {msg}[/green]") else: console.print(f"[red] โœ— Could not fix: {msg}[/red]") all_fixed = False - + elif "apache2ctl" in test_name: diagnosis = self._diagnoser.diagnose_error("apache2ctl configtest", output) - fixed, msg, _ = self._auto_fixer.auto_fix_error("apache2ctl configtest", output, diagnosis, max_attempts=3) + fixed, msg, _ = self._auto_fixer.auto_fix_error( + "apache2ctl configtest", output, diagnosis, max_attempts=3 + ) if fixed: console.print(f"[green] โœ“ Fixed: {msg}[/green]") else: all_fixed = False - + elif "systemctl is-active" in test_name: import re - svc_match = re.search(r'is-active\s+(\S+)', test_name) + + svc_match = re.search(r"is-active\s+(\S+)", test_name) if svc_match: service = svc_match.group(1) success, _, err = self._execute_single_command( @@ -1214,20 +1407,23 @@ def _handle_test_failures( if success: console.print(f"[green] โœ“ Started service {service}[/green]") else: - console.print(f"[yellow] โš  Could not start {service}: {err[:50]}[/yellow]") - + console.print( + f"[yellow] โš  Could not start {service}: {err[:50]}[/yellow]" + ) + elif "file exists" in test_name: import re - path_match = re.search(r'file exists: (.+)', test_name) + + path_match = re.search(r"file exists: (.+)", test_name) if path_match: path = path_match.group(1) parent = os.path.dirname(path) if parent and not os.path.exists(parent): self._execute_single_command(f"sudo mkdir -p {parent}", needs_sudo=True) console.print(f"[green] โœ“ Created directory {parent}[/green]") - + return all_fixed - + def execute_with_task_tree( self, commands: list[tuple[str, str, list[str]]], @@ -1236,7 +1432,7 @@ def execute_with_task_tree( """Execute commands using the task tree system with advanced auto-repair.""" # Reset execution state for new run self._reset_execution_state() - + run = DoRun( run_id=self.db._generate_run_id(), summary="", @@ -1247,39 +1443,41 @@ def execute_with_task_tree( ) self.current_run = run self._permission_requests_count = 0 - + self._task_tree = TaskTree() for cmd, purpose, protected in commands: task = self._task_tree.add_root_task(cmd, purpose) task.reasoning = f"Protected paths: {', '.join(protected)}" if protected else "" - + console.print() - console.print(Panel( - "[bold cyan]๐ŸŒณ Task Tree Execution Mode[/bold cyan]\n" - "[dim]Commands will be executed with auto-repair capabilities.[/dim]\n" - "[dim]Conflict detection and verification tests enabled.[/dim]\n" - "[dim yellow]Press Ctrl+Z or Ctrl+C to stop execution at any time.[/dim yellow]", - expand=False, - )) + console.print( + Panel( + "[bold cyan]๐ŸŒณ Task Tree Execution Mode[/bold cyan]\n" + "[dim]Commands will be executed with auto-repair capabilities.[/dim]\n" + "[dim]Conflict detection and verification tests enabled.[/dim]\n" + "[dim yellow]Press Ctrl+Z or Ctrl+C to stop execution at any time.[/dim yellow]", + expand=False, + ) + ) console.print() - + # Set up signal handlers for Ctrl+Z and Ctrl+C self._setup_signal_handlers() - + # Phase 1: Conflict Detection - Claude-like header console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Checking for Conflicts[/bold]") - + conflicts_found = [] cleanup_commands = [] commands_to_skip = set() # Track commands that should be skipped (use existing) commands_to_replace = {} # Track commands that should be replaced resource_decisions = {} # Track user decisions for each resource to avoid duplicate prompts - + for i, (cmd, purpose, protected) in enumerate(commands): conflict = self._conflict_detector.check_for_conflicts(cmd, purpose) if conflict["has_conflict"]: conflicts_found.append((i, cmd, conflict)) - + if conflicts_found: # Deduplicate conflicts by resource name unique_resources = {} @@ -1288,42 +1486,45 @@ def execute_with_task_tree( if resource_name not in unique_resources: unique_resources[resource_name] = [] unique_resources[resource_name].append((idx, cmd, conflict)) - - console.print(f" [yellow]โ—[/yellow] Found [bold]{len(unique_resources)}[/bold] unique conflict(s)") - + + console.print( + f" [yellow]โ—[/yellow] Found [bold]{len(unique_resources)}[/bold] unique conflict(s)" + ) + for resource_name, resource_conflicts in unique_resources.items(): # Only ask once per unique resource first_idx, first_cmd, first_conflict = resource_conflicts[0] - + # Handle the first conflict to get user's decision - decision = self._handle_resource_conflict(first_idx, first_cmd, first_conflict, commands_to_skip, cleanup_commands) + decision = self._handle_resource_conflict( + first_idx, first_cmd, first_conflict, commands_to_skip, cleanup_commands + ) resource_decisions[resource_name] = decision - + # Apply the same decision to all other commands affecting this resource if len(resource_conflicts) > 1: for idx, cmd, conflict in resource_conflicts[1:]: if first_idx in commands_to_skip: commands_to_skip.add(idx) - + # Run cleanup commands for non-Docker conflicts if cleanup_commands: console.print("[dim] Running cleanup commands...[/dim]") for cleanup_cmd in cleanup_commands: self._execute_single_command(cleanup_cmd, needs_sudo=True) console.print(f"[dim] โœ“ {cleanup_cmd}[/dim]") - + # Filter out skipped commands if commands_to_skip: filtered_commands = [ - (cmd, purpose, protected) - for i, (cmd, purpose, protected) in enumerate(commands) + (cmd, purpose, protected) + for i, (cmd, purpose, protected) in enumerate(commands) if i not in commands_to_skip ] # Update task tree to skip these tasks for task in self._task_tree.root_tasks: task_idx = next( - (i for i, (c, p, pr) in enumerate(commands) if c == task.command), - None + (i for i, (c, p, pr) in enumerate(commands) if c == task.command), None ) if task_idx in commands_to_skip: task.status = CommandStatus.SKIPPED @@ -1331,23 +1532,23 @@ def execute_with_task_tree( commands = filtered_commands else: console.print(" [green]โ—[/green] No conflicts detected") - + console.print() - + all_protected = set() for _, _, protected in commands: all_protected.update(protected) - + if all_protected: console.print(f"[dim]๐Ÿ“ Protected paths: {', '.join(all_protected)}[/dim]") console.print() - + try: # Phase 2: Execute Commands - Claude-like header console.print() console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Executing Commands[/bold]") console.print() - + # Track remaining commands for resume functionality executed_tasks = set() for i, root_task in enumerate(self._task_tree.root_tasks): @@ -1362,31 +1563,37 @@ def execute_with_task_tree( break self._execute_task_node(root_task, run, commands) executed_tasks.add(root_task.id) - + if not self._interrupted: # Phase 3: Verification Tests - Claude-like header console.print() console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Verification[/bold]") - - all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) - + + all_tests_passed, test_results = self._verification_runner.run_verification_tests( + run.commands, user_query + ) + # Phase 4: Auto-repair if tests failed if not all_tests_passed: console.print() console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Auto-Repair[/bold]") - + repair_success = self._handle_test_failures(test_results, run) - + if repair_success: console.print() console.print("[dim] Re-running verification tests...[/dim]") - all_tests_passed, test_results = self._verification_runner.run_verification_tests(run.commands, user_query) + all_tests_passed, test_results = ( + self._verification_runner.run_verification_tests( + run.commands, user_query + ) + ) else: all_tests_passed = False test_results = [] - + run.completed_at = datetime.datetime.now().isoformat() - + if self._interrupted: run.summary = f"INTERRUPTED after {len(self._executed_commands)} command(s)" else: @@ -1394,45 +1601,47 @@ def execute_with_task_tree( if test_results: passed = sum(1 for t in test_results if t["passed"]) run.summary += f" | Tests: {passed}/{len(test_results)} passed" - + self.db.save_run(run) - + console.print() console.print("[bold]Task Execution Tree:[/bold]") self._task_tree.print_tree() - + # Generate LLM summary/answer if available llm_answer = None if not self._interrupted: llm_answer = self._generate_llm_answer(run, user_query) - + # Print condensed execution summary with answer self._print_execution_summary(run, answer=llm_answer) - + console.print() if self._interrupted: console.print(f"[dim]Run ID: {run.run_id} (interrupted)[/dim]") elif all_tests_passed: console.print(f"[dim]Run ID: {run.run_id}[/dim]") - + if self._permission_requests_count > 1: - console.print(f"[dim]Permission requests made: {self._permission_requests_count}[/dim]") - + console.print( + f"[dim]Permission requests made: {self._permission_requests_count}[/dim]" + ) + # Reset interrupted flag before interactive session # This allows the user to continue the session even after stopping a command was_interrupted = self._interrupted self._interrupted = False - + # Always go to interactive session - even after interruption # User can decide what to do next (retry, skip, exit) self._interactive_session(run, commands, user_query, was_interrupted=was_interrupted) - + return run - + finally: # Always restore signal handlers self._restore_signal_handlers() - + def _interactive_session( self, run: DoRun, @@ -1441,21 +1650,22 @@ def _interactive_session( was_interrupted: bool = False, ) -> None: """Interactive session after task completion - suggest next steps. - + If was_interrupted is True, the previous command execution was stopped by Ctrl+Z/Ctrl+C. We still continue the session so the user can decide what to do next (retry, skip remaining, run different command, etc). """ import sys + from rich.prompt import Prompt - + # Flush any pending output to ensure clean display sys.stdout.flush() sys.stderr.flush() - + # Generate context-aware suggestions based on what was done suggestions = self._generate_suggestions(run, commands, user_query) - + # If interrupted, add special suggestions at the beginning if was_interrupted: interrupted_suggestions = [ @@ -1471,7 +1681,7 @@ def _interactive_session( }, ] suggestions = interrupted_suggestions + suggestions - + # Track context for natural language processing context = { "original_query": user_query, @@ -1479,39 +1689,50 @@ def _interactive_session( "session_actions": [], "was_interrupted": was_interrupted, } - + console.print() if was_interrupted: - console.print("[bold yellow]โ”โ”โ”[/bold yellow] [bold]Execution Interrupted - What would you like to do?[/bold]") + console.print( + "[bold yellow]โ”โ”โ”[/bold yellow] [bold]Execution Interrupted - What would you like to do?[/bold]" + ) else: console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Next Steps[/bold]") console.print() - + # Display suggestions self._display_suggestions(suggestions) - + console.print() console.print("[dim]You can type any request in natural language[/dim]") console.print() - + # Ensure prompt is visible sys.stdout.flush() - + while True: try: - response = Prompt.ask( - "[bold cyan]>[/bold cyan]", - default="exit" - ) - + response = Prompt.ask("[bold cyan]>[/bold cyan]", default="exit") + response_stripped = response.strip() response_lower = response_stripped.lower() - + # Check for exit keywords - if response_lower in ["exit", "quit", "done", "no", "n", "bye", "thanks", "nothing", ""]: - console.print("[dim]๐Ÿ‘‹ Session ended. Run 'cortex do history' to see past runs.[/dim]") + if response_lower in [ + "exit", + "quit", + "done", + "no", + "n", + "bye", + "thanks", + "nothing", + "", + ]: + console.print( + "[dim]๐Ÿ‘‹ Session ended. Run 'cortex do history' to see past runs.[/dim]" + ) break - + # Try to parse as number (for suggestion selection) try: choice = int(response_stripped) @@ -1519,14 +1740,16 @@ def _interactive_session( suggestion = suggestions[choice - 1] self._execute_suggestion(suggestion, run, user_query) context["session_actions"].append(suggestion.get("label", "")) - + # Update last query to the suggestion for context-aware follow-ups suggestion_label = suggestion.get("label", "") context["last_query"] = suggestion_label - + # Continue the session with suggestions based on what was just done console.print() - suggestions = self._generate_suggestions_for_query(suggestion_label, context) + suggestions = self._generate_suggestions_for_query( + suggestion_label, context + ) self._display_suggestions(suggestions) console.print() continue @@ -1535,194 +1758,222 @@ def _interactive_session( break except ValueError: pass - + # Handle natural language request handled = self._handle_natural_language_request( - response_stripped, - suggestions, - context, - run, - commands + response_stripped, suggestions, context, run, commands ) - + if handled: context["session_actions"].append(response_stripped) # Update context with the new query for better suggestions context["last_query"] = response_stripped - + # Refresh suggestions based on NEW query (not combined) # This ensures suggestions are relevant to what user just asked console.print() suggestions = self._generate_suggestions_for_query(response_stripped, context) self._display_suggestions(suggestions) console.print() - + except (EOFError, KeyboardInterrupt): console.print("\n[dim]๐Ÿ‘‹ Session ended.[/dim]") break - + # Cleanup: ensure any terminal monitors are stopped if self._terminal_monitor: self._terminal_monitor.stop() self._terminal_monitor = None - + def _generate_suggestions_for_query(self, query: str, context: dict) -> list[dict]: """Generate suggestions based on the current query and context. - + This generates follow-up suggestions relevant to what the user just asked/did, not tied to the original task. """ suggestions = [] query_lower = query.lower() - + # User management related queries if any(w in query_lower for w in ["user", "locked", "password", "account", "login"]): - suggestions.append({ - "type": "info", - "icon": "๐Ÿ‘ฅ", - "label": "List all users", - "description": "Show all system users", - "command": "cat /etc/passwd | cut -d: -f1", - "purpose": "List all users", - }) - suggestions.append({ - "type": "info", - "icon": "๐Ÿ”", - "label": "Check sudo users", - "description": "Show users with sudo access", - "command": "getent group sudo", - "purpose": "List sudo group members", - }) - suggestions.append({ - "type": "action", - "icon": "๐Ÿ”“", - "label": "Unlock a user", - "description": "Unlock a locked user account", - "demo_type": "unlock_user", - }) - + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ‘ฅ", + "label": "List all users", + "description": "Show all system users", + "command": "cat /etc/passwd | cut -d: -f1", + "purpose": "List all users", + } + ) + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ”", + "label": "Check sudo users", + "description": "Show users with sudo access", + "command": "getent group sudo", + "purpose": "List sudo group members", + } + ) + suggestions.append( + { + "type": "action", + "icon": "๐Ÿ”“", + "label": "Unlock a user", + "description": "Unlock a locked user account", + "demo_type": "unlock_user", + } + ) + # Service/process related queries - elif any(w in query_lower for w in ["service", "systemctl", "running", "process", "status"]): - suggestions.append({ - "type": "info", - "icon": "๐Ÿ“Š", - "label": "List running services", - "description": "Show all active services", - "command": "systemctl list-units --type=service --state=running", - "purpose": "List running services", - }) - suggestions.append({ - "type": "info", - "icon": "๐Ÿ”", - "label": "Check failed services", - "description": "Show services that failed to start", - "command": "systemctl list-units --type=service --state=failed", - "purpose": "List failed services", - }) - + elif any( + w in query_lower for w in ["service", "systemctl", "running", "process", "status"] + ): + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ“Š", + "label": "List running services", + "description": "Show all active services", + "command": "systemctl list-units --type=service --state=running", + "purpose": "List running services", + } + ) + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ”", + "label": "Check failed services", + "description": "Show services that failed to start", + "command": "systemctl list-units --type=service --state=failed", + "purpose": "List failed services", + } + ) + # Disk/storage related queries elif any(w in query_lower for w in ["disk", "storage", "space", "mount", "partition"]): - suggestions.append({ - "type": "info", - "icon": "๐Ÿ’พ", - "label": "Check disk usage", - "description": "Show disk space by partition", - "command": "df -h", - "purpose": "Check disk usage", - }) - suggestions.append({ - "type": "info", - "icon": "๐Ÿ“", - "label": "Find large files", - "description": "Show largest files on disk", - "command": "sudo du -ah / 2>/dev/null | sort -rh | head -20", - "purpose": "Find large files", - }) - + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ’พ", + "label": "Check disk usage", + "description": "Show disk space by partition", + "command": "df -h", + "purpose": "Check disk usage", + } + ) + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ“", + "label": "Find large files", + "description": "Show largest files on disk", + "command": "sudo du -ah / 2>/dev/null | sort -rh | head -20", + "purpose": "Find large files", + } + ) + # Network related queries elif any(w in query_lower for w in ["network", "ip", "port", "connection", "firewall"]): - suggestions.append({ - "type": "info", - "icon": "๐ŸŒ", - "label": "Show network interfaces", - "description": "Display IP addresses and interfaces", - "command": "ip addr show", - "purpose": "Show network interfaces", - }) - suggestions.append({ - "type": "info", - "icon": "๐Ÿ”Œ", - "label": "List open ports", - "description": "Show listening ports", - "command": "sudo ss -tlnp", - "purpose": "List open ports", - }) - + suggestions.append( + { + "type": "info", + "icon": "๐ŸŒ", + "label": "Show network interfaces", + "description": "Display IP addresses and interfaces", + "command": "ip addr show", + "purpose": "Show network interfaces", + } + ) + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ”Œ", + "label": "List open ports", + "description": "Show listening ports", + "command": "sudo ss -tlnp", + "purpose": "List open ports", + } + ) + # Security related queries elif any(w in query_lower for w in ["security", "audit", "log", "auth", "fail"]): - suggestions.append({ - "type": "info", - "icon": "๐Ÿ”’", - "label": "Check auth logs", - "description": "Show recent authentication attempts", - "command": "sudo tail -50 /var/log/auth.log", - "purpose": "Check auth logs", - }) - suggestions.append({ - "type": "info", - "icon": "โš ๏ธ", - "label": "Check failed logins", - "description": "Show failed login attempts", - "command": "sudo lastb | head -20", - "purpose": "Check failed logins", - }) - + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ”’", + "label": "Check auth logs", + "description": "Show recent authentication attempts", + "command": "sudo tail -50 /var/log/auth.log", + "purpose": "Check auth logs", + } + ) + suggestions.append( + { + "type": "info", + "icon": "โš ๏ธ", + "label": "Check failed logins", + "description": "Show failed login attempts", + "command": "sudo lastb | head -20", + "purpose": "Check failed logins", + } + ) + # Package/installation related queries elif any(w in query_lower for w in ["install", "package", "apt", "update"]): - suggestions.append({ - "type": "action", - "icon": "๐Ÿ“ฆ", - "label": "Update system", - "description": "Update package lists and upgrade", - "command": "sudo apt update && sudo apt upgrade -y", - "purpose": "Update system packages", - }) - suggestions.append({ - "type": "info", - "icon": "๐Ÿ“‹", - "label": "List installed packages", - "description": "Show recently installed packages", - "command": "apt list --installed 2>/dev/null | tail -20", - "purpose": "List installed packages", - }) - + suggestions.append( + { + "type": "action", + "icon": "๐Ÿ“ฆ", + "label": "Update system", + "description": "Update package lists and upgrade", + "command": "sudo apt update && sudo apt upgrade -y", + "purpose": "Update system packages", + } + ) + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ“‹", + "label": "List installed packages", + "description": "Show recently installed packages", + "command": "apt list --installed 2>/dev/null | tail -20", + "purpose": "List installed packages", + } + ) + # Default: generic helpful suggestions if not suggestions: - suggestions.append({ - "type": "info", - "icon": "๐Ÿ“Š", - "label": "System overview", - "description": "Show system info and resource usage", - "command": "uname -a && uptime && free -h", - "purpose": "System overview", - }) - suggestions.append({ - "type": "info", - "icon": "๐Ÿ”", - "label": "Check system logs", - "description": "View recent system messages", - "command": "sudo journalctl -n 20 --no-pager", - "purpose": "Check system logs", - }) - + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ“Š", + "label": "System overview", + "description": "Show system info and resource usage", + "command": "uname -a && uptime && free -h", + "purpose": "System overview", + } + ) + suggestions.append( + { + "type": "info", + "icon": "๐Ÿ”", + "label": "Check system logs", + "description": "View recent system messages", + "command": "sudo journalctl -n 20 --no-pager", + "purpose": "Check system logs", + } + ) + return suggestions - + def _display_suggestions(self, suggestions: list[dict]) -> None: """Display numbered suggestions.""" if not suggestions: console.print("[dim]No specific suggestions available.[/dim]") return - + for i, suggestion in enumerate(suggestions, 1): icon = suggestion.get("icon", "๐Ÿ’ก") label = suggestion.get("label", "") @@ -1730,9 +1981,9 @@ def _display_suggestions(self, suggestions: list[dict]) -> None: console.print(f" [cyan]{i}.[/cyan] {icon} {label}") if desc: console.print(f" [dim]{desc}[/dim]") - + console.print(f" [cyan]{len(suggestions) + 1}.[/cyan] ๐Ÿšช Exit session") - + def _handle_natural_language_request( self, request: str, @@ -1742,12 +1993,12 @@ def _handle_natural_language_request( commands: list[tuple[str, str, list[str]]], ) -> bool: """Handle a natural language request from the user. - + Uses LLM if available for full understanding, falls back to pattern matching. Returns True if the request was handled, False otherwise. """ request_lower = request.lower() - + # Quick keyword matching for common actions (fast path) keyword_handlers = [ (["start", "run", "begin", "launch", "execute"], "start"), @@ -1755,7 +2006,7 @@ def _handle_natural_language_request( (["demo", "example", "sample", "code"], "demo"), (["test", "verify", "check", "validate"], "test"), ] - + # Check if request is a simple match to existing suggestions for keywords, action_type in keyword_handlers: if any(kw in request_lower for kw in keywords): @@ -1765,17 +2016,17 @@ def _handle_natural_language_request( if suggestion.get("type") == action_type: self._execute_suggestion(suggestion, run, context["original_query"]) return True - + # Use LLM for full understanding if available console.print() - console.print(f"[cyan]๐Ÿค” Understanding your request...[/cyan]") - + console.print("[cyan]๐Ÿค” Understanding your request...[/cyan]") + if self.llm_callback: return self._handle_request_with_llm(request, context, run, commands) else: # Fall back to pattern matching return self._handle_request_with_patterns(request, context, run) - + def _handle_request_with_llm( self, request: str, @@ -1787,23 +2038,28 @@ def _handle_request_with_llm( try: # Call LLM to understand the request llm_response = self.llm_callback(request, context) - + if not llm_response or llm_response.get("response_type") == "error": - console.print(f"[yellow]โš  Could not process request: {llm_response.get('error', 'Unknown error')}[/yellow]") + console.print( + f"[yellow]โš  Could not process request: {llm_response.get('error', 'Unknown error')}[/yellow]" + ) return False - + response_type = llm_response.get("response_type") - + # HARD CHECK: Filter out any raw JSON from reasoning field reasoning = llm_response.get("reasoning", "") if reasoning: # Remove any JSON-like content from reasoning import re + # If reasoning looks like JSON or contains JSON patterns, clean it - if (reasoning.strip().startswith(('{', '[', ']', '"response_type"')) or - re.search(r'"do_commands"\s*:', reasoning) or - re.search(r'"command"\s*:', reasoning) or - re.search(r'"requires_sudo"\s*:', reasoning)): + if ( + reasoning.strip().startswith(("{", "[", "]", '"response_type"')) + or re.search(r'"do_commands"\s*:', reasoning) + or re.search(r'"command"\s*:', reasoning) + or re.search(r'"requires_sudo"\s*:', reasoning) + ): # Extract just the text explanation if possible text_match = re.search(r'"reasoning"\s*:\s*"([^"]+)"', reasoning) if text_match: @@ -1811,18 +2067,18 @@ def _handle_request_with_llm( else: reasoning = "Processing your request..." llm_response["reasoning"] = reasoning - + # Handle do_commands - execute with confirmation if response_type == "do_commands" and llm_response.get("do_commands"): do_commands = llm_response["do_commands"] reasoning = llm_response.get("reasoning", "") - + # Final safety check: don't print JSON-looking reasoning if reasoning and not self._is_json_like(reasoning): console.print() console.print(f"[cyan]๐Ÿค– {reasoning}[/cyan]") console.print() - + # Show commands and ask for confirmation console.print("[bold]๐Ÿ“‹ Commands to execute:[/bold]") for i, cmd_info in enumerate(do_commands, 1): @@ -1833,113 +2089,125 @@ def _handle_request_with_llm( if purpose: console.print(f" [dim]{purpose}[/dim]") console.print() - + if not Confirm.ask("Execute these commands?", default=True): console.print("[dim]Skipped.[/dim]") return False - + # Execute the commands console.print() from rich.panel import Panel - + executed_in_session = [] for idx, cmd_info in enumerate(do_commands, 1): cmd = cmd_info.get("command", "") purpose = cmd_info.get("purpose", "Execute command") needs_sudo = cmd_info.get("requires_sudo", False) or self._needs_sudo(cmd, []) - + # Create visual grouping for each command console.print() - console.print(Panel( - f"[bold cyan]{cmd}[/bold cyan]\n[dim]โ””โ”€ {purpose}[/dim]", - title=f"[bold] Command {idx}/{len(do_commands)} [/bold]", - title_align="left", - border_style="blue", - padding=(0, 1), - )) - + console.print( + Panel( + f"[bold cyan]{cmd}[/bold cyan]\n[dim]โ””โ”€ {purpose}[/dim]", + title=f"[bold] Command {idx}/{len(do_commands)} [/bold]", + title_align="left", + border_style="blue", + padding=(0, 1), + ) + ) + success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) - + if success: - console.print(Panel( - f"[bold green]โœ“ Success[/bold green]", - border_style="green", - padding=(0, 1), - expand=False, - )) + console.print( + Panel( + "[bold green]โœ“ Success[/bold green]", + border_style="green", + padding=(0, 1), + expand=False, + ) + ) if stdout: - output_preview = stdout[:300] + ('...' if len(stdout) > 300 else '') + output_preview = stdout[:300] + ("..." if len(stdout) > 300 else "") console.print(f"[dim]{output_preview}[/dim]") executed_in_session.append(cmd) else: - console.print(Panel( - f"[bold red]โœ— Failed[/bold red]\n[dim]{stderr[:150]}[/dim]", - border_style="red", - padding=(0, 1), - )) - + console.print( + Panel( + f"[bold red]โœ— Failed[/bold red]\n[dim]{stderr[:150]}[/dim]", + border_style="red", + padding=(0, 1), + ) + ) + # Offer to diagnose and fix if Confirm.ask("Try to auto-fix?", default=True): diagnosis = self._diagnoser.diagnose_error(cmd, stderr) fixed, msg, _ = self._auto_fixer.auto_fix_error(cmd, stderr, diagnosis) if fixed: - console.print(Panel( - f"[bold green]โœ“ Fixed:[/bold green] {msg}", - border_style="green", - padding=(0, 1), - expand=False, - )) + console.print( + Panel( + f"[bold green]โœ“ Fixed:[/bold green] {msg}", + border_style="green", + padding=(0, 1), + expand=False, + ) + ) executed_in_session.append(cmd) - + # Track executed commands in context for suggestion generation if "executed_commands" not in context: context["executed_commands"] = [] context["executed_commands"].extend(executed_in_session) - + return True - + # Handle single command - execute directly elif response_type == "command" and llm_response.get("command"): cmd = llm_response["command"] reasoning = llm_response.get("reasoning", "") - + console.print() console.print(f"[cyan]๐Ÿ“‹ Running:[/cyan] [green]{cmd}[/green]") if reasoning: console.print(f" [dim]{reasoning}[/dim]") - + needs_sudo = self._needs_sudo(cmd, []) success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) - + if success: - console.print(f"[green]โœ“ Success[/green]") + console.print("[green]โœ“ Success[/green]") if stdout: - console.print(f"[dim]{stdout[:500]}{'...' if len(stdout) > 500 else ''}[/dim]") + console.print( + f"[dim]{stdout[:500]}{'...' if len(stdout) > 500 else ''}[/dim]" + ) else: console.print(f"[red]โœ— Failed: {stderr[:200]}[/red]") - + return True - + # Handle answer - just display it (filter raw JSON) elif response_type == "answer" and llm_response.get("answer"): answer = llm_response["answer"] # Don't print raw JSON or internal processing messages - if not (self._is_json_like(answer) or - "I'm processing your request" in answer or - "I have a plan to execute" in answer): + if not ( + self._is_json_like(answer) + or "I'm processing your request" in answer + or "I have a plan to execute" in answer + ): console.print() console.print(answer) return True - + else: - console.print(f"[yellow]I didn't understand that. Could you rephrase?[/yellow]") + console.print("[yellow]I didn't understand that. Could you rephrase?[/yellow]") return False - + except Exception as e: console.print(f"[yellow]โš  Error processing request: {e}[/yellow]") # Fall back to pattern matching return self._handle_request_with_patterns(request, context, run) - + def _handle_request_with_patterns( self, request: str, @@ -1949,49 +2217,51 @@ def _handle_request_with_patterns( """Handle request using pattern matching (fallback when LLM not available).""" # Try to generate a command from the natural language request generated = self._generate_command_from_request(request, context) - + if generated: cmd = generated.get("command") purpose = generated.get("purpose", "Execute user request") needs_confirm = generated.get("needs_confirmation", True) - + console.print() - console.print(f"[cyan]๐Ÿ“‹ I'll run this command:[/cyan]") + console.print("[cyan]๐Ÿ“‹ I'll run this command:[/cyan]") console.print(f" [green]{cmd}[/green]") console.print(f" [dim]{purpose}[/dim]") console.print() - + if needs_confirm: if not Confirm.ask("Proceed?", default=True): console.print("[dim]Skipped.[/dim]") return False - + # Execute the command needs_sudo = self._needs_sudo(cmd, []) success, stdout, stderr = self._execute_single_command(cmd, needs_sudo) - + if success: - console.print(f"[green]โœ“ Success[/green]") + console.print("[green]โœ“ Success[/green]") if stdout: - output_preview = stdout[:500] + ('...' if len(stdout) > 500 else '') + output_preview = stdout[:500] + ("..." if len(stdout) > 500 else "") console.print(f"[dim]{output_preview}[/dim]") else: console.print(f"[red]โœ— Failed: {stderr[:200]}[/red]") - + # Offer to diagnose the error if Confirm.ask("Would you like me to try to fix this?", default=True): diagnosis = self._diagnoser.diagnose_error(cmd, stderr) fixed, msg, _ = self._auto_fixer.auto_fix_error(cmd, stderr, diagnosis) if fixed: console.print(f"[green]โœ“ Fixed: {msg}[/green]") - + return True - + # Couldn't understand the request - console.print(f"[yellow]I'm not sure how to do that. Could you be more specific?[/yellow]") - console.print(f"[dim]Try something like: 'run the container', 'show me the config', or select a number.[/dim]") + console.print("[yellow]I'm not sure how to do that. Could you be more specific?[/yellow]") + console.print( + "[dim]Try something like: 'run the container', 'show me the config', or select a number.[/dim]" + ) return False - + def _generate_command_from_request( self, request: str, @@ -2001,7 +2271,7 @@ def _generate_command_from_request( request_lower = request.lower() executed_cmds = context.get("executed_commands", []) cmd_context = " ".join(executed_cmds).lower() - + # Pattern matching for common requests patterns = [ # Docker patterns @@ -2011,37 +2281,40 @@ def _generate_command_from_request( (r"(?:show|list).*(?:containers?|images?)", self._gen_docker_list), (r"logs?(?:\s+of)?(?:\s+the)?(?:\s+container)?", self._gen_docker_logs), (r"exec.*(?:container|docker)|shell.*(?:container|docker)", self._gen_docker_exec), - # Service patterns - (r"(?:start|restart).*(?:service|nginx|apache|postgres|mysql|redis)", self._gen_service_start), + ( + r"(?:start|restart).*(?:service|nginx|apache|postgres|mysql|redis)", + self._gen_service_start, + ), (r"stop.*(?:service|nginx|apache|postgres|mysql|redis)", self._gen_service_stop), (r"status.*(?:service|nginx|apache|postgres|mysql|redis)", self._gen_service_status), - # Package patterns (r"install\s+(.+)", self._gen_install_package), (r"update\s+(?:packages?|system)", self._gen_update_packages), - # File patterns - (r"(?:show|cat|view|read).*(?:config|file|log)(?:.*?([/\w\.\-]+))?", self._gen_show_file), + ( + r"(?:show|cat|view|read).*(?:config|file|log)(?:.*?([/\w\.\-]+))?", + self._gen_show_file, + ), (r"edit.*(?:config|file)(?:.*?([/\w\.\-]+))?", self._gen_edit_file), - # Info patterns (r"(?:check|show|what).*(?:version|status)", self._gen_check_version), (r"(?:how|where).*(?:connect|access|use)", self._gen_show_connection_info), ] - + import re + for pattern, handler in patterns: match = re.search(pattern, request_lower) if match: return handler(request, match, context) - + # Use LLM if available to generate command if self.llm_callback: return self._llm_generate_command(request, context) - + return None - + # Command generators def _gen_docker_run(self, request: str, match, context: dict) -> dict: # Find the image from context @@ -2051,50 +2324,58 @@ def _gen_docker_run(self, request: str, match, context: dict) -> dict: if "docker pull" in cmd: image = cmd.split("docker pull")[-1].strip() break - + # Check for port in request port = match.group(1) if match.lastindex and match.group(1) else "8080" container_name = image.split("/")[-1].split(":")[0] - + return { "command": f"docker run -d --name {container_name} -p {port}:{port} {image}", "purpose": f"Run {image} container on port {port}", "needs_confirmation": True, } - + def _gen_docker_stop(self, request: str, match, context: dict) -> dict: return { "command": "docker ps -q | xargs -r docker stop", "purpose": "Stop all running containers", "needs_confirmation": True, } - + def _gen_docker_remove(self, request: str, match, context: dict) -> dict: return { "command": "docker ps -aq | xargs -r docker rm", "purpose": "Remove all containers", "needs_confirmation": True, } - + def _gen_docker_list(self, request: str, match, context: dict) -> dict: if "image" in request.lower(): - return {"command": "docker images", "purpose": "List Docker images", "needs_confirmation": False} - return {"command": "docker ps -a", "purpose": "List all containers", "needs_confirmation": False} - + return { + "command": "docker images", + "purpose": "List Docker images", + "needs_confirmation": False, + } + return { + "command": "docker ps -a", + "purpose": "List all containers", + "needs_confirmation": False, + } + def _gen_docker_logs(self, request: str, match, context: dict) -> dict: return { "command": "docker logs $(docker ps -lq) --tail 50", "purpose": "Show logs of the most recent container", "needs_confirmation": False, } - + def _gen_docker_exec(self, request: str, match, context: dict) -> dict: return { "command": "docker exec -it $(docker ps -lq) /bin/sh", "purpose": "Open shell in the most recent container", "needs_confirmation": True, } - + def _gen_service_start(self, request: str, match, context: dict) -> dict: # Extract service name services = ["nginx", "apache2", "postgresql", "mysql", "redis", "docker"] @@ -2103,11 +2384,19 @@ def _gen_service_start(self, request: str, match, context: dict) -> dict: if svc in request.lower(): service = svc break - + if "restart" in request.lower(): - return {"command": f"sudo systemctl restart {service}", "purpose": f"Restart {service}", "needs_confirmation": True} - return {"command": f"sudo systemctl start {service}", "purpose": f"Start {service}", "needs_confirmation": True} - + return { + "command": f"sudo systemctl restart {service}", + "purpose": f"Restart {service}", + "needs_confirmation": True, + } + return { + "command": f"sudo systemctl start {service}", + "purpose": f"Start {service}", + "needs_confirmation": True, + } + def _gen_service_stop(self, request: str, match, context: dict) -> dict: services = ["nginx", "apache2", "postgresql", "mysql", "redis", "docker"] service = "nginx" @@ -2115,8 +2404,12 @@ def _gen_service_stop(self, request: str, match, context: dict) -> dict: if svc in request.lower(): service = svc break - return {"command": f"sudo systemctl stop {service}", "purpose": f"Stop {service}", "needs_confirmation": True} - + return { + "command": f"sudo systemctl stop {service}", + "purpose": f"Stop {service}", + "needs_confirmation": True, + } + def _gen_service_status(self, request: str, match, context: dict) -> dict: services = ["nginx", "apache2", "postgresql", "mysql", "redis", "docker"] service = "nginx" @@ -2124,8 +2417,12 @@ def _gen_service_status(self, request: str, match, context: dict) -> dict: if svc in request.lower(): service = svc break - return {"command": f"systemctl status {service}", "purpose": f"Check {service} status", "needs_confirmation": False} - + return { + "command": f"systemctl status {service}", + "purpose": f"Check {service} status", + "needs_confirmation": False, + } + def _gen_install_package(self, request: str, match, context: dict) -> dict: package = match.group(1).strip() if match.group(1) else "package-name" # Clean up common words @@ -2135,18 +2432,18 @@ def _gen_install_package(self, request: str, match, context: dict) -> dict: "purpose": f"Install {package}", "needs_confirmation": True, } - + def _gen_update_packages(self, request: str, match, context: dict) -> dict: return { "command": "sudo apt update && sudo apt upgrade -y", "purpose": "Update all packages", "needs_confirmation": True, } - + def _gen_show_file(self, request: str, match, context: dict) -> dict: # Try to extract file path or use common config locations file_path = match.group(1) if match.lastindex and match.group(1) else None - + if not file_path: if "nginx" in request.lower(): file_path = "/etc/nginx/nginx.conf" @@ -2156,9 +2453,13 @@ def _gen_show_file(self, request: str, match, context: dict) -> dict: file_path = "/etc/postgresql/*/main/postgresql.conf" else: file_path = "/etc/hosts" - - return {"command": f"cat {file_path}", "purpose": f"Show {file_path}", "needs_confirmation": False} - + + return { + "command": f"cat {file_path}", + "purpose": f"Show {file_path}", + "needs_confirmation": False, + } + def _gen_edit_file(self, request: str, match, context: dict) -> dict: file_path = match.group(1) if match.lastindex and match.group(1) else "/etc/hosts" return { @@ -2166,7 +2467,7 @@ def _gen_edit_file(self, request: str, match, context: dict) -> dict: "purpose": f"Edit {file_path}", "needs_confirmation": True, } - + def _gen_check_version(self, request: str, match, context: dict) -> dict: # Try to determine what to check version of tools = { @@ -2176,21 +2477,25 @@ def _gen_check_version(self, request: str, match, context: dict) -> dict: "nginx": "nginx -v", "postgres": "psql --version", } - + for tool, cmd in tools.items(): if tool in request.lower(): - return {"command": cmd, "purpose": f"Check {tool} version", "needs_confirmation": False} - + return { + "command": cmd, + "purpose": f"Check {tool} version", + "needs_confirmation": False, + } + # Default: show multiple versions return { "command": "docker --version; node --version 2>/dev/null; python3 --version", "purpose": "Check installed tool versions", "needs_confirmation": False, } - + def _gen_show_connection_info(self, request: str, match, context: dict) -> dict: executed = context.get("executed_commands", []) - + # Check what was installed to provide relevant connection info if any("ollama" in cmd for cmd in executed): return { @@ -2210,18 +2515,18 @@ def _gen_show_connection_info(self, request: str, match, context: dict) -> dict: "purpose": "Show Nginx connection info", "needs_confirmation": False, } - + return { "command": "ss -tlnp | head -20", "purpose": "Show listening ports and services", "needs_confirmation": False, } - + def _llm_generate_command(self, request: str, context: dict) -> dict | None: """Use LLM to generate a command from the request.""" if not self.llm_callback: return None - + try: prompt = f"""Given this context: - User originally asked: {context.get('original_query', 'N/A')} @@ -2244,9 +2549,9 @@ def _llm_generate_command(self, request: str, context: dict) -> dict | None: } except Exception: pass - + return None - + def _generate_suggestions( self, run: DoRun, @@ -2255,12 +2560,12 @@ def _generate_suggestions( ) -> list[dict]: """Generate context-aware suggestions based on what was installed/configured.""" suggestions = [] - + # Analyze what was done executed_cmds = [cmd for cmd, _, _ in commands] cmd_str = " ".join(executed_cmds).lower() query_lower = user_query.lower() - + # Docker-related suggestions if "docker" in cmd_str or "docker" in query_lower: if "pull" in cmd_str: @@ -2268,158 +2573,192 @@ def _generate_suggestions( for cmd, _, _ in commands: if "docker pull" in cmd: image = cmd.split("docker pull")[-1].strip() - suggestions.append({ - "type": "start", - "icon": "๐Ÿš€", - "label": f"Start the container", - "description": f"Run {image} in a container", - "command": f"docker run -d --name {image.split('/')[-1].split(':')[0]} {image}", - "purpose": f"Start {image} container", - }) - suggestions.append({ - "type": "demo", - "icon": "๐Ÿ“", - "label": "Show demo usage", - "description": f"Example docker-compose and run commands", - "demo_type": "docker", - "image": image, - }) + suggestions.append( + { + "type": "start", + "icon": "๐Ÿš€", + "label": "Start the container", + "description": f"Run {image} in a container", + "command": f"docker run -d --name {image.split('/')[-1].split(':')[0]} {image}", + "purpose": f"Start {image} container", + } + ) + suggestions.append( + { + "type": "demo", + "icon": "๐Ÿ“", + "label": "Show demo usage", + "description": "Example docker-compose and run commands", + "demo_type": "docker", + "image": image, + } + ) break - + # Ollama/Model runner suggestions if "ollama" in cmd_str or "ollama" in query_lower or "model" in query_lower: - suggestions.append({ - "type": "start", - "icon": "๐Ÿš€", - "label": "Start Ollama server", - "description": "Run Ollama in the background", - "command": "docker run -d --name ollama -p 11434:11434 -v ollama:/root/.ollama ollama/ollama", - "purpose": "Start Ollama server container", - }) - suggestions.append({ - "type": "setup", - "icon": "โš™๏ธ", - "label": "Pull a model", - "description": "Download a model like llama2, mistral, or codellama", - "command": "docker exec ollama ollama pull llama2", - "purpose": "Download llama2 model", - }) - suggestions.append({ - "type": "demo", - "icon": "๐Ÿ“", - "label": "Show API demo", - "description": "Example curl commands and Python code", - "demo_type": "ollama", - }) - suggestions.append({ - "type": "test", - "icon": "๐Ÿงช", - "label": "Test the installation", - "description": "Verify Ollama is running correctly", - "command": "curl http://localhost:11434/api/tags", - "purpose": "Check Ollama API", - }) - + suggestions.append( + { + "type": "start", + "icon": "๐Ÿš€", + "label": "Start Ollama server", + "description": "Run Ollama in the background", + "command": "docker run -d --name ollama -p 11434:11434 -v ollama:/root/.ollama ollama/ollama", + "purpose": "Start Ollama server container", + } + ) + suggestions.append( + { + "type": "setup", + "icon": "โš™๏ธ", + "label": "Pull a model", + "description": "Download a model like llama2, mistral, or codellama", + "command": "docker exec ollama ollama pull llama2", + "purpose": "Download llama2 model", + } + ) + suggestions.append( + { + "type": "demo", + "icon": "๐Ÿ“", + "label": "Show API demo", + "description": "Example curl commands and Python code", + "demo_type": "ollama", + } + ) + suggestions.append( + { + "type": "test", + "icon": "๐Ÿงช", + "label": "Test the installation", + "description": "Verify Ollama is running correctly", + "command": "curl http://localhost:11434/api/tags", + "purpose": "Check Ollama API", + } + ) + # Nginx suggestions if "nginx" in cmd_str or "nginx" in query_lower: - suggestions.append({ - "type": "start", - "icon": "๐Ÿš€", - "label": "Start Nginx", - "description": "Start the Nginx web server", - "command": "sudo systemctl start nginx", - "purpose": "Start Nginx service", - }) - suggestions.append({ - "type": "setup", - "icon": "โš™๏ธ", - "label": "Configure a site", - "description": "Set up a new virtual host", - "demo_type": "nginx_config", - }) - suggestions.append({ - "type": "test", - "icon": "๐Ÿงช", - "label": "Test configuration", - "description": "Verify Nginx config is valid", - "command": "sudo nginx -t", - "purpose": "Test Nginx configuration", - }) - + suggestions.append( + { + "type": "start", + "icon": "๐Ÿš€", + "label": "Start Nginx", + "description": "Start the Nginx web server", + "command": "sudo systemctl start nginx", + "purpose": "Start Nginx service", + } + ) + suggestions.append( + { + "type": "setup", + "icon": "โš™๏ธ", + "label": "Configure a site", + "description": "Set up a new virtual host", + "demo_type": "nginx_config", + } + ) + suggestions.append( + { + "type": "test", + "icon": "๐Ÿงช", + "label": "Test configuration", + "description": "Verify Nginx config is valid", + "command": "sudo nginx -t", + "purpose": "Test Nginx configuration", + } + ) + # PostgreSQL suggestions if "postgres" in cmd_str or "postgresql" in query_lower: - suggestions.append({ - "type": "start", - "icon": "๐Ÿš€", - "label": "Start PostgreSQL", - "description": "Start the database server", - "command": "sudo systemctl start postgresql", - "purpose": "Start PostgreSQL service", - }) - suggestions.append({ - "type": "setup", - "icon": "โš™๏ธ", - "label": "Create a database", - "description": "Create a new database and user", - "demo_type": "postgres_setup", - }) - suggestions.append({ - "type": "test", - "icon": "๐Ÿงช", - "label": "Test connection", - "description": "Verify PostgreSQL is accessible", - "command": "sudo -u postgres psql -c '\\l'", - "purpose": "List PostgreSQL databases", - }) - + suggestions.append( + { + "type": "start", + "icon": "๐Ÿš€", + "label": "Start PostgreSQL", + "description": "Start the database server", + "command": "sudo systemctl start postgresql", + "purpose": "Start PostgreSQL service", + } + ) + suggestions.append( + { + "type": "setup", + "icon": "โš™๏ธ", + "label": "Create a database", + "description": "Create a new database and user", + "demo_type": "postgres_setup", + } + ) + suggestions.append( + { + "type": "test", + "icon": "๐Ÿงช", + "label": "Test connection", + "description": "Verify PostgreSQL is accessible", + "command": "sudo -u postgres psql -c '\\l'", + "purpose": "List PostgreSQL databases", + } + ) + # Node.js/npm suggestions if "node" in cmd_str or "npm" in cmd_str or "nodejs" in query_lower: - suggestions.append({ - "type": "demo", - "icon": "๐Ÿ“", - "label": "Show starter code", - "description": "Example Express.js server", - "demo_type": "nodejs", - }) - suggestions.append({ - "type": "test", - "icon": "๐Ÿงช", - "label": "Verify installation", - "description": "Check Node.js and npm versions", - "command": "node --version && npm --version", - "purpose": "Check Node.js installation", - }) - + suggestions.append( + { + "type": "demo", + "icon": "๐Ÿ“", + "label": "Show starter code", + "description": "Example Express.js server", + "demo_type": "nodejs", + } + ) + suggestions.append( + { + "type": "test", + "icon": "๐Ÿงช", + "label": "Verify installation", + "description": "Check Node.js and npm versions", + "command": "node --version && npm --version", + "purpose": "Check Node.js installation", + } + ) + # Python/pip suggestions if "python" in cmd_str or "pip" in cmd_str: - suggestions.append({ - "type": "demo", - "icon": "๐Ÿ“", - "label": "Show example code", - "description": "Example Python usage", - "demo_type": "python", - }) - suggestions.append({ - "type": "test", - "icon": "๐Ÿงช", - "label": "Test import", - "description": "Verify packages are importable", - "demo_type": "python_test", - }) - + suggestions.append( + { + "type": "demo", + "icon": "๐Ÿ“", + "label": "Show example code", + "description": "Example Python usage", + "demo_type": "python", + } + ) + suggestions.append( + { + "type": "test", + "icon": "๐Ÿงช", + "label": "Test import", + "description": "Verify packages are importable", + "demo_type": "python_test", + } + ) + # Generic suggestions if nothing specific matched if not suggestions: # Add a generic test suggestion - suggestions.append({ - "type": "test", - "icon": "๐Ÿงช", - "label": "Run a quick test", - "description": "Verify the installation works", - "demo_type": "generic_test", - }) - + suggestions.append( + { + "type": "test", + "icon": "๐Ÿงช", + "label": "Run a quick test", + "description": "Verify the installation works", + "demo_type": "generic_test", + } + ) + return suggestions[:5] # Limit to 5 suggestions - + def _execute_suggestion( self, suggestion: dict, @@ -2428,24 +2767,27 @@ def _execute_suggestion( ) -> None: """Execute a suggestion.""" suggestion_type = suggestion.get("type") - + if suggestion_type == "retry_interrupted": # Retry the command that was interrupted if self._interrupted_command: console.print() console.print(f"[cyan]๐Ÿ”„ Retrying:[/cyan] {self._interrupted_command}") console.print() - - needs_sudo = "sudo" in self._interrupted_command or self._needs_sudo(self._interrupted_command, []) + + needs_sudo = "sudo" in self._interrupted_command or self._needs_sudo( + self._interrupted_command, [] + ) success, stdout, stderr = self._execute_single_command( - self._interrupted_command, - needs_sudo=needs_sudo + self._interrupted_command, needs_sudo=needs_sudo ) - + if success: - console.print(f"[green]โœ“ Success[/green]") + console.print("[green]โœ“ Success[/green]") if stdout: - console.print(f"[dim]{stdout[:500]}{'...' if len(stdout) > 500 else ''}[/dim]") + console.print( + f"[dim]{stdout[:500]}{'...' if len(stdout) > 500 else ''}[/dim]" + ) self._interrupted_command = None # Clear after successful retry else: console.print(f"[red]โœ— Failed: {stderr[:200]}[/red]") @@ -2456,13 +2798,15 @@ def _execute_suggestion( console.print() console.print("[cyan]โญ๏ธ Skipping interrupted command and continuing...[/cyan]") self._interrupted_command = None - + if self._remaining_commands: console.print(f"[dim]Remaining commands: {len(self._remaining_commands)}[/dim]") for cmd, purpose, protected in self._remaining_commands: console.print(f"[dim] โ€ข {cmd[:60]}{'...' if len(cmd) > 60 else ''}[/dim]") console.print() - console.print("[dim]Use 'continue all' to execute remaining commands, or type a new request.[/dim]") + console.print( + "[dim]Use 'continue all' to execute remaining commands, or type a new request.[/dim]" + ) else: console.print("[dim]No remaining commands to execute.[/dim]") elif suggestion_type == "demo": @@ -2474,15 +2818,14 @@ def _execute_suggestion( console.print() console.print(f"[cyan]Executing:[/cyan] {suggestion['command']}") console.print() - + needs_sudo = "sudo" in suggestion["command"] success, stdout, stderr = self._execute_single_command( - suggestion["command"], - needs_sudo=needs_sudo + suggestion["command"], needs_sudo=needs_sudo ) - + if success: - console.print(f"[green]โœ“ Success[/green]") + console.print("[green]โœ“ Success[/green]") if stdout: console.print(f"[dim]{stdout[:500]}{'...' if len(stdout) > 500 else ''}[/dim]") else: @@ -2497,130 +2840,155 @@ def _execute_suggestion( console.print("[dim]Copy and run these commands in your terminal.[/dim]") else: console.print("[yellow]No specific action available for this suggestion.[/yellow]") - + def _show_test_commands(self, run: DoRun, user_query: str) -> None: """Show test commands based on what was installed/configured.""" from rich.panel import Panel - + console.print() console.print("[bold cyan]๐Ÿงช Quick Test Commands[/bold cyan]") console.print() - + test_commands = [] query_lower = user_query.lower() - + # Detect what was installed and suggest appropriate tests executed_cmds = [c.command.lower() for c in run.commands if c.status.value == "success"] all_cmds_str = " ".join(executed_cmds) - + # Web server tests if "apache" in all_cmds_str or "apache2" in query_lower: - test_commands.extend([ - ("Check Apache status", "systemctl status apache2"), - ("Test Apache config", "sudo apache2ctl -t"), - ("View in browser", "curl -I http://localhost"), - ]) - + test_commands.extend( + [ + ("Check Apache status", "systemctl status apache2"), + ("Test Apache config", "sudo apache2ctl -t"), + ("View in browser", "curl -I http://localhost"), + ] + ) + if "nginx" in all_cmds_str or "nginx" in query_lower: - test_commands.extend([ - ("Check Nginx status", "systemctl status nginx"), - ("Test Nginx config", "sudo nginx -t"), - ("View in browser", "curl -I http://localhost"), - ]) - + test_commands.extend( + [ + ("Check Nginx status", "systemctl status nginx"), + ("Test Nginx config", "sudo nginx -t"), + ("View in browser", "curl -I http://localhost"), + ] + ) + # Database tests if "mysql" in all_cmds_str or "mysql" in query_lower: - test_commands.extend([ - ("Check MySQL status", "systemctl status mysql"), - ("Test MySQL connection", "sudo mysql -e 'SELECT VERSION();'"), - ]) - + test_commands.extend( + [ + ("Check MySQL status", "systemctl status mysql"), + ("Test MySQL connection", "sudo mysql -e 'SELECT VERSION();'"), + ] + ) + if "postgresql" in all_cmds_str or "postgres" in query_lower: - test_commands.extend([ - ("Check PostgreSQL status", "systemctl status postgresql"), - ("Test PostgreSQL", "sudo -u postgres psql -c 'SELECT version();'"), - ]) - + test_commands.extend( + [ + ("Check PostgreSQL status", "systemctl status postgresql"), + ("Test PostgreSQL", "sudo -u postgres psql -c 'SELECT version();'"), + ] + ) + # Docker tests if "docker" in all_cmds_str or "docker" in query_lower: - test_commands.extend([ - ("Check Docker status", "systemctl status docker"), - ("List containers", "docker ps -a"), - ("Test Docker", "docker run hello-world"), - ]) - + test_commands.extend( + [ + ("Check Docker status", "systemctl status docker"), + ("List containers", "docker ps -a"), + ("Test Docker", "docker run hello-world"), + ] + ) + # PHP tests if "php" in all_cmds_str or "php" in query_lower or "lamp" in query_lower: - test_commands.extend([ - ("Check PHP version", "php -v"), - ("Test PHP info", "php -i | head -20"), - ]) - + test_commands.extend( + [ + ("Check PHP version", "php -v"), + ("Test PHP info", "php -i | head -20"), + ] + ) + # Node.js tests if "node" in all_cmds_str or "nodejs" in query_lower: - test_commands.extend([ - ("Check Node version", "node -v"), - ("Check npm version", "npm -v"), - ]) - + test_commands.extend( + [ + ("Check Node version", "node -v"), + ("Check npm version", "npm -v"), + ] + ) + # Python tests if "python" in all_cmds_str or "python" in query_lower: - test_commands.extend([ - ("Check Python version", "python3 --version"), - ("Check pip version", "pip3 --version"), - ]) - + test_commands.extend( + [ + ("Check Python version", "python3 --version"), + ("Check pip version", "pip3 --version"), + ] + ) + # Generic service tests if not test_commands: # Try to extract service names from commands for cmd_log in run.commands: if "systemctl" in cmd_log.command and cmd_log.status.value == "success": import re - match = re.search(r'systemctl\s+(?:start|enable|restart)\s+(\S+)', cmd_log.command) + + match = re.search( + r"systemctl\s+(?:start|enable|restart)\s+(\S+)", cmd_log.command + ) if match: service = match.group(1) - test_commands.append((f"Check {service} status", f"systemctl status {service}")) - + test_commands.append( + (f"Check {service} status", f"systemctl status {service}") + ) + if not test_commands: test_commands = [ ("Check system status", "systemctl --failed"), ("View recent logs", "journalctl -n 20 --no-pager"), ] - + # Display test commands for i, (desc, cmd) in enumerate(test_commands[:6], 1): # Limit to 6 console.print(f" [bold]{i}.[/bold] {desc}") console.print(f" [green]$ {cmd}[/green]") console.print() - + console.print("[dim]Copy and run these commands to verify your installation.[/dim]") console.print() - + # Offer to run the first test try: response = input("[dim]Run first test? [y/N]: [/dim]").strip().lower() - if response in ['y', 'yes']: + if response in ["y", "yes"]: if test_commands: desc, cmd = test_commands[0] console.print() console.print(f"[cyan]Running:[/cyan] {cmd}") needs_sudo = cmd.strip().startswith("sudo") - success, stdout, stderr = self._execute_single_command(cmd, needs_sudo=needs_sudo) + success, stdout, stderr = self._execute_single_command( + cmd, needs_sudo=needs_sudo + ) if success: console.print(f"[green]โœ“ {desc} - Passed[/green]") if stdout: - console.print(Panel(stdout[:500], title="[dim]Output[/dim]", border_style="dim")) + console.print( + Panel(stdout[:500], title="[dim]Output[/dim]", border_style="dim") + ) else: console.print(f"[red]โœ— {desc} - Failed[/red]") if stderr: console.print(f"[dim red]{stderr[:200]}[/dim red]") except (EOFError, KeyboardInterrupt): pass - + def _show_demo(self, demo_type: str, suggestion: dict) -> None: """Show demo code/commands for a specific type.""" console.print() - + if demo_type == "docker": image = suggestion.get("image", "your-image") console.print("[bold cyan]๐Ÿ“ Docker Usage Examples[/bold cyan]") @@ -2636,7 +3004,7 @@ def _show_demo(self, demo_type: str, suggestion: dict) -> None: console.print() console.print("[dim]# Run with volume mount:[/dim]") console.print(f"[green]docker run -d -v /host/path:/container/path {image}[/green]") - + elif demo_type == "ollama": console.print("[bold cyan]๐Ÿ“ Ollama API Examples[/bold cyan]") console.print() @@ -2644,13 +3012,13 @@ def _show_demo(self, demo_type: str, suggestion: dict) -> None: console.print("[green]curl http://localhost:11434/api/tags[/green]") console.print() console.print("[dim]# Generate text:[/dim]") - console.print('''[green]curl http://localhost:11434/api/generate -d '{ + console.print("""[green]curl http://localhost:11434/api/generate -d '{ "model": "llama2", "prompt": "Hello, how are you?" -}'[/green]''') +}'[/green]""") console.print() console.print("[dim]# Python example:[/dim]") - console.print('''[green]import requests + console.print("""[green]import requests response = requests.post('http://localhost:11434/api/generate', json={ @@ -2658,8 +3026,8 @@ def _show_demo(self, demo_type: str, suggestion: dict) -> None: 'prompt': 'Explain quantum computing in simple terms', 'stream': False }) -print(response.json()['response'])[/green]''') - +print(response.json()['response'])[/green]""") + elif demo_type == "nginx_config": console.print("[bold cyan]๐Ÿ“ Nginx Configuration Example[/bold cyan]") console.print() @@ -2667,7 +3035,7 @@ def _show_demo(self, demo_type: str, suggestion: dict) -> None: console.print("[green]sudo nano /etc/nginx/sites-available/mysite[/green]") console.print() console.print("[dim]# Example config:[/dim]") - console.print('''[green]server { + console.print("""[green]server { listen 80; server_name example.com; @@ -2678,12 +3046,14 @@ def _show_demo(self, demo_type: str, suggestion: dict) -> None: proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; } -}[/green]''') +}[/green]""") console.print() console.print("[dim]# Enable the site:[/dim]") - console.print("[green]sudo ln -s /etc/nginx/sites-available/mysite /etc/nginx/sites-enabled/[/green]") + console.print( + "[green]sudo ln -s /etc/nginx/sites-available/mysite /etc/nginx/sites-enabled/[/green]" + ) console.print("[green]sudo nginx -t && sudo systemctl reload nginx[/green]") - + elif demo_type == "postgres_setup": console.print("[bold cyan]๐Ÿ“ PostgreSQL Setup Example[/bold cyan]") console.print() @@ -2695,7 +3065,7 @@ def _show_demo(self, demo_type: str, suggestion: dict) -> None: console.print("[green]psql -U myuser -d mydb[/green]") console.print() console.print("[dim]# Python connection example:[/dim]") - console.print('''[green]import psycopg2 + console.print("""[green]import psycopg2 conn = psycopg2.connect( dbname="mydb", @@ -2705,13 +3075,13 @@ def _show_demo(self, demo_type: str, suggestion: dict) -> None: ) cursor = conn.cursor() cursor.execute("SELECT version();") -print(cursor.fetchone())[/green]''') - +print(cursor.fetchone())[/green]""") + elif demo_type == "nodejs": console.print("[bold cyan]๐Ÿ“ Node.js Example[/bold cyan]") console.print() console.print("[dim]# Create a simple Express server:[/dim]") - console.print('''[green]// server.js + console.print("""[green]// server.js const express = require('express'); const app = express(); @@ -2721,11 +3091,11 @@ def _show_demo(self, demo_type: str, suggestion: dict) -> None: app.listen(3000, () => { console.log('Server running on http://localhost:3000'); -});[/green]''') +});[/green]""") console.print() console.print("[dim]# Run it:[/dim]") console.print("[green]npm init -y && npm install express && node server.js[/green]") - + elif demo_type == "python": console.print("[bold cyan]๐Ÿ“ Python Example[/bold cyan]") console.print() @@ -2733,7 +3103,7 @@ def _show_demo(self, demo_type: str, suggestion: dict) -> None: console.print("[green]python3 -m http.server 8000[/green]") console.print() console.print("[dim]# Flask web app:[/dim]") - console.print('''[green]from flask import Flask + console.print("""[green]from flask import Flask app = Flask(__name__) @app.route('/') @@ -2741,13 +3111,15 @@ def hello(): return {'message': 'Hello from Python!'} if __name__ == '__main__': - app.run(debug=True)[/green]''') - + app.run(debug=True)[/green]""") + else: - console.print("[dim]No specific demo available. Check the documentation for usage examples.[/dim]") - + console.print( + "[dim]No specific demo available. Check the documentation for usage examples.[/dim]" + ) + console.print() - + def _execute_task_node( self, task: TaskNode, @@ -2758,13 +3130,17 @@ def _execute_task_node( """Execute a single task node with auto-repair capabilities.""" indent = " " * depth task_num = f"[{task.task_type.value.upper()}]" - + # Check if task was marked as skipped (e.g., using existing resource) if task.status == CommandStatus.SKIPPED: # Claude-like skipped output - console.print(f"{indent}[dim]โ—‹[/dim] [cyan]{task.command[:65]}{'...' if len(task.command) > 65 else ''}[/cyan]") - console.print(f"{indent} [dim italic]โ†ณ Skipped: {task.output or 'Using existing resource'}[/dim italic]") - + console.print( + f"{indent}[dim]โ—‹[/dim] [cyan]{task.command[:65]}{'...' if len(task.command) > 65 else ''}[/cyan]" + ) + console.print( + f"{indent} [dim italic]โ†ณ Skipped: {task.output or 'Using existing resource'}[/dim italic]" + ) + # Log the skipped command cmd_log = CommandLog( command=task.command, @@ -2775,33 +3151,37 @@ def _execute_task_node( ) run.commands.append(cmd_log) return - + # Claude-like command output - console.print(f"{indent}[bold cyan]โ—[/bold cyan] [bold]{task.command[:65]}{'...' if len(task.command) > 65 else ''}[/bold]") + console.print( + f"{indent}[bold cyan]โ—[/bold cyan] [bold]{task.command[:65]}{'...' if len(task.command) > 65 else ''}[/bold]" + ) console.print(f"{indent} [dim italic]โ†ณ {task.purpose}[/dim italic]") - + protected_paths = [] user_query = run.user_query if run else "" for cmd, _, protected in original_commands: if cmd == task.command: protected_paths = protected break - - file_check = self._file_analyzer.check_file_exists_and_usefulness(task.command, task.purpose, user_query) - + + file_check = self._file_analyzer.check_file_exists_and_usefulness( + task.command, task.purpose, user_query + ) + if file_check["recommendations"]: self._file_analyzer.apply_file_recommendations(file_check["recommendations"]) - + task.status = CommandStatus.RUNNING start_time = time.time() - + needs_sudo = self._needs_sudo(task.command, protected_paths) success, stdout, stderr = self._execute_single_command(task.command, needs_sudo) - + task.output = stdout task.error = stderr task.duration_seconds = time.time() - start_time - + # Check if command was interrupted by Ctrl+Z/Ctrl+C if self._interrupted: task.status = CommandStatus.INTERRUPTED @@ -2814,10 +3194,12 @@ def _execute_task_node( error="Command interrupted by user (Ctrl+Z/Ctrl+C)", duration_seconds=task.duration_seconds, ) - console.print(f"{indent} [yellow]โš [/yellow] [dim]Interrupted ({task.duration_seconds:.2f}s)[/dim]") + console.print( + f"{indent} [yellow]โš [/yellow] [dim]Interrupted ({task.duration_seconds:.2f}s)[/dim]" + ) run.commands.append(cmd_log) return - + cmd_log = CommandLog( command=task.command, purpose=task.purpose, @@ -2827,75 +3209,91 @@ def _execute_task_node( error=stderr, duration_seconds=task.duration_seconds, ) - + if success: task.status = CommandStatus.SUCCESS # Claude-like success output - console.print(f"{indent} [green]โœ“[/green] [dim]Done ({task.duration_seconds:.2f}s)[/dim]") + console.print( + f"{indent} [green]โœ“[/green] [dim]Done ({task.duration_seconds:.2f}s)[/dim]" + ) if stdout: - output_preview = stdout[:100] + ('...' if len(stdout) > 100 else '') + output_preview = stdout[:100] + ("..." if len(stdout) > 100 else "") console.print(f"{indent} [dim]{output_preview}[/dim]") console.print() run.commands.append(cmd_log) return - + task.status = CommandStatus.NEEDS_REPAIR diagnosis = self._diagnoser.diagnose_error(task.command, stderr) task.failure_reason = diagnosis.get("description", "Unknown error") - + # Claude-like error output console.print(f"{indent} [red]โœ—[/red] [bold red]{diagnosis['error_type']}[/bold red]") - console.print(f"{indent} [dim]{diagnosis['description'][:80]}{'...' if len(diagnosis['description']) > 80 else ''}[/dim]") - + console.print( + f"{indent} [dim]{diagnosis['description'][:80]}{'...' if len(diagnosis['description']) > 80 else ''}[/dim]" + ) + # Check if this is a login/credential required error if diagnosis.get("category") == "login_required": console.print(f"{indent}[cyan] ๐Ÿ” Authentication required[/cyan]") - + login_success, login_msg = self._login_handler.handle_login(task.command, stderr) - + if login_success: console.print(f"{indent}[green] โœ“ {login_msg}[/green]") console.print(f"{indent}[cyan] Retrying command...[/cyan]") - + # Retry the command needs_sudo = self._needs_sudo(task.command, []) - success, new_stdout, new_stderr = self._execute_single_command(task.command, needs_sudo) - + success, new_stdout, new_stderr = self._execute_single_command( + task.command, needs_sudo + ) + if success: task.status = CommandStatus.SUCCESS task.reasoning = "Succeeded after authentication" cmd_log.status = CommandStatus.SUCCESS cmd_log.stdout = new_stdout[:500] if new_stdout else "" - console.print(f"{indent}[green] โœ“ Command succeeded after authentication![/green]") + console.print( + f"{indent}[green] โœ“ Command succeeded after authentication![/green]" + ) run.commands.append(cmd_log) return else: # Still failed after login stderr = new_stderr diagnosis = self._diagnoser.diagnose_error(task.command, stderr) - console.print(f"{indent}[yellow] Command still failed: {stderr[:100]}[/yellow]") + console.print( + f"{indent}[yellow] Command still failed: {stderr[:100]}[/yellow]" + ) else: console.print(f"{indent}[yellow] {login_msg}[/yellow]") - + if diagnosis.get("extracted_path"): console.print(f"{indent}[dim] Path: {diagnosis['extracted_path']}[/dim]") - + # Handle timeout errors specially - don't blindly retry if diagnosis.get("category") == "timeout" or "timed out" in stderr.lower(): console.print(f"{indent}[yellow] โฑ๏ธ This operation timed out[/yellow]") - + # Check if it's a docker pull - those might still be running if "docker pull" in task.command.lower(): - console.print(f"{indent}[cyan] โ„น๏ธ Docker pull may still be downloading in background[/cyan]") - console.print(f"{indent}[dim] Check with: docker images | grep [/dim]") - console.print(f"{indent}[dim] Or retry with: docker pull --timeout=0 [/dim]") + console.print( + f"{indent}[cyan] โ„น๏ธ Docker pull may still be downloading in background[/cyan]" + ) + console.print( + f"{indent}[dim] Check with: docker images | grep [/dim]" + ) + console.print( + f"{indent}[dim] Or retry with: docker pull --timeout=0 [/dim]" + ) elif "apt" in task.command.lower(): console.print(f"{indent}[cyan] โ„น๏ธ Package installation timed out[/cyan]") console.print(f"{indent}[dim] Check apt status: sudo dpkg --configure -a[/dim]") console.print(f"{indent}[dim] Then retry the command[/dim]") else: console.print(f"{indent}[cyan] โ„น๏ธ You can retry this command manually[/cyan]") - + # Mark as needing manual intervention, not auto-fix task.status = CommandStatus.NEEDS_REPAIR task.failure_reason = "Operation timed out - may need manual retry" @@ -2903,19 +3301,22 @@ def _execute_task_node( cmd_log.error = stderr run.commands.append(cmd_log) return - + if task.repair_attempts < task.max_repair_attempts: import sys + task.repair_attempts += 1 - console.print(f"{indent}[cyan] ๐Ÿ”ง Auto-fix attempt {task.repair_attempts}/{task.max_repair_attempts}[/cyan]") - + console.print( + f"{indent}[cyan] ๐Ÿ”ง Auto-fix attempt {task.repair_attempts}/{task.max_repair_attempts}[/cyan]" + ) + # Flush output before auto-fix to ensure clean display after sudo prompts sys.stdout.flush() - + fixed, fix_message, fix_commands = self._auto_fixer.auto_fix_error( task.command, stderr, diagnosis, max_attempts=3 ) - + for fix_cmd in fix_commands: repair_task = self._task_tree.add_repair_task( parent=task, @@ -2924,7 +3325,7 @@ def _execute_task_node( reasoning=fix_message, ) repair_task.status = CommandStatus.SUCCESS - + if fixed: task.status = CommandStatus.SUCCESS task.reasoning = f"Auto-fixed: {fix_message}" @@ -2934,12 +3335,12 @@ def _execute_task_node( return else: console.print(f"{indent}[yellow] Auto-fix incomplete: {fix_message}[/yellow]") - + task.status = CommandStatus.FAILED task.reasoning = self._generate_task_failure_reasoning(task, diagnosis) - + error_type = diagnosis.get("error_type", "unknown") - + # Check if this is a "soft failure" that shouldn't warrant manual intervention # These are cases where a tool/command simply isn't available and that's OK soft_failure_types = { @@ -2948,7 +3349,7 @@ def _execute_task_node( "no_such_command", "unable_to_locate_package", # Package doesn't exist in repos } - + # Also check for patterns in the error message that indicate optional tools optional_tool_patterns = [ "sensors", # lm-sensors - optional hardware monitoring @@ -2961,36 +3362,42 @@ def _execute_task_node( "iotop", # optional I/O monitor "iftop", # optional network monitor ] - + cmd_base = task.command.split()[0] if task.command else "" is_optional_tool = any(pattern in cmd_base.lower() for pattern in optional_tool_patterns) is_soft_failure = error_type in soft_failure_types and is_optional_tool - + if is_soft_failure: # Mark as skipped instead of failed - this is an optional tool that's not available task.status = CommandStatus.SKIPPED task.reasoning = f"Tool '{cmd_base}' not available (optional)" - console.print(f"{indent}[yellow] โ—‹ Skipped: {cmd_base} not available (optional tool)[/yellow]") - console.print(f"{indent}[dim] This tool provides additional info but isn't required[/dim]") + console.print( + f"{indent}[yellow] โ—‹ Skipped: {cmd_base} not available (optional tool)[/yellow]" + ) + console.print( + f"{indent}[dim] This tool provides additional info but isn't required[/dim]" + ) cmd_log.status = CommandStatus.SKIPPED else: console.print(f"{indent}[red] โœ— Failed: {diagnosis['description'][:100]}[/red]") console.print(f"{indent}[dim] Reasoning: {task.reasoning}[/dim]") - + # Only offer manual intervention for errors that could actually be fixed manually # Don't offer for missing commands/packages that auto-fix couldn't resolve - should_offer_manual = ( - diagnosis.get("fix_commands") or stderr - ) and error_type not in {"command_not_found", "not_found", "unable_to_locate_package"} - + should_offer_manual = (diagnosis.get("fix_commands") or stderr) and error_type not in { + "command_not_found", + "not_found", + "unable_to_locate_package", + } + if should_offer_manual: console.print(f"\n{indent}[yellow]๐Ÿ’ก Manual intervention available[/yellow]") - + suggested_cmds = diagnosis.get("fix_commands", [f"sudo {task.command}"]) console.print(f"{indent}[dim] Suggested commands:[/dim]") for cmd in suggested_cmds[:3]: console.print(f"{indent}[cyan] $ {cmd}[/cyan]") - + if Confirm.ask(f"{indent}Run manually while Cortex monitors?", default=False): manual_success = self._supervise_manual_intervention_for_task( task, suggested_cmds, run @@ -2999,10 +3406,10 @@ def _execute_task_node( task.status = CommandStatus.SUCCESS task.reasoning = "Completed via monitored manual intervention" cmd_log.status = CommandStatus.SUCCESS - + cmd_log.status = task.status run.commands.append(cmd_log) - + def _supervise_manual_intervention_for_task( self, task: TaskNode, @@ -3012,7 +3419,7 @@ def _supervise_manual_intervention_for_task( """Supervise manual intervention for a specific task with terminal monitoring.""" from rich.panel import Panel from rich.prompt import Prompt - + # If no suggested commands provided, use the task command with sudo if not suggested_commands: if task and task.command: @@ -3021,49 +3428,52 @@ def _supervise_manual_intervention_for_task( if not cmd.strip().startswith("sudo"): cmd = f"sudo {cmd}" suggested_commands = [cmd] - + # Claude-like manual intervention UI console.print() console.print("[bold blue]โ”โ”โ”[/bold blue] [bold]Manual Intervention[/bold]") console.print() - + # Show the task context if task and task.purpose: console.print(f"[bold]Task:[/bold] {task.purpose}") console.print() - + console.print("[dim]Run these commands in another terminal:[/dim]") console.print() - + # Show commands in a clear box if suggested_commands: from rich.panel import Panel + cmd_text = "\n".join(f" {i}. {cmd}" for i, cmd in enumerate(suggested_commands, 1)) - console.print(Panel( - cmd_text, - title="[bold cyan]๐Ÿ“‹ Commands to Run[/bold cyan]", - border_style="cyan", - padding=(0, 1), - )) + console.print( + Panel( + cmd_text, + title="[bold cyan]๐Ÿ“‹ Commands to Run[/bold cyan]", + border_style="cyan", + padding=(0, 1), + ) + ) else: console.print(" [yellow]โš  No specific commands - check the task above[/yellow]") - + console.print() - + # Track expected commands for matching self._expected_manual_commands = suggested_commands.copy() if suggested_commands else [] self._completed_manual_commands: list[str] = [] - + # Start terminal monitoring with detailed output self._terminal_monitor = TerminalMonitor( notification_callback=lambda title, msg: self._send_notification(title, msg) ) self._terminal_monitor.start(expected_commands=suggested_commands) - + console.print() console.print("[dim]Type 'done' when finished, 'help' for tips, or 'cancel' to abort[/dim]") console.print() - + try: while True: try: @@ -3071,20 +3481,29 @@ def _supervise_manual_intervention_for_task( except (EOFError, KeyboardInterrupt): console.print("\n[yellow]Manual intervention cancelled[/yellow]") return False - + # Handle natural language responses - if user_input in ["done", "finished", "complete", "completed", "success", "worked", "yes", "y"]: + if user_input in [ + "done", + "finished", + "complete", + "completed", + "success", + "worked", + "yes", + "y", + ]: # Show observed commands and check for matches observed = self._terminal_monitor.get_observed_commands() matched_commands = [] unmatched_commands = [] - + if observed: console.print(f"\n[cyan]๐Ÿ“Š Observed {len(observed)} command(s):[/cyan]") for obs in observed[-5:]: - obs_cmd = obs['command'] + obs_cmd = obs["command"] is_matched = False - + # Check if this matches any expected command for expected in self._expected_manual_commands: if self._commands_match(obs_cmd, expected): @@ -3093,44 +3512,50 @@ def _supervise_manual_intervention_for_task( console.print(f" โ€ข {obs_cmd[:60]}... [green]โœ“[/green]") is_matched = True break - + if not is_matched: unmatched_commands.append(obs_cmd) console.print(f" โ€ข {obs_cmd[:60]}... [yellow]?[/yellow]") - + # Check if expected commands were actually run if self._expected_manual_commands and not matched_commands: console.print() - console.print("[yellow]โš  None of the expected commands were detected.[/yellow]") + console.print( + "[yellow]โš  None of the expected commands were detected.[/yellow]" + ) console.print("[dim]Expected:[/dim]") for cmd in self._expected_manual_commands[:3]: console.print(f" [cyan]$ {cmd}[/cyan]") console.print() - + # Send notification with correct commands self._send_notification( "โš ๏ธ Cortex: Expected Commands", - f"Run: {self._expected_manual_commands[0][:50]}..." + f"Run: {self._expected_manual_commands[0][:50]}...", + ) + + console.print( + "[dim]Type 'done' again to confirm, or run the expected commands first.[/dim]" ) - - console.print("[dim]Type 'done' again to confirm, or run the expected commands first.[/dim]") continue # Don't mark as success yet - let user try again - + # Check if any observed commands had errors (check last few) has_errors = False if observed: for obs in observed[-3:]: - if obs.get('has_error') or obs.get('status') == 'failed': + if obs.get("has_error") or obs.get("status") == "failed": has_errors = True - console.print("[yellow]โš  Some commands may have failed. Please verify.[/yellow]") + console.print( + "[yellow]โš  Some commands may have failed. Please verify.[/yellow]" + ) break - - if has_errors and not user_input in ["yes", "y", "worked", "success"]: + + if has_errors and user_input not in ["yes", "y", "worked", "success"]: console.print("[dim]Type 'success' to confirm it worked anyway.[/dim]") continue - + console.print("[green]โœ“ Manual step completed successfully[/green]") - + if self._task_tree: verify_task = self._task_tree.add_verify_task( parent=task, @@ -3138,13 +3563,13 @@ def _supervise_manual_intervention_for_task( purpose="User confirmed manual intervention success", ) verify_task.status = CommandStatus.SUCCESS - + # Mark matched commands as completed so they're not re-executed if matched_commands: task.manual_commands_completed = matched_commands - + return True - + elif user_input in ["help", "?", "hint", "tips"]: console.print() console.print("[bold]๐Ÿ’ก Manual Intervention Tips:[/bold]") @@ -3154,16 +3579,16 @@ def _supervise_manual_intervention_for_task( console.print(" โ€ข Check services: [cyan]systemctl status [/cyan]") console.print(" โ€ข View logs: [cyan]journalctl -u -n 50[/cyan]") console.print() - + elif user_input in ["cancel", "abort", "quit", "exit", "no", "n"]: console.print("[yellow]Manual intervention cancelled[/yellow]") return False - + elif user_input in ["failed", "error", "problem", "issue"]: console.print() error_desc = Prompt.ask("[yellow]What error did you encounter?[/yellow]") error_lower = error_desc.lower() - + # Provide contextual help based on error description if "permission" in error_lower or "denied" in error_lower: console.print("\n[cyan]๐Ÿ’ก Try running with sudo:[/cyan]") @@ -3183,16 +3608,18 @@ def _supervise_manual_intervention_for_task( console.print(" โ€ข Check the error message carefully") console.print(" โ€ข Try running with sudo") console.print(" โ€ข Check if all required packages are installed") - + console.print() console.print("[dim]Type 'done' when fixed, or 'cancel' to abort[/dim]") - + else: # Any other input - show status observed = self._terminal_monitor.get_observed_commands() - console.print(f"[dim]Still monitoring... ({len(observed)} commands observed)[/dim]") + console.print( + f"[dim]Still monitoring... ({len(observed)} commands observed)[/dim]" + ) console.print("[dim]Type 'done' when finished, 'help' for tips[/dim]") - + except KeyboardInterrupt: console.print("\n[yellow]Manual intervention cancelled[/yellow]") return False @@ -3201,20 +3628,22 @@ def _supervise_manual_intervention_for_task( observed = self._terminal_monitor.stop() # Log observed commands to run for obs in observed: - run.commands.append(CommandLog( - command=obs["command"], - purpose=f"Manual execution ({obs['source']})", - timestamp=obs["timestamp"], - status=CommandStatus.SUCCESS, - )) + run.commands.append( + CommandLog( + command=obs["command"], + purpose=f"Manual execution ({obs['source']})", + timestamp=obs["timestamp"], + status=CommandStatus.SUCCESS, + ) + ) self._terminal_monitor = None - + # Clear tracking self._expected_manual_commands = [] - + def _commands_match(self, observed: str, expected: str) -> bool: """Check if an observed command matches an expected command. - + Handles variations like: - With/without sudo - Different whitespace @@ -3223,20 +3652,20 @@ def _commands_match(self, observed: str, expected: str) -> bool: # Normalize commands obs_normalized = observed.strip().lower() exp_normalized = expected.strip().lower() - + # Remove sudo prefix for comparison if obs_normalized.startswith("sudo "): obs_normalized = obs_normalized[5:].strip() if exp_normalized.startswith("sudo "): exp_normalized = exp_normalized[5:].strip() - + # Exact match if obs_normalized == exp_normalized: return True - + obs_parts = obs_normalized.split() exp_parts = exp_normalized.split() - + # Check for service management commands first (need full match including service name) service_commands = ["systemctl", "service"] for svc_cmd in service_commands: @@ -3246,42 +3675,61 @@ def _commands_match(self, observed: str, expected: str) -> bool: exp_action = None obs_service = None exp_service = None - + for i, part in enumerate(obs_parts): - if part in ["restart", "start", "stop", "reload", "status", "enable", "disable"]: + if part in [ + "restart", + "start", + "stop", + "reload", + "status", + "enable", + "disable", + ]: obs_action = part # Service name is usually the next word if i + 1 < len(obs_parts): obs_service = obs_parts[i + 1] break - + for i, part in enumerate(exp_parts): - if part in ["restart", "start", "stop", "reload", "status", "enable", "disable"]: + if part in [ + "restart", + "start", + "stop", + "reload", + "status", + "enable", + "disable", + ]: exp_action = part if i + 1 < len(exp_parts): exp_service = exp_parts[i + 1] break - + if obs_action and exp_action and obs_service and exp_service: if obs_action == exp_action and obs_service == exp_service: return True else: return False # Different action or service - + # For non-service commands, check if first 2-3 words match if len(obs_parts) >= 2 and len(exp_parts) >= 2: # Skip if either is a service command (handled above) - if obs_parts[0] not in ["systemctl", "service"] and exp_parts[0] not in ["systemctl", "service"]: + if obs_parts[0] not in ["systemctl", "service"] and exp_parts[0] not in [ + "systemctl", + "service", + ]: # Compare first two words (command and subcommand) if obs_parts[:2] == exp_parts[:2]: return True - + return False - + def get_completed_manual_commands(self) -> list[str]: """Get list of commands completed during manual intervention.""" - return getattr(self, '_completed_manual_commands', []) - + return getattr(self, "_completed_manual_commands", []) + def _generate_task_failure_reasoning( self, task: TaskNode, @@ -3289,15 +3737,15 @@ def _generate_task_failure_reasoning( ) -> str: """Generate detailed reasoning for why a task failed.""" parts = [] - + parts.append(f"Error: {diagnosis.get('error_type', 'unknown')}") - + if task.repair_attempts > 0: parts.append(f"Repair attempts: {task.repair_attempts} (all failed)") - + if diagnosis.get("extracted_path"): parts.append(f"Problem path: {diagnosis['extracted_path']}") - + error_type = diagnosis.get("error_type", "") if "permission" in error_type.lower(): parts.append("Root cause: Insufficient file system permissions") @@ -3305,38 +3753,38 @@ def _generate_task_failure_reasoning( parts.append("Root cause: Required file or directory does not exist") elif "service" in error_type.lower(): parts.append("Root cause: System service issue") - + if diagnosis.get("fix_commands"): parts.append(f"Suggested fix: {diagnosis['fix_commands'][0][:50]}...") - + return " | ".join(parts) - + def _generate_tree_summary(self, run: DoRun) -> str: """Generate a summary from the task tree execution.""" if not self._task_tree: return self._generate_summary(run) - + summary = self._task_tree.get_summary() - + total = sum(summary.values()) success = summary.get("success", 0) failed = summary.get("failed", 0) repaired = summary.get("needs_repair", 0) - + parts = [ f"Total tasks: {total}", f"Successful: {success}", f"Failed: {failed}", ] - + if repaired > 0: parts.append(f"Repair attempted: {repaired}") - + if self._permission_requests_count > 1: parts.append(f"Permission requests: {self._permission_requests_count}") - + return " | ".join(parts) - + def provide_manual_instructions( self, commands: list[tuple[str, str, list[str]]], @@ -3352,107 +3800,117 @@ def provide_manual_instructions( session_id=self.current_session_id or "", ) self.current_run = run - + console.print() - console.print(Panel( - "[bold cyan]๐Ÿ“‹ Manual Execution Instructions[/bold cyan]", - expand=False, - )) + console.print( + Panel( + "[bold cyan]๐Ÿ“‹ Manual Execution Instructions[/bold cyan]", + expand=False, + ) + ) console.print() - + cwd = os.getcwd() - console.print(f"[bold]1. Open a new terminal and navigate to:[/bold]") + console.print("[bold]1. Open a new terminal and navigate to:[/bold]") console.print(f" [cyan]cd {cwd}[/cyan]") console.print() - - console.print(f"[bold]2. Execute the following commands in order:[/bold]") + + console.print("[bold]2. Execute the following commands in order:[/bold]") console.print() - + for i, (cmd, purpose, protected) in enumerate(commands, 1): console.print(f" [bold yellow]Step {i}:[/bold yellow] {purpose}") needs_sudo = self._needs_sudo(cmd, protected) - + if protected: console.print(f" [red]โš ๏ธ Accesses protected paths: {', '.join(protected)}[/red]") - + if needs_sudo and not cmd.strip().startswith("sudo"): console.print(f" [cyan]sudo {cmd}[/cyan]") else: console.print(f" [cyan]{cmd}[/cyan]") console.print() - - run.commands.append(CommandLog( - command=cmd, - purpose=purpose, - timestamp=datetime.datetime.now().isoformat(), - status=CommandStatus.PENDING, - )) - + + run.commands.append( + CommandLog( + command=cmd, + purpose=purpose, + timestamp=datetime.datetime.now().isoformat(), + status=CommandStatus.PENDING, + ) + ) + console.print("[bold]3. Once done, return to this terminal and press Enter.[/bold]") console.print() - + monitor = TerminalMonitor( notification_callback=lambda title, msg: self._send_notification(title, msg, "normal") ) - + expected_commands = [cmd for cmd, _, _ in commands] monitor.start_monitoring(expected_commands) - + console.print("[dim]๐Ÿ” Monitoring terminal activity... (press Enter when done)[/dim]") - + try: input() except (EOFError, KeyboardInterrupt): pass - + observed = monitor.stop_monitoring() - + # Add observed commands to the run for obs in observed: - run.commands.append(CommandLog( - command=obs["command"], - purpose="User-executed command", - timestamp=obs["timestamp"], - status=CommandStatus.SUCCESS, - )) - + run.commands.append( + CommandLog( + command=obs["command"], + purpose="User-executed command", + timestamp=obs["timestamp"], + status=CommandStatus.SUCCESS, + ) + ) + run.completed_at = datetime.datetime.now().isoformat() run.summary = self._generate_summary(run) - + self.db.save_run(run) - + # Generate LLM summary/answer llm_answer = self._generate_llm_answer(run, user_query) - + # Print condensed execution summary with answer self._print_execution_summary(run, answer=llm_answer) - + console.print() console.print(f"[dim]Run ID: {run.run_id}[/dim]") - + return run - + def _generate_summary(self, run: DoRun) -> str: """Generate a summary of what was done in the run.""" successful = sum(1 for c in run.commands if c.status == CommandStatus.SUCCESS) failed = sum(1 for c in run.commands if c.status == CommandStatus.FAILED) - + mode_str = "automated" if run.mode == RunMode.CORTEX_EXEC else "manual" - + if failed == 0: return f"Successfully executed {successful} commands ({mode_str}) for: {run.user_query[:50]}" else: return f"Executed {successful} commands with {failed} failures ({mode_str}) for: {run.user_query[:50]}" - + def _generate_llm_answer(self, run: DoRun, user_query: str) -> str | None: """Generate an LLM-based answer/summary after command execution.""" if not self.llm_callback: return None - + # Collect command outputs command_results = [] for cmd in run.commands: - status = "โœ“" if cmd.status == CommandStatus.SUCCESS else "โœ—" if cmd.status == CommandStatus.FAILED else "โ—‹" + status = ( + "โœ“" + if cmd.status == CommandStatus.SUCCESS + else "โœ—" if cmd.status == CommandStatus.FAILED else "โ—‹" + ) result = { "command": cmd.command, "purpose": cmd.purpose, @@ -3462,7 +3920,7 @@ def _generate_llm_answer(self, run: DoRun, user_query: str) -> str | None: if cmd.error: result["error"] = cmd.error[:200] command_results.append(result) - + # Build prompt for LLM prompt = f"""The user asked: "{user_query}" @@ -3471,14 +3929,14 @@ def _generate_llm_answer(self, run: DoRun, user_query: str) -> str | None: for i, result in enumerate(command_results, 1): prompt += f"\n{i}. [{result['status']}] {result['command']}" prompt += f"\n Purpose: {result['purpose']}" - if result.get('output'): + if result.get("output"): # Only include meaningful output, not empty or whitespace-only - output_preview = result['output'].strip()[:200] + output_preview = result["output"].strip()[:200] if output_preview: prompt += f"\n Output: {output_preview}" - if result.get('error'): + if result.get("error"): prompt += f"\n Error: {result['error']}" - + prompt += """ Based on the above execution results, provide a helpful summary/answer for the user. @@ -3494,57 +3952,59 @@ def _generate_llm_answer(self, run: DoRun, user_query: str) -> str | None: try: from rich.console import Console from rich.status import Status - + console = Console() with Status("[cyan]Generating summary...[/cyan]", spinner="dots"): result = self.llm_callback(prompt) - + if result: # Handle different response formats if isinstance(result, dict): # Extract answer from various possible keys - answer = result.get("answer") or result.get("response") or result.get("text") or "" + answer = ( + result.get("answer") or result.get("response") or result.get("text") or "" + ) if not answer and "reasoning" in result: answer = result.get("reasoning", "") elif isinstance(result, str): answer = result else: return None - + # Clean the answer answer = answer.strip() - + # Filter out JSON-like responses - if answer.startswith('{') or answer.startswith('['): + if answer.startswith("{") or answer.startswith("["): return None - + return answer if answer else None except Exception as e: # Silently fail - summary is optional import logging + logging.debug(f"LLM summary generation failed: {e}") return None - + return None - + def _print_execution_summary(self, run: DoRun, answer: str | None = None): """Print a condensed execution summary with improved visual design.""" + from rich import box from rich.panel import Panel - from rich.table import Table from rich.text import Text - from rich import box - + # Count statuses successful = [c for c in run.commands if c.status == CommandStatus.SUCCESS] failed = [c for c in run.commands if c.status == CommandStatus.FAILED] skipped = [c for c in run.commands if c.status == CommandStatus.SKIPPED] interrupted = [c for c in run.commands if c.status == CommandStatus.INTERRUPTED] - + total = len(run.commands) - + # Build status header console.print() - + # Create a status bar if total > 0: status_text = Text() @@ -3557,20 +4017,22 @@ def _print_execution_summary(self, run: DoRun, answer: str | None = None): status_text.append(f"โ—‹ {len(skipped)} ", style="bold yellow") if interrupted: status_text.append(f"โš  {len(interrupted)} ", style="bold yellow") - + # Calculate success rate success_rate = (len(successful) / total * 100) if total > 0 else 0 status_text.append(f" ({success_rate:.0f}% success)", style="dim") - - console.print(Panel( - status_text, - title="[bold white on blue] ๐Ÿ“Š Execution Status [/bold white on blue]", - title_align="left", - border_style="blue", - padding=(0, 1), - expand=False, - )) - + + console.print( + Panel( + status_text, + title="[bold white on blue] ๐Ÿ“Š Execution Status [/bold white on blue]", + title_align="left", + border_style="blue", + padding=(0, 1), + expand=False, + ) + ) + # Create a table for detailed results if successful or failed or skipped: result_table = Table( @@ -3582,71 +4044,84 @@ def _print_execution_summary(self, run: DoRun, answer: str | None = None): ) result_table.add_column("Status", width=8, justify="center") result_table.add_column("Action", style="white") - + # Add successful commands for cmd in successful[:4]: purpose = cmd.purpose[:60] + "..." if len(cmd.purpose) > 60 else cmd.purpose result_table.add_row("[green]โœ“ Done[/green]", purpose) if len(successful) > 4: - result_table.add_row("[dim]...[/dim]", f"[dim]and {len(successful) - 4} more completed[/dim]") - + result_table.add_row( + "[dim]...[/dim]", f"[dim]and {len(successful) - 4} more completed[/dim]" + ) + # Add failed commands for cmd in failed[:2]: - error_short = (cmd.error[:40] + "...") if cmd.error and len(cmd.error) > 40 else (cmd.error or "Unknown") - result_table.add_row("[red]โœ— Failed[/red]", f"{cmd.command[:30]}... - {error_short}") - + error_short = ( + (cmd.error[:40] + "...") + if cmd.error and len(cmd.error) > 40 + else (cmd.error or "Unknown") + ) + result_table.add_row( + "[red]โœ— Failed[/red]", f"{cmd.command[:30]}... - {error_short}" + ) + # Add skipped commands for cmd in skipped[:2]: purpose = cmd.purpose[:50] + "..." if len(cmd.purpose) > 50 else cmd.purpose result_table.add_row("[yellow]โ—‹ Skip[/yellow]", purpose) - - console.print(Panel( - result_table, - title="[bold] ๐Ÿ“‹ Details [/bold]", - title_align="left", - border_style="dim", - padding=(0, 0), - )) - + + console.print( + Panel( + result_table, + title="[bold] ๐Ÿ“‹ Details [/bold]", + title_align="left", + border_style="dim", + padding=(0, 0), + ) + ) + # Answer section (for questions) - make it prominent if answer: # Clean the answer - remove any JSON-like content that might have leaked clean_answer = answer - if clean_answer.startswith('{') or '{"' in clean_answer[:50]: + if clean_answer.startswith("{") or '{"' in clean_answer[:50]: # Looks like JSON leaked through, try to extract readable parts import re + # Try to extract just the answer field if present answer_match = re.search(r'"answer"\s*:\s*"([^"]*)"', clean_answer) if answer_match: clean_answer = answer_match.group(1) - + # Truncate very long answers if len(clean_answer) > 500: display_answer = clean_answer[:500] + "\n\n[dim]... (truncated)[/dim]" else: display_answer = clean_answer - - console.print(Panel( - display_answer, - title="[bold white on green] ๐Ÿ’ก Answer [/bold white on green]", - title_align="left", - border_style="green", - padding=(1, 2), - )) - + + console.print( + Panel( + display_answer, + title="[bold white on green] ๐Ÿ’ก Answer [/bold white on green]", + title_align="left", + border_style="green", + padding=(1, 2), + ) + ) + def get_run_history(self, limit: int = 20) -> list[DoRun]: """Get recent do run history.""" return self.db.get_recent_runs(limit) - + def get_run(self, run_id: str) -> DoRun | None: """Get a specific run by ID.""" return self.db.get_run(run_id) - + # Expose diagnosis and auto-fix methods for external use def _diagnose_error(self, cmd: str, stderr: str) -> dict[str, Any]: """Diagnose a command failure.""" return self._diagnoser.diagnose_error(cmd, stderr) - + def _auto_fix_error( self, cmd: str, @@ -3656,11 +4131,11 @@ def _auto_fix_error( ) -> tuple[bool, str, list[str]]: """Auto-fix an error.""" return self._auto_fixer.auto_fix_error(cmd, stderr, diagnosis, max_attempts) - + def _check_for_conflicts(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for conflicts.""" return self._conflict_detector.check_for_conflicts(cmd, purpose) - + def _run_verification_tests( self, commands_executed: list[CommandLog], @@ -3668,7 +4143,7 @@ def _run_verification_tests( ) -> tuple[bool, list[dict[str, Any]]]: """Run verification tests.""" return self._verification_runner.run_verification_tests(commands_executed, user_query) - + def _check_file_exists_and_usefulness( self, cmd: str, @@ -3677,7 +4152,7 @@ def _check_file_exists_and_usefulness( ) -> dict[str, Any]: """Check file existence and usefulness.""" return self._file_analyzer.check_file_exists_and_usefulness(cmd, purpose, user_query) - + def _analyze_file_usefulness( self, content: str, @@ -3697,4 +4172,3 @@ def setup_cortex_user() -> bool: def get_do_handler() -> DoHandler: """Get a DoHandler instance.""" return DoHandler() - diff --git a/cortex/do_runner/managers.py b/cortex/do_runner/managers.py index 762f9dabf..412a7d5bc 100644 --- a/cortex/do_runner/managers.py +++ b/cortex/do_runner/managers.py @@ -13,7 +13,7 @@ class ProtectedPathsManager: """Manages the list of protected files and folders requiring user authentication.""" - + SYSTEM_PROTECTED_PATHS: set[str] = { # System configuration "/etc", @@ -52,14 +52,14 @@ class ProtectedPathsManager: "/proc", "/sys", } - + USER_PROTECTED_PATHS: set[str] = set() - + def __init__(self): self.config_file = Path.home() / ".cortex" / "protected_paths.json" self._ensure_config_dir() self._load_user_paths() - + def _ensure_config_dir(self): """Ensure the config directory exists.""" try: @@ -67,7 +67,7 @@ def _ensure_config_dir(self): except OSError: self.config_file = Path("/tmp") / ".cortex" / "protected_paths.json" self.config_file.parent.mkdir(parents=True, exist_ok=True) - + def _load_user_paths(self): """Load user-configured protected paths.""" if self.config_file.exists(): @@ -77,7 +77,7 @@ def _load_user_paths(self): self.USER_PROTECTED_PATHS = set(data.get("paths", [])) except (json.JSONDecodeError, OSError): pass - + def _save_user_paths(self): """Save user-configured protected paths.""" try: @@ -86,13 +86,13 @@ def _save_user_paths(self): json.dump({"paths": list(self.USER_PROTECTED_PATHS)}, f, indent=2) except OSError as e: console.print(f"[yellow]Warning: Could not save protected paths: {e}[/yellow]") - + def add_protected_path(self, path: str) -> bool: """Add a path to user-protected paths.""" self.USER_PROTECTED_PATHS.add(path) self._save_user_paths() return True - + def remove_protected_path(self, path: str) -> bool: """Remove a path from user-protected paths.""" if path in self.USER_PROTECTED_PATHS: @@ -100,21 +100,21 @@ def remove_protected_path(self, path: str) -> bool: self._save_user_paths() return True return False - + def is_protected(self, path: str) -> bool: """Check if a path requires authentication for access.""" path = os.path.abspath(path) all_protected = self.SYSTEM_PROTECTED_PATHS | self.USER_PROTECTED_PATHS - + if path in all_protected: return True - + for protected in all_protected: if path.startswith(protected + "/") or path == protected: return True - + return False - + def get_all_protected(self) -> list[str]: """Get all protected paths.""" return sorted(self.SYSTEM_PROTECTED_PATHS | self.USER_PROTECTED_PATHS) @@ -122,10 +122,10 @@ def get_all_protected(self) -> list[str]: class CortexUserManager: """Manages the cortex system user for privilege-limited execution.""" - + CORTEX_USER = "cortex" CORTEX_GROUP = "cortex" - + @classmethod def user_exists(cls) -> bool: """Check if the cortex user exists.""" @@ -134,34 +134,38 @@ def user_exists(cls) -> bool: return True except KeyError: return False - + @classmethod def create_user(cls) -> tuple[bool, str]: """Create the cortex user with basic privileges.""" if cls.user_exists(): return True, "Cortex user already exists" - + try: subprocess.run( ["sudo", "groupadd", "-f", cls.CORTEX_GROUP], check=True, capture_output=True, ) - + subprocess.run( [ - "sudo", "useradd", + "sudo", + "useradd", "-r", - "-g", cls.CORTEX_GROUP, - "-d", "/var/lib/cortex", - "-s", "/bin/bash", + "-g", + cls.CORTEX_GROUP, + "-d", + "/var/lib/cortex", + "-s", + "/bin/bash", "-m", cls.CORTEX_USER, ], check=True, capture_output=True, ) - + subprocess.run( ["sudo", "mkdir", "-p", "/var/lib/cortex/workspace"], check=True, @@ -172,18 +176,21 @@ def create_user(cls) -> tuple[bool, str]: check=True, capture_output=True, ) - + return True, "Cortex user created successfully" - + except subprocess.CalledProcessError as e: - return False, f"Failed to create cortex user: {e.stderr.decode() if e.stderr else str(e)}" - + return ( + False, + f"Failed to create cortex user: {e.stderr.decode() if e.stderr else str(e)}", + ) + @classmethod def grant_privilege(cls, file_path: str, mode: str = "rw") -> tuple[bool, str]: """Grant cortex user privilege to access a specific file.""" if not cls.user_exists(): return False, "Cortex user does not exist. Run setup first." - + try: acl_mode = "" if "r" in mode: @@ -192,24 +199,24 @@ def grant_privilege(cls, file_path: str, mode: str = "rw") -> tuple[bool, str]: acl_mode += "w" if "x" in mode: acl_mode += "x" - + if not acl_mode: acl_mode = "r" - + subprocess.run( ["sudo", "setfacl", "-m", f"u:{cls.CORTEX_USER}:{acl_mode}", file_path], check=True, capture_output=True, ) - + return True, f"Granted {acl_mode} access to {file_path}" - + except subprocess.CalledProcessError as e: error_msg = e.stderr.decode() if e.stderr else str(e) if "setfacl" in error_msg or "not found" in error_msg.lower(): return cls._grant_privilege_chmod(file_path, mode) return False, f"Failed to grant privilege: {error_msg}" - + @classmethod def _grant_privilege_chmod(cls, file_path: str, mode: str) -> tuple[bool, str]: """Fallback privilege granting using chmod.""" @@ -221,17 +228,17 @@ def _grant_privilege_chmod(cls, file_path: str, mode: str) -> tuple[bool, str]: chmod_mode = "o+rw" if chmod_mode else "o+w" if "x" in mode: chmod_mode = chmod_mode + "x" if chmod_mode else "o+x" - + subprocess.run( ["sudo", "chmod", chmod_mode, file_path], check=True, capture_output=True, ) return True, f"Granted {mode} access to {file_path} (chmod fallback)" - + except subprocess.CalledProcessError as e: return False, f"Failed to grant privilege: {e.stderr.decode() if e.stderr else str(e)}" - + @classmethod def revoke_privilege(cls, file_path: str) -> tuple[bool, str]: """Revoke cortex user's privilege from a specific file.""" @@ -242,13 +249,13 @@ def revoke_privilege(cls, file_path: str) -> tuple[bool, str]: capture_output=True, ) return True, f"Revoked access to {file_path}" - + except subprocess.CalledProcessError as e: error_msg = e.stderr.decode() if e.stderr else str(e) if "setfacl" in error_msg or "not found" in error_msg.lower(): return cls._revoke_privilege_chmod(file_path) return False, f"Failed to revoke privilege: {error_msg}" - + @classmethod def _revoke_privilege_chmod(cls, file_path: str) -> tuple[bool, str]: """Fallback privilege revocation using chmod.""" @@ -261,13 +268,13 @@ def _revoke_privilege_chmod(cls, file_path: str) -> tuple[bool, str]: return True, f"Revoked access to {file_path} (chmod fallback)" except subprocess.CalledProcessError as e: return False, f"Failed to revoke privilege: {e.stderr.decode() if e.stderr else str(e)}" - + @classmethod def run_as_cortex(cls, command: str, timeout: int = 60) -> tuple[bool, str, str]: """Execute a command as the cortex user.""" if not cls.user_exists(): return False, "", "Cortex user does not exist" - + try: result = subprocess.run( ["sudo", "-u", cls.CORTEX_USER, "bash", "-c", command], @@ -284,4 +291,3 @@ def run_as_cortex(cls, command: str, timeout: int = 60) -> tuple[bool, str, str] return False, "", f"Command timed out after {timeout} seconds" except Exception as e: return False, "", str(e) - diff --git a/cortex/do_runner/models.py b/cortex/do_runner/models.py index 6f1081b75..8bb5fe390 100644 --- a/cortex/do_runner/models.py +++ b/cortex/do_runner/models.py @@ -11,6 +11,7 @@ class CommandStatus(str, Enum): """Status of a command execution.""" + PENDING = "pending" RUNNING = "running" SUCCESS = "success" @@ -22,12 +23,14 @@ class CommandStatus(str, Enum): class RunMode(str, Enum): """Mode of execution for a do run.""" + CORTEX_EXEC = "cortex_exec" USER_MANUAL = "user_manual" class TaskType(str, Enum): """Type of task in the task tree.""" + COMMAND = "command" DIAGNOSTIC = "diagnostic" REPAIR = "repair" @@ -38,29 +41,30 @@ class TaskType(str, Enum): @dataclass class TaskNode: """A node in the task tree representing a command or action.""" + id: str task_type: TaskType command: str purpose: str status: CommandStatus = CommandStatus.PENDING - + # Execution results output: str = "" error: str = "" duration_seconds: float = 0.0 - + # Tree structure parent_id: str | None = None children: list["TaskNode"] = field(default_factory=list) - + # Repair context failure_reason: str = "" repair_attempts: int = 0 max_repair_attempts: int = 3 - + # Reasoning reasoning: str = "" - + def to_dict(self) -> dict[str, Any]: return { "id": self.id, @@ -77,12 +81,12 @@ def to_dict(self) -> dict[str, Any]: "repair_attempts": self.repair_attempts, "reasoning": self.reasoning, } - + def add_child(self, child: "TaskNode"): """Add a child task.""" child.parent_id = self.id self.children.append(child) - + def get_depth(self) -> int: """Get the depth of this node in the tree.""" depth = 0 @@ -95,17 +99,17 @@ def get_depth(self) -> int: class TaskTree: """A tree structure for managing commands with auto-repair capabilities.""" - + def __init__(self): self.root_tasks: list[TaskNode] = [] self._task_counter = 0 self._all_tasks: dict[str, TaskNode] = {} - + def _generate_task_id(self, prefix: str = "task") -> str: """Generate a unique task ID.""" self._task_counter += 1 return f"{prefix}_{self._task_counter}" - + def add_root_task( self, command: str, @@ -122,7 +126,7 @@ def add_root_task( self.root_tasks.append(task) self._all_tasks[task.id] = task return task - + def add_repair_task( self, parent: TaskNode, @@ -141,7 +145,7 @@ def add_repair_task( parent.add_child(task) self._all_tasks[task.id] = task return task - + def add_diagnostic_task( self, parent: TaskNode, @@ -158,7 +162,7 @@ def add_diagnostic_task( parent.add_child(task) self._all_tasks[task.id] = task return task - + def add_verify_task( self, parent: TaskNode, @@ -175,7 +179,7 @@ def add_verify_task( parent.add_child(task) self._all_tasks[task.id] = task return task - + def add_alternative_task( self, parent: TaskNode, @@ -194,49 +198,49 @@ def add_alternative_task( parent.add_child(task) self._all_tasks[task.id] = task return task - + def get_task(self, task_id: str) -> TaskNode | None: """Get a task by ID.""" return self._all_tasks.get(task_id) - + def get_pending_tasks(self) -> list[TaskNode]: """Get all pending tasks in order.""" pending = [] for root in self.root_tasks: self._collect_pending(root, pending) return pending - + def _collect_pending(self, node: TaskNode, pending: list[TaskNode]): """Recursively collect pending tasks.""" if node.status == CommandStatus.PENDING: pending.append(node) for child in node.children: self._collect_pending(child, pending) - + def get_failed_tasks(self) -> list[TaskNode]: """Get all failed tasks.""" return [t for t in self._all_tasks.values() if t.status == CommandStatus.FAILED] - + def get_summary(self) -> dict[str, int]: """Get a summary of task statuses.""" summary = {status.value: 0 for status in CommandStatus} for task in self._all_tasks.values(): summary[task.status.value] += 1 return summary - + def to_dict(self) -> dict[str, Any]: """Convert tree to dictionary.""" return { "root_tasks": [t.to_dict() for t in self.root_tasks], "summary": self.get_summary(), } - + def print_tree(self, indent: str = ""): """Print the task tree structure.""" for i, root in enumerate(self.root_tasks): is_last = i == len(self.root_tasks) - 1 self._print_node(root, indent, is_last) - + def _print_node(self, node: TaskNode, indent: str, is_last: bool): """Print a single node with its children.""" status_icons = { @@ -247,7 +251,7 @@ def _print_node(self, node: TaskNode, indent: str, is_last: bool): CommandStatus.SKIPPED: "[yellow]โ—‹[/yellow]", CommandStatus.NEEDS_REPAIR: "[yellow]โšก[/yellow]", } - + type_colors = { TaskType.COMMAND: "white", TaskType.DIAGNOSTIC: "cyan", @@ -255,16 +259,20 @@ def _print_node(self, node: TaskNode, indent: str, is_last: bool): TaskType.VERIFY: "blue", TaskType.ALTERNATIVE: "magenta", } - + icon = status_icons.get(node.status, "?") color = type_colors.get(node.task_type, "white") prefix = "โ””โ”€โ”€ " if is_last else "โ”œโ”€โ”€ " - - console.print(f"{indent}{prefix}{icon} [{color}][{node.task_type.value}][/{color}] {node.command[:50]}...") - + + console.print( + f"{indent}{prefix}{icon} [{color}][{node.task_type.value}][/{color}] {node.command[:50]}..." + ) + if node.reasoning: - console.print(f"{indent}{' ' if is_last else 'โ”‚ '}[dim]Reason: {node.reasoning}[/dim]") - + console.print( + f"{indent}{' ' if is_last else 'โ”‚ '}[dim]Reason: {node.reasoning}[/dim]" + ) + child_indent = indent + (" " if is_last else "โ”‚ ") for j, child in enumerate(node.children): self._print_node(child, child_indent, j == len(node.children) - 1) @@ -273,6 +281,7 @@ def _print_node(self, node: TaskNode, indent: str, is_last: bool): @dataclass class CommandLog: """Log entry for a single command execution.""" + command: str purpose: str timestamp: str @@ -281,7 +290,7 @@ class CommandLog: error: str = "" duration_seconds: float = 0.0 useful: bool = True - + def to_dict(self) -> dict[str, Any]: return { "command": self.command, @@ -293,7 +302,7 @@ def to_dict(self) -> dict[str, Any]: "duration_seconds": self.duration_seconds, "useful": self.useful, } - + @classmethod def from_dict(cls, data: dict[str, Any]) -> "CommandLog": return cls( @@ -311,6 +320,7 @@ def from_dict(cls, data: dict[str, Any]) -> "CommandLog": @dataclass class DoRun: """Represents a complete do run session.""" + run_id: str summary: str mode: RunMode @@ -321,7 +331,7 @@ class DoRun: files_accessed: list[str] = field(default_factory=list) privileges_granted: list[str] = field(default_factory=list) session_id: str = "" - + def to_dict(self) -> dict[str, Any]: return { "run_id": self.run_id, @@ -335,7 +345,7 @@ def to_dict(self) -> dict[str, Any]: "privileges_granted": self.privileges_granted, "session_id": self.session_id, } - + def get_commands_log_string(self) -> str: """Get all commands as a formatted string for storage.""" lines = [] @@ -349,4 +359,3 @@ def get_commands_log_string(self) -> str: lines.append(f" Duration: {cmd.duration_seconds:.2f}s | Useful: {cmd.useful}") lines.append("") return "\n".join(lines) - diff --git a/cortex/do_runner/terminal.py b/cortex/do_runner/terminal.py index 47593f6eb..0e001474f 100644 --- a/cortex/do_runner/terminal.py +++ b/cortex/do_runner/terminal.py @@ -7,8 +7,9 @@ import subprocess import threading import time +from collections.abc import Callable from pathlib import Path -from typing import Any, Callable +from typing import Any from rich.console import Console @@ -17,37 +18,38 @@ class ClaudeLLM: """Claude LLM client using the LLMRouter for intelligent error analysis.""" - + def __init__(self): self._router = None self._available: bool | None = None - + def _get_router(self): """Lazy initialize the router.""" if self._router is None: try: from cortex.llm_router import LLMRouter, TaskType + self._router = LLMRouter() self._task_type = TaskType except Exception: self._router = False # Mark as failed return self._router if self._router else None - + def is_available(self) -> bool: """Check if Claude API is available.""" if self._available is not None: return self._available - + router = self._get_router() self._available = router is not None and router.claude_client is not None return self._available - + def analyze_error(self, command: str, error_output: str, max_tokens: int = 300) -> dict | None: """Analyze an error using Claude and return diagnosis with solution.""" router = self._get_router() if not router: return None - + try: messages = [ { @@ -68,29 +70,22 @@ def analyze_error(self, command: str, error_output: str, max_tokens: int = 300) Be concise. Output format: CAUSE: FIX: -FIX: """ +FIX: """, }, - { - "role": "user", - "content": f"Command: {command}\n\nError:\n{error_output[:500]}" - } + {"role": "user", "content": f"Command: {command}\n\nError:\n{error_output[:500]}"}, ] - + response = router.complete( messages=messages, task_type=self._task_type.ERROR_DEBUGGING, max_tokens=max_tokens, temperature=0.3, ) - + # Parse response content = response.content - result = { - "cause": "", - "fixes": [], - "raw": content - } - + result = {"cause": "", "fixes": [], "raw": content} + for line in content.split("\n"): line = line.strip() if line.upper().startswith("CAUSE:"): @@ -99,9 +94,9 @@ def analyze_error(self, command: str, error_output: str, max_tokens: int = 300) fix = line[4:].strip() if fix and not fix.startswith("#"): result["fixes"].append(fix) - + return result - + except Exception as e: console.print(f"[dim]Claude analysis error: {e}[/dim]") return None @@ -109,84 +104,87 @@ def analyze_error(self, command: str, error_output: str, max_tokens: int = 300) class LocalLLM: """Local LLM client using Ollama with Mistral (fallback).""" - + def __init__(self, model: str = "mistral"): self.model = model self._available: bool | None = None - + def is_available(self) -> bool: """Check if Ollama with the model is available.""" if self._available is not None: return self._available - + try: - result = subprocess.run( - ["ollama", "list"], - capture_output=True, text=True, timeout=5 - ) + result = subprocess.run(["ollama", "list"], capture_output=True, text=True, timeout=5) self._available = result.returncode == 0 and self.model in result.stdout if not self._available: # Try to check if ollama is running at least result = subprocess.run( ["curl", "-s", "http://localhost:11434/api/tags"], - capture_output=True, text=True, timeout=5 + capture_output=True, + text=True, + timeout=5, ) if result.returncode == 0: self._available = self.model in result.stdout except (subprocess.TimeoutExpired, FileNotFoundError, Exception): self._available = False - + return self._available - + def analyze(self, prompt: str, max_tokens: int = 200, timeout: int = 10) -> str | None: """Call the local LLM for analysis.""" if not self.is_available(): return None - + try: - import urllib.request import urllib.error - + import urllib.request + # Use Ollama API directly via urllib (faster than curl subprocess) - data = json.dumps({ - "model": self.model, - "prompt": prompt, - "stream": False, - "options": { - "num_predict": max_tokens, - "temperature": 0.3, + data = json.dumps( + { + "model": self.model, + "prompt": prompt, + "stream": False, + "options": { + "num_predict": max_tokens, + "temperature": 0.3, + }, } - }).encode('utf-8') - + ).encode("utf-8") + req = urllib.request.Request( "http://localhost:11434/api/generate", data=data, - headers={"Content-Type": "application/json"} + headers={"Content-Type": "application/json"}, ) - + with urllib.request.urlopen(req, timeout=timeout) as response: - result = json.loads(response.read().decode('utf-8')) + result = json.loads(response.read().decode("utf-8")) return result.get("response", "").strip() - + except (urllib.error.URLError, json.JSONDecodeError, TimeoutError, Exception): pass - + return None class TerminalMonitor: """ Monitors terminal commands for the manual execution flow. - + Monitors ALL terminal sources by default: - Bash history file (~/.bash_history) - - Zsh history file (~/.zsh_history) + - Zsh history file (~/.zsh_history) - Fish history file (~/.local/share/fish/fish_history) - ALL Cursor terminal files (all projects) - External terminal output files """ - - def __init__(self, notification_callback: Callable[[str, str], None] | None = None, use_llm: bool = True): + + def __init__( + self, notification_callback: Callable[[str, str], None] | None = None, use_llm: bool = True + ): self.notification_callback = notification_callback self._monitoring = False self._monitor_thread: threading.Thread | None = None @@ -197,7 +195,7 @@ def __init__(self, notification_callback: Callable[[str, str], None] | None = No self._shell_history_files: list[Path] = [] self._output_buffer: list[dict[str, Any]] = [] # Buffer for terminal output self._show_live_output = True # Whether to print live output - + # Claude LLM for intelligent error analysis (primary) self._use_llm = use_llm self._claude: ClaudeLLM | None = None @@ -205,64 +203,66 @@ def __init__(self, notification_callback: Callable[[str, str], None] | None = No if use_llm: self._claude = ClaudeLLM() self._llm = LocalLLM(model="mistral") # Keep as fallback - + # Context for LLM self._session_context: list[str] = [] # Recent commands for context - + # Use existing auto-fix architecture - from cortex.do_runner.diagnosis import ErrorDiagnoser, AutoFixer + from cortex.do_runner.diagnosis import AutoFixer, ErrorDiagnoser + self._diagnoser = ErrorDiagnoser() self._auto_fixer = AutoFixer(llm_callback=self._llm_for_autofix if use_llm else None) - + # Notification manager for desktop notifications self.notifier = self._create_notifier() - + # Discover all terminal sources self._discover_terminal_sources() - + def _create_notifier(self): """Create notification manager for desktop notifications.""" try: from cortex.notification_manager import NotificationManager + return NotificationManager() except ImportError: return None - + def _llm_for_autofix(self, prompt: str) -> dict: """LLM callback for the AutoFixer.""" if not self._llm or not self._llm.is_available(): return {} - + result = self._llm.analyze(prompt, max_tokens=200, timeout=15) if result: return {"response": result, "fix_commands": []} return {} - + def _discover_terminal_sources(self, verbose: bool = False): """Discover all available terminal sources to monitor.""" home = Path.home() - + # Reset lists self._shell_history_files = [] self._cursor_terminals_dirs = [] - + # Shell history files shell_histories = [ - home / ".bash_history", # Bash - home / ".zsh_history", # Zsh - home / ".history", # Generic - home / ".sh_history", # Sh + home / ".bash_history", # Bash + home / ".zsh_history", # Zsh + home / ".history", # Generic + home / ".sh_history", # Sh home / ".local" / "share" / "fish" / "fish_history", # Fish - home / ".ksh_history", # Korn shell - home / ".tcsh_history", # Tcsh + home / ".ksh_history", # Korn shell + home / ".tcsh_history", # Tcsh ] - + for hist_file in shell_histories: if hist_file.exists(): self._shell_history_files.append(hist_file) if verbose: console.print(f"[dim]๐Ÿ“ Monitoring: {hist_file}[/dim]") - + # Find ALL Cursor terminal directories (all projects) cursor_base = home / ".cursor" / "projects" if cursor_base.exists(): @@ -272,67 +272,85 @@ def _discover_terminal_sources(self, verbose: bool = False): if terminals_path.exists(): self._cursor_terminals_dirs.append(terminals_path) if verbose: - console.print(f"[dim]๐Ÿ–ฅ๏ธ Monitoring Cursor terminals: {terminals_path.parent.name}[/dim]") - + console.print( + f"[dim]๐Ÿ–ฅ๏ธ Monitoring Cursor terminals: {terminals_path.parent.name}[/dim]" + ) + # Also check for tmux/screen panes self._tmux_available = self._check_command_exists("tmux") self._screen_available = self._check_command_exists("screen") - + if verbose: if self._tmux_available: console.print("[dim]๐Ÿ“บ Tmux detected - will monitor tmux panes[/dim]") if self._screen_available: console.print("[dim]๐Ÿ“บ Screen detected - will monitor screen sessions[/dim]") - + def _check_command_exists(self, cmd: str) -> bool: """Check if a command exists in PATH.""" import shutil + return shutil.which(cmd) is not None - - def start(self, verbose: bool = True, show_live: bool = True, expected_commands: list[str] | None = None): + + def start( + self, + verbose: bool = True, + show_live: bool = True, + expected_commands: list[str] | None = None, + ): """Start monitoring terminal for commands.""" - self.start_monitoring(expected_commands=expected_commands, verbose=verbose, show_live=show_live) - + self.start_monitoring( + expected_commands=expected_commands, verbose=verbose, show_live=show_live + ) + def _is_service_running(self) -> bool: """Check if the Cortex Watch systemd service is running.""" try: result = subprocess.run( ["systemctl", "--user", "is-active", "cortex-watch.service"], - capture_output=True, text=True, timeout=3 + capture_output=True, + text=True, + timeout=3, ) return result.stdout.strip() == "active" except Exception: return False - - def start_monitoring(self, expected_commands: list[str] | None = None, verbose: bool = True, show_live: bool = True, clear_old_logs: bool = True): + + def start_monitoring( + self, + expected_commands: list[str] | None = None, + verbose: bool = True, + show_live: bool = True, + clear_old_logs: bool = True, + ): """Start monitoring ALL terminal sources for commands.""" self._monitoring = True self._expected_commands = expected_commands or [] self._show_live_output = show_live self._output_buffer = [] self._session_context = [] - + # Mark this terminal as the Cortex terminal so watch hook won't log its commands os.environ["CORTEX_TERMINAL"] = "1" - + # Record the monitoring start time to filter out old commands self._monitoring_start_time = datetime.datetime.now() - + # Always clear old watch log to start fresh - this prevents reading old session commands watch_file = self.get_watch_file_path() if watch_file.exists(): # Truncate the file to clear old commands from previous sessions watch_file.write_text("") - + # Also record starting positions for bash/zsh history files self._history_start_positions: dict[str, int] = {} for hist_file in [Path.home() / ".bash_history", Path.home() / ".zsh_history"]: if hist_file.exists(): self._history_start_positions[str(hist_file)] = hist_file.stat().st_size - + # Re-discover sources in case new terminals opened self._discover_terminal_sources(verbose=verbose) - + # Check LLM availability llm_status = "" if self._llm and self._use_llm: @@ -340,46 +358,53 @@ def start_monitoring(self, expected_commands: list[str] | None = None, verbose: llm_status = "\n[green]๐Ÿค– AI Analysis: Mistral (local) - Active[/green]" else: llm_status = "\n[yellow]๐Ÿค– AI Analysis: Mistral not available (install with: ollama pull mistral)[/yellow]" - + if verbose: from rich.panel import Panel - + watch_file = self.get_watch_file_path() source_file = Path.home() / ".cortex" / "watch_hook.sh" - + # Check if systemd service is running (best option) service_running = self._is_service_running() - + # Check if auto-watch is already set up bashrc = Path.home() / ".bashrc" hook_installed = False if bashrc.exists() and "Cortex Terminal Watch Hook" in bashrc.read_text(): hook_installed = True - + # If service is running, we don't need the hook if service_running: - setup_info = "[bold green]โœ“ Cortex Watch Service is running[/bold green]\n" \ - "[dim]All terminal activity is being monitored automatically![/dim]" + setup_info = ( + "[bold green]โœ“ Cortex Watch Service is running[/bold green]\n" + "[dim]All terminal activity is being monitored automatically![/dim]" + ) else: # Not using the service, need to set up hooks if not hook_installed: # Auto-install the hook to .bashrc self.setup_auto_watch(permanent=True) hook_installed = True # Now installed - + # Ensure source file exists self.setup_auto_watch(permanent=False) - + # Create a super short activation command short_cmd = f"source {source_file}" - + # Try to copy to clipboard clipboard_copied = False try: # Try xclip first, then xsel - for clip_cmd in [["xclip", "-selection", "clipboard"], ["xsel", "--clipboard", "--input"]]: + for clip_cmd in [ + ["xclip", "-selection", "clipboard"], + ["xsel", "--clipboard", "--input"], + ]: try: - proc = subprocess.run(clip_cmd, input=short_cmd.encode(), capture_output=True, timeout=2) + proc = subprocess.run( + clip_cmd, input=short_cmd.encode(), capture_output=True, timeout=2 + ) if proc.returncode == 0: clipboard_copied = True break @@ -387,81 +412,94 @@ def start_monitoring(self, expected_commands: list[str] | None = None, verbose: continue except Exception: pass - + if hook_installed: - clipboard_msg = "[green]๐Ÿ“‹ Copied to clipboard![/green] " if clipboard_copied else "" - setup_info = "[green]โœ“ Terminal watch hook is installed in .bashrc[/green]\n" \ - "[dim](New terminals will auto-activate)[/dim]\n\n" \ - f"[bold yellow]For EXISTING terminals, paste this:[/bold yellow]\n" \ - f"[bold cyan]{short_cmd}[/bold cyan]\n" \ - f"{clipboard_msg}\n" \ - "[dim]Or type [/dim][green]cortex watch --install --service[/green][dim] for automatic monitoring![/dim]" - + clipboard_msg = ( + "[green]๐Ÿ“‹ Copied to clipboard![/green] " if clipboard_copied else "" + ) + setup_info = ( + "[green]โœ“ Terminal watch hook is installed in .bashrc[/green]\n" + "[dim](New terminals will auto-activate)[/dim]\n\n" + f"[bold yellow]For EXISTING terminals, paste this:[/bold yellow]\n" + f"[bold cyan]{short_cmd}[/bold cyan]\n" + f"{clipboard_msg}\n" + "[dim]Or type [/dim][green]cortex watch --install --service[/green][dim] for automatic monitoring![/dim]" + ) + # Send desktop notification with the command try: msg = f"Paste in your OTHER terminal:\n\n{short_cmd}" if clipboard_copied: msg += "\n\n(Already copied to clipboard!)" - subprocess.run([ - "notify-send", - "--urgency=critical", - "--icon=dialog-warning", - "--expire-time=15000", - "โš ๏ธ Cortex: Activate Terminal Watching", - msg - ], capture_output=True, timeout=2) + subprocess.run( + [ + "notify-send", + "--urgency=critical", + "--icon=dialog-warning", + "--expire-time=15000", + "โš ๏ธ Cortex: Activate Terminal Watching", + msg, + ], + capture_output=True, + timeout=2, + ) except Exception: pass else: - setup_info = f"[bold yellow]โš  For real-time monitoring in OTHER terminals:[/bold yellow]\n\n" \ - f"[bold cyan]{short_cmd}[/bold cyan]\n\n" \ - "[dim]Or install the watch service: [/dim][green]cortex watch --install --service[/green]" - + setup_info = ( + f"[bold yellow]โš  For real-time monitoring in OTHER terminals:[/bold yellow]\n\n" + f"[bold cyan]{short_cmd}[/bold cyan]\n\n" + "[dim]Or install the watch service: [/dim][green]cortex watch --install --service[/green]" + ) + console.print() - console.print(Panel( - "[bold cyan]๐Ÿ” Terminal Monitoring Active[/bold cyan]\n\n" - f"Watching {len(self._shell_history_files)} shell history files\n" - f"Watching {len(self._cursor_terminals_dirs)} Cursor terminal directories\n" - + ("Watching Tmux panes\n" if self._tmux_available else "") - + llm_status + - "\n\n" + setup_info, - title="[bold green]Live Terminal Monitor[/bold green]", - border_style="green", - )) + console.print( + Panel( + "[bold cyan]๐Ÿ” Terminal Monitoring Active[/bold cyan]\n\n" + f"Watching {len(self._shell_history_files)} shell history files\n" + f"Watching {len(self._cursor_terminals_dirs)} Cursor terminal directories\n" + + ("Watching Tmux panes\n" if self._tmux_available else "") + + llm_status + + "\n\n" + + setup_info, + title="[bold green]Live Terminal Monitor[/bold green]", + border_style="green", + ) + ) console.print() console.print("[dim]โ”€" * 60 + "[/dim]") console.print("[bold]๐Ÿ“ก Live Terminal Feed:[/bold]") console.print("[dim]โ”€" * 60 + "[/dim]") console.print("[dim]Waiting for commands from other terminals...[/dim]") console.print() - + self._monitor_thread = threading.Thread(target=self._monitor_loop, daemon=True) self._monitor_thread.start() - + def stop_monitoring(self) -> list[dict[str, Any]]: """Stop monitoring and return observed commands.""" self._monitoring = False if self._monitor_thread: self._monitor_thread.join(timeout=2) self._monitor_thread = None - + with self._lock: result = list(self._commands_observed) return result - + def stop(self) -> list[dict[str, Any]]: """Stop monitoring terminal.""" return self.stop_monitoring() - + def get_observed_commands(self) -> list[dict[str, Any]]: """Get all observed commands so far.""" with self._lock: return list(self._commands_observed) - + def test_monitoring(self): """Test that monitoring is working by showing what files are being watched.""" console.print("\n[bold cyan]๐Ÿ” Terminal Monitoring Test[/bold cyan]\n") - + # Check shell history files console.print("[bold]Shell History Files:[/bold]") for hist_file in self._shell_history_files: @@ -469,7 +507,7 @@ def test_monitoring(self): size = hist_file.stat().st_size if exists else 0 status = "[green]โœ“[/green]" if exists else "[red]โœ—[/red]" console.print(f" {status} {hist_file} ({size} bytes)") - + # Check Cursor terminal directories console.print("\n[bold]Cursor Terminal Directories:[/bold]") for terminals_dir in self._cursor_terminals_dirs: @@ -483,74 +521,82 @@ def test_monitoring(self): console.print(f" ... and {len(files) - 5} more") else: console.print(f" [red]โœ—[/red] {terminals_dir} (not found)") - + # Check tmux console.print("\n[bold]Other Sources:[/bold]") - console.print(f" Tmux: {'[green]โœ“ available[/green]' if self._tmux_available else '[dim]not available[/dim]'}") - console.print(f" Screen: {'[green]โœ“ available[/green]' if self._screen_available else '[dim]not available[/dim]'}") - - console.print("\n[yellow]Tip: For bash history to update in real-time, run in your terminal:[/yellow]") + console.print( + f" Tmux: {'[green]โœ“ available[/green]' if self._tmux_available else '[dim]not available[/dim]'}" + ) + console.print( + f" Screen: {'[green]โœ“ available[/green]' if self._screen_available else '[dim]not available[/dim]'}" + ) + + console.print( + "\n[yellow]Tip: For bash history to update in real-time, run in your terminal:[/yellow]" + ) console.print("[green]export PROMPT_COMMAND='history -a'[/green]") console.print() - + def inject_test_command(self, command: str, source: str = "test"): """Inject a test command to verify the display is working.""" self._process_observed_command(command, source) - + def get_watch_file_path(self) -> Path: """Get the path to the cortex watch file.""" return Path.home() / ".cortex" / "terminal_watch.log" - + def setup_terminal_hook(self) -> str: """Generate a bash command to set up real-time terminal watching. - + Returns the command the user should run in their terminal. """ watch_file = self.get_watch_file_path() watch_file.parent.mkdir(parents=True, exist_ok=True) - + # Create a bash function that logs commands - hook_command = f''' + hook_command = f""" # Cortex Terminal Hook - paste this in your terminal: export CORTEX_WATCH_FILE="{watch_file}" export PROMPT_COMMAND='history -a; echo "$(date +%H:%M:%S) $(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" >> "$CORTEX_WATCH_FILE"' echo "โœ“ Cortex is now watching this terminal" -''' +""" return hook_command.strip() - + def print_setup_instructions(self): """Print instructions for setting up real-time terminal watching.""" from rich.panel import Panel - + watch_file = self.get_watch_file_path() - + console.print() - console.print(Panel( - "[bold yellow]โš  For real-time terminal monitoring, run this in your OTHER terminal:[/bold yellow]\n\n" - f"[green]export PROMPT_COMMAND='history -a; echo \"$(date +%H:%M:%S) $(history 1 | sed \"s/^[ ]*[0-9]*[ ]*//\")\" >> {watch_file}'[/green]\n\n" - "[dim]This makes bash write commands immediately so Cortex can see them.[/dim]", - title="[cyan]Setup Required[/cyan]", - border_style="yellow", - )) + console.print( + Panel( + "[bold yellow]โš  For real-time terminal monitoring, run this in your OTHER terminal:[/bold yellow]\n\n" + f'[green]export PROMPT_COMMAND=\'history -a; echo "$(date +%H:%M:%S) $(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" >> {watch_file}\'[/green]\n\n' + "[dim]This makes bash write commands immediately so Cortex can see them.[/dim]", + title="[cyan]Setup Required[/cyan]", + border_style="yellow", + ) + ) console.print() - + def setup_system_wide_watch(self) -> tuple[bool, str]: """ Install the terminal watch hook system-wide in /etc/profile.d/. - + This makes the hook active for ALL users and ALL new terminals automatically. Requires sudo. - + Returns: Tuple of (success, message) """ import subprocess - + watch_file = self.get_watch_file_path() profile_script = "/etc/profile.d/cortex-watch.sh" - + # The system-wide hook script - hook_content = f'''#!/bin/bash + hook_content = """#!/bin/bash # Cortex Terminal Watch Hook - System Wide # Installed by: cortex do watch --system # This enables real-time terminal command monitoring for Cortex AI @@ -568,110 +614,107 @@ def setup_system_wide_watch(self) -> tuple[bool, str]: mkdir -p "$HOME/.cortex" 2>/dev/null __cortex_last_histnum="" -__cortex_log_cmd() {{ - local histnum="$(history 1 2>/dev/null | awk '{{print $1}}')" +__cortex_log_cmd() { + local histnum="$(history 1 2>/dev/null | awk '{print $1}')" [[ "$histnum" == "$__cortex_last_histnum" ]] && return __cortex_last_histnum="$histnum" local cmd="$(history 1 2>/dev/null | sed "s/^[ ]*[0-9]*[ ]*//")" - [[ -z "${{cmd// /}}" ]] && return + [[ -z "${cmd// /}" ]] && return [[ "$cmd" == cortex* ]] && return [[ "$cmd" == *"watch_hook"* ]] && return echo "$cmd" >> "$CORTEX_WATCH_FILE" 2>/dev/null -}} +} # Add to PROMPT_COMMAND (preserve existing) if [[ -z "$PROMPT_COMMAND" ]]; then export PROMPT_COMMAND='history -a; __cortex_log_cmd' else - export PROMPT_COMMAND="${{PROMPT_COMMAND}}; __cortex_log_cmd" + export PROMPT_COMMAND="${PROMPT_COMMAND}; __cortex_log_cmd" fi -''' - +""" + try: # Write to a temp file first import tempfile - with tempfile.NamedTemporaryFile(mode='w', suffix='.sh', delete=False) as f: + + with tempfile.NamedTemporaryFile(mode="w", suffix=".sh", delete=False) as f: f.write(hook_content) temp_file = f.name - + # Use sudo to copy to /etc/profile.d/ result = subprocess.run( ["sudo", "cp", temp_file, profile_script], capture_output=True, text=True, - timeout=30 + timeout=30, ) - + if result.returncode != 0: return False, f"Failed to install: {result.stderr}" - + # Make it executable - subprocess.run( - ["sudo", "chmod", "+x", profile_script], - capture_output=True, - timeout=10 - ) - + subprocess.run(["sudo", "chmod", "+x", profile_script], capture_output=True, timeout=10) + # Clean up temp file Path(temp_file).unlink(missing_ok=True) - - return True, f"โœ“ Installed system-wide to {profile_script}\n" \ - "All NEW terminals will automatically have Cortex watching enabled.\n" \ - "For current terminals, run: source /etc/profile.d/cortex-watch.sh" - + + return ( + True, + f"โœ“ Installed system-wide to {profile_script}\n" + "All NEW terminals will automatically have Cortex watching enabled.\n" + "For current terminals, run: source /etc/profile.d/cortex-watch.sh", + ) + except subprocess.TimeoutExpired: return False, "Timeout waiting for sudo" except Exception as e: return False, f"Error: {e}" - + def uninstall_system_wide_watch(self) -> tuple[bool, str]: """Remove the system-wide terminal watch hook.""" import subprocess - + profile_script = "/etc/profile.d/cortex-watch.sh" - + try: if not Path(profile_script).exists(): return True, "System-wide hook not installed" - + result = subprocess.run( - ["sudo", "rm", profile_script], - capture_output=True, - text=True, - timeout=30 + ["sudo", "rm", profile_script], capture_output=True, text=True, timeout=30 ) - + if result.returncode != 0: return False, f"Failed to remove: {result.stderr}" - + return True, f"โœ“ Removed {profile_script}" - + except Exception as e: return False, f"Error: {e}" - + def is_system_wide_installed(self) -> bool: """Check if system-wide hook is installed.""" return Path("/etc/profile.d/cortex-watch.sh").exists() - + def setup_auto_watch(self, permanent: bool = True) -> tuple[bool, str]: """ Set up automatic terminal watching for new and existing terminals. - + Args: permanent: If True, adds the hook to ~/.bashrc for future terminals - + Returns: Tuple of (success, message) """ watch_file = self.get_watch_file_path() watch_file.parent.mkdir(parents=True, exist_ok=True) - + # The hook command - excludes cortex commands and source commands # Uses a function to filter out Cortex terminal commands # Added: tracks last logged command and history number to avoid duplicates - hook_line = f''' + hook_line = f""" __cortex_last_histnum="" __cortex_log_cmd() {{ # Get current history number @@ -693,14 +736,14 @@ def setup_auto_watch(self, permanent: bool = True) -> tuple[bool, str]: echo "${{tty_name:-unknown}}|$cmd" >> {watch_file} }} export PROMPT_COMMAND='history -a; __cortex_log_cmd' -''' +""" marker = "# Cortex Terminal Watch Hook" - + bashrc = Path.home() / ".bashrc" zshrc = Path.home() / ".zshrc" - + added_to = [] - + if permanent: # Add to .bashrc if it exists and doesn't already have the hook if bashrc.exists(): @@ -713,14 +756,14 @@ def setup_auto_watch(self, permanent: bool = True) -> tuple[bool, str]: added_to.append(".bashrc") else: added_to.append(".bashrc (already configured)") - + # Add to .zshrc if it exists if zshrc.exists(): content = zshrc.read_text() if marker not in content: # Zsh uses precmd instead of PROMPT_COMMAND # Added tracking to avoid duplicates - zsh_hook = f''' + zsh_hook = f""" {marker} typeset -g __cortex_last_cmd="" cortex_watch_hook() {{ @@ -736,35 +779,35 @@ def setup_auto_watch(self, permanent: bool = True) -> tuple[bool, str]: echo "${{tty_name:-unknown}}|$cmd" >> {watch_file} }} precmd_functions+=(cortex_watch_hook) -''' +""" with open(zshrc, "a") as f: f.write(zsh_hook) added_to.append(".zshrc") else: added_to.append(".zshrc (already configured)") - + # Create a source file for existing terminals source_file = Path.home() / ".cortex" / "watch_hook.sh" - source_file.write_text(f'''#!/bin/bash + source_file.write_text(f"""#!/bin/bash {marker} {hook_line} echo "โœ“ Cortex is now watching this terminal" -''') +""") source_file.chmod(0o755) source_file.chmod(0o755) - + if added_to: msg = f"Added to: {', '.join(added_to)}\n" msg += f"For existing terminals, run: source {source_file}" return True, msg else: return True, f"Source file created: {source_file}\nRun: source {source_file}" - + def remove_auto_watch(self) -> tuple[bool, str]: """Remove the automatic terminal watching hook from shell configs.""" marker = "# Cortex Terminal Watch Hook" removed_from = [] - + for rc_file in [Path.home() / ".bashrc", Path.home() / ".zshrc"]: if rc_file.exists(): content = rc_file.read_text() @@ -773,44 +816,49 @@ def remove_auto_watch(self) -> tuple[bool, str]: lines = content.split("\n") new_lines = [] skip_until_blank = False - + for line in lines: if marker in line: skip_until_blank = True continue if skip_until_blank: - if line.strip() == "" or line.startswith("export PROMPT") or line.startswith("cortex_watch") or line.startswith("precmd_functions"): + if ( + line.strip() == "" + or line.startswith("export PROMPT") + or line.startswith("cortex_watch") + or line.startswith("precmd_functions") + ): continue if line.startswith("}"): continue skip_until_blank = False new_lines.append(line) - + rc_file.write_text("\n".join(new_lines)) removed_from.append(rc_file.name) - + # Remove source file source_file = Path.home() / ".cortex" / "watch_hook.sh" if source_file.exists(): source_file.unlink() removed_from.append("watch_hook.sh") - + if removed_from: return True, f"Removed from: {', '.join(removed_from)}" return True, "No hooks found to remove" - + def broadcast_hook_to_terminals(self) -> int: """ Attempt to set up the hook in all running bash terminals. Uses various methods to inject the hook. - + Returns the number of terminals that were set up. """ watch_file = self.get_watch_file_path() hook_cmd = f'export PROMPT_COMMAND=\'history -a; echo "$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//")" >> {watch_file}\'' - + count = 0 - + # Method 1: Write to all pts devices (requires proper permissions) try: pts_dir = Path("/dev/pts") @@ -820,27 +868,27 @@ def broadcast_hook_to_terminals(self) -> int: try: # This usually requires the same user with open(pts, "w") as f: - f.write(f"\n# Cortex: Setting up terminal watch...\n") - f.write(f"source ~/.cortex/watch_hook.sh\n") + f.write("\n# Cortex: Setting up terminal watch...\n") + f.write("source ~/.cortex/watch_hook.sh\n") count += 1 except (PermissionError, OSError): pass except Exception: pass - + return count - + def _monitor_loop(self): """Monitor loop that watches ALL terminal sources for activity.""" file_positions: dict[str, int] = {} last_check_time: dict[str, float] = {} - + # Cortex watch file (real-time if user sets up the hook) watch_file = self.get_watch_file_path() - + # Ensure watch file directory exists watch_file.parent.mkdir(parents=True, exist_ok=True) - + # Initialize positions for all shell history files - start at END to only see NEW commands for hist_file in self._shell_history_files: if hist_file.exists(): @@ -849,7 +897,7 @@ def _monitor_loop(self): last_check_time[str(hist_file)] = time.time() except OSError: pass - + # Initialize watch file position - ALWAYS start from END of existing content # This ensures we only see commands written AFTER monitoring starts if watch_file.exists(): @@ -861,7 +909,7 @@ def _monitor_loop(self): else: # File doesn't exist yet - will be created, start from 0 file_positions[str(watch_file)] = 0 - + # Initialize positions for all Cursor terminal files for terminals_dir in self._cursor_terminals_dirs: if terminals_dir.exists(): @@ -876,16 +924,16 @@ def _monitor_loop(self): file_positions[str(term_file)] = term_file.stat().st_size except OSError: pass - + check_count = 0 while self._monitoring: time.sleep(0.2) # Check very frequently (5 times per second) check_count += 1 - + # Check Cortex watch file FIRST (this is the real-time one) if watch_file.exists(): self._check_watch_file(watch_file, file_positions) - + # Check all shell history files for hist_file in self._shell_history_files: if hist_file.exists(): @@ -893,43 +941,47 @@ def _monitor_loop(self): self._check_file_for_new_commands( hist_file, file_positions, source=f"{shell_name}_history" ) - + # Check ALL Cursor terminal directories (these update in real-time!) for terminals_dir in self._cursor_terminals_dirs: if terminals_dir.exists(): project_name = terminals_dir.parent.name - + # IDE terminals - check ALL txt files for term_file in terminals_dir.glob("*.txt"): if not term_file.name.startswith("ext-"): self._check_file_for_new_commands( - term_file, file_positions, - source=f"cursor:{project_name}:{term_file.stem}" + term_file, + file_positions, + source=f"cursor:{project_name}:{term_file.stem}", ) - + # External terminals (iTerm, gnome-terminal, etc.) for term_file in terminals_dir.glob("ext-*.txt"): self._check_file_for_new_commands( - term_file, file_positions, - source=f"external:{project_name}:{term_file.stem}" + term_file, + file_positions, + source=f"external:{project_name}:{term_file.stem}", ) - + # Check tmux panes if available (every 5 checks = 1 second) if self._tmux_available and check_count % 5 == 0: self._check_tmux_panes() - + # Periodically show we're still monitoring (every 30 seconds) if check_count % 150 == 0 and self._show_live_output: - console.print(f"[dim]... still monitoring ({len(self._commands_observed)} commands observed so far)[/dim]") - + console.print( + f"[dim]... still monitoring ({len(self._commands_observed)} commands observed so far)[/dim]" + ) + def _is_cortex_terminal_command(self, command: str) -> bool: """Check if a command is from the Cortex terminal itself (should be ignored). - + This should be very conservative - only filter out commands that are DEFINITELY from Cortex's own terminal, not user commands. """ cmd_lower = command.lower().strip() - + # Only filter out commands that are clearly from Cortex terminal cortex_patterns = [ "cortex ask", @@ -939,83 +991,86 @@ def _is_cortex_terminal_command(self, command: str) -> bool: "source ~/.cortex/watch_hook", # Setting up the watch hook ".cortex/watch_hook", ] - + for pattern in cortex_patterns: if pattern in cmd_lower: return True - + # Check if command starts with "cortex " (the CLI) if cmd_lower.startswith("cortex "): return True - + # Don't filter out general commands - let them through! return False - + def _check_watch_file(self, watch_file: Path, positions: dict[str, int]): """Check the Cortex watch file for new commands (real-time).""" try: current_size = watch_file.stat().st_size key = str(watch_file) - + # Initialize position if not set # Start from 0 because we clear the file when monitoring starts # This ensures we capture all commands written after monitoring begins if key not in positions: positions[key] = 0 # Start from beginning since file was cleared - + # If file is smaller than our position (was truncated), reset if current_size < positions[key]: positions[key] = 0 - + if current_size > positions[key]: with open(watch_file) as f: f.seek(positions[key]) new_content = f.read() - + # Parse watch file - each line is a command for line in new_content.split("\n"): line = line.strip() if not line: continue - + # Skip very short lines or common noise if len(line) < 2: continue - + # Skip if we've already seen this exact command recently - if hasattr(self, '_recent_watch_commands'): + if hasattr(self, "_recent_watch_commands"): if line in self._recent_watch_commands: continue else: self._recent_watch_commands = [] - + # Keep track of recent commands to avoid duplicates self._recent_watch_commands.append(line) if len(self._recent_watch_commands) > 20: self._recent_watch_commands.pop(0) - + # Handle format with timestamp: "HH:MM:SS command" - if re.match(r'^\d{2}:\d{2}:\d{2}\s+', line): + if re.match(r"^\d{2}:\d{2}:\d{2}\s+", line): parts = line.split(" ", 1) if len(parts) == 2 and parts[1].strip(): self._process_observed_command(parts[1].strip(), "live_terminal") else: # Plain command self._process_observed_command(line, "live_terminal") - + positions[key] = current_size - + except OSError: pass - + def _check_tmux_panes(self): """Check tmux panes for recent commands.""" import subprocess + try: # Get list of tmux sessions result = subprocess.run( ["tmux", "list-panes", "-a", "-F", "#{pane_id}:#{pane_current_command}"], - capture_output=True, text=True, timeout=1 + capture_output=True, + text=True, + timeout=1, ) if result.returncode == 0: for line in result.stdout.strip().split("\n"): @@ -1025,7 +1080,7 @@ def _check_tmux_panes(self): self._process_observed_command(cmd, source=f"tmux:{pane_id}") except (subprocess.TimeoutExpired, FileNotFoundError, subprocess.SubprocessError): pass - + def _check_file_for_new_commands( self, file_path: Path, @@ -1036,16 +1091,16 @@ def _check_file_for_new_commands( try: current_size = file_path.stat().st_size key = str(file_path) - + if key not in positions: positions[key] = current_size return - + if current_size > positions[key]: with open(file_path) as f: f.seek(positions[key]) new_content = f.read() - + # For Cursor terminals, also extract output if "cursor" in source or "external" in source: self._process_terminal_content(new_content, source) @@ -1053,23 +1108,23 @@ def _check_file_for_new_commands( new_commands = self._extract_commands_from_content(new_content, source) for cmd in new_commands: self._process_observed_command(cmd, source) - + positions[key] = current_size - + except OSError: pass - + def _process_terminal_content(self, content: str, source: str): """Process terminal content including commands and their output.""" lines = content.split("\n") current_command = None output_lines = [] - + for line in lines: line_stripped = line.strip() if not line_stripped: continue - + # Check if this is a command line (has prompt) is_command = False for pattern in [ @@ -1085,30 +1140,30 @@ def _process_terminal_content(self, content: str, source: str): self._process_observed_command_with_output( current_command, "\n".join(output_lines), source ) - + current_command = match.group(1).strip() output_lines = [] is_command = True break - + if not is_command and current_command: # This is output from the current command output_lines.append(line_stripped) - + # Process the last command if current_command: self._process_observed_command_with_output( current_command, "\n".join(output_lines), source ) - + def _process_observed_command_with_output(self, command: str, output: str, source: str): """Process a command with its output for better feedback.""" # First process the command normally self._process_observed_command(command, source) - + if not self._show_live_output: return - + # Then show relevant output if there is any if output and len(output) > 5: # Check for errors in output @@ -1149,58 +1204,63 @@ def _process_observed_command_with_output(self, command: str, output: str, sourc (r"unknown directive", "Unknown directive"), (r"unexpected", "Unexpected error"), ] - + for pattern, msg in error_patterns: if re.search(pattern, output, re.IGNORECASE): # Show error in bordered panel from rich.panel import Panel from rich.text import Text - + output_preview = output[:200] + "..." if len(output) > 200 else output - + error_text = Text() error_text.append(f"โœ— {msg}\n\n", style="bold red") - for line in output_preview.split('\n')[:3]: + for line in output_preview.split("\n")[:3]: if line.strip(): error_text.append(f" {line.strip()[:80]}\n", style="dim") - + console.print() - console.print(Panel( - error_text, - title="[red bold]Error[/red bold]", - border_style="red", - padding=(0, 1), - )) - - # Get AI-powered help + console.print( + Panel( + error_text, + title="[red bold]Error[/red bold]", + border_style="red", + padding=(0, 1), + ) + ) + + # Get AI-powered help self._provide_error_help(command, output) break else: # Show success indicator for commands that completed if "โœ“" in output or "success" in output.lower() or "complete" in output.lower(): - console.print(f"[green] โœ“ Command completed successfully[/green]") + console.print("[green] โœ“ Command completed successfully[/green]") elif len(output.strip()) > 0: # Show a preview of the output output_lines = [l for l in output.split("\n") if l.strip()][:3] if output_lines: - console.print(f"[dim] Output: {output_lines[0][:60]}{'...' if len(output_lines[0]) > 60 else ''}[/dim]") - + console.print( + f"[dim] Output: {output_lines[0][:60]}{'...' if len(output_lines[0]) > 60 else ''}[/dim]" + ) + def _provide_error_help(self, command: str, output: str): """Provide contextual help for errors using Claude LLM and send solutions via notifications.""" + import subprocess + from rich.panel import Panel from rich.table import Table - import subprocess - + console.print() - + # First, try Claude for intelligent analysis claude_analysis = None if self._claude and self._use_llm and self._claude.is_available(): claude_analysis = self._claude.analyze_error(command, output) - + # Also use the existing ErrorDiagnoser for pattern-based analysis diagnosis = self._diagnoser.diagnose_error(command, output) - + error_type = diagnosis.get("error_type", "unknown") category = diagnosis.get("category", "unknown") description = diagnosis.get("description", output[:200]) @@ -1208,17 +1268,17 @@ def _provide_error_help(self, command: str, output: str): can_auto_fix = diagnosis.get("can_auto_fix", False) fix_strategy = diagnosis.get("fix_strategy", "") extracted_info = diagnosis.get("extracted_info", {}) - + # If Claude provided analysis, use it to enhance diagnosis if claude_analysis: cause = claude_analysis.get("cause", "") claude_fixes = claude_analysis.get("fixes", []) - + # Show Claude's analysis in bordered panel if cause or claude_fixes: from rich.panel import Panel from rich.text import Text - + analysis_text = Text() if cause: analysis_text.append("Cause: ", style="bold cyan") @@ -1227,15 +1287,17 @@ def _provide_error_help(self, command: str, output: str): analysis_text.append("Solution:\n", style="bold green") for fix in claude_fixes[:3]: analysis_text.append(f" $ {fix}\n", style="green") - + console.print() - console.print(Panel( - analysis_text, - title="[cyan bold]๐Ÿค– Claude Analysis[/cyan bold]", - border_style="cyan", - padding=(0, 1), - )) - + console.print( + Panel( + analysis_text, + title="[cyan bold]๐Ÿค– Claude Analysis[/cyan bold]", + border_style="cyan", + padding=(0, 1), + ) + ) + # Send notification with Claude's solution if cause or claude_fixes: notif_title = f"๐Ÿ”ง Cortex: {error_type if error_type != 'unknown' else 'Error'}" @@ -1243,115 +1305,139 @@ def _provide_error_help(self, command: str, output: str): if claude_fixes: notif_body += f"\n\nFix: {claude_fixes[0]}" self._send_solution_notification(notif_title, notif_body) - + # Use Claude's fixes if pattern-based analysis didn't find any if not fix_commands and claude_fixes: fix_commands = claude_fixes can_auto_fix = True - + # Show diagnosis in panel (only if no Claude analysis) if not claude_analysis: from rich.panel import Panel - from rich.text import Text from rich.table import Table - + from rich.text import Text + diag_table = Table(show_header=False, box=None, padding=(0, 1)) diag_table.add_column("Key", style="dim") diag_table.add_column("Value", style="bold") - + diag_table.add_row("Type", error_type) diag_table.add_row("Category", category) if can_auto_fix: - diag_table.add_row("Auto-Fix", f"[green]โ— Yes[/green] [dim]({fix_strategy})[/dim]" if fix_strategy else "[green]โ— Yes[/green]") + diag_table.add_row( + "Auto-Fix", + ( + f"[green]โ— Yes[/green] [dim]({fix_strategy})[/dim]" + if fix_strategy + else "[green]โ— Yes[/green]" + ), + ) else: diag_table.add_row("Auto-Fix", "[red]โ—‹ No[/red]") - + console.print() - console.print(Panel( - diag_table, - title="[yellow bold]Diagnosis[/yellow bold]", - border_style="yellow", - padding=(0, 1), - )) - + console.print( + Panel( + diag_table, + title="[yellow bold]Diagnosis[/yellow bold]", + border_style="yellow", + padding=(0, 1), + ) + ) + # If auto-fix is possible, attempt to run the fix commands if can_auto_fix and fix_commands: actionable_commands = [c for c in fix_commands if not c.startswith("#")] - + if actionable_commands: # Auto-fix with progress bar from rich.panel import Panel - from rich.progress import Progress, SpinnerColumn, TextColumn, BarColumn - + from rich.progress import BarColumn, Progress, SpinnerColumn, TextColumn + console.print() - console.print(Panel( - f"[bold]Running {len(actionable_commands)} fix command(s)...[/bold]", - title="[green bold]๐Ÿ”ง Auto-Fix[/green bold]", - border_style="green", - padding=(0, 1), - )) - + console.print( + Panel( + f"[bold]Running {len(actionable_commands)} fix command(s)...[/bold]", + title="[green bold]๐Ÿ”ง Auto-Fix[/green bold]", + border_style="green", + padding=(0, 1), + ) + ) + # Send notification that we're fixing the command self._notify_fixing_command(command, actionable_commands[0]) - + # Run the fix commands fix_success = self._run_auto_fix_commands(actionable_commands, command, error_type) - + if fix_success: # Success in bordered panel from rich.panel import Panel + console.print() - console.print(Panel( - f"[green]โœ“[/green] Auto-fix completed!\n\n[dim]Retry:[/dim] [cyan]{command}[/cyan]", - title="[green bold]Success[/green bold]", - border_style="green", - padding=(0, 1), - )) - + console.print( + Panel( + f"[green]โœ“[/green] Auto-fix completed!\n\n[dim]Retry:[/dim] [cyan]{command}[/cyan]", + title="[green bold]Success[/green bold]", + border_style="green", + padding=(0, 1), + ) + ) + # Send success notification self._send_fix_success_notification(command, error_type) else: pass # Sudo commands shown separately - + console.print() return - + # Show fix commands in bordered panel if we can't auto-fix if fix_commands and not claude_analysis: from rich.panel import Panel from rich.text import Text - + fix_text = Text() for cmd in fix_commands[:3]: if not cmd.startswith("#"): fix_text.append(f" $ {cmd}\n", style="green") - + console.print() - console.print(Panel( - fix_text, - title="[bold]Manual Fix[/bold]", - border_style="blue", - padding=(0, 1), - )) - + console.print( + Panel( + fix_text, + title="[bold]Manual Fix[/bold]", + border_style="blue", + padding=(0, 1), + ) + ) + # If error is unknown and no Claude, use local LLM - if error_type == "unknown" and not claude_analysis and self._llm and self._use_llm and self._llm.is_available(): + if ( + error_type == "unknown" + and not claude_analysis + and self._llm + and self._use_llm + and self._llm.is_available() + ): llm_help = self._llm_analyze_error(command, output) if llm_help: console.print() console.print(f"[dim]{llm_help}[/dim]") - + # Try to extract fix command from LLM response llm_fix = self._extract_fix_from_llm(llm_help) if llm_fix: console.print() - console.print(f"[bold green]๐Ÿ’ก AI Suggested Fix:[/bold green] [cyan]{llm_fix}[/cyan]") - + console.print( + f"[bold green]๐Ÿ’ก AI Suggested Fix:[/bold green] [cyan]{llm_fix}[/cyan]" + ) + # Attempt to run the LLM suggested fix if self._is_safe_fix_command(llm_fix): console.print("[dim]Attempting AI-suggested fix...[/dim]") self._run_auto_fix_commands([llm_fix], command, "ai_suggested") - + # Build notification message notification_msg = "" if fix_commands: @@ -1362,23 +1448,26 @@ def _provide_error_help(self, command: str, output: str): notification_msg = description[:100] else: notification_msg = description[:100] - + # Send desktop notification self._send_error_notification(command, notification_msg, error_type, can_auto_fix) - + console.print() - - def _run_auto_fix_commands(self, commands: list[str], original_command: str, error_type: str) -> bool: + + def _run_auto_fix_commands( + self, commands: list[str], original_command: str, error_type: str + ) -> bool: """Run auto-fix commands with progress bar and return True if successful.""" import subprocess - from rich.progress import Progress, SpinnerColumn, TextColumn, BarColumn, TaskProgressColumn + from rich.panel import Panel + from rich.progress import BarColumn, Progress, SpinnerColumn, TaskProgressColumn, TextColumn from rich.table import Table - + all_success = True sudo_commands_pending = [] results = [] - + # Break down && commands into individual commands expanded_commands = [] for cmd in commands[:3]: @@ -1390,149 +1479,168 @@ def _run_auto_fix_commands(self, commands: list[str], original_command: str, err expanded_commands.extend(parts) else: expanded_commands.append(cmd) - + actionable = expanded_commands - + # Show each command being run with Rich Status (no raw ANSI codes) from rich.status import Status - + for i, fix_cmd in enumerate(actionable, 1): # Check if this needs sudo needs_sudo = fix_cmd.strip().startswith("sudo ") - + if needs_sudo: try: check_sudo = subprocess.run( - ["sudo", "-n", "true"], - capture_output=True, - timeout=5 + ["sudo", "-n", "true"], capture_output=True, timeout=5 ) - + if check_sudo.returncode != 0: sudo_commands_pending.append(fix_cmd) results.append((fix_cmd, "sudo", None)) - console.print(f" [dim][{i}/{len(actionable)}][/dim] [yellow]![/yellow] {fix_cmd[:55]}... [dim](needs sudo)[/dim]") + console.print( + f" [dim][{i}/{len(actionable)}][/dim] [yellow]![/yellow] {fix_cmd[:55]}... [dim](needs sudo)[/dim]" + ) continue except Exception: sudo_commands_pending.append(fix_cmd) results.append((fix_cmd, "sudo", None)) - console.print(f" [dim][{i}/{len(actionable)}][/dim] [yellow]![/yellow] {fix_cmd[:55]}... [dim](needs sudo)[/dim]") + console.print( + f" [dim][{i}/{len(actionable)}][/dim] [yellow]![/yellow] {fix_cmd[:55]}... [dim](needs sudo)[/dim]" + ) continue - + # Run command with status spinner cmd_display = fix_cmd[:55] + "..." if len(fix_cmd) > 55 else fix_cmd - + try: with Status(f"[cyan]{cmd_display}[/cyan]", console=console, spinner="dots"): result = subprocess.run( - fix_cmd, - shell=True, - capture_output=True, - text=True, - timeout=60 + fix_cmd, shell=True, capture_output=True, text=True, timeout=60 ) - + if result.returncode == 0: results.append((fix_cmd, "success", None)) - console.print(f" [dim][{i}/{len(actionable)}][/dim] [green]โœ“[/green] {cmd_display}") + console.print( + f" [dim][{i}/{len(actionable)}][/dim] [green]โœ“[/green] {cmd_display}" + ) else: - if "password" in (result.stderr or "").lower() or "terminal is required" in (result.stderr or "").lower(): + if ( + "password" in (result.stderr or "").lower() + or "terminal is required" in (result.stderr or "").lower() + ): sudo_commands_pending.append(fix_cmd) results.append((fix_cmd, "sudo", None)) - console.print(f" [dim][{i}/{len(actionable)}][/dim] [yellow]![/yellow] {cmd_display} [dim](needs sudo)[/dim]") + console.print( + f" [dim][{i}/{len(actionable)}][/dim] [yellow]![/yellow] {cmd_display} [dim](needs sudo)[/dim]" + ) else: - results.append((fix_cmd, "failed", result.stderr[:60] if result.stderr else "failed")) + results.append( + (fix_cmd, "failed", result.stderr[:60] if result.stderr else "failed") + ) all_success = False - console.print(f" [dim][{i}/{len(actionable)}][/dim] [red]โœ—[/red] {cmd_display}") - console.print(f" [dim red]{result.stderr[:80] if result.stderr else 'Command failed'}[/dim red]") + console.print( + f" [dim][{i}/{len(actionable)}][/dim] [red]โœ—[/red] {cmd_display}" + ) + console.print( + f" [dim red]{result.stderr[:80] if result.stderr else 'Command failed'}[/dim red]" + ) break - + except subprocess.TimeoutExpired: results.append((fix_cmd, "timeout", None)) all_success = False - console.print(f" [dim][{i}/{len(actionable)}][/dim] [yellow]โฑ[/yellow] {cmd_display} [dim](timeout)[/dim]") + console.print( + f" [dim][{i}/{len(actionable)}][/dim] [yellow]โฑ[/yellow] {cmd_display} [dim](timeout)[/dim]" + ) break except Exception as e: results.append((fix_cmd, "error", str(e)[:50])) all_success = False console.print(f" [dim][{i}/{len(actionable)}][/dim] [red]โœ—[/red] {cmd_display}") break - + # Show summary line success_count = sum(1 for _, s, _ in results if s == "success") if success_count > 0 and success_count == len([r for r in results if r[1] != "sudo"]): console.print(f"\n [green]โœ“ All {success_count} command(s) completed[/green]") - + # Show sudo commands in bordered panel if sudo_commands_pending: from rich.panel import Panel from rich.text import Text - + sudo_text = Text() sudo_text.append("Run these commands manually:\n\n", style="dim") for cmd in sudo_commands_pending: sudo_text.append(f" $ {cmd}\n", style="green") - + console.print() - console.print(Panel( - sudo_text, - title="[yellow bold]๐Ÿ” Sudo Required[/yellow bold]", - border_style="yellow", - padding=(0, 1), - )) - + console.print( + Panel( + sudo_text, + title="[yellow bold]๐Ÿ” Sudo Required[/yellow bold]", + border_style="yellow", + padding=(0, 1), + ) + ) + # Send notification about pending sudo commands self._send_sudo_pending_notification(sudo_commands_pending) - + # Still consider it a partial success if we need manual sudo return len(sudo_commands_pending) < len([c for c in commands if not c.startswith("#")]) - + return all_success - + def _send_sudo_pending_notification(self, commands: list[str]): """Send notification about pending sudo commands.""" try: import subprocess - + cmd_preview = commands[0][:40] + "..." if len(commands[0]) > 40 else commands[0] - - subprocess.run([ - "notify-send", - "--urgency=normal", - "--icon=dialog-password", - "๐Ÿ” Cortex: Sudo required", - f"Run in your terminal:\n{cmd_preview}" - ], capture_output=True, timeout=2) - + + subprocess.run( + [ + "notify-send", + "--urgency=normal", + "--icon=dialog-password", + "๐Ÿ” Cortex: Sudo required", + f"Run in your terminal:\n{cmd_preview}", + ], + capture_output=True, + timeout=2, + ) + except Exception: pass - + def _extract_fix_from_llm(self, llm_response: str) -> str | None: """Extract a fix command from LLM response.""" import re - + # Look for commands in common formats patterns = [ - r'`([^`]+)`', # Backtick enclosed - r'^\$ (.+)$', # Shell prompt format - r'^sudo (.+)$', # Sudo commands - r'run[:\s]+([^\n]+)', # "run: command" format - r'try[:\s]+([^\n]+)', # "try: command" format + r"`([^`]+)`", # Backtick enclosed + r"^\$ (.+)$", # Shell prompt format + r"^sudo (.+)$", # Sudo commands + r"run[:\s]+([^\n]+)", # "run: command" format + r"try[:\s]+([^\n]+)", # "try: command" format ] - + for pattern in patterns: matches = re.findall(pattern, llm_response, re.MULTILINE | re.IGNORECASE) for match in matches: cmd = match.strip() if cmd and len(cmd) > 3 and self._is_safe_fix_command(cmd): return cmd - + return None - + def _is_safe_fix_command(self, command: str) -> bool: """Check if a fix command is safe to run automatically.""" cmd_lower = command.lower().strip() - + # Dangerous commands we should never auto-run dangerous_patterns = [ "rm -rf /", @@ -1549,11 +1657,11 @@ def _is_safe_fix_command(self, command: str) -> bool: "curl|bash", "wget|bash", ] - + for pattern in dangerous_patterns: if pattern in cmd_lower: return False - + # Safe fix command patterns safe_patterns = [ "sudo systemctl", @@ -1573,72 +1681,91 @@ def _is_safe_fix_command(self, command: str) -> bool: "mkdir -p", "touch", ] - + for pattern in safe_patterns: if cmd_lower.startswith(pattern): return True - + # Allow sudo commands for common safe operations if cmd_lower.startswith("sudo "): rest = cmd_lower[5:].strip() - safe_sudo = ["systemctl", "service", "apt", "apt-get", "nginx", "chmod", "chown", "mkdir"] + safe_sudo = [ + "systemctl", + "service", + "apt", + "apt-get", + "nginx", + "chmod", + "chown", + "mkdir", + ] if any(rest.startswith(s) for s in safe_sudo): return True - + return False - + def _send_fix_success_notification(self, command: str, error_type: str): """Send a desktop notification that the fix was successful.""" try: import subprocess - + cmd_short = command[:30] + "..." if len(command) > 30 else command - - subprocess.run([ - "notify-send", - "--urgency=normal", - "--icon=dialog-information", - f"โœ… Cortex: Fixed {error_type}", - f"Auto-fix successful! You can now retry:\n{cmd_short}" - ], capture_output=True, timeout=2) - + + subprocess.run( + [ + "notify-send", + "--urgency=normal", + "--icon=dialog-information", + f"โœ… Cortex: Fixed {error_type}", + f"Auto-fix successful! You can now retry:\n{cmd_short}", + ], + capture_output=True, + timeout=2, + ) + except Exception: pass - + def _send_solution_notification(self, title: str, body: str): """Send a desktop notification with the solution from Claude.""" try: import subprocess - + # Use notify-send with high priority - subprocess.run([ - "notify-send", - "--urgency=critical", - "--icon=dialog-information", - "--expire-time=15000", # 15 seconds - title, - body - ], capture_output=True, timeout=2) - + subprocess.run( + [ + "notify-send", + "--urgency=critical", + "--icon=dialog-information", + "--expire-time=15000", # 15 seconds + title, + body, + ], + capture_output=True, + timeout=2, + ) + except Exception: pass - - def _send_error_notification(self, command: str, solution: str, error_type: str = "", can_auto_fix: bool = False): + + def _send_error_notification( + self, command: str, solution: str, error_type: str = "", can_auto_fix: bool = False + ): """Send a desktop notification with the error solution.""" try: # Try to use notify-send (standard on Ubuntu) import subprocess - + # Truncate for notification cmd_short = command[:30] + "..." if len(command) > 30 else command solution_short = solution[:150] + "..." if len(solution) > 150 else solution - + # Build title with error type if error_type and error_type != "unknown": title = f"๐Ÿ”ง Cortex: {error_type}" else: - title = f"๐Ÿ”ง Cortex: Error detected" - + title = "๐Ÿ”ง Cortex: Error detected" + # Add auto-fix indicator if can_auto_fix: body = f"โœ“ Auto-fixable\n\n{solution_short}" @@ -1646,31 +1773,29 @@ def _send_error_notification(self, command: str, solution: str, error_type: str else: body = solution_short icon = "dialog-warning" - + # Send notification - subprocess.run([ - "notify-send", - "--urgency=normal", - f"--icon={icon}", - title, - body - ], capture_output=True, timeout=2) - + subprocess.run( + ["notify-send", "--urgency=normal", f"--icon={icon}", title, body], + capture_output=True, + timeout=2, + ) + except (FileNotFoundError, subprocess.TimeoutExpired, Exception): # notify-send not available or failed, try callback if self.notification_callback: self.notification_callback(f"Error in: {command[:30]}", solution[:100]) - + def _llm_analyze_error(self, command: str, error_output: str) -> str | None: """Use local LLM to analyze an error and provide a fix.""" if not self._llm: return None - + # Build context from recent commands context = "" if self._session_context: context = "Recent commands:\n" + "\n".join(self._session_context[-5:]) + "\n\n" - + prompt = f"""You are a Linux expert. A user ran a command and got an error. Provide a brief, actionable fix (2-3 sentences max). @@ -1683,24 +1808,24 @@ def _llm_analyze_error(self, command: str, error_output: str) -> str | None: {error_output[:500]} Fix (be specific, give the exact non-sudo command to run):""" - + try: result = self._llm.analyze(prompt, max_tokens=150, timeout=10) if result: return result.strip() except Exception: pass - + return None - + def analyze_session_intent(self) -> str | None: """Use LLM to analyze what the user is trying to accomplish based on their commands.""" if not self._llm or not self._llm.is_available(): return None - + if len(self._session_context) < 2: return None - + prompt = f"""Based on these terminal commands, what is the user trying to accomplish? Give a brief summary (1 sentence max). @@ -1708,7 +1833,7 @@ def analyze_session_intent(self) -> str | None: {chr(10).join(self._session_context[-5:])} The user is trying to:""" - + try: result = self._llm.analyze(prompt, max_tokens=50, timeout=15) if result: @@ -1719,17 +1844,17 @@ def analyze_session_intent(self) -> str | None: return result except Exception: pass - + return None - + def get_next_step_suggestion(self) -> str | None: """Use LLM to suggest the next logical step based on recent commands.""" if not self._llm or not self._llm.is_available(): return None - + if len(self._session_context) < 1: return None - + prompt = f"""Based on these terminal commands, what single command should the user run next? Respond with ONLY the command, nothing else. @@ -1737,7 +1862,7 @@ def get_next_step_suggestion(self) -> str | None: {chr(10).join(self._session_context[-5:])} Next command:""" - + try: result = self._llm.analyze(prompt, max_tokens=30, timeout=15) if result: @@ -1746,84 +1871,99 @@ def get_next_step_suggestion(self) -> str | None: # Remove common prefixes for prefix in ["$", "Run:", "Try:", "Next:", "Command:", "`"]: if result.lower().startswith(prefix.lower()): - result = result[len(prefix):].strip() + result = result[len(prefix) :].strip() result = result.rstrip("`") return result.split("\n")[0].strip() except Exception: pass - + return None - + def get_collected_context(self) -> str: """Get a formatted summary of all collected terminal context.""" with self._lock: if not self._commands_observed: return "No commands observed yet." - + lines = ["[bold]๐Ÿ“‹ Collected Terminal Context:[/bold]", ""] - + for i, obs in enumerate(self._commands_observed, 1): timestamp = obs.get("timestamp", "")[:19] source = obs.get("source", "unknown") command = obs.get("command", "") - + lines.append(f"{i}. [{timestamp}] ({source})") lines.append(f" $ {command}") lines.append("") - + return "\n".join(lines) - + def print_collected_context(self): """Print a summary of all collected terminal context with AI analysis.""" from rich.panel import Panel - + with self._lock: if not self._commands_observed: console.print("[dim]No commands observed yet.[/dim]") return - + console.print() - console.print(Panel( - f"[bold]Collected {len(self._commands_observed)} command(s) from other terminals[/bold]", - title="[cyan]๐Ÿ“‹ Terminal Context Summary[/cyan]", - border_style="cyan", - )) - + console.print( + Panel( + f"[bold]Collected {len(self._commands_observed)} command(s) from other terminals[/bold]", + title="[cyan]๐Ÿ“‹ Terminal Context Summary[/cyan]", + border_style="cyan", + ) + ) + for i, obs in enumerate(self._commands_observed[-10:], 1): # Show last 10 - timestamp = obs.get("timestamp", "")[:19].split("T")[-1] if "T" in obs.get("timestamp", "") else obs.get("timestamp", "")[:8] + timestamp = ( + obs.get("timestamp", "")[:19].split("T")[-1] + if "T" in obs.get("timestamp", "") + else obs.get("timestamp", "")[:8] + ) source = obs.get("source", "unknown") command = obs.get("command", "") - + # Shorten source name if ":" in source: source = source.split(":")[-1] - - console.print(f" [dim]{timestamp}[/dim] [cyan]{source:12}[/cyan] [white]{command[:50]}{'...' if len(command) > 50 else ''}[/white]") - + + console.print( + f" [dim]{timestamp}[/dim] [cyan]{source:12}[/cyan] [white]{command[:50]}{'...' if len(command) > 50 else ''}[/white]" + ) + if len(self._commands_observed) > 10: - console.print(f" [dim]... and {len(self._commands_observed) - 10} more commands[/dim]") - + console.print( + f" [dim]... and {len(self._commands_observed) - 10} more commands[/dim]" + ) + # Add AI analysis if available - if self._llm and self._use_llm and self._llm.is_available() and len(self._session_context) >= 2: + if ( + self._llm + and self._use_llm + and self._llm.is_available() + and len(self._session_context) >= 2 + ): console.print() console.print("[bold magenta]๐Ÿค– AI Analysis:[/bold magenta]") - + # Analyze intent intent = self.analyze_session_intent() if intent: console.print(f"[white] Intent: {intent}[/white]") - + # Suggest next step next_step = self.get_next_step_suggestion() if next_step: console.print(f"[green] Suggested next: {next_step}[/green]") - + console.print() - + def _extract_commands_from_content(self, content: str, source: str) -> list[str]: """Extract commands from terminal content based on source type.""" commands = [] - + # Shell history files - each line is a command if "_history" in source or "history" in source: for line in content.strip().split("\n"): @@ -1850,21 +1990,21 @@ def _extract_commands_from_content(self, content: str, source: str) -> list[str] line = line.strip() if not line: continue - + # Various prompt patterns prompt_patterns = [ - r"^\$ (.+)$", # Simple $ prompt - r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+\$ (.+)$", # user@host:path$ cmd - r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+# (.+)$", # root prompt - r"^>>> (.+)$", # Python REPL - r"^\(.*\)\s*\$ (.+)$", # (venv) $ cmd - r"^โžœ\s+.+\s+(.+)$", # Oh-my-zsh prompt - r"^โฏ (.+)$", # Starship prompt - r"^โ–ถ (.+)$", # Another prompt style - r"^\[.*\]\$ (.+)$", # [dir]$ cmd - r"^% (.+)$", # % prompt (zsh default) + r"^\$ (.+)$", # Simple $ prompt + r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+\$ (.+)$", # user@host:path$ cmd + r"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+:.+# (.+)$", # root prompt + r"^>>> (.+)$", # Python REPL + r"^\(.*\)\s*\$ (.+)$", # (venv) $ cmd + r"^โžœ\s+.+\s+(.+)$", # Oh-my-zsh prompt + r"^โฏ (.+)$", # Starship prompt + r"^โ–ถ (.+)$", # Another prompt style + r"^\[.*\]\$ (.+)$", # [dir]$ cmd + r"^% (.+)$", # % prompt (zsh default) ] - + for pattern in prompt_patterns: match = re.match(pattern, line) if match: @@ -1872,117 +2012,133 @@ def _extract_commands_from_content(self, content: str, source: str) -> list[str] if cmd: commands.append(cmd) break - + return commands - + def _process_observed_command(self, command: str, source: str = "unknown"): """Process an observed command and notify about issues with real-time feedback.""" # Skip empty or very short commands if not command or len(command.strip()) < 2: return - + command = command.strip() - + # Skip commands from the Cortex terminal itself if self._is_cortex_terminal_command(command): return - + # Skip common shell built-ins that aren't interesting (only if standalone) skip_commands = ["cd", "ls", "pwd", "clear", "exit", "history", "fg", "bg", "jobs", "alias"] parts = command.split() cmd_base = parts[0] if parts else "" - + # Also handle sudo prefix if cmd_base == "sudo" and len(parts) > 1: cmd_base = parts[1] - + # Only skip if it's JUST the command with no args if cmd_base in skip_commands and len(parts) == 1: return - + # Skip if it looks like a partial command or just an argument if not any(c.isalpha() for c in cmd_base): return - + # Avoid duplicates within short time window with self._lock: - recent = [c for c in self._commands_observed - if c["command"] == command - and (datetime.datetime.now() - datetime.datetime.fromisoformat(c["timestamp"])).seconds < 5] + recent = [ + c + for c in self._commands_observed + if c["command"] == command + and ( + datetime.datetime.now() - datetime.datetime.fromisoformat(c["timestamp"]) + ).seconds + < 5 + ] if recent: return - - self._commands_observed.append({ - "command": command, - "timestamp": datetime.datetime.now().isoformat(), - "source": source, - "has_error": False, # Will be updated if error is detected - "status": "pending", # pending, success, failed - }) - + + self._commands_observed.append( + { + "command": command, + "timestamp": datetime.datetime.now().isoformat(), + "source": source, + "has_error": False, # Will be updated if error is detected + "status": "pending", # pending, success, failed + } + ) + # Add to session context for LLM self._session_context.append(f"$ {command}") # Keep only last 10 commands for context if len(self._session_context) > 10: self._session_context = self._session_context[-10:] - + # Real-time feedback with visual emphasis self._show_realtime_feedback(command, source) - + # For live terminal commands, proactively check the result if source == "live_terminal": self._check_command_result(command) - + # Check for issues and provide help issues = self._check_command_issues(command) if issues: from rich.panel import Panel - console.print(Panel( - f"[bold yellow]โš  Issue:[/bold yellow] {issues}", - border_style="yellow", - padding=(0, 1), - expand=False, - )) + + console.print( + Panel( + f"[bold yellow]โš  Issue:[/bold yellow] {issues}", + border_style="yellow", + padding=(0, 1), + expand=False, + ) + ) if self.notification_callback: - self.notification_callback(f"Cortex: Issue detected", issues) - + self.notification_callback("Cortex: Issue detected", issues) + # Check if command matches expected commands if self._expected_commands: matched = self._check_command_match(command) from rich.panel import Panel + if matched: - console.print(Panel( - "[bold green]โœ“ Matches expected command[/bold green]", - border_style="green", - padding=(0, 1), - expand=False, - )) + console.print( + Panel( + "[bold green]โœ“ Matches expected command[/bold green]", + border_style="green", + padding=(0, 1), + expand=False, + ) + ) else: # User ran a DIFFERENT command than expected - console.print(Panel( - "[bold yellow]โš  Not in expected commands[/bold yellow]", - border_style="yellow", - padding=(0, 1), - expand=False, - )) + console.print( + Panel( + "[bold yellow]โš  Not in expected commands[/bold yellow]", + border_style="yellow", + padding=(0, 1), + expand=False, + ) + ) # Send notification with the correct command(s) self._notify_wrong_command(command) - + def _check_command_match(self, command: str) -> bool: """Check if a command matches any expected command.""" if not self._expected_commands: return True # No expected commands means anything goes - + cmd_normalized = command.strip().lower() # Remove sudo prefix for comparison if cmd_normalized.startswith("sudo "): cmd_normalized = cmd_normalized[5:].strip() - + for expected in self._expected_commands: exp_normalized = expected.strip().lower() if exp_normalized.startswith("sudo "): exp_normalized = exp_normalized[5:].strip() - + # Check for exact match or if command contains the expected command if cmd_normalized == exp_normalized: return True @@ -1990,74 +2146,86 @@ def _check_command_match(self, command: str) -> bool: return True if cmd_normalized in exp_normalized: return True - + # Check if first words match (e.g., "systemctl restart nginx" vs "systemctl restart nginx.service") cmd_parts = cmd_normalized.split() exp_parts = exp_normalized.split() if len(cmd_parts) >= 2 and len(exp_parts) >= 2: if cmd_parts[0] == exp_parts[0] and cmd_parts[1] == exp_parts[1]: return True - + return False - + def _notify_wrong_command(self, wrong_command: str): """Send desktop notification when user runs wrong command.""" if not self._expected_commands: return - + # Find the most relevant expected command correct_cmd = self._expected_commands[0] if self._expected_commands else None - + if correct_cmd: title = "โš ๏ธ Cortex: Wrong Command" body = f"You ran: {wrong_command[:40]}...\n\nExpected: {correct_cmd}" - + try: import subprocess - subprocess.run([ - "notify-send", - "--urgency=critical", - "--icon=dialog-warning", - "--expire-time=10000", - title, - body - ], capture_output=True, timeout=2) + + subprocess.run( + [ + "notify-send", + "--urgency=critical", + "--icon=dialog-warning", + "--expire-time=10000", + title, + body, + ], + capture_output=True, + timeout=2, + ) except Exception: pass - + # Also show in console - console.print(f" [bold yellow]๐Ÿ“ข Expected command:[/bold yellow] [cyan]{correct_cmd}[/cyan]") - + console.print( + f" [bold yellow]๐Ÿ“ข Expected command:[/bold yellow] [cyan]{correct_cmd}[/cyan]" + ) + def _notify_fixing_command(self, original_cmd: str, fix_cmd: str): """Send notification that Cortex is fixing a command error.""" title = "๐Ÿ”ง Cortex: Fixing Error" body = f"Command failed: {original_cmd[:30]}...\n\nFix: {fix_cmd}" - + try: import subprocess - subprocess.run([ - "notify-send", - "--urgency=normal", - "--icon=dialog-information", - "--expire-time=8000", - title, - body - ], capture_output=True, timeout=2) + + subprocess.run( + [ + "notify-send", + "--urgency=normal", + "--icon=dialog-information", + "--expire-time=8000", + title, + body, + ], + capture_output=True, + timeout=2, + ) except Exception: pass - + def _check_command_result(self, command: str): """Proactively check if a command succeeded by running verification commands.""" import subprocess import time - + # Wait a moment for the command to complete time.sleep(0.5) - + cmd_lower = command.lower().strip() check_cmd = None error_output = None - + # Determine what check to run based on the command if "systemctl" in cmd_lower: # Extract service name @@ -2068,17 +2236,17 @@ def _check_command_result(self, command: str): if i + 1 < len(parts): service_name = parts[i + 1] break - + if service_name: check_cmd = f"systemctl status {service_name} 2>&1 | head -5" - + elif "service" in cmd_lower and "status" not in cmd_lower: # Extract service name for service command parts = command.split() if len(parts) >= 3: service_name = parts[1] if parts[0] != "sudo" else parts[2] check_cmd = f"service {service_name} status 2>&1 | head -5" - + elif "docker" in cmd_lower: if "run" in cmd_lower or "start" in cmd_lower: # Get container name if present @@ -2088,52 +2256,59 @@ def _check_command_result(self, command: str): if p == "--name" and i + 1 < len(parts): container_name = parts[i + 1] break - + if container_name: - check_cmd = f"docker ps -f name={container_name} --format '{{{{.Status}}}}' 2>&1" + check_cmd = ( + f"docker ps -f name={container_name} --format '{{{{.Status}}}}' 2>&1" + ) else: check_cmd = "docker ps -l --format '{{.Status}} {{.Names}}' 2>&1" elif "stop" in cmd_lower or "rm" in cmd_lower: check_cmd = "docker ps -a -l --format '{{.Status}} {{.Names}}' 2>&1" - + elif "nginx" in cmd_lower and "-t" in cmd_lower: check_cmd = "nginx -t 2>&1" - + elif "apt" in cmd_lower or "apt-get" in cmd_lower: # Check for recent apt errors check_cmd = "tail -3 /var/log/apt/term.log 2>/dev/null || echo 'ok'" - + # Run the check command if we have one if check_cmd: try: result = subprocess.run( - check_cmd, - shell=True, - capture_output=True, - text=True, - timeout=5 + check_cmd, shell=True, capture_output=True, text=True, timeout=5 ) - + output = result.stdout + result.stderr - + # Check for error indicators in the output error_indicators = [ - "failed", "error", "not found", "inactive", "dead", - "could not", "unable", "denied", "cannot", "exited", - "not running", "not loaded" + "failed", + "error", + "not found", + "inactive", + "dead", + "could not", + "unable", + "denied", + "cannot", + "exited", + "not running", + "not loaded", ] - + has_error = any(ind in output.lower() for ind in error_indicators) - + if has_error or result.returncode != 0: error_output = output - + except (subprocess.TimeoutExpired, Exception): pass - + # If we found an error, mark the command and process it with auto-fix if error_output: - console.print(f" [dim]checking...[/dim]") + console.print(" [dim]checking...[/dim]") # Mark this command as having an error with self._lock: for obs in self._commands_observed: @@ -2149,15 +2324,15 @@ def _check_command_result(self, command: str): if obs["command"] == command and obs["status"] == "pending": obs["status"] = "success" break - + def _show_realtime_feedback(self, command: str, source: str): """Show real-time visual feedback for detected commands.""" if not self._show_live_output: return - + from rich.panel import Panel from rich.text import Text - + # Source icons and labels source_info = { "cursor": ("๐Ÿ–ฅ๏ธ", "Cursor IDE", "cyan"), @@ -2167,14 +2342,14 @@ def _show_realtime_feedback(self, command: str, source: str): "zsh": ("๐Ÿ“", "Zsh", "green"), "fish": ("๐ŸŸ", "Fish", "yellow"), } - + # Determine source type icon, label, color = "๐Ÿ“", "Terminal", "white" for key, (i, l, c) in source_info.items(): if key in source.lower(): icon, label, color = i, l, c break - + # Categorize command cmd_category = self._categorize_command(command) category_icons = { @@ -2201,59 +2376,60 @@ def _show_realtime_feedback(self, command: str, source: str): "node": "๐Ÿ“—", } cmd_icon = category_icons.get(cmd_category, "โ–ถ") - + # Format timestamp timestamp = datetime.datetime.now().strftime("%H:%M:%S") - + # Store in buffer for later reference - self._output_buffer.append({ - "timestamp": timestamp, - "source": source, - "label": label, - "icon": icon, - "color": color, - "command": command, - "cmd_icon": cmd_icon, - }) - + self._output_buffer.append( + { + "timestamp": timestamp, + "source": source, + "label": label, + "icon": icon, + "color": color, + "command": command, + "cmd_icon": cmd_icon, + } + ) + # Print real-time feedback with bordered section analysis = self._analyze_command(command) - - from rich.panel import Panel - from rich.text import Text - + # Build command display cmd_text = Text() cmd_text.append(f"{cmd_icon} ", style="bold") cmd_text.append(command, style="bold white") if analysis: cmd_text.append(f"\n {analysis}", style="dim italic") - + console.print() - console.print(Panel( - cmd_text, - title=f"[dim]{timestamp}[/dim]", - title_align="right", - border_style="blue", - padding=(0, 1), - )) - + console.print( + Panel( + cmd_text, + title=f"[dim]{timestamp}[/dim]", + title_align="right", + border_style="blue", + padding=(0, 1), + ) + ) + def _categorize_command(self, command: str) -> str: """Categorize a command by its base command.""" cmd_parts = command.split() if not cmd_parts: return "unknown" - + base = cmd_parts[0] if base == "sudo" and len(cmd_parts) > 1: base = cmd_parts[1] - + return base.lower() - + def _analyze_command(self, command: str) -> str | None: """Analyze a command and return a brief description using LLM or patterns.""" cmd_lower = command.lower() - + # First try pattern matching for speed patterns = [ (r"docker run", "Starting a Docker container"), @@ -2287,28 +2463,28 @@ def _analyze_command(self, command: str) -> str | None: (r"chmod", "Changing file permissions"), (r"chown", "Changing file ownership"), ] - + for pattern, description in patterns: if re.search(pattern, cmd_lower): return description - + # Use LLM for unknown commands if self._llm and self._use_llm and self._llm.is_available(): return self._llm_analyze_command(command) - + return None - + def _llm_analyze_command(self, command: str) -> str | None: """Use local LLM to analyze a command.""" if not self._llm: return None - + prompt = f"""Analyze this Linux command and respond with ONLY a brief description (max 10 words) of what it does: Command: {command} Brief description:""" - + try: result = self._llm.analyze(prompt, max_tokens=30, timeout=5) if result: @@ -2322,20 +2498,20 @@ def _llm_analyze_command(self, command: str) -> str | None: return result except Exception: pass - + return None - + def _check_command_issues(self, command: str) -> str | None: """Check if a command has potential issues and return a warning.""" issues = [] - + if any(p in command for p in ["/etc/", "/var/", "/usr/"]): if not command.startswith("sudo") and not command.startswith("cat"): issues.append("May need sudo for system files") - + if "rm -rf /" in command: issues.append("DANGER: Destructive command detected!") - + typo_checks = { "sudp": "sudo", "suod": "sudo", @@ -2346,6 +2522,5 @@ def _check_command_issues(self, command: str) -> str | None: for typo, correct in typo_checks.items(): if command.startswith(typo + " "): issues.append(f"Typo? Did you mean '{correct}'?") - - return "; ".join(issues) if issues else None + return "; ".join(issues) if issues else None diff --git a/cortex/do_runner/verification.py b/cortex/do_runner/verification.py index c13a3c040..f179c1ed5 100644 --- a/cortex/do_runner/verification.py +++ b/cortex/do_runner/verification.py @@ -15,13 +15,15 @@ class ConflictDetector: """Detects conflicts with existing configurations.""" - - def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 120) -> tuple[bool, str, str]: + + def _execute_command( + self, cmd: str, needs_sudo: bool = False, timeout: int = 120 + ) -> tuple[bool, str, str]: """Execute a single command.""" try: if needs_sudo and not cmd.strip().startswith("sudo"): cmd = f"sudo {cmd}" - + result = subprocess.run( ["sudo", "bash", "-c", cmd] if needs_sudo else cmd, shell=not needs_sudo, @@ -34,7 +36,7 @@ def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 12 return False, "", f"Command timed out after {timeout} seconds" except Exception as e: return False, "", str(e) - + def check_for_conflicts( self, cmd: str, @@ -42,7 +44,7 @@ def check_for_conflicts( ) -> dict[str, Any]: """ Check if the command might conflict with existing resources. - + This is a GENERAL conflict detector that works for: - Docker containers - Services (systemd) @@ -53,7 +55,7 @@ def check_for_conflicts( - Ports - Virtual environments - And more... - + Returns: Dict with conflict info, alternatives, and cleanup commands. """ @@ -69,12 +71,12 @@ def check_for_conflicts( self._check_database_conflict, self._check_cron_conflict, ] - + for checker in checkers: result = checker(cmd, purpose) if result["has_conflict"]: return result - + # Default: no conflict return { "has_conflict": False, @@ -85,7 +87,7 @@ def check_for_conflicts( "cleanup_commands": [], "alternative_actions": [], } - + def _create_conflict_result( self, resource_type: str, @@ -96,7 +98,7 @@ def _create_conflict_result( alternative_actions: list[dict] | None = None, ) -> dict[str, Any]: """Create a standardized conflict result with alternatives.""" - + # Generate standard alternative actions based on resource type and state if alternative_actions is None: if is_active: @@ -130,7 +132,7 @@ def _create_conflict_result( "commands": self._get_remove_commands(resource_type, resource_name), }, ] - + return { "has_conflict": True, "conflict_type": conflict_type, @@ -142,7 +144,7 @@ def _create_conflict_result( "cleanup_commands": [], "use_existing": is_active, } - + def _get_restart_commands(self, resource_type: str, name: str) -> list[str]: """Get restart commands for a resource type.""" commands = { @@ -152,7 +154,7 @@ def _get_restart_commands(self, resource_type: str, name: str) -> list[str]: "webserver": [f"sudo systemctl restart {name}"], } return commands.get(resource_type, []) - + def _get_start_commands(self, resource_type: str, name: str) -> list[str]: """Get start commands for a resource type.""" commands = { @@ -162,7 +164,7 @@ def _get_start_commands(self, resource_type: str, name: str) -> list[str]: "webserver": [f"sudo systemctl start {name}"], } return commands.get(resource_type, []) - + def _get_remove_commands(self, resource_type: str, name: str) -> list[str]: """Get remove/cleanup commands for a resource type.""" commands = { @@ -176,35 +178,36 @@ def _get_remove_commands(self, resource_type: str, name: str) -> list[str]: "database": [], # Don't auto-remove databases } return commands.get(resource_type, []) - + def _check_docker_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for Docker container/compose conflicts.""" result = {"has_conflict": False} - + # Docker run with --name if "docker run" in cmd.lower(): - name_match = re.search(r'--name\s+([^\s]+)', cmd) + name_match = re.search(r"--name\s+([^\s]+)", cmd) if name_match: container_name = name_match.group(1) - + # Check if container exists success, container_id, _ = self._execute_command( f"docker ps -aq --filter name=^{container_name}$", needs_sudo=False ) - + if success and container_id.strip(): # Check if running running_success, running_id, _ = self._execute_command( f"docker ps -q --filter name=^{container_name}$", needs_sudo=False ) is_running = running_success and running_id.strip() - + # Get image info _, image_info, _ = self._execute_command( - f"docker inspect --format '{{{{.Config.Image}}}}' {container_name}", needs_sudo=False + f"docker inspect --format '{{{{.Config.Image}}}}' {container_name}", + needs_sudo=False, ) image = image_info.strip() if image_info else "unknown" - + status = "running" if is_running else "stopped" return self._create_conflict_result( resource_type="container", @@ -213,11 +216,13 @@ def _check_docker_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Container '{container_name}' already exists ({status}, image: {image})", is_active=is_running, ) - + # Docker compose if "docker-compose" in cmd.lower() or "docker compose" in cmd.lower(): if "up" in cmd: - success, services, _ = self._execute_command("docker compose ps -q 2>/dev/null", needs_sudo=False) + success, services, _ = self._execute_command( + "docker compose ps -q 2>/dev/null", needs_sudo=False + ) if success and services.strip(): return self._create_conflict_result( resource_type="compose", @@ -226,29 +231,41 @@ def _check_docker_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion="Docker Compose services are already running", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": "Keep existing services", "commands": []}, - {"action": "restart", "description": "Restart services", "commands": ["docker compose restart"]}, - {"action": "recreate", "description": "Recreate services", "commands": ["docker compose down", "docker compose up -d"]}, - ] + { + "action": "use_existing", + "description": "Keep existing services", + "commands": [], + }, + { + "action": "restart", + "description": "Restart services", + "commands": ["docker compose restart"], + }, + { + "action": "recreate", + "description": "Recreate services", + "commands": ["docker compose down", "docker compose up -d"], + }, + ], ) - + return result - + def _check_service_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for systemd service conflicts.""" result = {"has_conflict": False} - + # systemctl start/enable if "systemctl" in cmd: - service_match = re.search(r'systemctl\s+(start|enable|restart)\s+([^\s]+)', cmd) + service_match = re.search(r"systemctl\s+(start|enable|restart)\s+([^\s]+)", cmd) if service_match: action = service_match.group(1) - service = service_match.group(2).replace('.service', '') - + service = service_match.group(2).replace(".service", "") + success, status, _ = self._execute_command( f"systemctl is-active {service} 2>/dev/null", needs_sudo=False ) - + if action in ["start", "enable"] and status.strip() == "active": return self._create_conflict_result( resource_type="service", @@ -257,10 +274,10 @@ def _check_service_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Service '{service}' is already running", is_active=True, ) - + # service command if cmd.startswith("service ") or " service " in cmd: - service_match = re.search(r'service\s+(\S+)\s+(start|restart)', cmd) + service_match = re.search(r"service\s+(\S+)\s+(start|restart)", cmd) if service_match: service = service_match.group(1) success, status, _ = self._execute_command( @@ -274,26 +291,28 @@ def _check_service_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Service '{service}' is already running", is_active=True, ) - + return result - + def _check_file_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for file/directory conflicts.""" result = {"has_conflict": False} - paths_in_cmd = re.findall(r'(/[^\s>|]+)', cmd) - + paths_in_cmd = re.findall(r"(/[^\s>|]+)", cmd) + for path in paths_in_cmd: # Skip common read paths if path in ["/dev/null", "/etc/os-release", "/proc/", "/sys/"]: continue - + # Check for file creation/modification commands - is_write_cmd = any(p in cmd for p in [">" , "tee ", "cp ", "mv ", "touch ", "mkdir ", "echo "]) - + is_write_cmd = any( + p in cmd for p in [">", "tee ", "cp ", "mv ", "touch ", "mkdir ", "echo "] + ) + if is_write_cmd and os.path.exists(path): is_dir = os.path.isdir(path) resource_type = "directory" if is_dir else "file" - + return self._create_conflict_result( resource_type=resource_type, resource_name=path, @@ -301,29 +320,45 @@ def _check_file_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"{resource_type.title()} '{path}' already exists", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": f"Keep existing {resource_type}", "commands": []}, - {"action": "backup", "description": f"Backup and overwrite", "commands": [f"sudo cp -r {path} {path}.cortex.bak"]}, - {"action": "recreate", "description": f"Remove and recreate", "commands": [f"sudo rm -rf {path}" if is_dir else f"sudo rm -f {path}"]}, - ] + { + "action": "use_existing", + "description": f"Keep existing {resource_type}", + "commands": [], + }, + { + "action": "backup", + "description": "Backup and overwrite", + "commands": [f"sudo cp -r {path} {path}.cortex.bak"], + }, + { + "action": "recreate", + "description": "Remove and recreate", + "commands": [f"sudo rm -rf {path}" if is_dir else f"sudo rm -f {path}"], + }, + ], ) - + return result - + def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for package installation conflicts.""" result = {"has_conflict": False} - + # apt install if "apt install" in cmd or "apt-get install" in cmd: - pkg_match = re.search(r'(?:apt|apt-get)\s+install\s+(?:-y\s+)?(\S+)', cmd) + pkg_match = re.search(r"(?:apt|apt-get)\s+install\s+(?:-y\s+)?(\S+)", cmd) if pkg_match: package = pkg_match.group(1) - success, _, _ = self._execute_command(f"dpkg -l {package} 2>/dev/null | grep -q '^ii'", needs_sudo=False) + success, _, _ = self._execute_command( + f"dpkg -l {package} 2>/dev/null | grep -q '^ii'", needs_sudo=False + ) if success: # Get version - _, version_out, _ = self._execute_command(f"dpkg -l {package} | grep '^ii' | awk '{{print $3}}'", needs_sudo=False) + _, version_out, _ = self._execute_command( + f"dpkg -l {package} | grep '^ii' | awk '{{print $3}}'", needs_sudo=False + ) version = version_out.strip() if version_out else "unknown" - + return self._create_conflict_result( resource_type="package", resource_name=package, @@ -331,18 +366,32 @@ def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Package '{package}' is already installed (version: {version})", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": f"Keep current version ({version})", "commands": []}, - {"action": "upgrade", "description": "Upgrade to latest version", "commands": [f"sudo apt install --only-upgrade -y {package}"]}, - {"action": "reinstall", "description": "Reinstall package", "commands": [f"sudo apt install --reinstall -y {package}"]}, - ] + { + "action": "use_existing", + "description": f"Keep current version ({version})", + "commands": [], + }, + { + "action": "upgrade", + "description": "Upgrade to latest version", + "commands": [f"sudo apt install --only-upgrade -y {package}"], + }, + { + "action": "reinstall", + "description": "Reinstall package", + "commands": [f"sudo apt install --reinstall -y {package}"], + }, + ], ) - + # pip install if "pip install" in cmd or "pip3 install" in cmd: - pkg_match = re.search(r'pip3?\s+install\s+(?:-[^\s]+\s+)*(\S+)', cmd) + pkg_match = re.search(r"pip3?\s+install\s+(?:-[^\s]+\s+)*(\S+)", cmd) if pkg_match: package = pkg_match.group(1) - success, version_out, _ = self._execute_command(f"pip3 show {package} 2>/dev/null | grep Version", needs_sudo=False) + success, version_out, _ = self._execute_command( + f"pip3 show {package} 2>/dev/null | grep Version", needs_sudo=False + ) if success and version_out: version = version_out.replace("Version:", "").strip() return self._create_conflict_result( @@ -352,18 +401,32 @@ def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Python package '{package}' is already installed (version: {version})", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": f"Keep current version ({version})", "commands": []}, - {"action": "upgrade", "description": "Upgrade to latest", "commands": [f"pip3 install --upgrade {package}"]}, - {"action": "reinstall", "description": "Reinstall package", "commands": [f"pip3 install --force-reinstall {package}"]}, - ] + { + "action": "use_existing", + "description": f"Keep current version ({version})", + "commands": [], + }, + { + "action": "upgrade", + "description": "Upgrade to latest", + "commands": [f"pip3 install --upgrade {package}"], + }, + { + "action": "reinstall", + "description": "Reinstall package", + "commands": [f"pip3 install --force-reinstall {package}"], + }, + ], ) - + # npm install -g if "npm install -g" in cmd or "npm i -g" in cmd: - pkg_match = re.search(r'npm\s+(?:install|i)\s+-g\s+(\S+)', cmd) + pkg_match = re.search(r"npm\s+(?:install|i)\s+-g\s+(\S+)", cmd) if pkg_match: package = pkg_match.group(1) - success, version_out, _ = self._execute_command(f"npm list -g {package} 2>/dev/null | grep {package}", needs_sudo=False) + success, version_out, _ = self._execute_command( + f"npm list -g {package} 2>/dev/null | grep {package}", needs_sudo=False + ) if success and version_out: return self._create_conflict_result( resource_type="npm_package", @@ -372,11 +435,19 @@ def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"npm package '{package}' is already installed globally", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": "Keep current version", "commands": []}, - {"action": "upgrade", "description": "Update to latest", "commands": [f"npm update -g {package}"]}, - ] + { + "action": "use_existing", + "description": "Keep current version", + "commands": [], + }, + { + "action": "upgrade", + "description": "Update to latest", + "commands": [f"npm update -g {package}"], + }, + ], ) - + # snap install - check if snap is available and package is installed if "snap install" in cmd: # First check if snap is available @@ -389,15 +460,25 @@ def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion="Snap package manager is not installed. Installing snap first.", is_active=False, alternative_actions=[ - {"action": "install_first", "description": "Install snapd first", "commands": ["sudo apt update", "sudo apt install -y snapd"]}, - {"action": "use_apt", "description": "Use apt instead of snap", "commands": []}, - ] + { + "action": "install_first", + "description": "Install snapd first", + "commands": ["sudo apt update", "sudo apt install -y snapd"], + }, + { + "action": "use_apt", + "description": "Use apt instead of snap", + "commands": [], + }, + ], ) - - pkg_match = re.search(r'snap\s+install\s+(\S+)', cmd) + + pkg_match = re.search(r"snap\s+install\s+(\S+)", cmd) if pkg_match: package = pkg_match.group(1) - success, version_out, _ = self._execute_command(f"snap list {package} 2>/dev/null | grep {package}", needs_sudo=False) + success, version_out, _ = self._execute_command( + f"snap list {package} 2>/dev/null | grep {package}", needs_sudo=False + ) if success and version_out: return self._create_conflict_result( resource_type="snap_package", @@ -406,11 +487,19 @@ def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Snap package '{package}' is already installed", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": "Keep current version", "commands": []}, - {"action": "refresh", "description": "Refresh to latest", "commands": [f"sudo snap refresh {package}"]}, - ] + { + "action": "use_existing", + "description": "Keep current version", + "commands": [], + }, + { + "action": "refresh", + "description": "Refresh to latest", + "commands": [f"sudo snap refresh {package}"], + }, + ], ) - + # flatpak install - check if flatpak is available and package is installed if "flatpak install" in cmd: # First check if flatpak is available @@ -423,15 +512,25 @@ def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion="Flatpak is not installed. Installing flatpak first.", is_active=False, alternative_actions=[ - {"action": "install_first", "description": "Install flatpak first", "commands": ["sudo apt update", "sudo apt install -y flatpak"]}, - {"action": "use_apt", "description": "Use apt instead of flatpak", "commands": []}, - ] + { + "action": "install_first", + "description": "Install flatpak first", + "commands": ["sudo apt update", "sudo apt install -y flatpak"], + }, + { + "action": "use_apt", + "description": "Use apt instead of flatpak", + "commands": [], + }, + ], ) - - pkg_match = re.search(r'flatpak\s+install\s+(?:-y\s+)?(\S+)', cmd) + + pkg_match = re.search(r"flatpak\s+install\s+(?:-y\s+)?(\S+)", cmd) if pkg_match: package = pkg_match.group(1) - success, version_out, _ = self._execute_command(f"flatpak list | grep -i {package}", needs_sudo=False) + success, version_out, _ = self._execute_command( + f"flatpak list | grep -i {package}", needs_sudo=False + ) if success and version_out: return self._create_conflict_result( resource_type="flatpak_package", @@ -440,44 +539,54 @@ def _check_package_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Flatpak application '{package}' is already installed", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": "Keep current version", "commands": []}, - {"action": "upgrade", "description": "Update to latest", "commands": [f"flatpak update -y {package}"]}, - ] + { + "action": "use_existing", + "description": "Keep current version", + "commands": [], + }, + { + "action": "upgrade", + "description": "Update to latest", + "commands": [f"flatpak update -y {package}"], + }, + ], ) - + return result - + def _check_tool_available(self, tool: str) -> bool: """Check if a command-line tool is available.""" success, output, _ = self._execute_command(f"which {tool} 2>/dev/null", needs_sudo=False) return success and bool(output.strip()) - + def _check_port_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for port binding conflicts.""" result = {"has_conflict": False} - + # Look for port mappings port_patterns = [ - r'-p\s+(\d+):\d+', # docker -p 8080:80 - r'--port[=\s]+(\d+)', # --port 8080 - r':(\d+)\s', # :8080 - r'listen\s+(\d+)', # nginx listen 80 + r"-p\s+(\d+):\d+", # docker -p 8080:80 + r"--port[=\s]+(\d+)", # --port 8080 + r":(\d+)\s", # :8080 + r"listen\s+(\d+)", # nginx listen 80 ] - + for pattern in port_patterns: match = re.search(pattern, cmd) if match: port = match.group(1) - + # Check if port is in use - success, output, _ = self._execute_command(f"ss -tlnp | grep ':{port} '", needs_sudo=True) + success, output, _ = self._execute_command( + f"ss -tlnp | grep ':{port} '", needs_sudo=True + ) if success and output: # Get process using the port process = "unknown" proc_match = re.search(r'users:\(\("([^"]+)"', output) if proc_match: process = proc_match.group(1) - + return self._create_conflict_result( resource_type="port", resource_name=port, @@ -485,23 +594,33 @@ def _check_port_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Port {port} is already in use by '{process}'", is_active=True, alternative_actions=[ - {"action": "use_different", "description": f"Use a different port", "commands": []}, - {"action": "stop_existing", "description": f"Stop process using port {port}", "commands": [f"sudo fuser -k {port}/tcp"]}, - ] + { + "action": "use_different", + "description": "Use a different port", + "commands": [], + }, + { + "action": "stop_existing", + "description": f"Stop process using port {port}", + "commands": [f"sudo fuser -k {port}/tcp"], + }, + ], ) - + return result - + def _check_user_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for user/group creation conflicts.""" result = {"has_conflict": False} - + # useradd / adduser if "useradd" in cmd or "adduser" in cmd: - user_match = re.search(r'(?:useradd|adduser)\s+(?:[^\s]+\s+)*(\S+)$', cmd) + user_match = re.search(r"(?:useradd|adduser)\s+(?:[^\s]+\s+)*(\S+)$", cmd) if user_match: username = user_match.group(1) - success, _, _ = self._execute_command(f"id {username} 2>/dev/null", needs_sudo=False) + success, _, _ = self._execute_command( + f"id {username} 2>/dev/null", needs_sudo=False + ) if success: return self._create_conflict_result( resource_type="user", @@ -510,17 +629,27 @@ def _check_user_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"User '{username}' already exists", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": f"Use existing user '{username}'", "commands": []}, - {"action": "modify", "description": f"Modify existing user", "commands": []}, - ] + { + "action": "use_existing", + "description": f"Use existing user '{username}'", + "commands": [], + }, + { + "action": "modify", + "description": "Modify existing user", + "commands": [], + }, + ], ) - + # groupadd / addgroup if "groupadd" in cmd or "addgroup" in cmd: - group_match = re.search(r'(?:groupadd|addgroup)\s+(\S+)$', cmd) + group_match = re.search(r"(?:groupadd|addgroup)\s+(\S+)$", cmd) if group_match: groupname = group_match.group(1) - success, _, _ = self._execute_command(f"getent group {groupname} 2>/dev/null", needs_sudo=False) + success, _, _ = self._execute_command( + f"getent group {groupname} 2>/dev/null", needs_sudo=False + ) if success: return self._create_conflict_result( resource_type="group", @@ -529,22 +658,28 @@ def _check_user_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Group '{groupname}' already exists", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": f"Use existing group '{groupname}'", "commands": []}, - ] + { + "action": "use_existing", + "description": f"Use existing group '{groupname}'", + "commands": [], + }, + ], ) - + return result - + def _check_venv_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for virtual environment conflicts.""" result = {"has_conflict": False} - + # python -m venv / virtualenv if "python" in cmd and "venv" in cmd: - venv_match = re.search(r'(?:venv|virtualenv)\s+(\S+)', cmd) + venv_match = re.search(r"(?:venv|virtualenv)\s+(\S+)", cmd) if venv_match: venv_path = venv_match.group(1) - if os.path.exists(venv_path) and os.path.exists(os.path.join(venv_path, "bin", "python")): + if os.path.exists(venv_path) and os.path.exists( + os.path.join(venv_path, "bin", "python") + ): return self._create_conflict_result( resource_type="venv", resource_name=venv_path, @@ -552,22 +687,32 @@ def _check_venv_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Virtual environment '{venv_path}' already exists", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": f"Use existing venv", "commands": []}, - {"action": "recreate", "description": "Delete and recreate", "commands": [f"rm -rf {venv_path}"]}, - ] + { + "action": "use_existing", + "description": "Use existing venv", + "commands": [], + }, + { + "action": "recreate", + "description": "Delete and recreate", + "commands": [f"rm -rf {venv_path}"], + }, + ], ) - + return result - + def _check_database_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for database creation conflicts.""" result = {"has_conflict": False} - + # MySQL/MariaDB create database if "mysql" in cmd.lower() and "create database" in cmd.lower(): - db_match = re.search(r'create\s+database\s+(?:if\s+not\s+exists\s+)?(\S+)', cmd, re.IGNORECASE) + db_match = re.search( + r"create\s+database\s+(?:if\s+not\s+exists\s+)?(\S+)", cmd, re.IGNORECASE + ) if db_match: - dbname = db_match.group(1).strip('`"\'') + dbname = db_match.group(1).strip("`\"'") success, output, _ = self._execute_command( f"mysql -e \"SHOW DATABASES LIKE '{dbname}'\" 2>/dev/null", needs_sudo=False ) @@ -579,16 +724,24 @@ def _check_database_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"MySQL database '{dbname}' already exists", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": f"Use existing database", "commands": []}, - {"action": "recreate", "description": "Drop and recreate", "commands": [f"mysql -e 'DROP DATABASE {dbname}'"]}, - ] + { + "action": "use_existing", + "description": "Use existing database", + "commands": [], + }, + { + "action": "recreate", + "description": "Drop and recreate", + "commands": [f"mysql -e 'DROP DATABASE {dbname}'"], + }, + ], ) - + # PostgreSQL create database if "createdb" in cmd or ("psql" in cmd and "create database" in cmd.lower()): - db_match = re.search(r'(?:createdb|create\s+database)\s+(\S+)', cmd, re.IGNORECASE) + db_match = re.search(r"(?:createdb|create\s+database)\s+(\S+)", cmd, re.IGNORECASE) if db_match: - dbname = db_match.group(1).strip('"\'') + dbname = db_match.group(1).strip("\"'") success, _, _ = self._execute_command( f"psql -lqt 2>/dev/null | cut -d \\| -f 1 | grep -qw {dbname}", needs_sudo=False ) @@ -600,17 +753,25 @@ def _check_database_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"PostgreSQL database '{dbname}' already exists", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": f"Use existing database", "commands": []}, - {"action": "recreate", "description": "Drop and recreate", "commands": [f"dropdb {dbname}"]}, - ] + { + "action": "use_existing", + "description": "Use existing database", + "commands": [], + }, + { + "action": "recreate", + "description": "Drop and recreate", + "commands": [f"dropdb {dbname}"], + }, + ], ) - + return result - + def _check_cron_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: """Check for cron job conflicts.""" result = {"has_conflict": False} - + # crontab entries if "crontab" in cmd or "/etc/cron" in cmd: # Check if similar cron job exists @@ -620,7 +781,9 @@ def _check_cron_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: if job_match: job_content = job_match.group(1) # Check existing crontab - success, crontab, _ = self._execute_command("crontab -l 2>/dev/null", needs_sudo=False) + success, crontab, _ = self._execute_command( + "crontab -l 2>/dev/null", needs_sudo=False + ) if success and crontab: # Check if similar job exists job_cmd = job_content.split()[-1] if job_content else "" @@ -632,23 +795,33 @@ def _check_cron_conflict(self, cmd: str, purpose: str) -> dict[str, Any]: suggestion=f"Similar cron job for '{job_cmd}' already exists", is_active=True, alternative_actions=[ - {"action": "use_existing", "description": "Keep existing cron job", "commands": []}, - {"action": "replace", "description": "Replace existing job", "commands": []}, - ] + { + "action": "use_existing", + "description": "Keep existing cron job", + "commands": [], + }, + { + "action": "replace", + "description": "Replace existing job", + "commands": [], + }, + ], ) - + return result class VerificationRunner: """Runs verification tests after command execution.""" - - def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 120) -> tuple[bool, str, str]: + + def _execute_command( + self, cmd: str, needs_sudo: bool = False, timeout: int = 120 + ) -> tuple[bool, str, str]: """Execute a single command.""" try: if needs_sudo and not cmd.strip().startswith("sudo"): cmd = f"sudo {cmd}" - + result = subprocess.run( ["sudo", "bash", "-c", cmd] if needs_sudo else cmd, shell=not needs_sudo, @@ -661,7 +834,7 @@ def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 12 return False, "", f"Command timed out after {timeout} seconds" except Exception as e: return False, "", str(e) - + def run_verification_tests( self, commands_executed: list[CommandLog], @@ -669,67 +842,73 @@ def run_verification_tests( ) -> tuple[bool, list[dict[str, Any]]]: """ Run verification tests after all commands have been executed. - + Returns: Tuple of (all_passed, test_results) """ console.print() console.print("[bold cyan]๐Ÿงช Running verification tests...[/bold cyan]") - + test_results = [] services_to_check = set() configs_to_check = set() files_to_check = set() - + for cmd_log in commands_executed: cmd = cmd_log.command.lower() - + if "systemctl" in cmd or "service " in cmd: - svc_match = re.search(r'(?:systemctl|service)\s+\w+\s+([^\s]+)', cmd) + svc_match = re.search(r"(?:systemctl|service)\s+\w+\s+([^\s]+)", cmd) if svc_match: - services_to_check.add(svc_match.group(1).replace('.service', '')) - + services_to_check.add(svc_match.group(1).replace(".service", "")) + if "nginx" in cmd: configs_to_check.add("nginx") if "apache" in cmd or "a2ensite" in cmd: configs_to_check.add("apache") - - paths = re.findall(r'(/[^\s>|&]+)', cmd_log.command) + + paths = re.findall(r"(/[^\s>|&]+)", cmd_log.command) for path in paths: - if any(x in path for x in ['/etc/', '/var/', '/opt/']): + if any(x in path for x in ["/etc/", "/var/", "/opt/"]): files_to_check.add(path) - + all_passed = True - + # Config tests if "nginx" in configs_to_check: console.print("[dim] Testing nginx configuration...[/dim]") success, stdout, stderr = self._execute_command("nginx -t", needs_sudo=True) - test_results.append({ - "test": "nginx -t", - "passed": success, - "output": stdout if success else stderr, - }) + test_results.append( + { + "test": "nginx -t", + "passed": success, + "output": stdout if success else stderr, + } + ) if success: console.print("[green] โœ“ Nginx configuration is valid[/green]") else: console.print(f"[red] โœ— Nginx config test failed: {stderr[:100]}[/red]") all_passed = False - + if "apache" in configs_to_check: console.print("[dim] Testing Apache configuration...[/dim]") - success, stdout, stderr = self._execute_command("apache2ctl configtest", needs_sudo=True) - test_results.append({ - "test": "apache2ctl configtest", - "passed": success, - "output": stdout if success else stderr, - }) + success, stdout, stderr = self._execute_command( + "apache2ctl configtest", needs_sudo=True + ) + test_results.append( + { + "test": "apache2ctl configtest", + "passed": success, + "output": stdout if success else stderr, + } + ) if success: console.print("[green] โœ“ Apache configuration is valid[/green]") else: console.print(f"[red] โœ— Apache config test failed: {stderr[:100]}[/red]") all_passed = False - + # Service status tests for service in services_to_check: console.print(f"[dim] Checking service {service}...[/dim]") @@ -737,76 +916,92 @@ def run_verification_tests( f"systemctl is-active {service}", needs_sudo=False ) is_active = stdout.strip() == "active" - test_results.append({ - "test": f"systemctl is-active {service}", - "passed": is_active, - "output": stdout, - }) + test_results.append( + { + "test": f"systemctl is-active {service}", + "passed": is_active, + "output": stdout, + } + ) if is_active: console.print(f"[green] โœ“ Service {service} is running[/green]") else: console.print(f"[yellow] โš  Service {service} status: {stdout.strip()}[/yellow]") - + # File existence tests for file_path in list(files_to_check)[:5]: if os.path.exists(file_path): success, _, _ = self._execute_command(f"test -r {file_path}", needs_sudo=True) - test_results.append({ - "test": f"file exists: {file_path}", - "passed": True, - "output": "File exists and is readable", - }) + test_results.append( + { + "test": f"file exists: {file_path}", + "passed": True, + "output": "File exists and is readable", + } + ) else: - test_results.append({ - "test": f"file exists: {file_path}", - "passed": False, - "output": "File does not exist", - }) + test_results.append( + { + "test": f"file exists: {file_path}", + "passed": False, + "output": "File does not exist", + } + ) console.print(f"[yellow] โš  File not found: {file_path}[/yellow]") - + # Connectivity tests query_lower = user_query.lower() if any(x in query_lower for x in ["proxy", "forward", "port", "listen"]): - port_match = re.search(r'port\s*(\d+)|:(\d+)', user_query) + port_match = re.search(r"port\s*(\d+)|:(\d+)", user_query) if port_match: port = port_match.group(1) or port_match.group(2) console.print(f"[dim] Testing connectivity on port {port}...[/dim]") success, stdout, stderr = self._execute_command( f"curl -s -o /dev/null -w '%{{http_code}}' http://localhost:{port}/ 2>/dev/null || echo 'failed'", - needs_sudo=False + needs_sudo=False, ) if stdout.strip() not in ["failed", "000", ""]: - console.print(f"[green] โœ“ Port {port} responding (HTTP {stdout.strip()})[/green]") - test_results.append({ - "test": f"curl localhost:{port}", - "passed": True, - "output": f"HTTP {stdout.strip()}", - }) + console.print( + f"[green] โœ“ Port {port} responding (HTTP {stdout.strip()})[/green]" + ) + test_results.append( + { + "test": f"curl localhost:{port}", + "passed": True, + "output": f"HTTP {stdout.strip()}", + } + ) else: - console.print(f"[yellow] โš  Port {port} not responding (may be expected)[/yellow]") - + console.print( + f"[yellow] โš  Port {port} not responding (may be expected)[/yellow]" + ) + # Summary passed = sum(1 for t in test_results if t["passed"]) total = len(test_results) - + console.print() if all_passed: console.print(f"[bold green]โœ“ All tests passed ({passed}/{total})[/bold green]") else: - console.print(f"[bold yellow]โš  Some tests failed ({passed}/{total} passed)[/bold yellow]") - + console.print( + f"[bold yellow]โš  Some tests failed ({passed}/{total} passed)[/bold yellow]" + ) + return all_passed, test_results class FileUsefulnessAnalyzer: """Analyzes file content usefulness for modifications.""" - - def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 120) -> tuple[bool, str, str]: + + def _execute_command( + self, cmd: str, needs_sudo: bool = False, timeout: int = 120 + ) -> tuple[bool, str, str]: """Execute a single command.""" try: if needs_sudo and not cmd.strip().startswith("sudo"): cmd = f"sudo {cmd}" - + result = subprocess.run( ["sudo", "bash", "-c", cmd] if needs_sudo else cmd, shell=not needs_sudo, @@ -819,7 +1014,7 @@ def _execute_command(self, cmd: str, needs_sudo: bool = False, timeout: int = 12 return False, "", f"Command timed out after {timeout} seconds" except Exception as e: return False, "", str(e) - + def check_file_exists_and_usefulness( self, cmd: str, @@ -834,78 +1029,92 @@ def check_file_exists_and_usefulness( "recommendations": [], "modified_command": cmd, } - + file_creation_patterns = [ - (r'(?:echo|printf)\s+.*?>\s*([^\s;|&]+)', 'write'), - (r'(?:echo|printf)\s+.*?>>\s*([^\s;|&]+)', 'append'), - (r'tee\s+(?:-a\s+)?([^\s;|&]+)', 'write'), - (r'cp\s+[^\s]+\s+([^\s;|&]+)', 'copy'), - (r'touch\s+([^\s;|&]+)', 'create'), - (r'cat\s+.*?>\s*([^\s;|&]+)', 'write'), - (r'sed\s+-i[^\s]*\s+.*?\s+([^\s;|&]+)$', 'modify'), - (r'mv\s+[^\s]+\s+([^\s;|&]+)', 'move'), + (r"(?:echo|printf)\s+.*?>\s*([^\s;|&]+)", "write"), + (r"(?:echo|printf)\s+.*?>>\s*([^\s;|&]+)", "append"), + (r"tee\s+(?:-a\s+)?([^\s;|&]+)", "write"), + (r"cp\s+[^\s]+\s+([^\s;|&]+)", "copy"), + (r"touch\s+([^\s;|&]+)", "create"), + (r"cat\s+.*?>\s*([^\s;|&]+)", "write"), + (r"sed\s+-i[^\s]*\s+.*?\s+([^\s;|&]+)$", "modify"), + (r"mv\s+[^\s]+\s+([^\s;|&]+)", "move"), ] - + target_files = [] operation_type = None - + for pattern, op_type in file_creation_patterns: matches = re.findall(pattern, cmd) for match in matches: - if match.startswith('/') or match.startswith('~'): + if match.startswith("/") or match.startswith("~"): target_files.append(match) operation_type = op_type - + result["files_checked"] = target_files - + for file_path in target_files: - if file_path.startswith('~'): + if file_path.startswith("~"): file_path = os.path.expanduser(file_path) - + if os.path.exists(file_path): result["existing_files"].append(file_path) console.print(f"[yellow]๐Ÿ“ File exists: {file_path}[/yellow]") - - success, content, _ = self._execute_command(f"cat '{file_path}' 2>/dev/null", needs_sudo=True) - + + success, content, _ = self._execute_command( + f"cat '{file_path}' 2>/dev/null", needs_sudo=True + ) + if success and content: useful_parts = self.analyze_file_usefulness(content, purpose, user_query) - + if useful_parts["is_useful"]: result["useful_content"][file_path] = useful_parts - console.print(f"[cyan] โœ“ Contains useful content: {useful_parts['summary']}[/cyan]") - + console.print( + f"[cyan] โœ“ Contains useful content: {useful_parts['summary']}[/cyan]" + ) + if useful_parts["action"] == "merge": - result["recommendations"].append({ - "file": file_path, - "action": "merge", - "reason": useful_parts["reason"], - "keep_sections": useful_parts.get("keep_sections", []), - }) + result["recommendations"].append( + { + "file": file_path, + "action": "merge", + "reason": useful_parts["reason"], + "keep_sections": useful_parts.get("keep_sections", []), + } + ) elif useful_parts["action"] == "modify": - result["recommendations"].append({ - "file": file_path, - "action": "modify", - "reason": useful_parts["reason"], - }) + result["recommendations"].append( + { + "file": file_path, + "action": "modify", + "reason": useful_parts["reason"], + } + ) else: - result["recommendations"].append({ - "file": file_path, - "action": "backup_and_replace", - "reason": "Existing content not relevant", - }) - elif operation_type in ['write', 'copy', 'create']: + result["recommendations"].append( + { + "file": file_path, + "action": "backup_and_replace", + "reason": "Existing content not relevant", + } + ) + elif operation_type in ["write", "copy", "create"]: parent_dir = os.path.dirname(file_path) if parent_dir and not os.path.exists(parent_dir): - console.print(f"[yellow]๐Ÿ“ Parent directory doesn't exist: {parent_dir}[/yellow]") - result["recommendations"].append({ - "file": file_path, - "action": "create_parent", - "reason": f"Need to create {parent_dir} first", - }) - + console.print( + f"[yellow]๐Ÿ“ Parent directory doesn't exist: {parent_dir}[/yellow]" + ) + result["recommendations"].append( + { + "file": file_path, + "action": "create_parent", + "reason": f"Need to create {parent_dir} first", + } + ) + return result - + def analyze_file_usefulness( self, content: str, @@ -920,20 +1129,22 @@ def analyze_file_usefulness( "reason": "", "keep_sections": [], } - + content_lower = content.lower() purpose_lower = purpose.lower() query_lower = user_query.lower() - + # Nginx configuration - if any(x in content_lower for x in ["server {", "location", "nginx", "proxy_pass", "listen"]): + if any( + x in content_lower for x in ["server {", "location", "nginx", "proxy_pass", "listen"] + ): result["is_useful"] = True - + has_server_block = "server {" in content_lower or "server{" in content_lower has_location = "location" in content_lower has_proxy = "proxy_pass" in content_lower has_ssl = "ssl" in content_lower or "443" in content - + summary_parts = [] if has_server_block: summary_parts.append("server block") @@ -943,12 +1154,12 @@ def analyze_file_usefulness( summary_parts.append("proxy settings") if has_ssl: summary_parts.append("SSL config") - + result["summary"] = "Has " + ", ".join(summary_parts) - + if "proxy" in query_lower or "forward" in query_lower: if has_proxy: - existing_proxy = re.search(r'proxy_pass\s+([^;]+)', content) + existing_proxy = re.search(r"proxy_pass\s+([^;]+)", content) if existing_proxy: result["action"] = "modify" result["reason"] = f"Existing proxy to {existing_proxy.group(1).strip()}" @@ -966,70 +1177,72 @@ def analyze_file_usefulness( else: result["action"] = "merge" result["reason"] = "Preserve existing configuration" - + # Apache configuration - elif any(x in content_lower for x in [" 2: result["is_useful"] = True result["summary"] = f"Related content ({len(overlap)} keyword matches)" result["action"] = "backup_and_replace" result["reason"] = "Content partially relevant, backing up" - + return result - + def apply_file_recommendations( self, recommendations: list[dict[str, Any]], ) -> list[str]: """Apply recommendations for existing files.""" commands_executed = [] - + for rec in recommendations: file_path = rec["file"] action = rec["action"] - + if action == "backup_and_replace": backup_path = f"{file_path}.cortex.bak.{int(time.time())}" backup_cmd = f"sudo cp '{file_path}' '{backup_path}'" @@ -1037,7 +1250,7 @@ def apply_file_recommendations( if success: console.print(f"[dim] โœ“ Backed up to {backup_path}[/dim]") commands_executed.append(backup_cmd) - + elif action == "create_parent": parent = os.path.dirname(file_path) mkdir_cmd = f"sudo mkdir -p '{parent}'" @@ -1045,6 +1258,5 @@ def apply_file_recommendations( if success: console.print(f"[dim] โœ“ Created directory {parent}[/dim]") commands_executed.append(mkdir_cmd) - - return commands_executed + return commands_executed diff --git a/cortex/system_info_generator.py b/cortex/system_info_generator.py index 5b6f1000b..d2dd4b750 100644 --- a/cortex/system_info_generator.py +++ b/cortex/system_info_generator.py @@ -6,13 +6,13 @@ Usage: generator = SystemInfoGenerator(api_key="...", provider="claude") - + # Simple info queries result = generator.get_info("What version of Python is installed?") - + # Application-specific queries result = generator.get_app_info("nginx", "What's the current nginx configuration?") - + # Structured info retrieval info = generator.get_structured_info("hardware", ["cpu", "memory", "disk"]) """ @@ -36,6 +36,7 @@ class InfoCategory(str, Enum): """Categories of system information.""" + HARDWARE = "hardware" SOFTWARE = "software" NETWORK = "network" @@ -55,6 +56,7 @@ class InfoCategory(str, Enum): @dataclass class InfoCommand: """A single read-only command for gathering information.""" + command: str purpose: str category: InfoCategory = InfoCategory.CUSTOM @@ -64,6 +66,7 @@ class InfoCommand: @dataclass class InfoResult: """Result of executing an info command.""" + command: str success: bool output: str @@ -74,6 +77,7 @@ class InfoResult: @dataclass class SystemInfoResult: """Complete result of a system info query.""" + query: str answer: str commands_executed: list[InfoResult] = field(default_factory=list) @@ -92,17 +96,22 @@ class SystemInfoResult: ], "memory": [ InfoCommand("free -h", "Get memory usage in human-readable format", InfoCategory.HARDWARE), - InfoCommand("head -20 /proc/meminfo", "Get detailed memory information", InfoCategory.HARDWARE), + InfoCommand( + "head -20 /proc/meminfo", "Get detailed memory information", InfoCategory.HARDWARE + ), ], "disk": [ InfoCommand("df -h", "Get disk space usage", InfoCategory.STORAGE), InfoCommand("lsblk", "List block devices", InfoCategory.STORAGE), ], "gpu": [ - InfoCommand("nvidia-smi --query-gpu=name,memory.total,driver_version --format=csv,noheader", "Get NVIDIA GPU info", InfoCategory.HARDWARE), + InfoCommand( + "nvidia-smi --query-gpu=name,memory.total,driver_version --format=csv,noheader", + "Get NVIDIA GPU info", + InfoCategory.HARDWARE, + ), InfoCommand("lspci", "List PCI devices including VGA", InfoCategory.HARDWARE), ], - # OS Information "os": [ InfoCommand("cat /etc/os-release", "Get OS release information", InfoCategory.SOFTWARE), @@ -113,7 +122,6 @@ class SystemInfoResult: InfoCommand("uname -r", "Get kernel version", InfoCategory.SOFTWARE), InfoCommand("cat /proc/version", "Get detailed kernel version", InfoCategory.SOFTWARE), ], - # Network Information "network": [ InfoCommand("ip addr show", "List network interfaces", InfoCategory.NETWORK), @@ -124,26 +132,32 @@ class SystemInfoResult: InfoCommand("cat /etc/resolv.conf", "Get DNS configuration", InfoCategory.NETWORK), InfoCommand("host google.com", "Test DNS resolution", InfoCategory.NETWORK), ], - # Services "services": [ - InfoCommand("systemctl list-units --type=service --state=running --no-pager", "List running services", InfoCategory.SERVICES), - InfoCommand("systemctl list-units --type=service --state=failed --no-pager", "List failed services", InfoCategory.SERVICES), + InfoCommand( + "systemctl list-units --type=service --state=running --no-pager", + "List running services", + InfoCategory.SERVICES, + ), + InfoCommand( + "systemctl list-units --type=service --state=failed --no-pager", + "List failed services", + InfoCategory.SERVICES, + ), ], - # Security "security": [ InfoCommand("ufw status", "Check firewall status", InfoCategory.SECURITY), InfoCommand("aa-status", "Check AppArmor status", InfoCategory.SECURITY), InfoCommand("wc -l /etc/passwd", "Count system users", InfoCategory.SECURITY), ], - # Processes "processes": [ - InfoCommand("ps aux --sort=-%mem", "Top memory-consuming processes", InfoCategory.PROCESSES), + InfoCommand( + "ps aux --sort=-%mem", "Top memory-consuming processes", InfoCategory.PROCESSES + ), InfoCommand("ps aux --sort=-%cpu", "Top CPU-consuming processes", InfoCategory.PROCESSES), ], - # Environment "environment": [ InfoCommand("env", "List environment variables", InfoCategory.CONFIGURATION), @@ -157,16 +171,28 @@ class SystemInfoResult: APP_INFO_TEMPLATES: dict[str, dict[str, list[InfoCommand]]] = { "nginx": { "status": [ - InfoCommand("systemctl status nginx --no-pager", "Check nginx service status", InfoCategory.SERVICES), + InfoCommand( + "systemctl status nginx --no-pager", + "Check nginx service status", + InfoCategory.SERVICES, + ), InfoCommand("nginx -v", "Get nginx version", InfoCategory.SOFTWARE), ], "config": [ - InfoCommand("cat /etc/nginx/nginx.conf", "Get nginx configuration", InfoCategory.CONFIGURATION), - InfoCommand("ls -la /etc/nginx/sites-enabled/", "List enabled sites", InfoCategory.CONFIGURATION), + InfoCommand( + "cat /etc/nginx/nginx.conf", "Get nginx configuration", InfoCategory.CONFIGURATION + ), + InfoCommand( + "ls -la /etc/nginx/sites-enabled/", "List enabled sites", InfoCategory.CONFIGURATION + ), ], "logs": [ - InfoCommand("tail -50 /var/log/nginx/access.log", "Recent access logs", InfoCategory.LOGS), - InfoCommand("tail -50 /var/log/nginx/error.log", "Recent error logs", InfoCategory.LOGS), + InfoCommand( + "tail -50 /var/log/nginx/access.log", "Recent access logs", InfoCategory.LOGS + ), + InfoCommand( + "tail -50 /var/log/nginx/error.log", "Recent error logs", InfoCategory.LOGS + ), ], }, "docker": { @@ -179,27 +205,43 @@ class SystemInfoResult: InfoCommand("docker images", "List images", InfoCategory.APPLICATION), ], "resources": [ - InfoCommand("docker stats --no-stream", "Container resource usage", InfoCategory.PERFORMANCE), + InfoCommand( + "docker stats --no-stream", "Container resource usage", InfoCategory.PERFORMANCE + ), ], }, "postgresql": { "status": [ - InfoCommand("systemctl status postgresql --no-pager", "Check PostgreSQL service", InfoCategory.SERVICES), + InfoCommand( + "systemctl status postgresql --no-pager", + "Check PostgreSQL service", + InfoCategory.SERVICES, + ), InfoCommand("psql --version", "Get PostgreSQL version", InfoCategory.SOFTWARE), ], "config": [ - InfoCommand("head -50 /etc/postgresql/14/main/postgresql.conf", "PostgreSQL config", InfoCategory.CONFIGURATION), + InfoCommand( + "head -50 /etc/postgresql/14/main/postgresql.conf", + "PostgreSQL config", + InfoCategory.CONFIGURATION, + ), ], }, "mysql": { "status": [ - InfoCommand("systemctl status mysql --no-pager", "Check MySQL status", InfoCategory.SERVICES), + InfoCommand( + "systemctl status mysql --no-pager", "Check MySQL status", InfoCategory.SERVICES + ), InfoCommand("mysql --version", "Get MySQL version", InfoCategory.SOFTWARE), ], }, "redis": { "status": [ - InfoCommand("systemctl status redis-server --no-pager", "Check Redis status", InfoCategory.SERVICES), + InfoCommand( + "systemctl status redis-server --no-pager", + "Check Redis status", + InfoCategory.SERVICES, + ), InfoCommand("redis-cli --version", "Get Redis version", InfoCategory.SOFTWARE), ], "info": [ @@ -212,10 +254,14 @@ class SystemInfoResult: InfoCommand("which python3", "Find Python executable", InfoCategory.SOFTWARE), ], "packages": [ - InfoCommand("pip3 list --format=freeze", "List installed packages", InfoCategory.PACKAGES), + InfoCommand( + "pip3 list --format=freeze", "List installed packages", InfoCategory.PACKAGES + ), ], "venv": [ - InfoCommand("echo $VIRTUAL_ENV", "Check active virtual environment", InfoCategory.CONFIGURATION), + InfoCommand( + "echo $VIRTUAL_ENV", "Check active virtual environment", InfoCategory.CONFIGURATION + ), ], }, "nodejs": { @@ -232,24 +278,36 @@ class SystemInfoResult: InfoCommand("git --version", "Get Git version", InfoCategory.SOFTWARE), ], "config": [ - InfoCommand("git config --global --list", "Git global config", InfoCategory.CONFIGURATION), + InfoCommand( + "git config --global --list", "Git global config", InfoCategory.CONFIGURATION + ), ], }, "ssh": { "status": [ - InfoCommand("systemctl status ssh --no-pager", "Check SSH service", InfoCategory.SERVICES), + InfoCommand( + "systemctl status ssh --no-pager", "Check SSH service", InfoCategory.SERVICES + ), ], "config": [ - InfoCommand("head -50 /etc/ssh/sshd_config", "SSH server config", InfoCategory.CONFIGURATION), + InfoCommand( + "head -50 /etc/ssh/sshd_config", "SSH server config", InfoCategory.CONFIGURATION + ), ], }, "systemd": { "status": [ InfoCommand("systemctl --version", "Get systemd version", InfoCategory.SOFTWARE), - InfoCommand("systemctl list-units --state=failed --no-pager", "Failed units", InfoCategory.SERVICES), + InfoCommand( + "systemctl list-units --state=failed --no-pager", + "Failed units", + InfoCategory.SERVICES, + ), ], "timers": [ - InfoCommand("systemctl list-timers --no-pager", "List active timers", InfoCategory.SERVICES), + InfoCommand( + "systemctl list-timers --no-pager", "List active timers", InfoCategory.SERVICES + ), ], }, } @@ -258,7 +316,7 @@ class SystemInfoResult: class SystemInfoGenerator: """ Generates read-only commands to retrieve system and application information. - + Uses LLM to generate appropriate commands based on natural language queries, while enforcing read-only access through CommandValidator. """ @@ -275,20 +333,22 @@ def __init__( ): """ Initialize the system info generator. - + Args: api_key: API key for LLM provider (defaults to env var) provider: LLM provider ("claude", "openai", "ollama") model: Optional model override debug: Enable debug output """ - self.api_key = api_key or os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("OPENAI_API_KEY") + self.api_key = ( + api_key or os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("OPENAI_API_KEY") + ) self.provider = provider.lower() self.model = model or self._default_model() self.debug = debug - + self._initialize_client() - + def _default_model(self) -> str: if self.provider == "openai": return "gpt-4o" @@ -297,18 +357,20 @@ def _default_model(self) -> str: elif self.provider == "ollama": return "llama3.2" return "gpt-4o" - + def _initialize_client(self): """Initialize the LLM client.""" if self.provider == "openai": try: from openai import OpenAI + self.client = OpenAI(api_key=self.api_key) except ImportError: raise ImportError("OpenAI package not installed. Run: pip install openai") elif self.provider == "claude": try: from anthropic import Anthropic + self.client = Anthropic(api_key=self.api_key) except ImportError: raise ImportError("Anthropic package not installed. Run: pip install anthropic") @@ -322,7 +384,7 @@ def _get_system_prompt(self, context: str = "") -> str: """Get the system prompt for info command generation.""" app_list = ", ".join(sorted(APP_INFO_TEMPLATES.keys())) category_list = ", ".join([c.value for c in InfoCategory]) - + prompt = f"""You are a Linux system information assistant that generates READ-ONLY shell commands. Your task is to generate shell commands that gather system information to answer the user's query. @@ -386,8 +448,9 @@ def _truncate_output(self, output: str) -> str: def _execute_command(self, command: str, timeout: int = 30) -> InfoResult: """Execute a validated read-only command.""" import time + start_time = time.time() - + # Validate command first is_valid, error = CommandValidator.validate_command(command) if not is_valid: @@ -398,7 +461,7 @@ def _execute_command(self, command: str, timeout: int = 30) -> InfoResult: error=f"Command blocked: {error}", execution_time=time.time() - start_time, ) - + try: result = subprocess.run( command, @@ -454,6 +517,7 @@ def _call_llm(self, system_prompt: str, user_prompt: str) -> dict[str, Any]: content = response.choices[0].message.content elif self.provider == "ollama": import httpx + response = httpx.post( f"{self.ollama_url}/api/chat", json={ @@ -470,17 +534,21 @@ def _call_llm(self, system_prompt: str, user_prompt: str) -> dict[str, Any]: content = response.json()["message"]["content"] else: raise ValueError(f"Unsupported provider: {self.provider}") - + # Parse JSON from response json_match = re.search(r"\{[\s\S]*\}", content) if json_match: return json.loads(json_match.group()) raise ValueError("No JSON found in response") - + except json.JSONDecodeError as e: if self.debug: console.print(f"[red]JSON parse error: {e}[/red]") - return {"response_type": "answer", "answer": f"Error parsing LLM response: {e}", "reasoning": ""} + return { + "response_type": "answer", + "answer": f"Error parsing LLM response: {e}", + "reasoning": "", + } except Exception as e: if self.debug: console.print(f"[red]LLM error: {e}[/red]") @@ -489,30 +557,30 @@ def _call_llm(self, system_prompt: str, user_prompt: str) -> dict[str, Any]: def get_info(self, query: str, context: str = "") -> SystemInfoResult: """ Get system information based on a natural language query. - + Uses an agentic loop to: 1. Generate commands to gather information 2. Execute commands (read-only only) 3. Analyze results 4. Either generate more commands or provide final answer - + Args: query: Natural language question about the system context: Optional additional context for the LLM - + Returns: SystemInfoResult with answer and command execution details """ system_prompt = self._get_system_prompt(context) commands_executed: list[InfoResult] = [] history: list[dict[str, str]] = [] - + user_prompt = f"Query: {query}" - + for iteration in range(self.MAX_ITERATIONS): if self.debug: console.print(f"[dim]Iteration {iteration + 1}/{self.MAX_ITERATIONS}[/dim]") - + # Build prompt with history full_prompt = user_prompt if history: @@ -520,15 +588,15 @@ def get_info(self, query: str, context: str = "") -> SystemInfoResult: for i, entry in enumerate(history, 1): full_prompt += f"\n--- Command {i} ---\n" full_prompt += f"Command: {entry['command']}\n" - if entry['success']: + if entry["success"]: full_prompt += f"Output:\n{self._truncate_output(entry['output'])}\n" else: full_prompt += f"Error: {entry['error']}\n" full_prompt += "\nBased on these results, either run another command or provide the final answer.\n" - + # Call LLM response = self._call_llm(system_prompt, full_prompt) - + if response.get("response_type") == "answer": # Final answer return SystemInfoResult( @@ -537,31 +605,33 @@ def get_info(self, query: str, context: str = "") -> SystemInfoResult: commands_executed=commands_executed, raw_data={h["command"]: h["output"] for h in history if h.get("success")}, ) - + elif response.get("response_type") == "command": command = response.get("command", "") if not command: continue - + if self.debug: console.print(f"[cyan]Executing:[/cyan] {command}") - + result = self._execute_command(command) commands_executed.append(result) - - history.append({ - "command": command, - "success": result.success, - "output": result.output, - "error": result.error, - }) - + + history.append( + { + "command": command, + "success": result.success, + "output": result.output, + "error": result.error, + } + ) + if self.debug: if result.success: - console.print(f"[green]โœ“ Success[/green]") + console.print("[green]โœ“ Success[/green]") else: console.print(f"[red]โœ— Failed: {result.error}[/red]") - + # Max iterations reached return SystemInfoResult( query=query, @@ -571,31 +641,31 @@ def get_info(self, query: str, context: str = "") -> SystemInfoResult: ) def get_app_info( - self, - app_name: str, + self, + app_name: str, query: str | None = None, aspects: list[str] | None = None, ) -> SystemInfoResult: """ Get information about a specific application. - + Args: app_name: Application name (nginx, docker, postgresql, etc.) query: Optional natural language query about the app aspects: Optional list of aspects to check (status, config, logs, etc.) - + Returns: SystemInfoResult with application information """ app_lower = app_name.lower() commands_executed: list[InfoResult] = [] raw_data: dict[str, Any] = {} - + # Check if we have predefined commands for this app if app_lower in APP_INFO_TEMPLATES: templates = APP_INFO_TEMPLATES[app_lower] aspects_to_check = aspects or list(templates.keys()) - + for aspect in aspects_to_check: if aspect in templates: for cmd_info in templates[aspect]: @@ -603,7 +673,7 @@ def get_app_info( commands_executed.append(result) if result.success and result.output: raw_data[f"{aspect}:{cmd_info.purpose}"] = result.output - + # If there's a specific query, use LLM to analyze if query: context = f"""Application: {app_name} @@ -611,18 +681,20 @@ def get_app_info( {json.dumps(raw_data, indent=2)[:2000]} Now answer the specific question about this application.""" - + result = self.get_info(query, context) result.commands_executed = commands_executed + result.commands_executed result.raw_data.update(raw_data) return result - + # Generate summary answer from raw data answer_parts = [f"**{app_name.title()} Information**\n"] for key, value in raw_data.items(): aspect, desc = key.split(":", 1) - answer_parts.append(f"\n**{aspect.title()}** ({desc}):\n```\n{value[:500]}{'...' if len(value) > 500 else ''}\n```") - + answer_parts.append( + f"\n**{aspect.title()}** ({desc}):\n```\n{value[:500]}{'...' if len(value) > 500 else ''}\n```" + ) + return SystemInfoResult( query=query or f"Get information about {app_name}", answer="\n".join(answer_parts) if raw_data else f"No information found for {app_name}", @@ -638,11 +710,11 @@ def get_structured_info( ) -> SystemInfoResult: """ Get structured system information for a category. - + Args: category: Info category (hardware, network, services, etc.) aspects: Optional specific aspects (cpu, memory, disk for hardware, etc.) - + Returns: SystemInfoResult with structured information """ @@ -650,10 +722,10 @@ def get_structured_info( category = category.lower() else: category = category.value - + commands_executed: list[InfoResult] = [] raw_data: dict[str, Any] = {} - + # Map categories to common commands category_mapping = { "hardware": ["cpu", "memory", "disk", "gpu"], @@ -666,9 +738,9 @@ def get_structured_info( "performance": ["cpu", "memory", "processes"], "configuration": ["environment"], } - + aspects_to_check = aspects or category_mapping.get(category, []) - + for aspect in aspects_to_check: if aspect in COMMON_INFO_COMMANDS: for cmd_info in COMMON_INFO_COMMANDS[aspect]: @@ -676,33 +748,39 @@ def get_structured_info( commands_executed.append(result) if result.success and result.output: raw_data[f"{aspect}:{cmd_info.purpose}"] = result.output - + # Generate structured answer answer_parts = [f"**{category.title()} Information**\n"] for key, value in raw_data.items(): aspect, desc = key.split(":", 1) - answer_parts.append(f"\n**{aspect.upper()}** ({desc}):\n```\n{value[:800]}{'...' if len(value) > 800 else ''}\n```") - + answer_parts.append( + f"\n**{aspect.upper()}** ({desc}):\n```\n{value[:800]}{'...' if len(value) > 800 else ''}\n```" + ) + return SystemInfoResult( query=f"Get {category} information", answer="\n".join(answer_parts) if raw_data else f"No {category} information found", commands_executed=commands_executed, raw_data=raw_data, - category=InfoCategory(category) if category in [c.value for c in InfoCategory] else InfoCategory.CUSTOM, + category=( + InfoCategory(category) + if category in [c.value for c in InfoCategory] + else InfoCategory.CUSTOM + ), ) def quick_info(self, info_type: str) -> str: """ Quick lookup for common system information. - + Args: info_type: Type of info (cpu, memory, disk, os, network, etc.) - + Returns: String with the requested information """ info_lower = info_type.lower() - + if info_lower in COMMON_INFO_COMMANDS: outputs = [] for cmd_info in COMMON_INFO_COMMANDS[info_lower]: @@ -710,13 +788,15 @@ def quick_info(self, info_type: str) -> str: if result.success and result.output: outputs.append(result.output) return "\n\n".join(outputs) if outputs else f"No {info_type} information available" - + # Try as app info if info_lower in APP_INFO_TEMPLATES: result = self.get_app_info(info_lower, aspects=["status", "version"]) return result.answer - - return f"Unknown info type: {info_type}. Available: {', '.join(COMMON_INFO_COMMANDS.keys())}" + + return ( + f"Unknown info type: {info_type}. Available: {', '.join(COMMON_INFO_COMMANDS.keys())}" + ) def list_available_info(self) -> dict[str, list[str]]: """List all available pre-defined info types and applications.""" @@ -733,57 +813,57 @@ def get_system_info_generator( ) -> SystemInfoGenerator: """ Factory function to create a SystemInfoGenerator with default configuration. - + Args: provider: LLM provider to use debug: Enable debug output - + Returns: Configured SystemInfoGenerator instance """ api_key = os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("OPENAI_API_KEY") if not api_key: raise ValueError("No API key found. Set ANTHROPIC_API_KEY or OPENAI_API_KEY") - + return SystemInfoGenerator(api_key=api_key, provider=provider, debug=debug) # CLI helper for quick testing if __name__ == "__main__": import sys - + if len(sys.argv) < 2: print("Usage: python system_info_generator.py ") print(" python system_info_generator.py --quick ") print(" python system_info_generator.py --app [query]") print(" python system_info_generator.py --list") sys.exit(1) - + try: generator = get_system_info_generator(debug=True) - + if sys.argv[1] == "--list": available = generator.list_available_info() console.print("\n[bold]Available Information Types:[/bold]") console.print(f"System: {', '.join(available['system_info'])}") console.print(f"Apps: {', '.join(available['applications'])}") console.print(f"Categories: {', '.join(available['categories'])}") - + elif sys.argv[1] == "--quick" and len(sys.argv) > 2: info = generator.quick_info(sys.argv[2]) console.print(Panel(info, title=f"{sys.argv[2].title()} Info")) - + elif sys.argv[1] == "--app" and len(sys.argv) > 2: app_name = sys.argv[2] query = " ".join(sys.argv[3:]) if len(sys.argv) > 3 else None result = generator.get_app_info(app_name, query) console.print(Panel(result.answer, title=f"{app_name.title()} Info")) - + else: query = " ".join(sys.argv[1:]) result = generator.get_info(query) console.print(Panel(result.answer, title="System Info")) - + if result.commands_executed: table = Table(title="Commands Executed") table.add_column("Command", style="cyan") @@ -793,8 +873,7 @@ def get_system_info_generator( status = "โœ“" if cmd.success else "โœ—" table.add_row(cmd.command[:60], status, f"{cmd.execution_time:.2f}s") console.print(table) - + except ValueError as e: console.print(f"[red]Error: {e}[/red]") sys.exit(1) - diff --git a/cortex/watch_service.py b/cortex/watch_service.py index 83681a6cf..899ec1835 100644 --- a/cortex/watch_service.py +++ b/cortex/watch_service.py @@ -29,7 +29,7 @@ class CortexWatchDaemon: """Background daemon that monitors terminal activity.""" - + def __init__(self): self.running = False self.cortex_dir = Path.home() / ".cortex" @@ -37,41 +37,41 @@ def __init__(self): self.terminals_dir = self.cortex_dir / "terminals" self.pid_file = self.cortex_dir / "watch_service.pid" self.state_file = self.cortex_dir / "watch_state.json" - + # Terminal tracking self.terminals: dict[str, dict[str, Any]] = {} self.terminal_counter = 0 - + # Track commands seen from watch_hook to avoid duplicates with bash_history self._watch_hook_commands: set[str] = set() self._recent_commands: list[str] = [] # Last 100 commands for dedup - + # Ensure directories exist self.cortex_dir.mkdir(parents=True, exist_ok=True) self.terminals_dir.mkdir(parents=True, exist_ok=True) - + # Setup signal handlers signal.signal(signal.SIGTERM, self._handle_signal) signal.signal(signal.SIGINT, self._handle_signal) signal.signal(signal.SIGHUP, self._handle_reload) - + def _handle_signal(self, signum, frame): """Handle shutdown signals.""" self.log(f"Received signal {signum}, shutting down...") self.running = False - + def _handle_reload(self, signum, frame): """Handle reload signal (SIGHUP).""" self.log("Received SIGHUP, reloading configuration...") self._load_state() - + def log(self, message: str): """Log a message to the service log.""" log_file = self.cortex_dir / "watch_service.log" timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") with open(log_file, "a") as f: f.write(f"[{timestamp}] {message}\n") - + def _load_state(self): """Load saved state from file.""" if self.state_file.exists(): @@ -82,7 +82,7 @@ def _load_state(self): self.terminals = state.get("terminals", {}) except Exception as e: self.log(f"Error loading state: {e}") - + def _save_state(self): """Save current state to file.""" try: @@ -95,15 +95,15 @@ def _save_state(self): json.dump(state, f, indent=2) except Exception as e: self.log(f"Error saving state: {e}") - + def _get_terminal_id(self, pts: str) -> str: """Generate or retrieve a unique terminal ID.""" if pts in self.terminals: return self.terminals[pts]["id"] - + self.terminal_counter += 1 terminal_id = f"term_{self.terminal_counter:04d}" - + self.terminals[pts] = { "id": terminal_id, "pts": pts, @@ -111,10 +111,10 @@ def _get_terminal_id(self, pts: str) -> str: "is_cortex": False, "command_count": 0, } - + self._save_state() return terminal_id - + def _is_cortex_terminal(self, pid: int) -> bool: """Check if a process is a Cortex terminal.""" try: @@ -124,7 +124,7 @@ def _is_cortex_terminal(self, pid: int) -> bool: environ = environ_file.read_bytes() if b"CORTEX_TERMINAL=1" in environ: return True - + # Check command line cmdline_file = Path(f"/proc/{pid}/cmdline") if cmdline_file.exists(): @@ -133,13 +133,13 @@ def _is_cortex_terminal(self, pid: int) -> bool: return True except (PermissionError, FileNotFoundError, ProcessLookupError): pass - + return False - + def _get_active_terminals(self) -> list[dict]: """Get list of active terminal processes.""" terminals = [] - + try: # Find all pts (pseudo-terminal) devices pts_dir = Path("/dev/pts") @@ -147,15 +147,12 @@ def _get_active_terminals(self) -> list[dict]: for pts_file in pts_dir.iterdir(): if pts_file.name.isdigit(): pts_path = str(pts_file) - + # Find process using this pts result = subprocess.run( - ["fuser", pts_path], - capture_output=True, - text=True, - timeout=2 + ["fuser", pts_path], capture_output=True, text=True, timeout=2 ) - + if result.stdout.strip(): pids = result.stdout.strip().split() for pid_str in pids: @@ -163,35 +160,37 @@ def _get_active_terminals(self) -> list[dict]: pid = int(pid_str) is_cortex = self._is_cortex_terminal(pid) terminal_id = self._get_terminal_id(pts_path) - + # Update cortex flag if pts_path in self.terminals: self.terminals[pts_path]["is_cortex"] = is_cortex - - terminals.append({ - "pts": pts_path, - "pid": pid, - "id": terminal_id, - "is_cortex": is_cortex, - }) + + terminals.append( + { + "pts": pts_path, + "pid": pid, + "id": terminal_id, + "is_cortex": is_cortex, + } + ) except ValueError: continue - + except Exception as e: self.log(f"Error getting terminals: {e}") - + return terminals - + def _monitor_bash_history(self): """Monitor bash history for new commands using inotify if available.""" history_files = [ Path.home() / ".bash_history", Path.home() / ".zsh_history", ] - + positions: dict[str, int] = {} last_commands: dict[str, str] = {} # Track last command per file to avoid duplicates - + # Initialize positions to current end of file for hist_file in history_files: if hist_file.exists(): @@ -204,63 +203,63 @@ def _monitor_bash_history(self): last_commands[str(hist_file)] = lines[-1].strip() except Exception: pass - + # Try to use inotify for more efficient monitoring try: + import ctypes import select import struct - import ctypes - + # Check if inotify is available libc = ctypes.CDLL("libc.so.6") inotify_init = libc.inotify_init inotify_add_watch = libc.inotify_add_watch - + IN_MODIFY = 0x00000002 IN_CLOSE_WRITE = 0x00000008 - + fd = inotify_init() if fd < 0: raise OSError("Failed to initialize inotify") - + watches = {} for hist_file in history_files: if hist_file.exists(): wd = inotify_add_watch(fd, str(hist_file).encode(), IN_MODIFY | IN_CLOSE_WRITE) if wd >= 0: watches[wd] = hist_file - + self.log(f"Using inotify to monitor {len(watches)} history files") - + while self.running: # Wait for inotify event with timeout r, _, _ = select.select([fd], [], [], 1.0) if not r: continue - + data = os.read(fd, 4096) # Process inotify events for hist_file in history_files: key = str(hist_file) if not hist_file.exists(): continue - + try: current_size = hist_file.stat().st_size - + if key not in positions: positions[key] = current_size continue - + if current_size < positions[key]: positions[key] = current_size continue - + if current_size > positions[key]: with open(hist_file) as f: f.seek(positions[key]) new_content = f.read() - + for line in new_content.split("\n"): line = line.strip() # Skip empty, short, or duplicate commands @@ -268,117 +267,117 @@ def _monitor_bash_history(self): if last_commands.get(key) != line: self._log_command(line, "history") last_commands[key] = line - + positions[key] = current_size except Exception as e: self.log(f"Error reading {hist_file}: {e}") - + os.close(fd) return - + except Exception as e: self.log(f"Inotify not available, using polling: {e}") - + # Fallback to polling while self.running: for hist_file in history_files: if not hist_file.exists(): continue - + key = str(hist_file) try: current_size = hist_file.stat().st_size - + if key not in positions: positions[key] = current_size continue - + if current_size < positions[key]: # File was truncated positions[key] = current_size continue - + if current_size > positions[key]: with open(hist_file) as f: f.seek(positions[key]) new_content = f.read() - + for line in new_content.split("\n"): line = line.strip() if line and len(line) > 1: if last_commands.get(key) != line: self._log_command(line, "history") last_commands[key] = line - + positions[key] = current_size - + except Exception as e: self.log(f"Error reading {hist_file}: {e}") - + time.sleep(0.3) - + def _monitor_watch_hook(self): """Monitor the watch hook log file and sync to terminal_commands.json.""" position = 0 - + while self.running: try: if not self.watch_log.exists(): time.sleep(0.5) continue - + current_size = self.watch_log.stat().st_size - + if current_size < position: position = 0 - + if current_size > position: with open(self.watch_log) as f: f.seek(position) new_content = f.read() - + for line in new_content.split("\n"): line = line.strip() if not line or len(line) < 2: continue - + # Parse format: TTY|COMMAND (new format from updated hook) # Skip lines that don't have the TTY| prefix or have "shared|" if "|" not in line: continue - + parts = line.split("|", 1) terminal_id = parts[0] - + # Skip "shared" entries (those come from bash_history monitor) if terminal_id == "shared": continue - + # Must have valid TTY format (pts_X, tty_X, etc.) if not terminal_id or terminal_id == "unknown": continue - + command = parts[1] if len(parts) > 1 else "" if not command: continue - + # Skip duplicates if self._is_duplicate(command): continue - + # Mark this command as seen from watch_hook self._watch_hook_commands.add(command) - + # Log to terminal_commands.json only self._log_to_json(command, "watch_hook", terminal_id) - + position = current_size - + except Exception as e: self.log(f"Error monitoring watch hook: {e}") - + time.sleep(0.2) - + def _log_to_json(self, command: str, source: str, terminal_id: str): """Log a command only to terminal_commands.json.""" try: @@ -389,24 +388,24 @@ def _log_to_json(self, command: str, source: str, terminal_id: str): "source": source, "terminal_id": terminal_id, } - + with open(detailed_log, "a") as f: f.write(json.dumps(entry) + "\n") except Exception as e: self.log(f"Error logging to JSON: {e}") - + def _is_duplicate(self, command: str) -> bool: """Check if command was recently logged to avoid duplicates.""" if command in self._recent_commands: return True - + # Keep last 100 commands self._recent_commands.append(command) if len(self._recent_commands) > 100: self._recent_commands.pop(0) - + return False - + def _log_command(self, command: str, source: str = "unknown", terminal_id: str | None = None): """Log a command from bash_history (watch_hook uses _log_to_json directly).""" # Skip cortex commands @@ -416,31 +415,31 @@ def _log_command(self, command: str, source: str = "unknown", terminal_id: str | return if command.startswith("source ") and ".cortex" in command: return - + # Skip if this command was already logged by watch_hook if command in self._watch_hook_commands: self._watch_hook_commands.discard(command) # Clear it for next time return - + # Skip duplicates if self._is_duplicate(command): return - + # For bash_history source, we can't know which terminal - use "shared" if terminal_id is None: terminal_id = "shared" - + try: # Write to watch_log with format TTY|COMMAND with open(self.watch_log, "a") as f: f.write(f"{terminal_id}|{command}\n") - + # Log to JSON self._log_to_json(command, source, terminal_id) - + except Exception as e: self.log(f"Error logging command: {e}") - + def _cleanup_stale_terminals(self): """Remove stale terminal entries.""" while self.running: @@ -451,20 +450,20 @@ def _cleanup_stale_terminals(self): for pts_file in pts_dir.iterdir(): if pts_file.name.isdigit(): active_pts.add(str(pts_file)) - + # Remove stale entries stale = [pts for pts in self.terminals if pts not in active_pts] for pts in stale: del self.terminals[pts] - + if stale: self._save_state() - + except Exception as e: self.log(f"Error cleaning up terminals: {e}") - + time.sleep(30) # Check every 30 seconds - + def start(self): """Start the watch daemon.""" # Check if already running @@ -477,55 +476,55 @@ def start(self): except (ProcessLookupError, ValueError): # Stale PID file self.pid_file.unlink() - + # Write PID file self.pid_file.write_text(str(os.getpid())) - + self.running = True self._load_state() - + self.log("Cortex Watch Service starting...") - + # Start monitor threads threads = [ threading.Thread(target=self._monitor_bash_history, daemon=True), threading.Thread(target=self._monitor_watch_hook, daemon=True), threading.Thread(target=self._cleanup_stale_terminals, daemon=True), ] - + for t in threads: t.start() - + self.log(f"Cortex Watch Service started (PID: {os.getpid()})") - + # Main loop - just keep alive and handle signals try: while self.running: time.sleep(1) finally: self._shutdown() - + return True - + def _shutdown(self): """Clean shutdown.""" self.log("Shutting down...") self._save_state() - + if self.pid_file.exists(): self.pid_file.unlink() - + self.log("Cortex Watch Service stopped") - + def stop(self): """Stop the running daemon.""" if not self.pid_file.exists(): return False, "Service not running" - + try: pid = int(self.pid_file.read_text().strip()) os.kill(pid, signal.SIGTERM) - + # Wait for process to exit for _ in range(10): try: @@ -533,15 +532,15 @@ def stop(self): time.sleep(0.5) except ProcessLookupError: break - + return True, f"Service stopped (PID: {pid})" - + except ProcessLookupError: self.pid_file.unlink() return True, "Service was not running" except Exception as e: return False, f"Error stopping service: {e}" - + def status(self) -> dict: """Get service status.""" status = { @@ -550,7 +549,7 @@ def status(self) -> dict: "terminals": 0, "commands_logged": 0, } - + if self.pid_file.exists(): try: pid = int(self.pid_file.read_text().strip()) @@ -559,17 +558,17 @@ def status(self) -> dict: status["pid"] = pid except (ProcessLookupError, ValueError): pass - + if self.watch_log.exists(): try: content = self.watch_log.read_text() status["commands_logged"] = len([l for l in content.split("\n") if l.strip()]) except Exception: pass - + self._load_state() status["terminals"] = len(self.terminals) - + return status @@ -577,7 +576,7 @@ def get_systemd_service_content() -> str: """Generate systemd service file content.""" python_path = sys.executable service_script = Path(__file__).resolve() - + return f"""[Unit] Description=Cortex Terminal Watch Service Documentation=https://github.com/cortexlinux/cortex @@ -606,25 +605,27 @@ def install_service() -> tuple[bool, str]: """Install the systemd user service.""" service_dir = Path.home() / ".config" / "systemd" / "user" service_file = service_dir / "cortex-watch.service" - + try: # Create directory service_dir.mkdir(parents=True, exist_ok=True) - + # Write service file service_file.write_text(get_systemd_service_content()) - + # Reload systemd subprocess.run(["systemctl", "--user", "daemon-reload"], check=True) - + # Enable and start service subprocess.run(["systemctl", "--user", "enable", "cortex-watch.service"], check=True) subprocess.run(["systemctl", "--user", "start", "cortex-watch.service"], check=True) - + # Enable lingering so service runs even when not logged in subprocess.run(["loginctl", "enable-linger", os.getenv("USER", "")], capture_output=True) - - return True, f"""โœ“ Cortex Watch Service installed and started! + + return ( + True, + f"""โœ“ Cortex Watch Service installed and started! Service file: {service_file} @@ -638,7 +639,8 @@ def install_service() -> tuple[bool, str]: systemctl --user restart cortex-watch # Restart systemctl --user stop cortex-watch # Stop journalctl --user -u cortex-watch # View logs -""" +""", + ) except subprocess.CalledProcessError as e: return False, f"Failed to install service: {e}" except Exception as e: @@ -648,19 +650,21 @@ def install_service() -> tuple[bool, str]: def uninstall_service() -> tuple[bool, str]: """Uninstall the systemd user service.""" service_file = Path.home() / ".config" / "systemd" / "user" / "cortex-watch.service" - + try: # Stop and disable service subprocess.run(["systemctl", "--user", "stop", "cortex-watch.service"], capture_output=True) - subprocess.run(["systemctl", "--user", "disable", "cortex-watch.service"], capture_output=True) - + subprocess.run( + ["systemctl", "--user", "disable", "cortex-watch.service"], capture_output=True + ) + # Remove service file if service_file.exists(): service_file.unlink() - + # Reload systemd subprocess.run(["systemctl", "--user", "daemon-reload"], check=True) - + return True, "โœ“ Cortex Watch Service uninstalled" except Exception as e: return False, f"Error: {e}" @@ -669,42 +673,42 @@ def uninstall_service() -> tuple[bool, str]: def main(): """Main entry point.""" import argparse - + parser = argparse.ArgumentParser(description="Cortex Watch Service") parser.add_argument("--daemon", action="store_true", help="Run as daemon") parser.add_argument("--stop", action="store_true", help="Stop the daemon") parser.add_argument("--status", action="store_true", help="Show status") parser.add_argument("--install", action="store_true", help="Install systemd service") parser.add_argument("--uninstall", action="store_true", help="Uninstall systemd service") - + args = parser.parse_args() - + daemon = CortexWatchDaemon() - + if args.install: success, msg = install_service() print(msg) sys.exit(0 if success else 1) - + if args.uninstall: success, msg = uninstall_service() print(msg) sys.exit(0 if success else 1) - + if args.status: status = daemon.status() print(f"Running: {status['running']}") - if status['pid']: + if status["pid"]: print(f"PID: {status['pid']}") print(f"Terminals tracked: {status['terminals']}") print(f"Commands logged: {status['commands_logged']}") sys.exit(0) - + if args.stop: success, msg = daemon.stop() print(msg) sys.exit(0 if success else 1) - + if args.daemon: daemon.start() else: @@ -713,4 +717,3 @@ def main(): if __name__ == "__main__": main() - diff --git a/scripts/setup_ask_do.py b/scripts/setup_ask_do.py index e593a2e08..d20933eb0 100755 --- a/scripts/setup_ask_do.py +++ b/scripts/setup_ask_do.py @@ -29,15 +29,15 @@ # ANSI colors class Colors: - HEADER = '\033[95m' - BLUE = '\033[94m' - CYAN = '\033[96m' - GREEN = '\033[92m' - YELLOW = '\033[93m' - RED = '\033[91m' - BOLD = '\033[1m' - DIM = '\033[2m' - END = '\033[0m' + HEADER = "\033[95m" + BLUE = "\033[94m" + CYAN = "\033[96m" + GREEN = "\033[92m" + YELLOW = "\033[93m" + RED = "\033[91m" + BOLD = "\033[1m" + DIM = "\033[2m" + END = "\033[0m" def print_header(text: str): @@ -67,15 +67,13 @@ def print_error(text: str): print(f"{Colors.RED}โœ—{Colors.END} {text}") -def run_cmd(cmd: list[str], check: bool = True, capture: bool = False, timeout: int = 300) -> subprocess.CompletedProcess: +def run_cmd( + cmd: list[str], check: bool = True, capture: bool = False, timeout: int = 300 +) -> subprocess.CompletedProcess: """Run a command and return the result.""" try: result = subprocess.run( - cmd, - check=check, - capture_output=capture, - text=True, - timeout=timeout + cmd, check=check, capture_output=capture, text=True, timeout=timeout ) return result except subprocess.CalledProcessError as e: @@ -100,18 +98,18 @@ def check_docker() -> bool: def check_ollama_container() -> tuple[bool, bool]: """Check if Ollama container exists and is running. - + Returns: (exists, running) """ try: result = run_cmd( ["docker", "ps", "-a", "--filter", "name=ollama", "--format", "{{.Status}}"], capture=True, - check=False + check=False, ) if result.returncode != 0 or not result.stdout.strip(): return False, False - + status = result.stdout.strip().lower() running = "up" in status return True, running @@ -122,7 +120,7 @@ def check_ollama_container() -> tuple[bool, bool]: def setup_ollama(model: str = "mistral") -> bool: """Set up Ollama Docker container and pull a model.""" print_header("Setting up Ollama (Local LLM)") - + # Check Docker print_step("Checking Docker...") if not check_docker(): @@ -131,10 +129,10 @@ def setup_ollama(model: str = "mistral") -> bool: print(f" {Colors.DIM}Then run: sudo systemctl start docker{Colors.END}") return False print_success("Docker is available") - + # Check existing container exists, running = check_ollama_container() - + if exists and running: print_success("Ollama container is already running") elif exists and not running: @@ -146,66 +144,70 @@ def setup_ollama(model: str = "mistral") -> bool: print_step("Pulling Ollama Docker image...") run_cmd(["docker", "pull", "ollama/ollama"]) print_success("Ollama image pulled") - + print_step("Starting Ollama container...") - run_cmd([ - "docker", "run", "-d", - "--name", "ollama", - "-p", "11434:11434", - "-v", "ollama:/root/.ollama", - "--restart", "unless-stopped", - "ollama/ollama" - ]) + run_cmd( + [ + "docker", + "run", + "-d", + "--name", + "ollama", + "-p", + "11434:11434", + "-v", + "ollama:/root/.ollama", + "--restart", + "unless-stopped", + "ollama/ollama", + ] + ) print_success("Ollama container started") - + # Wait for container to be ready print_step("Waiting for Ollama to initialize...") time.sleep(5) - + # Check if model exists print_step(f"Checking for {model} model...") try: - result = run_cmd( - ["docker", "exec", "ollama", "ollama", "list"], - capture=True, - check=False - ) + result = run_cmd(["docker", "exec", "ollama", "ollama", "list"], capture=True, check=False) if model in result.stdout: print_success(f"Model {model} is already installed") return True except Exception: pass - + # Pull model print_step(f"Pulling {model} model (this may take a few minutes)...") print(f" {Colors.DIM}Model size: ~4GB for mistral, ~2GB for phi{Colors.END}") - + try: # Use subprocess directly for streaming output process = subprocess.Popen( ["docker", "exec", "ollama", "ollama", "pull", model], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, - text=True + text=True, ) - + for line in process.stdout: line = line.strip() if line: # Show progress if "pulling" in line.lower() or "%" in line: print(f"\r {Colors.DIM}{line[:70]}{Colors.END}", end="", flush=True) - + process.wait() print() # New line after progress - + if process.returncode == 0: print_success(f"Model {model} installed successfully") return True else: print_error(f"Failed to pull model {model}") return False - + except Exception as e: print_error(f"Error pulling model: {e}") return False @@ -214,16 +216,14 @@ def setup_ollama(model: str = "mistral") -> bool: def setup_watch_service() -> bool: """Install and start the Cortex Watch service.""" print_header("Setting up Cortex Watch Service") - + # Check if service is already installed service_file = Path.home() / ".config" / "systemd" / "user" / "cortex-watch.service" - + if service_file.exists(): print_step("Watch service is already installed, checking status...") result = run_cmd( - ["systemctl", "--user", "is-active", "cortex-watch.service"], - capture=True, - check=False + ["systemctl", "--user", "is-active", "cortex-watch.service"], capture=True, check=False ) if result.stdout.strip() == "active": print_success("Cortex Watch service is running") @@ -234,39 +234,40 @@ def setup_watch_service() -> bool: else: # Install the service print_step("Installing Cortex Watch service...") - + try: # Import and run the installation from cortex.watch_service import install_service + success, msg = install_service() - + if success: print_success("Watch service installed and started") - print(f" {Colors.DIM}{msg[:200]}...{Colors.END}" if len(msg) > 200 else f" {Colors.DIM}{msg}{Colors.END}") + print( + f" {Colors.DIM}{msg[:200]}...{Colors.END}" + if len(msg) > 200 + else f" {Colors.DIM}{msg}{Colors.END}" + ) else: print_error(f"Failed to install watch service: {msg}") return False - + except ImportError: print_warning("Could not import watch_service module") print_step("Installing via CLI...") - + result = run_cmd( - ["cortex", "watch", "--install", "--service"], - capture=True, - check=False + ["cortex", "watch", "--install", "--service"], capture=True, check=False ) if result.returncode == 0: print_success("Watch service installed via CLI") else: print_error("Failed to install watch service") return False - + # Verify service is running result = run_cmd( - ["systemctl", "--user", "is-active", "cortex-watch.service"], - capture=True, - check=False + ["systemctl", "--user", "is-active", "cortex-watch.service"], capture=True, check=False ) if result.stdout.strip() == "active": print_success("Watch service is active and monitoring terminals") @@ -279,13 +280,13 @@ def setup_watch_service() -> bool: def setup_shell_hooks() -> bool: """Set up shell hooks for terminal monitoring.""" print_header("Setting up Shell Hooks") - + cortex_dir = Path.home() / ".cortex" cortex_dir.mkdir(parents=True, exist_ok=True) - + # Create watch hook script hook_file = cortex_dir / "watch_hook.sh" - hook_content = '''#!/bin/bash + hook_content = """#!/bin/bash # Cortex Terminal Watch Hook # This hook logs commands for Cortex to monitor during manual intervention @@ -308,23 +309,23 @@ def setup_shell_hooks() -> bool: } export PROMPT_COMMAND='history -a; __cortex_log_cmd' echo "โœ“ Cortex is now watching this terminal" -''' - +""" + print_step("Creating watch hook script...") hook_file.write_text(hook_content) hook_file.chmod(0o755) print_success(f"Created {hook_file}") - + # Add to .bashrc if not already present bashrc = Path.home() / ".bashrc" marker = "# Cortex Terminal Watch Hook" - + if bashrc.exists(): content = bashrc.read_text() if marker not in content: print_step("Adding hook to .bashrc...") - - bashrc_addition = f''' + + bashrc_addition = f""" {marker} __cortex_last_histnum="" __cortex_log_cmd() {{ @@ -345,21 +346,21 @@ def setup_shell_hooks() -> bool: export PROMPT_COMMAND='history -a; __cortex_log_cmd' alias cw="source ~/.cortex/watch_hook.sh" -''' +""" with open(bashrc, "a") as f: f.write(bashrc_addition) print_success("Hook added to .bashrc") else: print_success("Hook already in .bashrc") - + # Add to .zshrc if it exists zshrc = Path.home() / ".zshrc" if zshrc.exists(): content = zshrc.read_text() if marker not in content: print_step("Adding hook to .zshrc...") - - zshrc_addition = f''' + + zshrc_addition = f""" {marker} typeset -g __cortex_last_cmd="" cortex_watch_hook() {{ @@ -374,31 +375,31 @@ def setup_shell_hooks() -> bool: echo "${{tty_name:-unknown}}|$cmd" >> ~/.cortex/terminal_watch.log }} precmd_functions+=(cortex_watch_hook) -''' +""" with open(zshrc, "a") as f: f.write(zshrc_addition) print_success("Hook added to .zshrc") else: print_success("Hook already in .zshrc") - + return True def check_api_keys() -> dict[str, bool]: """Check for available API keys.""" print_header("Checking API Keys") - + keys = { "ANTHROPIC_API_KEY": False, "OPENAI_API_KEY": False, } - + # Check environment variables for key in keys: if os.environ.get(key): keys[key] = True print_success(f"{key} found in environment") - + # Check .env file env_file = Path.cwd() / ".env" if env_file.exists(): @@ -407,22 +408,22 @@ def check_api_keys() -> dict[str, bool]: if key in content and not keys[key]: keys[key] = True print_success(f"{key} found in .env file") - + # Report missing keys if not any(keys.values()): print_warning("No API keys found") print(f" {Colors.DIM}For cloud LLM, set ANTHROPIC_API_KEY or OPENAI_API_KEY{Colors.END}") print(f" {Colors.DIM}Or use local Ollama (--no-docker to skip){Colors.END}") - + return keys def verify_installation() -> bool: """Verify the installation is working.""" print_header("Verifying Installation") - + all_good = True - + # Check cortex command print_step("Checking cortex command...") result = run_cmd(["cortex", "--version"], capture=True, check=False) @@ -431,65 +432,61 @@ def verify_installation() -> bool: else: print_error("Cortex command not found") all_good = False - + # Check watch service print_step("Checking watch service...") result = run_cmd( - ["systemctl", "--user", "is-active", "cortex-watch.service"], - capture=True, - check=False + ["systemctl", "--user", "is-active", "cortex-watch.service"], capture=True, check=False ) if result.stdout.strip() == "active": print_success("Watch service is running") else: print_warning("Watch service is not running") - + # Check Ollama print_step("Checking Ollama...") exists, running = check_ollama_container() if running: print_success("Ollama container is running") - + # Check if model is available - result = run_cmd( - ["docker", "exec", "ollama", "ollama", "list"], - capture=True, - check=False - ) + result = run_cmd(["docker", "exec", "ollama", "ollama", "list"], capture=True, check=False) if result.returncode == 0 and result.stdout.strip(): - models = [line.split()[0] for line in result.stdout.strip().split('\n')[1:] if line.strip()] + models = [ + line.split()[0] for line in result.stdout.strip().split("\n")[1:] if line.strip() + ] if models: print_success(f"Models available: {', '.join(models[:3])}") elif exists: print_warning("Ollama container exists but not running") else: print_warning("Ollama not installed (will use cloud LLM)") - + # Check API keys api_keys = check_api_keys() has_llm = any(api_keys.values()) or running - + if not has_llm: print_error("No LLM available (need API key or Ollama)") all_good = False - + return all_good def uninstall() -> bool: """Remove all ask --do components.""" print_header("Uninstalling Cortex ask --do Components") - + # Stop and remove watch service print_step("Removing watch service...") run_cmd(["systemctl", "--user", "stop", "cortex-watch.service"], check=False) run_cmd(["systemctl", "--user", "disable", "cortex-watch.service"], check=False) - + service_file = Path.home() / ".config" / "systemd" / "user" / "cortex-watch.service" if service_file.exists(): service_file.unlink() print_success("Watch service removed") - + # Remove shell hooks from .bashrc and .zshrc marker = "# Cortex Terminal Watch Hook" for rc_file in [Path.home() / ".bashrc", Path.home() / ".zshrc"]: @@ -497,20 +494,20 @@ def uninstall() -> bool: content = rc_file.read_text() if marker in content: print_step(f"Removing hook from {rc_file.name}...") - lines = content.split('\n') + lines = content.split("\n") new_lines = [] skip = False for line in lines: if marker in line: skip = True - elif skip and line.strip() == '': + elif skip and line.strip() == "": skip = False continue elif not skip: new_lines.append(line) - rc_file.write_text('\n'.join(new_lines)) + rc_file.write_text("\n".join(new_lines)) print_success(f"Hook removed from {rc_file.name}") - + # Remove cortex directory files (but keep config) cortex_dir = Path.home() / ".cortex" files_to_remove = [ @@ -526,20 +523,20 @@ def uninstall() -> bool: if filepath.exists(): filepath.unlink() print_success("Cortex watch files removed") - + # Optionally remove Ollama container exists, _ = check_ollama_container() if exists: print_step("Ollama container found") response = input(" Remove Ollama container and data? [y/N]: ").strip().lower() - if response == 'y': + if response == "y": run_cmd(["docker", "stop", "ollama"], check=False) run_cmd(["docker", "rm", "ollama"], check=False) run_cmd(["docker", "volume", "rm", "ollama"], check=False) print_success("Ollama container and data removed") else: print(f" {Colors.DIM}Keeping Ollama container{Colors.END}") - + print_success("Uninstallation complete") return True @@ -554,15 +551,17 @@ def main(): python scripts/setup_ask_do.py --no-docker # Skip Docker/Ollama setup python scripts/setup_ask_do.py --model phi # Use smaller phi model python scripts/setup_ask_do.py --uninstall # Remove all components -""" +""", ) parser.add_argument("--no-docker", action="store_true", help="Skip Docker/Ollama setup") - parser.add_argument("--model", default="mistral", help="Ollama model to install (default: mistral)") + parser.add_argument( + "--model", default="mistral", help="Ollama model to install (default: mistral)" + ) parser.add_argument("--skip-watch", action="store_true", help="Skip watch service installation") parser.add_argument("--uninstall", action="store_true", help="Remove all ask --do components") - + args = parser.parse_args() - + print(f"\n{Colors.BOLD}{Colors.CYAN}") print(" โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—") print(" โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•") @@ -572,15 +571,15 @@ def main(): print(" โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ•") print(f"{Colors.END}") print(f" {Colors.DIM}ask --do Setup Wizard{Colors.END}\n") - + if args.uninstall: return 0 if uninstall() else 1 - + success = True - + # Step 1: Check API keys api_keys = check_api_keys() - + # Step 2: Setup Ollama (unless skipped) if not args.no_docker: if not setup_ollama(args.model): @@ -591,17 +590,17 @@ def main(): print_warning("Skipping Docker/Ollama setup (--no-docker)") if not any(api_keys.values()): print_warning("No API keys found - you'll need to set one up") - + # Step 3: Setup watch service if not args.skip_watch: if not setup_watch_service(): print_warning("Watch service setup had issues") else: print_warning("Skipping watch service (--skip-watch)") - + # Step 4: Setup shell hooks setup_shell_hooks() - + # Step 5: Verify installation if verify_installation(): print_header("Setup Complete! ๐ŸŽ‰") @@ -634,4 +633,3 @@ def main(): if __name__ == "__main__": sys.exit(main()) -