diff --git a/source/tools/support/linux/sysinfo.sh b/source/tools/support/linux/sysinfo.sh deleted file mode 100755 index 87e7ba9c..00000000 --- a/source/tools/support/linux/sysinfo.sh +++ /dev/null @@ -1,107 +0,0 @@ -#!/bin/sh -# -# This script dumps this systems' hardware specs and software info to OUTFILE. -# Place it next to your megaglest binary, then run it. -# -# ----------------------------------------------------------------------------- -# -# Configuration section - -OUTFILE=sysinfo.log - -# End of configuration section -# -# ----------------------------------------------------------------------------- -# - -VERSION='0.2' - -echo 'Gathering information on this computer and MegaGlest, please stand by.' - -echo '--------------------------------------------------------------------------------' >> $OUTFILE -echo ' MEGAGLEST SYSTEM REPORT '"$VERSION" >> $OUTFILE -echo ' '"`date -Ru`" >> $OUTFILE -echo '--------------------------------------------------------------------------------' >> $OUTFILE -echo '' >> $OUTFILE -echo '' >> $OUTFILE -echo '* CPU' | tee -a $OUTFILE -echo '' >> $OUTFILE -echo '>>> cat /proc/cpuinfo | awk -F : '"'"'/^model name/ { print $2 }' >> $OUTFILE -cat /proc/cpuinfo | awk -F : '/^model name/ { print $2 }' >> $OUTFILE -sleep 1 - -echo '' >> $OUTFILE -echo '' >> $OUTFILE -echo '* Memory' | tee -a $OUTFILE -echo '' >> $OUTFILE -echo '>>> free -mt' >> $OUTFILE -free -mt >> $OUTFILE -sleep 1 - -echo '' >> $OUTFILE -echo '' >> $OUTFILE -echo '* Graphics' | tee -a $OUTFILE -echo '' >> $OUTFILE - -echo ">>> lspci -knnv | grep -EA10 '(VGA|Display)'" >> $OUTFILE -lspci -knnv | grep -EA10 '(VGA|Display)' >> $OUTFILE -sleep 1 -echo '' >> $OUTFILE -echo '>>> glxinfo' >> $OUTFILE -glxinfo >> $OUTFILE 2>&1 -sleep 1 -echo '' >> $OUTFILE -echo '>>> xrandr' >> $OUTFILE -xrandr >> $OUTFILE 2>&1 -sleep 1 -echo ' (I will try to start MegaGlest now, but it should quit automatically.)' -echo '' >> $OUTFILE -echo '>>> ./start_megaglest --opengl-info' >> $OUTFILE -./start_megaglest --opengl-info >> $OUTFILE 2>&1 -sleep 1 - -echo '' >> $OUTFILE -echo '' >> $OUTFILE -echo '* Operating system' | tee -a $OUTFILE -echo '' >> $OUTFILE -echo '>>> uname -a' >> $OUTFILE -uname -a >> $OUTFILE 2>&1 -sleep 1 -echo '' >> $OUTFILE -echo '>>> cat /etc/issue' >> $OUTFILE -cat /etc/issue >> $OUTFILE 2>&1 -sleep 1 - -echo '' >> $OUTFILE -echo '' >> $OUTFILE -echo '* MegaGlest version' | tee -a $OUTFILE -echo '' >> $OUTFILE -echo '>>> ./start_megaglest --version' >> $OUTFILE -./start_megaglest --version >>$OUTFILE 2>&1 -#v3.5.2-GNUC: 40401 [64bit]-May 26 2011 09:59:59, SVN: [Rev: 2305], [STREFLOP] -sleep 1 - -echo '' >> $OUTFILE -echo '--------------------------------------------------------------------------------' >> $OUTFILE -echo '' >> $OUTFILE -echo '' >> $OUTFILE -echo '' >> $OUTFILE - -echo '' -echo 'Processing complete.' -sleep 1 -echo '' -echo 'Please find your report in this file:' -echo ' '"$OUTFILE" -echo '' -echo 'Please post this report to http://paste.megaglest.org/' -echo 'After posting it, you will be taken to a new location. Please take note of' -echo 'this new location (URI/Internet address) and send it to the MegaGlest team:' -echo ' mailto:support@megaglest.org' -echo 'Please be sure to add a proper description of the problems you experience.' -echo '' -echo 'Alternatively you can just post the report and your description to the forums:' -echo ' http://forums.megaglest.org/' -echo '' -echo 'Press Enter to exit.' -read input >/dev/null diff --git a/source/tools/support/linux/system_report b/source/tools/support/linux/system_report new file mode 100755 index 00000000..cc0dd5b0 --- /dev/null +++ b/source/tools/support/linux/system_report @@ -0,0 +1,333 @@ +#!/bin/sh +# +# MegaGlest System Report +# +# Examines the Linux operating environment of a MegaGlest installation and +# dumps this information into REPORT_LOCATION for support purposes. +# +# ----------------------------------------------------------------------------- +# +# Written by Tom Reynolds +# Copyright (c) 2012 Tom Reynolds, The Megaglest Team, under GNU GPL v3.0 +# +# ----------------------------------------------------------------------------- +# +# Configuration section + +# Location to write report to +#REPORT_LOCATION= + +# MegaGlest installation directory, see --help +#INSTALLATION_LOCATION= + +# Make user press Enter to exit +#PAUSE=1 + +# End of configuration section +# +# ----------------------------------------------------------------------------- +# + +LANG=C +VERSION='0.3' +MYNAME=`basename $0` +DEFAULT_REPORT_FILENAME=system_report.log + +if [ "$1"'x' = '-vx' -o "$1"'x' = '--versionx' ] +then + echo 'MegaGlest System Report '"$VERSION" + echo '' + exit 0 +fi + +if [ "$1"'x' = '-hx' -o "$1"'x' = '--helpx' ] +then + echo 'Usage:' + echo ' '"$MYNAME"'