Inxi is a bash script that collects, formats and provides multiple ways to output data about your system configuration.
If it were to become a default part of ubuntu installations, it would make it easier for new users to provide information about their system.
Step One : Get Dependencies
Inxi needs gawk, which isn't installed by default on ubuntu :
Code:
sudo apt-get install gawk pastebinit
Step Two : Make it easy to access
- Best place to put inxi for now is in your ~/bin folder :
- Make the ~/bin folder a part of your $PATH so yo ucan run executables in this folder from anywhere without prefixing them with ~/bin
Code:
source ~/.profile && gedit ~/.profile
- At the end append this text (if it's not already there):
Code:
#
# set PATH so it includes user's private bin if it exists
#
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
if [ -d "$HOME/bin/depot_tools" ] ; then
PATH="$HOME/bin/depot_tools":"$PATH"
fi
fi
Step Three : Get the Script
Get the inxi script and put it in the ~/bin folder, then make it an executable :
Code:
wget smxi.org/inxi && chmod +x ./inxi
Step Four : Confirm that all this worked
Test that you can use it outside the ~/bin folder :
Should provide you with the output :
Code:
~$ inxi
CPU[-Dual core Intel Core2 Duo E6550 (SMP) clocked at 1998.000 Mhz-] Kernel[-2.6.31-16-generic-pae i686-] Up[-1 day-] Mem[-1274.2/4025.0MB-] HDD[-670.1GB(32.8% used)-] Procs[-188-] Client[-Shell-] inxi[-1.2.7-]
Using it in xChat
Code:
/exec -o ~/bin/inxi | pastebinit
Because the output of inxi can be quite large(spanning several lines) this will pipe the output through pastebinit and the url will appear in the chat channel.
Bookmarks