[SOLVED] This information should be included in everyones

Suggestions and feedback for Linux Mint and the forums
Forum rules
Do not post support questions here. Before you post read: Where to post ideas & feature requests
Post Reply
dcihon

[SOLVED] This information should be included in everyones

Post by dcihon »

This information should be included in everyone's first post for when they need help with a problem:

Code: Select all

danc@danc-linux-mint:~$ inxi -Fc 0
System:    Host danc-linux-mint Kernel 3.2.0-1-amd64 x86_64 (64 bit) Desktop Gnome Distro Linux Mint Xfce Edition
Machine:   System Dell product Latitude E6500
           Mobo Dell model 0PP476 Bios Dell version A25 date 04/13/2011
CPU:       Dual core Intel Core2 Duo CPU P8400 (-MCP-) cache 3072 KB flags (lm nx sse sse2 sse3 sse4_1 ssse3 vmx) 
           Clock Speeds: (1) 800.00 MHz (2) 800.00 MHz
Graphics:  Card: nVidia G98M [Quadro NVS 160M] X.Org 1.11.3.901 driver nvidia Resolution 2720x900@50.0hz 
           GLX Renderer Quadro NVS 160M/PCIe/SSE2 GLX Version 3.3.0 NVIDIA 295.20
Audio:     Card Intel 82801I (ICH9 Family) HD Audio Controller driver snd_hda_intel Sound: ALSA v: 1.0.24
Network:   Card-1 Intel 82567LM Gigabit Network Connection driver e1000e 
           IF: eth1 state: up speed: 100 Mbps duplex: full mac: 00:21:70:bc:bb:d5
           Card-2 Broadcom BCM4312 802.11b/g LP-PHY driver b43-pci-bridge 
           IF: N/A state: N/A mac: N/A
Drives:    HDD Total Size: 250.1GB (25.2% used) 1: /dev/sda ST9250315AS 250.1GB 
Partition: ID:/ size: 40G used: 11G (27%) fs: rootfs ID:/ size: 40G used: 11G (27%) fs: ext4 
           ID:/home size: 193G used: 59G (33%) fs: ext4 ID:swap-1 size: 0.41GB used: 0.00GB (0%) fs: swap 
Sensors:   System Temperatures: cpu: 42.5C mobo: N/A gpu: 62C 
           Fan Speeds (in rpm): cpu: N/A 
Info:      Processes 169 Uptime 6:17 Memory 1805.3/4964.7MB Client Shell inxi 1.7.7
Last edited by dcihon on Tue Mar 06, 2012 8:47 am, edited 1 time in total.
User avatar
xenopeek
Level 25
Level 25
Posts: 29607
Joined: Wed Jul 06, 2011 3:58 am

Re: This information should be included in everyones first p

Post by xenopeek »

Moved here by moderator

Forwarded your suggestion to the admins. inxi is mentioned in the "Before you post please read this" link in the newbie forums, but perhaps it is good to include this as the default command to run.
Image
HughT

Re: This information should be included in everyones first p

Post by HughT »

Not a bad idea. I've seen countless posts with very little information, requiring forum helpers to ask for further details. But I'd be concerned that getting a newbie to open a terminal and supply that detail might be beyond them. Having been asked to supply information from a terminal command output, the next question from the newbie OP is "What's a terminal?" Sadly, I bet few even read
Before you post please read this
And too many don't appear to edit the title as <Solved>. What can we do with them? :)
GeneC

Re: This information should be included in everyones first p

Post by GeneC »

HughT wrote:.............What can we do with them? :)
Image .......... :lol:
remoulder
Level 17
Level 17
Posts: 7621
Joined: Fri May 09, 2008 1:14 pm

Re: This information should be included in everyones first p

Post by remoulder »

GeneC wrote:lol
Nice one though I think we'd have very few forum members if we did that! :lol:
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
User avatar
xenopeek
Level 25
Level 25
Posts: 29607
Joined: Wed Jul 06, 2011 3:58 am

Re: This information should be included in everyones first p

Post by xenopeek »

It shouldn't be to hard to write a small GUI wrapper for inxi if that is easier, though I think even newbies should be able to use the terminal. The next step in problem analysis usually includes some other commands to run from the terminal... The most basic of wrappers for inxi -Fc 0 is:

Code: Select all

#!/bin/bash
tempfile=$(tempfile)
echo -n "[code]" > $tempfile
inxi -Fc 0 &>> $tempfile
echo -n "
" >> $tempfile
zenity --text-info --filename=$tempfile --width=700 --height=500 --title="Please include this in your support request on the forum:"[/code]
It pop ups a window with the text that needs to be copied and pasted to the forum. But this is getting of topic for this suggestion...
Image
remoulder
Level 17
Level 17
Posts: 7621
Joined: Fri May 09, 2008 1:14 pm

Re: This information should be included in everyones first p

Post by remoulder »

xenopeek wrote:It shouldn't be to hard to write a small GUI wrapper for inxi
This has already been done in antix as it contains inxi-gui, though I believe the output is still in a terminal window. Unfortunately short of downloading antix there doesn't seem any way to get this that I can see at the moment.
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
proxima_centauri

Re: This information should be included in everyones first p

Post by proxima_centauri »

* Added inxi command to Read: How To Get Help! and the official section in Forum Rules, Guidelines, and Policy
User avatar
xenopeek
Level 25
Level 25
Posts: 29607
Joined: Wed Jul 06, 2011 3:58 am

Re: This information should be included in everyones first p

Post by xenopeek »

remoulder wrote:
xenopeek wrote:It shouldn't be to hard to write a small GUI wrapper for inxi
This has already been done in antix as it contains inxi-gui, though I believe the output is still in a terminal window. Unfortunately short of downloading antix there doesn't seem any way to get this that I can see at the moment.
This post has at least the January 2011 version http://antix.freeforums.org/viewtopic.p ... view=print
Image
remoulder
Level 17
Level 17
Posts: 7621
Joined: Fri May 09, 2008 1:14 pm

Re: This information should be included in everyones first p

Post by remoulder »

xenopeek wrote:This post has at least the January 2011 version
Yeah I saw that Vincent but the download links are dead. :(
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
dcihon

Re: This information should be included in everyones first p

Post by dcihon »

Boy I sure did stir up the pot on this one.
Thanks you guys for all the responses and all of your help when I have needed it.
You guys are the ones that always are there to help. I for one appreciate what you do.
I will mark this post as solved.
bimsebasse

Re: [SOLVED] This information should be included in everyone

Post by bimsebasse »

Yes please, A bit too many "I have a problem in Mint" posts, and then your job is to guess which Mint it is and what desktop it is.

At least just a first-time reminder that all troubleshooting posts should mention which version of Mint you are using, and which login session if poss.
itoffshore

Re: [SOLVED] This information should be included in everyone

Post by itoffshore »

inxi-gui from Antix:

Code: Select all

#!/bin/bash
# File Name: inxi-gui
# Version: 1.0.0
# Purpose: easy to use gui for the inxi script
# Authors: Dave and minor modifications by anticapitalista
# Matching inxi version: 1.4.23
# Acknowledgements: Scott Rogers, Harald Hope, aka trash80 & h2 for inxi version. Antix forum users for suggestions, testing, and input
# Special Acknowledgements: anticapitalista for testing, suggestions, input

# Copyright (C) Sunday, Feb. 5, 2011  by Dave / david.dejong02@gmail.com
# License: gplv2
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
################################################################################################################################################

# Help function - displays possible variables that can be used
function help {
	echo "    -a|--audio		view sound card information"
	echo "    -c|--cpu    	view cpu information"
	echo "    -g|--graphics	view graphics card information"
	echo "    -n|--nic		view nic information" 
	echo "    -l|--system		view system information" 
	echo "    -hd|--hard-drive	view hard drive information" 
	echo "    -r|--repository	view repository" 
	echo "    -s|--sensor		view sensor information" 
	echo "    --all		view all (short) information" 
	echo "    --help		display this help"
	echo
	exit
}

# Main Function ( starts if functions below are not called by user )
function start {
	   	A="Audio"
		B="CPU"
		C="Graphics"
		D="NIC and IP address"
		E="System"
		F="Hard Drive"
		G="Repository"
		H="Sensor Output"
		I="All Short"
		ans=$(zenity  --width 280 --height 400 --list  --title "PC Information Options" --text "PC Information aquired by inxi script" --radiolist\
            --column "" --column "PC INFO" \
            FALSE "$A"\
            FALSE "$B"\
            FALSE "$C"\
            FALSE "$D"\
            FALSE "$E"\
            FALSE "$F"\
            FALSE "$G"\
            FALSE "$H"\
            TRUE "$I")
		#echo $ans
		case "$ans" in
		$A)
		roxterm -T 'PC Information' -e bash -c 'inxi-gui -a ; bash' 
		inxi-gui
                ;;
		$B)
		roxterm -T 'PC Information' -e bash -c 'inxi-gui -c ; bash' 
		inxi-gui
                ;;
		$C)
		roxterm  -T 'PC Information' -e bash -c 'inxi-gui -g ; bash' 
		inxi-gui
                ;;
		$D)
		roxterm -T 'PC Information' -e su -c 'inxi-gui -n ; bash' 
		inxi-gui
		;;
		$E)
		roxterm -T 'PC Information' -e bash -c 'inxi-gui -l ; bash' 
		inxi-gui
		;;
		$F)
		roxterm -T 'PC Information' -e bash -c 'inxi-gui -hd ; bash'
		inxi-gui
		;;
		$G)
		roxterm -T 'PC Information' -e bash -c 'inxi-gui -r ; bash' 
		inxi-gui
		;;
		$H)
		roxterm -T 'PC Information' -e bash -c 'inxi-gui -s ; bash' 
		inxi-gui
		;;
		$I)
		roxterm -T 'PC Information' -e bash -c 'inxi-gui -all ; bash' 
		inxi-gui		i
		;;
		*)
		esac    
		}

# Function for sound card information
function a {
		echo ""
		echo "############ PC INFORMATION - audio ##############"
		echo "############ Press CTRL + C to exit ################"
		echo "" 
		inxi -A 
		sleep 10000
		inxi-gui
		}

# Function for cpu
function b {
		echo ""
		echo "############ PC INFORMATION  -  cpu ##############"
		echo "############ Press CTRL + C to exit ###############" 
		echo ""
		inxi -C 
		sleep 10000
		}

# Function for graphics
function c {
		echo ""
		echo "############ PC INFORMATION - graphics ############"
		echo "############ Press CTRL  + C to exit ################" 
		echo ""
		inxi -G
		sleep 10000
		}

# Function for nic and ip
function d {
		echo ""
		echo "############ PC INFORMATION - nic + IP #############"
		echo "############ Press CTRL + C to exit ################" 
		echo ""
		inxi -i
		echo ""
		ifconfig
		sleep 10000
		}

# Function for system
function e {
		echo ""
		echo "############ PC INFORMATION - system ##############"
		echo "############ Press CTRL  + C to exit ################" 
		echo ""
		inxi -S
		echo ""
		inxi -t c10
		echo ""
		inxi -I
		sleep 10000
		}

# Function for hard drive
function f {
		echo ""
		echo "############ PC INFORMATION - hard drive###########"
		echo "############ Press CTRL  + C to exit ###############" 
		echo ""
		inxi -D
		inxi -p
		sleep 10000
		}

# Function for repositories
function g {
		echo ""
		echo "############ PC INFORMATION - repositories###########"
		echo "############ Press CTRL  + C to exit #################" 
		echo ""
		inxi -r 
		sleep 1 && zenity --question --title "Edit?" --text "Edit Repositories?"
		if [ $? = 0 ] ; then
		gksu "leafpad /etc/apt/sources.list " &
                sleep 5
		else 
		inxi-gui &
		fi
                killall roxterm
		sleep 10000
		}

# Function for sensors
function h {
		echo ""
		echo "############ PC INFORMATION - sensors #############"
		echo "############ Press CTRL + C to exit #################" 
		echo ""
		inxi -s
		sleep 10000
		}

# Function for all short
function i {
		echo ""
		echo "############# PC INFORMATION - all ###############"
		echo "############# Press CTRL + C to exit ##############" 
		echo ""
		inxi -F
		sleep 10000
		}
        
 # Setting possible variable options
AA=false
BB=false
CC=false
DD=false
EE=false
FF=false
GG=false
HH=false
II=false
HELP=false

for args; do
case "$1" in
		-a|--audio) AA=true;;
		-c|--cpu) 	BB=true;;
		-g|--graphics) 	CC=true;;
		-n|--nic) DD=true;;
		-l|--system) EE=true;; 
		-hd|--hard-drive) FF=true;;
		-r|--repository) GG=true;;
		-s|--sensor) HH=true;;
		-all|--all) II=true;;
		-h|--help) 	HELP=true;;
		--) 		shift; break;;
		-*) 		echo "Unrecognized option: $1"; ERROR=true;;
		*) 		break;;
	esac
shift
done

$AA && {
	a
	exit
}

$BB && {
	b
	exit
}

$CC && {
	c
	exit
}

$DD && {
	d
	exit
}

$EE && {
	e
	exit
}

$FF && {
	f
	exit
}

$GG && {
	g
	exit
}

$HH && {
	h
	exit
}

$II && {
	i
	exit
}

$HELP && {
	help
	exit
}


# Execute if script function is NOT called
start 
You will need to install roxterm for the above to work.

If you use lxterminal the following change to lines 68 - 101 will work (tested on Archbang):

Code: Select all

lxterminal -t 'PC Information' --command "bash -c 'inxi-gui -a ; bash'" 
inxi-gui
 ;;
$B)
lxterminal -t 'PC Information' --command "bash -c 'inxi-gui -c ; bash'"
inxi-gui
 ;;
$C)
lxterminal -t 'PC Information' --command "bash -c 'inxi-gui -g ; bash'" 
inxi-gui
 ;;
$D)
lxterminal -t 'PC Information' --command "su -c 'inxi-gui -n ; bash'" 
inxi-gui
;;
$E)
lxterminal -t 'PC Information' --command "bash -c 'inxi-gui -l ; bash'" 
inxi-gui
;;
$F)
lxterminal -t 'PC Information' --command "bash -c 'inxi-gui -hd ; bash'"
inxi-gui
;;
$G)
lxterminal -t 'PC Information' --command "bash -c 'inxi-gui -r ; bash'" 
inxi-gui
;;
$H)
lxterminal -t 'PC Information' --command "bash -c 'inxi-gui -s ; bash'" 
inxi-gui
;;
$I)
lxterminal -t 'PC Information' --command "bash -c 'inxi-gui -all ; bash'" 
inxi-gui
anticapitalista
Level 2
Level 2
Posts: 63
Joined: Thu Nov 13, 2008 7:51 pm

Re: [SOLVED] This information should be included in everyone

Post by anticapitalista »

The latest antiX version of inxi-gui uses yad rather than zenity.

Depends: yad, leafpad, gksu, roxterm though you can edit the script to your own choosing of course.

The latest .deb can be downloaded from here.

http://www.daveserver.info/antiX/main/
Post Reply

Return to “Suggestions & Feedback”