[SOLVED] This information should be included in everyones

Write suggestions and new ideas in here
More ideas here http://community.linuxmint.com/idea/welcome
Forum rules
No support questions here please.
Do not post ideas for application developers. Please use GitHub for Cinnamon and Nemo ideas.

[SOLVED] This information should be included in everyones

Postby dcihon on Mon Mar 05, 2012 4:04 pm

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.
Kernel 3.2.0-3-amd64 x86_64 (64 bit) Distro Linux Mint Xfce Edition
ATI - Tracking - Testing
User avatar
dcihon
Level 4
Level 4
 
Posts: 276
Joined: Sun Aug 07, 2011 2:15 pm
Location: Florissant, MO USA

Linux Mint is funded by ads and donations.
 

Re: This information should be included in everyones first p

Postby xenopeek on Mon Mar 05, 2012 4:26 pm

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.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14996
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: This information should be included in everyones first p

Postby HughT on Mon Mar 05, 2012 4:30 pm

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? :)
Please Edit your post title and add [SOLVED] once your question is resolved.
HughT
Level 5
Level 5
 
Posts: 628
Joined: Thu Oct 20, 2011 1:54 pm
Location: England

Re: This information should be included in everyones first p

Postby GeneC on Mon Mar 05, 2012 4:34 pm

HughT wrote:.............What can we do with them? :)


Image .......... :lol:
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

Qiana (Cinnamon)
Sparky XFCE (Debian Testing)
Sparky Gnome 3.14 (SID)
EvolveOS (Budgie)
User avatar
GeneC
Level 7
Level 7
 
Posts: 1565
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: This information should be included in everyones first p

Postby remoulder on Mon Mar 05, 2012 4:52 pm

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
remoulder
Level 17
Level 17
 
Posts: 7667
Joined: Fri May 09, 2008 1:14 pm

Re: This information should be included in everyones first p

Postby xenopeek on Mon Mar 05, 2012 5:05 pm

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 "[/code]" >> $tempfile
zenity --text-info --filename=$tempfile --width=700 --height=500 --title="Please include this in your support request on the forum:"

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...
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14996
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: This information should be included in everyones first p

Postby remoulder on Mon Mar 05, 2012 6:10 pm

Vincent Vermeulen 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.
User avatar
remoulder
Level 17
Level 17
 
Posts: 7667
Joined: Fri May 09, 2008 1:14 pm

Re: This information should be included in everyones first p

Postby proxima_centauri on Tue Mar 06, 2012 2:58 am

* Added inxi command to Read: How To Get Help! and the official section in Forum Rules, Guidelines, and Policy
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: This information should be included in everyones first p

Postby xenopeek on Tue Mar 06, 2012 3:15 am

remoulder wrote:
Vincent Vermeulen 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
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14996
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: This information should be included in everyones first p

Postby remoulder on Tue Mar 06, 2012 6:03 am

Vincent Vermeulen 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.
User avatar
remoulder
Level 17
Level 17
 
Posts: 7667
Joined: Fri May 09, 2008 1:14 pm

Re: This information should be included in everyones first p

Postby dcihon on Tue Mar 06, 2012 8:45 am

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.
Kernel 3.2.0-3-amd64 x86_64 (64 bit) Distro Linux Mint Xfce Edition
ATI - Tracking - Testing
User avatar
dcihon
Level 4
Level 4
 
Posts: 276
Joined: Sun Aug 07, 2011 2:15 pm
Location: Florissant, MO USA

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

Postby bimsebasse on Tue Mar 06, 2012 10:51 am

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.
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!
User avatar
bimsebasse
Level 7
Level 7
 
Posts: 1709
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

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

Postby itoffshore on Tue Jun 05, 2012 10:27 pm

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
itoffshore
Level 1
Level 1
 
Posts: 24
Joined: Tue May 13, 2008 3:49 pm

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

Postby anticapitalista on Wed Jun 06, 2012 6:33 pm

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/
anticapitalista
Level 1
Level 1
 
Posts: 49
Joined: Thu Nov 13, 2008 7:51 pm

Linux Mint is funded by ads and donations.
 

Return to Suggestions & New Ideas

Who is online

Users browsing this forum: No registered users and 5 guests