summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2014-04-05 16:44:00 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2014-04-05 16:44:00 -0400
commit80584b4d5a212fa7acd9a71cb217ed50509d9884 (patch)
treebd4f3494b9e858486c05424bc084ce801019e016
parenta8e89bca2911b3aa1969c05a17d316669eda4f70 (diff)
parent5c16a288fa85499c3ba92465388462919a7a76e2 (diff)
downloadinxi-80584b4d5a212fa7acd9a71cb217ed50509d9884.tar.bz2
inxi-80584b4d5a212fa7acd9a71cb217ed50509d9884.tar.xz
inxi-80584b4d5a212fa7acd9a71cb217ed50509d9884.tar.zst
Merge tag 'upstream/2.1.18'
Upstream version 2.1.18
-rwxr-xr-xinxi209
-rwxr-xr-xinxi.1117
-rwxr-xr-xinxi.1.gzbin8251 -> 8577 bytes
-rwxr-xr-xinxi.changelog58
4 files changed, 227 insertions, 157 deletions
diff --git a/inxi b/inxi
index 77e9f0a..5d4377c 100755
--- a/inxi
+++ b/inxi
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
########################################################################
#### Script Name: inxi
-#### Version: 2.1.16
-#### Date: 2014-04-02
+#### Version: 2.1.18
+#### Date: 2014-04-04
#### Patch Number: 00
########################################################################
#### SPECIAL THANKS
@@ -646,48 +646,11 @@ main()
if [[ -s $HOME/.$SCRIPT_NAME/$SCRIPT_NAME.conf ]];then
source $HOME/.$SCRIPT_NAME/$SCRIPT_NAME.conf
fi
- ## sometimes tput will trigger an error (mageia) if irc client
- if [[ $B_IRC == 'false' ]];then
- if type -p tput &>/dev/null;then
- TERM_COLUMNS=$(tput cols)
- TERM_LINES=$(tput lines)
- fi
- # double check, just in case it's missing functionality or whatever
- if [[ -n ${TERM_COLUMNS##[0-9]*} ]];then
- TERM_COLUMNS=80
- TERM_LINES=100
- fi
- fi
- # Convert to new variable names if set in config files, legacy test
- if [[ -n $LINE_MAX_CONSOLE ]];then
- COLS_MAX_CONSOLE=$LINE_MAX_CONSOLE
- fi
- if [[ -n $LINE_MAX_IRC ]];then
- COLS_MAX_IRC=$LINE_MAX_IRC
- fi
- # this lets you set different widths for in or out of display server
-# if [[ $B_RUNNING_IN_DISPLAY == 'false' && -n $COLS_MAX_NO_DISPLAY ]];then
-# COLS_MAX_CONSOLE=$COLS_MAX_NO_DISPLAY
-# fi
- # TERM_COLUMNS is set in top globals, using tput cols
- # echo tc: $TERM_COLUMNS cmc: $COLS_MAX_CONSOLE
- if [[ $TERM_COLUMNS -lt $COLS_MAX_CONSOLE ]];then
- COLS_MAX_CONSOLE=$TERM_COLUMNS
- fi
- # adjust, some terminals will wrap if output cols == term cols
- COLS_MAX_CONSOLE=$(( $COLS_MAX_CONSOLE - 2 ))
- # echo cmc: $COLS_MAX_CONSOLE
- # comes after source for user set stuff
- if [[ $B_IRC == 'false' ]];then
- COLS_MAX=$COLS_MAX_CONSOLE
- else
- COLS_MAX=$COLS_MAX_IRC
- fi
-# echo SCHEME $SCHEME
-# echo B_IRC $B_IRC
-# echo sep3: $SEP3
- COLS_INNER=$(( $COLS_MAX - $INDENT - 1 ))
- # echo cm: $COLS_MAX ci: $COLS_INNER
+ set_display_width 'live' # can be reset with -y
+
+ # echo SCHEME $SCHEME
+ # echo B_IRC $B_IRC
+ # echo sep3: $SEP3
# Check for dependencies BEFORE running ANYTHING else except above functions
# Not all distro's have these depends installed by default. Don't want to run
# this if the user is requesting to see this information in the first place
@@ -908,6 +871,56 @@ initialize_data()
eval $LOGFE
}
+# args: $1 - default OR override default cols max integer count
+set_display_width()
+{
+ local cols_max_override=$1
+
+ if [[ $cols_max_override == 'live' ]];then
+ ## sometimes tput will trigger an error (mageia) if irc client
+ if [[ $B_IRC == 'false' ]];then
+ if type -p tput &>/dev/null;then
+ TERM_COLUMNS=$(tput cols)
+ TERM_LINES=$(tput lines)
+ fi
+ # double check, just in case it's missing functionality or whatever
+ if [[ -z $TERM_COLUMNS || -n ${TERM_COLUMNS//[0-9]/} ]];then
+ TERM_COLUMNS=80
+ TERM_LINES=100
+ fi
+ fi
+ # Convert to new variable names if set in config files, legacy test
+ if [[ -n $LINE_MAX_CONSOLE ]];then
+ COLS_MAX_CONSOLE=$LINE_MAX_CONSOLE
+ fi
+ if [[ -n $LINE_MAX_IRC ]];then
+ COLS_MAX_IRC=$LINE_MAX_IRC
+ fi
+ # this lets you set different widths for in or out of display server
+ # if [[ $B_RUNNING_IN_DISPLAY == 'false' && -n $COLS_MAX_NO_DISPLAY ]];then
+ # COLS_MAX_CONSOLE=$COLS_MAX_NO_DISPLAY
+ # fi
+ # TERM_COLUMNS is set in top globals, using tput cols
+ # echo tc: $TERM_COLUMNS cmc: $COLS_MAX_CONSOLE
+ if [[ $TERM_COLUMNS -lt $COLS_MAX_CONSOLE ]];then
+ COLS_MAX_CONSOLE=$TERM_COLUMNS
+ fi
+ # adjust, some terminals will wrap if output cols == term cols
+ COLS_MAX_CONSOLE=$(( $COLS_MAX_CONSOLE - 2 ))
+ # echo cmc: $COLS_MAX_CONSOLE
+ # comes after source for user set stuff
+ if [[ $B_IRC == 'false' ]];then
+ COLS_MAX=$COLS_MAX_CONSOLE
+ else
+ COLS_MAX=$COLS_MAX_IRC
+ fi
+ else
+ COLS_MAX=$cols_max_override
+ fi
+ COLS_INNER=$(( $COLS_MAX - $INDENT - 1 ))
+ # echo cm: $COLS_MAX ci: $COLS_INNER
+}
+
# arg: $1 - version number: main/patch/date
parse_version_data()
{
@@ -1334,6 +1347,9 @@ error_handler()
20)
error_message="The option you selected has been deprecated. $2\nSee the -h (help) menu for currently supported options."
;;
+ 21)
+ error_message="Width option requires an integer value of 80 or more.\nYou entered: $2"
+ ;;
*) error_message="error unknown: $@"
set -- 99
;;
@@ -1630,6 +1646,7 @@ debug_data_collector()
cat /proc/net/arp &> $debug_data_dir/proc-net-arp.txt
# bsd data
cat /var/run/dmesg.boot &> $debug_data_dir/bsd-var-run-dmesg.boot.txt
+ echo $COLS_INNER &> $debug_data_dir/cols-inner.txt
check_recommends_user_output &> $debug_data_dir/check-recommends-user-output.txt
# first download and verify xiin
@@ -1766,7 +1783,7 @@ debug_data_collector()
echo 'Creating inxi output file now. This can take a few seconds...'
echo "Starting $SCRIPT_NAME from: $start_directory"
cd $start_directory
- $SCRIPT_PATH/$SCRIPT_NAME -FRploudxxx -c 0 -@ 8 > $SCRIPT_DATA_DIR/$debug_data_dir/inxi-FRploudxxx.txt
+ $SCRIPT_PATH/$SCRIPT_NAME -FRfrploudxxx -c 0 -@ 8 -y 120 > $SCRIPT_DATA_DIR/$debug_data_dir/inxi-FRfrploudxxxy120.txt
cp $LOG_FILE $SCRIPT_DATA_DIR/$debug_data_dir
if [[ -f $SCRIPT_DATA_DIR/$debug_data_dir.tar.gz ]];then
echo "Found and removing previous tar.gz data file: $debug_data_dir.tar.gz"
@@ -2158,7 +2175,7 @@ get_parameters()
# no need to run through these if there are no args
# reserved for future use: -g for extra Graphics; -m for extra Machine; -d for extra Disk
elif [[ -n $1 ]];then
- while getopts Abc:CdDfFGhHiIlMnNopPrRsSt:uUv:V${weather_flag}xzZ%@:!: opt
+ while getopts Abc:CdDfFGhHiIlMnNopPrRsSt:uUv:V${weather_flag}xy:zZ%@:!: opt
do
case $opt in
A) B_SHOW_AUDIO='true'
@@ -2390,6 +2407,12 @@ get_parameters()
B_EXTRA_DATA='true'
fi
;;
+ y) if [[ -z ${OPTARG//[0-9]/} && $OPTARG -ge 80 ]];then
+ set_display_width "$OPTARG"
+ else
+ error_handler 21 "$OPTARG"
+ fi
+ ;;
z) B_OUTPUT_FILTER='true'
;;
Z) B_OVERRIDE_FILTER='true'
@@ -2645,6 +2668,7 @@ show_options()
if [[ $B_ALLOW_WEATHER == 'true' ]];then
print_lines_basic "2" "-w -W" "Location (uses -z/irc filter), weather observation time, wind chill, heat index, dew point (shows extra lines for data where relevant)."
fi
+ print_lines_basic "1" "-y" "Required extra option: integer, 80 or greater. Set the output line width max. Overrides IRC/Terminal settings or actual widths. If used with -h, put -y option first. Example:^inxi^-y^130"
print_lines_basic "1" "-z" "Security filters for IP/Mac addresses, location, user home directory name. Default on for irc clients."
print_lines_basic "1" "-Z" "Absolute override for output filters. Useful for debugging networking issues in irc for example."
print_screen_output " "
@@ -9789,7 +9813,7 @@ print_hard_disk_data()
eval $LOGFS
local hdd_data='' hdd_data_2='' a_hdd_working='' hdd_temp_data='' hdd_string=''
local hdd_serial=''
- local dev_data='' size_data='' hdd_model='' usb_data='' hdd_name='' divisor=5
+ local dev_data='' size_data='' hdd_model='' usb_data='' hdd_name=''
local Line_Starter='Drives:' # inherited by print_optical_drives
# load A_HDD_DATA
get_hdd_data_basic
@@ -9837,11 +9861,8 @@ print_hard_disk_data()
hdd_serial='N/A'
fi
hdd_serial=" ${C1}serial$SEP3${C2} $hdd_serial"
- divisor=1 # print every line
- else
- divisor=2 # for modulus line print out, either 2 items for full, or default for short
fi
- dev_data="${C1}id$SEP3${C2} /dev/${a_hdd_working[0]} "
+ dev_data="${C1}ID-$((i+1))$SEP3${C2} /dev/${a_hdd_working[0]} "
fi
if [[ -n ${a_hdd_working[2]} ]];then
hdd_name_temp=${a_hdd_working[2]}
@@ -9851,9 +9872,8 @@ print_hard_disk_data()
# echo "loop: $i"
hdd_name="${C1}model$SEP3${C2} $hdd_name_temp"
hdd_string="$usb_data$dev_data$hdd_name$size_data$hdd_serial$hdd_temp_data"
- #hdd_model="$hdd_model${C1}$(($i+1))$SEP3${C2} $hdd_string "
- part_1_data="$hdd_model${C1}$(($i+1))$SEP3${C2} $hdd_string "
- # printing line one, then new lines according to $divisor setting, and after, if leftovers, print that line.
+ part_1_data="$hdd_model$hdd_string "
+
if [[ $i -eq 0 ]];then
if [[ $( calculate_line_length "$row_starter$part_1_data" ) -gt $COLS_INNER ]];then
hdd_data=$( create_print_line "$Line_Starter" "$row_starter" )
@@ -10772,25 +10792,24 @@ print_partition_data()
full_fs='N/A' # reset partition fs type
fi
full_fs="${C1}fs$SEP3${C2} $full_fs "
-
- if [[ $B_SHOW_LABELS == 'true' || $B_SHOW_UUIDS == 'true' ]];then
- if [[ -n ${a_partition_working[6]} ]];then
- if [[ -z $( grep -E '(^//|:/|non-dev)' <<< ${a_partition_working[6]} ) ]];then
- part_dev="/dev/${a_partition_working[6]}"
- dev_remote='dev'
- elif [[ -n $( grep '^non-dev' <<< ${a_partition_working[6]} ) ]];then
- holder=$( sed 's/non-dev-//' <<< ${a_partition_working[6]} )
- part_dev="$holder"
- dev_remote='raid'
- else
- part_dev="${a_partition_working[6]}"
- dev_remote='remote'
- fi
- else
+ if [[ -n ${a_partition_working[6]} ]];then
+ if [[ -z $( grep -E '(^//|:/|non-dev)' <<< ${a_partition_working[6]} ) ]];then
+ part_dev="/dev/${a_partition_working[6]}"
dev_remote='dev'
- part_dev='N/A'
+ elif [[ -n $( grep '^non-dev' <<< ${a_partition_working[6]} ) ]];then
+ holder=$( sed 's/non-dev-//' <<< ${a_partition_working[6]} )
+ part_dev="$holder"
+ dev_remote='raid'
+ else
+ part_dev="${a_partition_working[6]}"
+ dev_remote='remote'
fi
- full_dev="${C1}$dev_remote$SEP3${C2} $part_dev "
+ else
+ dev_remote='dev'
+ part_dev='N/A'
+ fi
+ full_dev="${C1}$dev_remote$SEP3${C2} $part_dev "
+ if [[ $B_SHOW_LABELS == 'true' || $B_SHOW_UUIDS == 'true' ]];then
if [[ $B_SHOW_LABELS == 'true' && $dev_remote != 'remote' ]];then
if [[ -n ${a_partition_working[7]} ]];then
part_label="${a_partition_working[7]}"
@@ -10814,7 +10833,7 @@ print_partition_data()
else
partitionIdClean=${a_partition_working[0]}
fi
- id_size_fs="${C1}ID$SEP3${C2} $partitionIdClean ${C1}size$SEP3${C2} ${a_partition_working[1]} $partition_used$full_fs$full_dev"
+ id_size_fs="${C1}ID-$((counter+1))$SEP3${C2} $partitionIdClean ${C1}size$SEP3${C2} ${a_partition_working[1]} $partition_used$full_fs$full_dev"
label_uuid="$full_label$full_uuid"
# label/uuid always print one per line, so only wrap if it's very long
if [[ $B_SHOW_UUIDS == 'true' || $B_SHOW_LABELS == 'true' ]] && \
@@ -10978,9 +10997,9 @@ print_raid_data()
if [[ -n $BSD_TYPE ]];then
no_raid_detected='No zfs software RAID detected-other types not yet supported.'
empty_raid_data='No zfs RAID data available-other types not yet supported.'
- report_size='full size'
- blocks_avail='available size'
- chunk_raid_usage='raid allocated'
+ report_size='size'
+ blocks_avail='available'
+ chunk_raid_usage='allocated'
else
no_raid_detected="No RAID data: $FILE_MDSTAT missing-is md_mod kernel module loaded?"
empty_raid_data="No RAID devices: $FILE_MDSTAT, md_mod kernel module present"
@@ -11113,14 +11132,12 @@ print_raid_data()
component_separator=' '
fi
done
-
if [[ $failed != '' ]];then
failed=" ${C1}FAILED$SEP3${C2}$failed${C2}"
fi
if [[ $spare != '' ]];then
spare=" ${C1}spare$SEP3${C2}$spare${C2}"
fi
-
if [[ -n $device_components || -n $spare || -n $failed ]];then
if [[ $B_EXTRA_DATA != 'true' && -z $BSD_TYPE ]];then
if [[ $device_report != 'N/A' && -n $device_components ]];then
@@ -11574,15 +11591,17 @@ print_unmounted_partition_data()
local a_unmounted_data='' line_starter='' unmounted_data='' full_fs=''
local full_dev='' full_size='' full_label='' full_uuid='' full_string=''
local bsd_unsupported='This feature is not yet supported for BSD systems.'
+ local line_starter='Unmounted:' part_2_data=''
if [[ -z ${A_PARTITION_DATA} ]];then
get_partition_data
fi
get_unmounted_partition_data
-
if [[ ${#A_UNMOUNTED_PARTITION_DATA[@]} -ge 1 ]];then
for (( i=0; i < ${#A_UNMOUNTED_PARTITION_DATA[@]}; i++ ))
do
+ full_string=''
+ part_2_data=''
IFS=","
a_unmounted_data=(${A_UNMOUNTED_PARTITION_DATA[i]})
IFS="$ORIGINAL_IFS"
@@ -11591,45 +11610,51 @@ print_unmounted_partition_data()
else
full_dev="/dev/${a_unmounted_data[0]}"
fi
- full_dev="${C1}ID$SEP3${C2} $full_dev"
+ full_dev="${C1}ID-$((i+1))$SEP3${C2} $full_dev "
if [[ -z ${a_unmounted_data[1]} ]];then
full_size='N/A'
else
full_size=${a_unmounted_data[1]}
fi
- full_size="${C1}size$SEP3${C2} $full_size"
+ full_size="${C1}size$SEP3${C2} $full_size "
if [[ -z ${a_unmounted_data[2]} ]];then
full_label='N/A'
else
full_label=${a_unmounted_data[2]}
fi
- full_label="${C1}label$SEP3${C2} $full_label"
+ full_label="${C1}label$SEP3${C2} $full_label "
if [[ -z ${a_unmounted_data[3]} ]];then
full_uuid='N/A'
else
full_uuid=${a_unmounted_data[3]}
fi
- full_uuid="${C1}uuid$SEP3${C2} $full_uuid"
+ full_uuid="${C1}uuid$SEP3${C2} $full_uuid "
if [[ -z ${a_unmounted_data[4]} ]];then
full_fs=''
else
- full_fs="${C1}fs$SEP3${C2} ${a_unmounted_data[4]}"
- fi
- full_string="$full_dev $full_size $full_label $full_uuid $full_fs"
- if [[ $i -eq 0 ]];then
- line_starter='Unmounted:'
- else
- line_starter=' '
+ full_fs="${C1}fs$SEP3${C2} ${a_unmounted_data[4]} "
fi
# temporary message to indicate not yet supported
if [[ $BSD_TYPE == 'bsd' ]];then
full_string=$bsd_unsupported
+ else
+ full_string="$full_dev$full_size"
+ part_2_data="$full_fs$full_label$full_uuid"
+ fi
+ if [[ $( calculate_line_length "$full_string$part_2_data" ) -gt $COLS_INNER ]];then
+ unmounted_data=$( create_print_line "$line_starter" "$full_string${CN}" )
+ print_screen_output "$unmounted_data"
+ line_starter=' '
+ unmounted_data=$( create_print_line "$line_starter" "$part_2_data${CN}" )
+ print_screen_output "$unmounted_data"
+ else
+ unmounted_data=$( create_print_line "$line_starter" "$full_string$part_2_data${CN}" )
+ print_screen_output "$unmounted_data"
+ line_starter=' '
fi
- unmounted_data=$( create_print_line "$line_starter" "$full_string${CN}" )
- print_screen_output "$unmounted_data"
done
else
- unmounted_data=$( create_print_line "Unmounted:" "No unmounted partitions detected${CN}" )
+ unmounted_data=$( create_print_line "$line_starter" "No unmounted partitions detected${CN}" )
print_screen_output "$unmounted_data"
fi
diff --git a/inxi.1 b/inxi.1
index 74d5453..ef393d6 100755
--- a/inxi.1
+++ b/inxi.1
@@ -1,7 +1,6 @@
-.TH INXI 1 "2014\-03\-14" inxi "inxi manual"
+.TH INXI 1 "2014\-04\-03" inxi "inxi manual"
.SH NAME
inxi \- Command line system information script for console and IRC
-
.SH SYNOPSIS
.B inxi \fR \- Single line, short form. Very basic output.
@@ -10,37 +9,30 @@ inxi \- Command line system information script for console and IRC
.B inxi \fR[\fB\-t \fR(\fBc\fR or\fB m\fR or\fB cm\fR or\fB mc NUMBER\fR)] \fR[\fB\-x \-OPTION\fR(\fBs\fR)] \fR[\fB\-xx \-OPTION\fR(\fBs\fR)] \fR[\fB\-xxx \-OPTION\fR(\fBs\fR)]
.B inxi \fR[\fB\-\-help\fR] \fR[\fB\-\-recommends\fR] \fR[\fB\-\-version\fR] \fR[\fB\-@ NUMBER\fR]
-
.SH DESCRIPTION
.B inxi\fR is a command line system information script built for for console and IRC. It is also used for forum technical support, as a debugging tool, to quickly ascertain user system configuration and hardware. inxi shows system
hardware, CPU, drivers, Xorg, Desktop, Kernel, GCC version(s), Processes, RAM usage, and a wide variety of other
useful information.
-
.B inxi\fR output varies between CLI and IRC, with some default filters and color options applied to IRC use. Script colors can
be turned off if desired with \fB\-c 0\fR, or changed using the \fB\-c\fR color options listed in the OPTIONS section below.
-
.SH PRIVACY AND SECURITY
-
In order to maintain basic privacy and security, inxi filters out automatically on IRC things like
-your network card mac address, WAN and LAN IP, your /home username directory in partitions,
+your network card mac address, WAN and LAN IP, your \fB/home\fR username directory in partitions,
and a few other things.
Because inxi is often used on forums for support, you can also trigger this filtering with the \fB\-z\fR
option (\fB\-Fz\fR, for example). To override the IRC filter, you can use the \fB\-Z\fR option. This can be useful
to debug network connection issues online in a private chat, for example.
-
.SH USING OPTIONS
-
Options can be combined if they do not conflict. Either group the letters
together or separate them.
Letters with numbers can have no gap or a gap at your discretion unless using \fB \-t\fR.
For example:
-.B inxi \-AG\fR or \fBinxi \-A \-G\fR or \fBinxi \-c10
+.B inxi \-AG\fR or \fBinxi \-A \-G\fR or \fBinxi \-c10
.SH STANDARD OPTIONS
-
.TP
.B \-A
Show Audio/sound card information.
@@ -52,15 +44,12 @@ Shows basic output, short form (previously \fB\-d\fR). Same as: \fBinxi \-v 2
Available color schemes. Scheme number is required.
Supported color schemes: \fB0\-32
-
.TP
.B \-c \fR[\fB94\fR\-\fB99\fR]
Color selectors run a color selector option prior to inxi starting which lets
you set the config file value for the selection.
-Color selectors for each type display.
-
-(NOTE: irc and global only show safe color set):
+Color selectors for each type display (NOTE: irc and global only show safe color set):
.TP
.B \-c 94\fR
\- Console, out of X.
@@ -82,7 +71,6 @@ Konversation etc.
\- Global \- Overrides/removes all settings.
Setting specific color type removes the global color selection.
-
.TP
.B \-C
Show full CPU output, including per CPU clockspeed if available. See \fB\-x\fR for more options.
@@ -92,7 +80,7 @@ Shows optical drive data. Same as \fB\-Dd\fR. With \fB\-x\fR, adds features line
\fB\-xx\fR adds a few more features.
.TP
.B \-D
-Show full hard Disk info, not only model, ie: \fI/dev/sda ST380817AS 80.0GB.
+Show full hard Disk info, not only model, ie: \fB/dev/sda ST380817AS 80.0GB.
.TP
.B \-f
Show all cpu flags used, not just the short list. Not shown with \fB\-F\fR to avoid
@@ -111,7 +99,7 @@ may be added once enough data has been collected.
.TP
.B \-h
The help menu. Features dynamic sizing to fit into terminal window. Set script global \fBCOLS_MAX_CONSOLE\fR
-if you want a different default value.
+if you want a different default value, or use \fB-y <width>\fR to temporarily override the defaults or actual window width.
.TP
.B \-\-help
Same as \fB\-h\fR
@@ -134,7 +122,7 @@ Show partition labels. Default: short partition \fB\-P\fR. For full \fB\-p\fR ou
.TP
.B \-M
Show machine data. Motherboard, Bios, and if present, System Builder (Like Lenovo).
-Older systems/kernels without the required /sys data can use dmidecode instead, run as root. If using dmidecode,
+Older systems/kernels without the required \fB/sys\fR data can use dmidecode instead, run as root. If using dmidecode,
may also show bios revision as well as version.
.TP
.B \-n
@@ -146,8 +134,8 @@ Show Network card information. With \fB\-x\fR, shows PCI BusID, Port number.
.TP
.B \-o
Show unmounted partition information (includes UUID and LABEL if available).
-Shows file system type if you have file installed, if you are root OR if you have
-added to /etc/sudoers (sudo v. 1.7 or newer):
+Shows file system type if you have \fBfile\fR installed, if you are root OR if you have
+added to \fB/etc/sudoers\fR (sudo v. 1.7 or newer):
.B <username> ALL = NOPASSWD: /usr/bin/file (sample)
@@ -158,19 +146,20 @@ Show full partition information (\fB\-P\fR plus all other detected partitions).
.TP
.B \-P
Show Partition information (shows what \fB\-v 4\fR would show, but without extra data).
-Shows, if detected: / /boot /home /tmp /usr /var. Use \fB\-p\fR to see all mounted partitions.
+Shows, if detected: \fB/ /boot /home /tmp /usr /var\fR. Use \fB\-p\fR to see all mounted partitions.
.TP
.B \-r
Show distro repository data. Currently supported repo types:
-APT (Debian, Ubuntu + derived versions)
-PACMAN (Arch Linux + derived versions)
+\fBAPT\fR (Debian, Ubuntu + derived versions)
+
+\fBPACMAN\fR (Arch Linux + derived versions)
-PISI (Pardus + derived versions)
+\fBPISI\fR (Pardus + derived versions)
-URPMQ (Mandriva, Mageia + derived versions)
+\fBURPMQ\fR (Mandriva, Mageia + derived versions)
-YUM. (Fedora, Redhat, maybe Suse + derived versions)
+\fBYUM\fR (Fedora, Redhat, maybe Suse + derived versions)
(as distro data is collected more will be added. If your's is missing please show us how to get this
information and we'll try to add it.)
@@ -205,23 +194,24 @@ Make sure to have no space between letters and numbers (\fB\-t cm10\fR \- right,
.TP
.B \-t cm\fR
\- cpu+memory. With \fB\-x\fR, shows also cpu or memory for that process on same line.
-
.TP
.B \-u
Show partition UUIDs. Default: short partition \fB\-P\fR. For full \fB\-p\fR output, use: \fB\-pu\fR (or \fB\-plu\fR).
.TP
.B \-U
Note \- Maintainer may have disabled this function.
-If inxi \-h has no listing for U then its disabled.
+
+If inxi \fB\-h\fR has no listing for \fB\-U\fR then its disabled.
+
Auto\-update script. Note: if you installed as root, you must be root to update,
-otherwise user is fine. Also installs /updates this Man Page to: \fB/usr/share/man/man8\fR
+otherwise user is fine. Also installs / updates this Man Page to: \fB/usr/share/man/man8\fR
This requires that you be root to write to that directory.
.TP
.B \-V
inxi version information. Prints information then exits.
.TP
.B \-\-version
-same as \fB\-V
+same as \fB\-V\fR
.TP
.B \-v
Script verbosity levels. Verbosity level number is required. Should not be used with \fB\-b\fR or \fB\-F\fR.
@@ -242,7 +232,7 @@ Supported levels: \fB0\-7\fR Examples :\fB inxi \-v 4 \fR or \fB inxi \-v4\fR
\- Adds advanced CPU (\fB\-C\fR); network (\fB\-n\fR) data; triggers \fB\-x\fR advanced data option.
.TP
.B \-v 4
-\- Adds partition size/filled data (\fB\-P\fR) for (if present):/, /home, /var/, /boot
+\- Adds partition size/filled data (\fB\-P\fR) for (if present):\fB/ /home /var/ /boot\fR
Shows full disk data (\fB\-D\fR)
.TP
.B \-v 5
@@ -254,29 +244,30 @@ optical drives.
triggers \fB\-xx\fR extra data option.
.TP
.B \-v 7
-\- Adds network IP data (\fB\-i\fR); triggers \fB\-xxx
+\- Adds network IP data (\fB\-i\fR); triggers \fB\-xxx\fR
.TP
.B \-w
Adds weather line. Note, this depends on an unreliable api so it may not always be working in the future.
-To get weather for an alternate location, use \-W <location_string>. See also \-x, \-xx, \-xxx option.
-Please note, your distribution's maintainer may chose to disable this feature, so if \-w or \-W don't work, that's why.
+To get weather for an alternate location, use \fB\-W <location_string>\fR. See also \fB\-x\fR, \fB\-xx\fR, \fB\-xxx\fR option.
+Please note, your distribution's maintainer may chose to disable this feature, so if \fB\-w\fR or \fB\-W\fR don't work, that's why.
.TP
.B \-W <location_string>
Get weather/time for an alternate location. Accepts postal/zip code, city,state pair, or latitude,longitude.
-Note: city/country/state names must not contain spaces. Replace spaces with '+' sign. No spaces around , (comma).
+Note: city/country/state names must not contain spaces. Replace spaces with '\fB+\fR' sign. No spaces around \fB,\fR (comma).
Use only ascii letters in city/state/country names, sorry.
-Examples: \-W 95623 OR \-W Boston,MA OR \-W45.5234,\-122.6762 OR \-W new+york,ny
-OR \-W bodo,norway.
+Examples: \fB\-W 95623\fR OR \fB\-W Boston,MA\fR OR \fB\-W45.5234,\-122.6762\fR OR \fB\-W new+york,ny\fR
+OR \fB\-W bodo,norway\fR.
+.TP
+.B \-y <integer >= 80>
+This is an absolute width override which sets the output line width max. Overrides \fBCOLS_MAX_IRC\fR / \fBCOLS_MAX_CONSOLE\fR globals, or the actual widths of the terminal. If used with \fB\-h\fR or \fB\-c 94-99\fR, put \fB\-y\fR option first or the override will be ignored. Cannot be used with \fB\-\-help\fR/\fB\-\-version\fR/\fB\-\-recommends\fR type long options. Example: \fBinxi \-y 130 -Fxx\fR
.TP
.B \-z
-Adds security filters for IP addresses, Mac, location (\-w), and user home directory name. Default on for irc clients.
+Adds security filters for IP addresses, Mac, location (\fB\-w\fR), and user home directory name. Default on for irc clients.
.TP
.B \-Z
Absolute override for output filters. Useful for debugging networking issues in irc for example.
-
.SH EXTRA DATA OPTIONS
-
These options are for long form only, and can be triggered by one or more \fB\-x\fR, like \fB\-xx\fR.
Alternately, the \fB\-v\fR options trigger them in the following way:
\fB\-v 3\fR adds \fB\-x\fR; \fB\-v 6\fR adds \fB\-xx\fR; \fB\-v 7\fR adds \fB\-xxx\fR
@@ -287,7 +278,6 @@ Can be added to any long form option list, like: \fB\-bxx\fR or \fB\-Sxxx\fR
There are 3 extra data levels: \fB\-x\fR; \fB\-xx\fR; and \fB\-xxx\fR
The following shows which lines / items get extra information with each extra data level.
-
.TP
.B \-x \-A
\- Adds version/port(s)/driver version (if available) for each Audio device.
@@ -303,7 +293,7 @@ The following shows which lines / items get extra information with each extra da
.TP
.B \-x \-D
\- Hdd temp with disk data if you have hddtemp installed, if you are root OR if you have added to
-/etc/sudoers (sudo v. 1.7 or newer):
+\fB/etc/sudoers\fR (sudo v. 1.7 or newer):
.B <username> ALL = NOPASSWD: /usr/sbin/hddtemp (sample)
.TP
@@ -319,7 +309,6 @@ The following shows which lines / items get extra information with each extra da
.B \-x \-i
\- Show IPv6 as well for LAN interface (IF) devices.
.TP
-.TP
.B \-x \-I
\- Show current init system (and init rc in some cases, like OpenRC). With \-xx, shows init/rc
version number, if available.
@@ -341,6 +330,7 @@ version number, if available.
.B \-x \-R
\- md\-raid: Shows component raid id. Adds second RAID Info line: raid level; report on drives
(like 5/5); blocks; chunk size; bitmap (if present). Resync line, shows blocks synced/total blocks.
+
\- zfs\-raid: Shows raid array full size; available size; portion allocated to RAID (ie, not available as storage)."
.TP
.B \-x \-S
@@ -370,7 +360,7 @@ version number, if available.
.B \-xx \-I
\- Show, if detected, system default runlevel. Supports Systemd/Upstart/Sysvinit type defaults. Note that
not all systemd systems have the default value set, in that case, if present, it will use the data from
-\fI/etc/inittab\fR.
+\fB/etc/inittab\fR.
.TP
.B \-xx \-I
\- Adds parent program (or tty) that started shell, if not IRC client, to shell information.
@@ -403,7 +393,6 @@ Supports some current desktop extras like gnome\-panel, lxde\-panel, and others.
.B \-xxx \-w / \-W
\- Adds location (city state country), weather observation time, altitude of system.
If wind chill, heat index, or dew point are available, shows that data as well.
-
.SH ADVANCED OPTIONS
.TP
.B \-! 31
@@ -412,7 +401,6 @@ forums or IRC.
.TP
.B \-! 32
Turns on hostname in System line. Overrides inxi config file value (if set): B_SHOW_HOST='false'.
-
.SH DEBUGGING OPTIONS
.TP
.B \-%
@@ -426,7 +414,7 @@ Less than 8 just triggers inxi debugger output on screen.
\- On screen debugger output.
.TP
.B \-@ 8
-\- Basic logging. Check \fI /home/yourname/.inxi/inxi*.log
+\- Basic logging. Check \fB/home/yourname/.inxi/inxi*.log
.TP
.B \-@ 9
\- Full file/sys info logging.
@@ -436,14 +424,16 @@ Less than 8 just triggers inxi debugger output on screen.
.TP
.B \-@ <11\-14>
The following create a tar.gz file of system data, plus collecting the inxi output to file:
-To automatically upload debugger data tar.gz file to \fIftp.techpatterns.com\fR: \fBinxi \-xx@ <11\-14>\fR
+To automatically upload debugger data tar.gz file to \fIftp.techpatterns.com\fR:
+
+\fBinxi \-xx@ <11\-14>\fR
+
For alternate ftp upload locations: Example:
.B inxi \-! \fIftp.yourserver.com/incoming\fB \-xx@ 14\fR
-
.TP
.B \-@ 11
-\- With data file of xiin read of /sys
+\- With data file of xiin read of \fB/sys
.TP
.B \-@ 12
\- With xorg conf and log data, xrandr, xprop, xdpyinfo, glxinfo etc.
@@ -453,36 +443,39 @@ For alternate ftp upload locations: Example:
.TP
.B \-@ 14
\- Everything, full data collection.
-
.SH SUPPORTED IRC CLIENTS
BitchX, Gaim/Pidgin, ircII, Irssi, Konversation, Kopete, KSirc, KVIrc, Weechat, and Xchat. Plus any others that
are capable of displaying either built in or external script output.
-
.SH RUNNING IN IRC CLIENT
To trigger inxi output in your IRC client, pick the appropriate method from the list below:
-
.TP
.B Xchat, irssi \fR(and many other IRC clients)
.B /exec \-o inxi \fR[\fBoptions\fR]
-
If you leave off the \fB\-o\fR, only you will see the output on your local IRC client.
.TP
.B Konversation
.B /cmd inxi \fR[\fBoptions\fR]
-
To run inxi in konversation as a native script if your distribution or inxi package did not do this for you,
create this symbolic link:
.B ln \-s /usr/local/bin/inxi /usr/share/kde4/apps/konversation/scripts/inxi
-If inxi is somewhere else, change the path /usr/local/bin to wherever it is located.
+If inxi is somewhere else, change the path \fB/usr/local/bin\fR to wherever it is located.
Then you can start inxi directly, like this:
.B /inxi \fR[\fBoptions\fR]
.TP
.B WeeChat
-.B /shell \-o inxi \fR[\fBoptions\fR]
+.B NEW: /exec \-o inxi \fR[\fBoptions\fR]
+
+.B OLD: /shell \-o inxi \fR[\fBoptions\fR]
+
+Newer (2014 and later) WeeChats work pretty much the same now as other console IRC
+clients, with \fB/exec -o inxi \fR[\fBoptions\fR]. Also, newer WeeChats have dropped
+the \fB\-curses\fR part of their program name, ie: \fBweechat\fR instead of \fBweechat-curses\fR.
+
+Deprecated:
Before WeeChat can run external scripts like inxi, you need to install the
weechat\-plugins package. This is automatically installed for Debian users.
@@ -496,7 +489,7 @@ Make the script executable by
.B chmod +x shell.py
-Move it to your home folder: \fI/.weechat/python/autoload/\fR then logout, and start WeeChat with
+Move it to your home folder: \fB/.weechat/python/autoload/\fR then logout, and start WeeChat with
.B weechat\-curses
@@ -507,7 +500,6 @@ you would enter a command like this:
If you leave off the \fB\-o\fR, only you will see the output on your local weechat. WeeChat
users may also like to check out the weeget.py
-
.SH INITIALIZATION FILE
.TP
inxi will read the following configuration/initialization files in the following order:
@@ -519,14 +511,12 @@ inxi will read the following configuration/initialization files in the following
See wiki pages for more information on how to set these up:
.TP
.I http://code.google.com/p/inxi/wiki/script_configuration_files
-
.SH BUGS
Please report bugs using the following resources.
You may be asked to run the inxi debugger tool which will upload a data dump of all
system files for use in debugging inxi. These data dumps are very important since
they provide us with all the real system data inxi uses to parse out its report.
-
.TP
inxi main website/svn/wiki, file an issue report:
.I http://code.google.com/p/inxi/issues/list
@@ -537,12 +527,9 @@ post on inxi developer forums:
You can also visit
.I irc.oftc.net \fRchannel:\fI #smxi
to post issues.
-
.SH HOMEPAGE
.I http://code.google.com/p/inxi
-
.SH AUTHOR AND CONTRIBUTORS TO CODE
-
.B inxi
is is a fork of locsmif's largely unmaintained yet very clever, infobash script.
diff --git a/inxi.1.gz b/inxi.1.gz
index 47ba2e0..0b678c2 100755
--- a/inxi.1.gz
+++ b/inxi.1.gz
Binary files differ
diff --git a/inxi.changelog b/inxi.changelog
index c50b99f..b76462e 100755
--- a/inxi.changelog
+++ b/inxi.changelog
@@ -1,4 +1,62 @@
=====================================================================================
+Version: 2.1.18
+Patch Version: 00
+Script Date: 2014-04-04
+-----------------------------------
+Changes:
+-----------------------------------
+New version/tarball. This completes, I think, the line wrap update. -o is now handled,
+unmounted drives.
+
+IMPORTANT: some distros use inxi for detecting partitions, the syntax on the following
+have changed slightly:
+
+HDD: per drive changes from: 1: id: to ID-1:
+Partitions: per partition changes from ID: to ID-1:
+Unmounted partitions: per unmounted changes from ID: to ID-1
+
+You see the pattern, they are all the same now, and they are all numbered. I think this
+is easier to read when scanning long lines of drives/partitions, or even short ones.
+
+Also fixed a long standing oddity, not a bug, but for some weird reason, -p did not
+include the location, like /dev/sda1, unless -l or -u were used. That makes no sense
+so I have moved the dev/remote location output to standard -p/-P
+
+Except for bug fixes, this completes the overally line wrap update, all lines wrap,
+you can set widths with -y now, and the old issue of not fitting nicely into 80 column
+wide widths is solved. Note that in some areas, p/P for example, at times if the mount
+point or remote location is very long the line may still wrap, but making this perfect
+is too convoluted so I'm calling it good enough now, all lines are handled reasonably well,
+certainly radically better than before 2.1.0.
+
+-----------------------------------
+-- Harald Hope - Fri, 04 Apr 2014 11:08:25 -0700
+
+=====================================================================================
+Version: 2.1.17
+Patch Version: 00
+Script Date: 2014-04-03
+-----------------------------------
+Changes:
+-----------------------------------
+New version, new man page, new tarball. Added -y [integer >= 80] option. This allows for absolute override
+of width settings. This overrides any dynamically detected widths, as well as the globals:
+COLS_MAX_CONSOLE='115'
+COLS_MAX_IRC='105'
+Now that inxi widths are largely dynamic in terminal, with a few lingering exceptions, it made sense
+to also allow for overrides of this. This is useful in cases where for example you want to output
+inxi to text file or for other purposes, or if you just want to test the widths, as in my case.
+
+-y cannot be used with --recommends, but otherwise it works fine, with --help/-c 94-99 you have to
+put -y first in the list of options.
+
+Example: inxi -v7 -y150 > inxi.txt will ignore the terminal settings and output the lines at basically
+max length.
+
+-----------------------------------
+-- Harald Hope - Thu, 03 Apr 2014 10:41:07 -0700
+
+=====================================================================================
Version: 2.1.16
Patch Version: 00
Script Date: 2014-04-02