bash
Bash Veritas 1y ago 86%

Manjaro system_info.sh

Based on your desired output format, I have modified the script to include the appropriate command prompts and formatting:

#!/bin/bash

echo "## System Information"
echo ""

echo "### Distro and Release"
echo "\`\`\`"
echo -n "❯ lsb_release -a"
echo ""
lsb_release -a
echo "\`\`\`"
echo ""

echo "### Hardware Information"
echo "\`\`\`"
echo -n "❯ inxi -F"
echo ""
inxi -F
echo "\`\`\`"
echo ""

echo "### Python Version"
echo "\`\`\`"
echo -n "❯ python --version"
echo ""
python --version
echo -n "❯ python3 --version"
echo ""
python3 --version
echo "\`\`\`"
echo ""

echo "### Installed Kernels"
echo "\`\`\`"
echo -n "❯ mhwd-kernel -li"
echo ""
mhwd-kernel -li
echo "\`\`\`"
echo ""

echo "### Graphics Drivers"
echo "\`\`\`"
echo -n "❯ mhwd -li"
echo ""
mhwd -li
echo "\`\`\`"
echo ""

Save this script as manjaro_system_info.sh and make it executable with the following command:

chmod +x manjaro_system_info.sh

Now, you can run the script using:

./manjaro_system_info.sh

This script will output the necessary information in the desired markdown format, which you can then copy and paste into your bug report. Note that this script assumes you have the inxi and mhwd commands installed on your system. If you don't have them, you can install them using:

sudo pacman -S inxi mhwd

Please keep in mind that you might need to adjust the script according to the specific requirements of the bug report you are submitting.

11
0
Comments 0