inxi system info made easy

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

inxi system info made easy

Postby viking60 » 07 Jun 2012, 15:20

I came over inxi today and it does give a lot of good info.
Install inxi!
type

Code: Select all

 inxi --recommends
to get a recommendation of software to install that inxi uses.

Then you can have a go at

Code: Select all

inxi -F

Image
Great tool for receiving help...

If it is not in you repos - do not dispare - it is only a script and this is the latest version:
http://inxi.googlecode.com/svn/trunk/inxi

To install it with a one liner do as root:

Code: Select all

cd /usr/bin && wget -Nc smxi.org/inxi && chmod +x inxi

This works for Mandriva (and Mageia I guess).

Some distros (Fedora!) have their default system path in /usr/local/bin so there you wil have to do it like this

Code: Select all

cd /usr/local/bin && wget -Nc smxi.org/inxi && chmod +x inxi


In short you have to put the script in /usr/bin or in /usr/local/bin chmod it to execute and that's it.

To update it you can do an

Code: Select all

inxi -U

This will update your script.

The next thing you want to do is a

Code: Select all

inxi --recommends

Here is the output from my Mandriva:

Code: Select all

inxi --recommends
inxi will now begin checking for the programs it needs to operate. First a check of
the main languages and tools inxi uses. Python is only for debugging data collection.
-----------------------------------------------------------------------------------------
Bash version: 4.1.5(2)-release
Gawk version: 3.1.7
Sed version: 4.2.1
Sudo version: 1.7.4p6
Python version: 2.6.5
-----------------------------------------------------------------------------------------
Test One: Required System Directories.
If one of these system directories is missing, inxi cannot operate:

Required file system: /proc................................................. Present
Required file system: /sys.................................................. Present

All the required directories are present.
-----------------------------------------------------------------------------------------
Test Two: Required Core Applications.
If one of these applications is missing, inxi cannot operate:

Required application: df (info: partition data)............................. /bin/df
Required application: free (info: system memory)............................ /usr/bin/free
Required application: gawk (info: core tool)................................ /usr/bin/gawk
Required application: grep (info: string search)............................ /bin/grep
Required application: lspci (info: hardware data)........................... /usr/bin/lspci
Required application: ps (info: process data)............................... /bin/ps
Required application: readlink.............................................. /usr/bin/readlink
Required application: sed (info: string replace)............................ /bin/sed
Required application: tr (info: character replace).......................... /usr/bin/tr
Required application: uname (info: kernel data)............................. /bin/uname
Required application: uptime................................................ /usr/bin/uptime
Required application: wc (info: word character count)....................... /usr/bin/wc

All the required applications are present.
-----------------------------------------------------------------------------------------
Test Three: Script Recommends for Graphics Features. If you do not use X these do not matter.
If one of these applications is missing, inxi will have incomplete output:

Recommended X application: glxinfo (info: -G glx info)...................... /usr/bin/glxinfo
Recommended X application: xdpyinfo (info: -G multi screen resolution)...... /usr/bin/xdpyinfo
Recommended X application: xprop (info: -S desktop data).................... /usr/bin/xprop
Recommended X application: xrandr (info: -G single screen resolution)....... /usr/bin/xrandr

All the recommended applications are present.
-----------------------------------------------------------------------------------------
Test Four: Script Recommends for Remaining Features.
If one of these applications is missing, inxi will have incomplete output:

Recommended application: file (info: -o unmounted file system).............. /usr/bin/file
Recommended application: hddtemp (info: -Dx show hdd temp).................. /usr/bin/hddtemp
Recommended application: ifconfig (info: -i ip lan-deprecated).............. /sbin/ifconfig
Recommended application: ip (info: -i ip lan)............................... /sbin/ip
Recommended application: sensors (info: -s sensors output).................. /usr/bin/sensors
Recommended application: lsusb (info: -A usb audio;-N usb networking)....... /usr/sbin/lsusb
Recommended application: modinfo (info: -Ax,-Nx module version)............. /sbin/modinfo
Recommended application: runlevel (info: -I runlevel)....................... /sbin/runlevel
Recommended application: sudo (info: -Dx hddtemp-user;-o file-user)......... /usr/bin/sudo

All the recommended applications are present.
-----------------------------------------------------------------------------------------
Test Five: System Directories for Various Information.
If one of these directories is missing, inxi will have incomplete output:

System directory: /sys/class/dmi/id (info: -M system, motherboard, bios).... Present
System directory: /dev (info: -l,-u,-o,-p,-P,-D disk partition data)........ Present
System directory: /dev/disk/by-label (info: -l,-o,-p,-P partition labels)... Present
System directory: /dev/disk/by-uuid (info: -u,-o,-p,-P partition uuid)...... Present

All the system directories are present.
-----------------------------------------------------------------------------------------
All tests completed.

And finally Image

Code: Select all

:[ thomas@thomas-pc : 17:08:08 : ~ ]:.
:) inxi -F
System:    Host: thomas-pc Kernel: 2.6.33.7-desktop-2mnb x86_64 (64 bit)
           Desktop: Gnome 2.30.0 Distro: MandrivaLinux 2010.2 Henry_Farman
Machine:   Mobo: ASUSTeK model: P6T DELUXE V2 version: Rev 1.xx Bios: American Megatrends version: 0610 date: 09/03/2009
CPU:       Quad core Intel Core i7 CPU 920 (-HT-MCP-) cache: 8192 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx)
           Clock Speeds: 1: 2668.00 MHz 2: 2668.00 MHz 3: 2668.00 MHz 4: 2668.00 MHz 5: 2668.00 MHz 6: 2668.00 MHz 7: 2668.00 MHz 8: 2668.00 MHz
Graphics:  Card: nVidia GT200b [GeForce GTX 275] X.Org: 1.7.7 drivers: v4l,nvidia Resolution: 1920x1200@50.0hz
           GLX Renderer: GeForce GTX 275/PCI/SSE2 GLX Version: 3.2.0 NVIDIA 195.36.24
Audio:     Card: Intel 82801JI (ICH10 Family) HD Audio Controller driver: HDA Intel Sound: ALSA ver: 1.0.21
Network:   Card-1: Marvell 88E8056 PCI-E Gigabit Ethernet Controller driver: sky2
           IF: eth1 state: down mac: 00:26:18:a8:f8:bb
           Card-2: Marvell 88E8056 PCI-E Gigabit Ethernet Controller driver: sky2
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: 00:26:18:a8:f8:bc
Drives:    HDD Total Size: 3000.6GB (24.0% used) 1: id: /dev/sda model: ST31000528AS size: 1000.2GB
           2: USB id: /dev/sdb model: 001 size: 2000.4GB
Partition: ID: / size: 48G used: 16G (34%) fs: ext4 ID: /home size: 393G used: 282G (72%) fs: ext4
           ID: swap-1 size: 0.02GB used: 0.00GB (0%) fs: swap
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 35.0C mobo: 34.0C gpu: 42C
           Fan Speeds (in rpm): cpu: 2057 psu: 0 sys-1: 0 sys-2: 0 sys-3: 0
Info:      Processes: 342 Uptime: 7:09 Memory: 1968.0/5975.8MB Client: Shell inxi: 1.8.5
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: inxi system info made easy

Postby viking60 » 07 Jun 2012, 17:18

I realized that even though this is simple - my rambling above may look complicated, so here is a video of the implementation of inxi in Mandriva 2011
(Arch has it in the repos)
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
rolf
Guru-Berserk
Posts: 1107
Joined: 16 Mar 2010, 16:07

Re: inxi system info made easy

Postby rolf » 08 Jun 2012, 03:59

Code: Select all

[root@localhost bin]# inxi
CPU~Quad core Intel Core2 Quad CPU (-MCP-) clocked at 2666.645 Mhz Kernel~3.2.18-nrj-desktop-1mib x86_64 Up~10:07 Mem~1373.8/7989.7MB HDD~3750.8GB(55.3% used) Procs~180 Client~Shell inxi~1.8.5


Looks like a handy app and nice movie. :B

:shock:
ImageImage

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: inxi system info made easy

Postby viking60 » 08 Jun 2012, 08:30

Oh yes this thing has endless combinations Try inxi -u and the the combination inxi -uo or inxi -Fuo for that matter.
Or inxi -t m10 or inxi -t cm15 or....
I am tickled pink over this one! :B
That man page is great.
This should be a standard in every distro - that would really make the supporting process easier.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: inxi system info made easy

Postby viking60 » 09 Jun 2012, 15:50

Here is the command overview for inxi.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
rolf
Guru-Berserk
Posts: 1107
Joined: 16 Mar 2010, 16:07

Re: inxi system info made easy

Postby rolf » 09 Jun 2012, 16:58

Yes, I found that page from your first posts and have played with inxi a bit. I like it. Sometimes, I will use dmidecode, which has a man page, and inxi seems like a very good complement, easier to use and prettier, in some cases. :s

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: inxi system info made easy

Postby viking60 » 09 Jun 2012, 17:23

Hmm now I must try dmidecode.....
Looks a lot like lshw at first glance...
Oh yes there is a lot of useful info there too. I am playing with dmidecode --type 1 etc now. But I think inxi is easier with a better overview.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: inxi system info made easy

Postby viking60 » 25 Jun 2012, 13:12

Did I mention that inxi works perfectly fine in xchat? Or gnome-xchat as it is called in Mandriva? Get in there and if you need to provide info just prepend the command with:

Code: Select all

/exec -o

So to show info about your partitions it could look like this_

Code: Select all

/exec -o inxi -u

It works nicely! And puts your hw info directly into the chat client. This can be done with any other command too as far as I can see.
So it would also output

Code: Select all

/exec -o df
directly in the chat client.
I didn't know that.... :-D
The inxi info is very well suited for that kind of output though.
I have not figured out how to do it in Chatzilla yet - does anybody know how to execute commands in chatzilla?
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
rolf
Guru-Berserk
Posts: 1107
Joined: 16 Mar 2010, 16:07

Re: inxi system info made easy

Postby rolf » 26 Jun 2012, 18:14

Someone's sig that stuck with me:
idon'tcu
:P

In other news, I like inxi and try to find parallel better functionality wrt other programs, such as fdisk -l.

For example, inxi -xxD gives the serial number of the hard drive, important to me, atm, as I'm switching out a couple 500G drives with a 1.0T and 1.5T, so need to identify who's what when I look in the case, to be able to pull/replace the right ones.
BTW, if hddtemp is installed and inxi is run as root, it displays temps. :B

Code: Select all

inxi -xxD > change

writes the output to a file but there is some character encoding mismatch when I print this file with lpr or open in gedit, for example.

Image
I can copy/paste the output from terminal into gedit and it is fine. :confused

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: inxi system info made easy

Postby viking60 » 26 Jun 2012, 19:31

Some great research there Rolf. Naturally I am all over it... :-D
rolf wrote:BTW, if hddtemp is installed and inxi is run as root, it displays temps. :B

It does that here too without being root on the HDD, on the USB drives I just get 0 Degrees (root or not)
rolf wrote:

Code: Select all

inxi -xxD > change

writes the output to a file but there is some character encoding mismatch when I print this file with lpr or open in gedit, for example.

Image
I can copy/paste the output from terminal into gedit and it is fine. :confused


For some reason I get a nice output if I do a

Code: Select all

inxi -xxD > change.html
I get the same garbage as you when I do it like you did.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: inxi system info made easy

Postby dedanna1029 » 14 Mar 2013, 21:40

Try this please?:

Code: Select all

inxi -xxD > change.txt

I believe you have to give a file an extension, in order for it to know how to display, and with what, and what type of character encoding it would be. I always tend to use .txt. .html is a heavier file than .txt is, and I prefer lightweight, yet informational, files.

I have been playing with dmidecode today. I have a mem stick that's not working on the server, and had to see which bank it was, so I'd know which to pull and replace. Ugh.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: inxi system info made easy

Postby viking60 » 14 Mar 2013, 22:00

Code: Select all

[thomas@heidi-lap ~]$ ls change.txt
change.txt
[thomas@heidi-lap ~]$ cat change.txt
CPU~Dual core AMD C-50 (-MCP-) clocked at Min:800.000Mhz Max:1000.000Mhz Kernel~3.7.10-1-ARCH i686 Up~6:04 Mem~743.3/1746.0MB HDD~320.1GB(26.2% used) Procs~149 Client~Shell inxi~1.8.45 
[thomas@heidi-lap ~]$

It works just fine here (Arch) and in Mandriva too +1 :s
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"


Return to “Tips & Tricks”