Welcome!
Forum users

Current releases
--MX-23 release info here
--Migration information to MX-23 here
--antiX-23.1 (Arditi del Popolo) release info here

Important information
--If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.

News
-- MX Linux on social media: here
-- New Forum Features, Marking Solved and Referencing a User: here

inxi / pinxi 2.9.00 beta testers!

Message
Author
User avatar
rokytnji.1
Global Moderator
Posts: 697
Joined: Sun Apr 13, 2014 9:06 pm

Re: inxi / pinxi 2.9.00 beta testers!

#131 Post by rokytnji.1 »

Maybe since wording length may be a issue. Short and sweet way to say no repos found or no no active repos found would just be.

" Not Enabled "

That way the reader knows something is in there. They just have not turned it on yet.

Besides. Sounds better than

" Commented out" or " Switched Off " Because when I was clueless. Te linux word comment had not entered into my vocabulary then. Just a thought is all.
If it is too late and involves more work. Never mind.

User avatar
h2-1
Posts: 208
Joined: Sat Nov 15, 2008 3:16 pm

Re: inxi / pinxi 2.9.00 beta testers!

#132 Post by h2-1 »

timkb4cq, that's all due to the debian/ubuntu inxi packager, unit193. He's been after me for a long time to do that, because he uses deb822, but in binxi (bash inxi), it was nearly impossible due to the deb822 format being the single hardest format to process and parse automatically of ALL the repo formats inxi handles (which is somewhat ironic given it's supposed to be easy). They have a design error of rather than requiring 1 and only one URI per URI field, they sloppily allowed 1 or MORE, and, worse, they allowed uris to be placed without any field starter, so you can have, and do have:

URIs:
http.....
http....
http....

when it should have been:

URI: htttp..
URI: http...
URI: http..

They also, unlike everyone else who uses a similar format, made the Enabled: field optional, which was really dumb, everyone else requires it, for good reason, it's stupid to have an optional on / off switch, it should be required. Literally everyone else who uses that block type format has that switch required, so I don't have to think is it there or not. These are easy fixes which can and should be made to that format.

This is so elementary in terms of machine reading data that it's kind of hard to understand how this could have been allowed in, the entire point of creating key/value pairs in programming syntax is so that you have 1 key 1 value.

this is why I initially refused to do it bash inxi, plus nobody except a handful of people actually uses that format. But since 3.0 is coming, and because Perl is way way better at solving such problems, I did it.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
h2-1
Posts: 208
Joined: Sat Nov 15, 2008 3:16 pm

Re: inxi / pinxi 2.9.00 beta testers!

#133 Post by h2-1 »

rokytnji.1, I'd say there is a risk in being too terse. I'm allowing myself some leeway during the 2.9.xx process re changing stuff around, with the goal that when 3.0.0 is released, all the changing around is done, and people can basically trust the output values and key values.

With that said, to shorten the stuff a bit, I trimmed some spare words out. I agree about the risk of using common technical words that as a developer you don't think even once about, like commented out, that's certainly a bad way to describe the fact no active repos in...

Give the current pinxi a try, 2.9.03-05 I think is the version, will be another one soon. It has the current selections for repo found/inactive language, I shortened it, and made all the distros use more similar output, plus the distros that use programs to do show this data, I made them be similar (since they don't use files, they have to show it slightly differently).
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
i_ri
Posts: 814
Joined: Tue Jun 30, 2015 12:26 am

Re: inxi / pinxi 2.9.00 beta testers!

#134 Post by i_ri »

hello h2-1
on p new 2.9 _ _ -xxx -S alone does not show Shell: or running in: such as example when it is run with -F.
Looking at Info:

Code: Select all

herenot@tubb:~
$ inxi -F
System:    Host: tubb Kernel: 4.9.82-antix.1-amd64-smp x86_64 bits: 64 Desktop: Fluxbox 1.3.5 
           Distro: antiX-16_x64-full Berta Cáceres 26 June 2016 
Machine:   Type: Desktop Mobo: ASUSTeK model: P5L8L-SE v: Rev 1.xx serial: N/A 
           BIOS: American Megatrends v: 0201 date: 10/09/2007 
CPU:       Topology: Single Core model: Intel Pentium 4 type: MT L2 cache: 2048 KB 
           Speed: 3400 MHz min/max: N/A Core speeds: 1: 3400 2: 3400 
Graphics:  Card-1: Intel 82945G/GZ Integrated Graphics Controller driver: i915 v: kernel 
           Display Server: X.Org 1.19.2 driver: intel resolution: 1280x1024~60Hz 
           OpenGL: renderer: Mesa DRI Intel 945G version: 2.1 Mesa 13.0.6 direct render: Yes 
Audio:     Card-1: Intel NM10/ICH7 Family High Definition Audio Controller driver: snd_hda_intel 
           Sound Server: ALSA v: k4.9.82-antix.1-amd64-smp 
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169 
           IF: eth0 state: down mac: 00>3 
           Card-2: Realtek RTL8191SU 802.11n WLAN Adapter type: USB driver: r8712u 
           IF: wlan0 state: up mac: 00>e 
Drives:    HDD Total Size: 153.39 GiB used: 7.83 GiB (5.1%) 
           ID-1: /dev/sda model: WDC_WD1600YS-01S size: 153.39 GiB 
Partition: ID-1: / size: 148.85 GiB used: 7.83 GiB (5.3%) fs: ext4 dev: /dev/sda1 
           ID-2: swap-1 size: 2.03 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2  
Info:      Processes: 146 Uptime: 51 min Memory: 1.95 GiB used: 315.3 MiB (15.8%) Shell: bash 
           inxi: 2.9.02 
herenot@tubb:~
$ inxi -F -S
System:    Host: tubb Kernel: 4.9.82-antix.1-amd64-smp x86_64 bits: 64 Desktop: Fluxbox 1.3.5 
           Distro: antiX-16_x64-full Berta Cáceres 26 June 2016 
Machine:   Type: Desktop Mobo: ASUSTeK model: P5L8L-SE v: Rev 1.xx serial: N/A 
           BIOS: American Megatrends v: 0201 date: 10/09/2007 
CPU:       Topology: Single Core model: Intel Pentium 4 type: MT L2 cache: 2048 KB 
           Speed: 3400 MHz min/max: N/A Core speeds: 1: 3400 2: 3400 
Graphics:  Card-1: Intel 82945G/GZ Integrated Graphics Controller driver: i915 v: kernel 
           Display Server: X.Org 1.19.2 driver: intel resolution: 1280x1024~60Hz 
           OpenGL: renderer: Mesa DRI Intel 945G version: 2.1 Mesa 13.0.6 direct render: Yes 
Audio:     Card-1: Intel NM10/ICH7 Family High Definition Audio Controller driver: snd_hda_intel 
           Sound Server: ALSA v: k4.9.82-antix.1-amd64-smp 
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169 
           IF: eth0 state: down mac: 00>3 
           Card-2: Realtek RTL8191SU 802.11n WLAN Adapter type: USB driver: r8712u 
           IF: wlan0 state: up mac: 00>e 
Drives:    HDD Total Size: 153.39 GiB used: 7.83 GiB (5.1%) 
           ID-1: /dev/sda model: WDC_WD1600YS-01S size: 153.39 GiB 
Partition: ID-1: / size: 148.85 GiB used: 7.83 GiB (5.3%) fs: ext4 dev: /dev/sda1 
           ID-2: swap-1 size: 2.03 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Info:      Processes: 147 Uptime: 52 min Memory: 1.95 GiB used: 317.2 MiB (15.9%) Shell: bash 
           inxi: 2.9.02 
herenot@tubb:~
$ inxi -F -xxx -S
System:    Host: tubb Kernel: 4.9.82-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc v: 6.3.0 
           Desktop: Fluxbox 1.3.5 dm: slim Distro: antiX-16_x64-full Berta Cáceres 26 June 2016 
Machine:   Type: Desktop Mobo: ASUSTeK model: P5L8L-SE v: Rev 1.xx serial: N/A 
           BIOS: American Megatrends v: 0201 date: 10/09/2007 
CPU:       Topology: Single Core model: Intel Pentium 4 type: MT arch: Netburst Prescott rev: 5 
           L2 cache: 2048 KB 
           flags: lm nx pae sse sse2 sse3 bogomips: 13605 
           Speed: 3400 MHz min/max: N/A Core speeds: 1: 3400 2: 3400 
Graphics:  Card-1: Intel 82945G/GZ Integrated Graphics Controller driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:2772 
           Display Server: X.Org 1.19.2 driver: intel resolution: 1280x1024~60Hz 
           OpenGL: renderer: Mesa DRI Intel 945G version: 2.1 Mesa 13.0.6 direct render: Yes 
Audio:     Card-1: Intel NM10/ICH7 Family High Definition Audio Controller driver: snd_hda_intel 
           v: kernel bus ID: 00:1b.0 chip ID: 8086:27d8 
           Sound Server: ALSA v: k4.9.82-antix.1-amd64-smp 
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169 
           v: 2.3LK-NAPI port: e800 bus ID: 02:00 chip ID: 10ec:8168 
           IF: eth0 state: down mac: 00>3 
           Card-2: Realtek RTL8191SU 802.11n WLAN Adapter type: USB driver: r8712u bus ID: 1:2 
           chip ID: 0bda:8172 
           IF: wlan0 state: up mac: 00>e 
Drives:    HDD Total Size: 153.39 GiB used: 7.83 GiB (5.1%) 
           ID-1: /dev/sda model: WDC_WD1600YS-01S size: 153.39 GiB serial: WD-WCAP03388050 rev: 6C06 
Partition: ID-1: / size: 148.85 GiB used: 7.83 GiB (5.3%) fs: ext4 dev: /dev/sda1 
           ID-2: swap-1 size: 2.03 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Info:      Processes: 147 Uptime: 52 min Memory: 1.95 GiB used: 317.0 MiB (15.9%) Init: SysVinit 
           v: 2.88 runlevel: 5 default: 5 Compilers: gcc: 6.3.0 alt: 4.9/6 Shell: bash 4.4.12 
           running in: roxterm inxi: 2.9.02 
herenot@tubb:~
$ inxi -xxx -S
System:    Host: tubb Kernel: 4.9.82-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc v: 6.3.0 
           Desktop: Fluxbox 1.3.5 dm: slim Distro: antiX-16_x64-full Berta Cáceres 26 June 2016 
herenot@tubb:~

User avatar
i_ri
Posts: 814
Joined: Tue Jun 30, 2015 12:26 am

Re: inxi / pinxi 2.9.00 beta testers!

#135 Post by i_ri »

hello h2-1
The Weather included with a report is appreciated for its timestamp.
Weather has an interaction with -z. binxi Weather -xxx -z determines to suppress place and to suppress time [zone.]
Regular report with -z determines not to suppress time.
pinxi2.9_ determines not to suppress time.
A change in reporting Location:; seems more interesting,, umm, Gonna Miss having with the reporting station / city Name.

in b old

Code: Select all

demo@mx1:~/Desktop
$ inxi -xxx -W 20500
Weather:   Conditions: 40 F (4 C) - Mostly Cloudy Wind: From the East at 8 MPH Humidity: 70%
           Pressure: 30.56 in (1035 mb) Wind Chill: 34 F (1 C)
           Location: Washington DC (US) Altitude: 12 m
           Time: March 25, 11:40 PM EDT Observation Time: March 25, 10:52 PM EDT
demo@mx1:~/Desktop
$ inxi -z -xxx -W 20500
Weather:   Conditions: 40 F (4 C) - Mostly Cloudy Wind: From the East at 8 MPH Humidity: 70%
           Pressure: 30.56 in (1035 mb) Wind Chill: 34 F (1 C)
demo@mx1:~/Desktop
$ inxi -W 19130
Weather:   Conditions: 35 F (2 C) - Partly Cloudy Time: March 25, 11:41 PM EDT
demo@mx1:~/Desktop
$ inxi -z -W 19130
Weather:   Conditions: 35 F (2 C) - Partly Cloudy Time: March 25, 11:42 PM EDT
demo@mx1:~/Desktop
$ inxi -xxx -W 19130
Weather:   Conditions: 35 F (2 C) - Partly Cloudy Wind: From the East at 6 MPH Humidity: 72%
           Pressure: 30.58 in (1035 mb) Wind Chill: 30 F (-1 C)
           Location: Philadelphia PA (US) Altitude: 29 m
           Time: March 25, 11:42 PM EDT Observation Time: March 25, 10:54 PM EDT
demo@mx1:~/Desktop
$ inxi -xxx -W 90210
Weather:   Conditions: 56 F (13 C) - Clear Wind: Calm Humidity: 67%
           Pressure: 29.96 in (1014 mb) Location: Beverly Hills CA (US) Altitude: 168 m
           Time: March 25, 8:44 PM PDT Observation Time: March 25, 7:51 PM PDT
demo@mx1:~/Desktop
$ inxi -V
inxi 2.3.53-00 (2017-12-07)
in p new

Code: Select all

herenot@tubb:~
$ inxi -xxx -W 20500
Weather:   Conditions: 39 F (4 C) - Mostly Cloudy Wind: From the ESE at 5 MPH Humidity: 70% 
           Pressure: 30.57 in (1035 mb) Wind Chill: 36 F (2 C) Dew Point: 30 F (-1 C) Location: 20500 
           Altitude: 12.8 m Time: Mon 26 Mar 2018 04:00:14 AM EDT Observation Time: March 25, 11:52 PM EDT 
herenot@tubb:~
$ inxi -z -xxx -W 20500
Weather:   Conditions: 39 F (4 C) - Mostly Cloudy Wind: From the ESE at 5 MPH Humidity: 70% 
           Pressure: 30.57 in (1035 mb) Wind Chill: 36 F (2 C) Dew Point: 30 F (-1 C) 
           Time: Mon 26 Mar 2018 04:00:42 AM EDT Observation Time: March 25, 11:52 PM EDT 
herenot@tubb:~
$ inxi -W 19130
Weather:   Conditions: 35 F (2 C) - Partly Cloudy Time: Mon 26 Mar 2018 04:03:19 AM EDT 
herenot@tubb:~
$ inxi -z -W 19130
Weather:   Conditions: 35 F (2 C) - Partly Cloudy Time: Mon 26 Mar 2018 04:03:49 AM EDT 
herenot@tubb:~
$ inxi -xxx -W 19130
Weather:   Conditions: 35 F (2 C) - Partly Cloudy Wind: From the East at 6 MPH Humidity: 72% 
           Pressure: 30.60 in (1036 mb) Wind Chill: 30 F (-1 C) Dew Point: 27 F (-3 C) Location: 19130 
           Altitude: 29.9 m Time: Mon 26 Mar 2018 04:08:12 AM EDT Observation Time: March 25, 11:54 PM EDT 
herenot@tubb:~
$ inxi -xxx -W 90210
Weather:   Conditions: 56 F (13 C) - Clear Wind: From the Variable at 5 MPH Humidity: 36% 
           Pressure: 29.97 in (1015 mb) Dew Point: 29 F (-2 C) Location: 90210 Altitude: 168.9 m 
           Time: Mon 26 Mar 2018 04:08:38 AM PDT Observation Time: March 25, 8:51 PM PDT 
herenot@tubb:~
$ inxi -V
inxi 2.9.02-00 (2018-03-20)

User avatar
h2-1
Posts: 208
Joined: Sat Nov 15, 2008 3:16 pm

Re: inxi / pinxi 2.9.00 beta testers!

#136 Post by h2-1 »

I did some updates to weather, moved a few things around, in recent commit, a few days ago. -z isn't printing the location with -w or -W.

The only currently 'stable' version is binxi, which is almost exactly 2.3.56 with a few small changes to allow it to run and update as binxi.

I've just checked these against each other, binxi -z doesn't suppress the time zone. Both inxi and binxi with -z do suppress the location.

inxi is currently at version 2.9.07, and pinxi dev branch is at version 2.9.07-01, so those are the only versions you want to be testing anything against.

I can't see any difference except that I moved around a few of the items in the -x ranges, pressure, humidity, I think I dropped 1 -x down so it would show more often. Location is in binxi and inxi, not sure what you're seeing but I'm running these right next to each other and the output looks correct, but as I noted, I've done some fixes over past few days. Make sure you are running the very latest inxi before assuming things might be off.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
h2-1
Posts: 208
Joined: Sat Nov 15, 2008 3:16 pm

Re: inxi / pinxi 2.9.00 beta testers!

#137 Post by h2-1 »

I'll just post the current outputs re the running in, not sure what you're seeing there, here is what is current
I'll show the inxi range, then the binxi range for -IS. When comparing, binxi is the only thing that should be used as old inxi because it's current to the last bash inxi. pinxi, or inxi if current with pinxi, should be used for current inxi perl.

Code: Select all

inxi -IS --no-hostname
System:    Kernel: 4.9.0-3.1-liquorix-686-pae i686 bits: 32 Desktop: Xfce 4.12.3 
           Distro: Debian GNU/Linux 9 (stretch) 
Info:      Processes: 268 Uptime: 1 day Memory: 7.92 GiB used: 2.86 GiB (36.2%) Shell: bash inxi: 2.9.07

 inxi --no-hostname -ISx
System:    Kernel: 4.9.0-3.1-liquorix-686-pae i686 bits: 32 compiler: gcc v: 6.2.1 
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) Distro: Debian GNU/Linux 9 (stretch) 
Info:      Processes: 268 Uptime: 1 day Memory: 7.92 GiB used: 2.84 GiB (35.9%) Init: systemd runlevel: 5 
           Compilers: gcc: 6.3.0 Shell: bash 4.4.12 inxi: 2.9.07

inxi --no-hostname -ISxx
System:    Kernel: 4.9.0-3.1-liquorix-686-pae i686 bits: 32 compiler: gcc v: 6.2.1 
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) dm: lightdm Distro: Debian GNU/Linux 9 (stretch) 
Info:      Processes: 268 Uptime: 1 day Memory: 7.92 GiB used: 2.84 GiB (35.9%) Init: systemd v: 233 
           runlevel: 5 default: 3 Compilers: gcc: 6.3.0 alt: 4.0/4.2/4.4/4.5/4.6/4.7/4.8/4.9/5/6/7 
           Shell: bash 4.4.12 running in: xfce4-terminal inxi: 2.9.07

inxi --no-hostname -ISxxx
System:    Kernel: 4.9.0-3.1-liquorix-686-pae i686 bits: 32 compiler: gcc v: 6.2.1 
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) info: xfce4-panel dm: lightdm 1.18.3 
           Distro: Debian GNU/Linux 9 (stretch) 
Info:      Processes: 268 Uptime: 1 day Memory: 7.92 GiB used: 2.85 GiB (35.9%) Init: systemd v: 233 
           runlevel: 5 default: 3 Compilers: gcc: 6.3.0 alt: 4.0/4.2/4.4/4.5/4.6/4.7/4.8/4.9/5/6/7 
           Shell: bash 4.4.12 running in: xfce4-terminal inxi: 2.9.07

## then binxi
binxi -IS -! 31
System:    Kernel: 4.9.0-3.1-liquorix-686-pae i686 bits: 32 Desktop: Xfce 4.12.3
           Distro: Debian GNU/Linux 9 (stretch)
Info:      Processes: 270 Uptime: 1 day Memory: 2922.3/8110.6MB Client: Shell (bash) binxi: 2.3.56-3-b

binxi -ISx -! 31
System:    Kernel: 4.9.0-3.1-liquorix-686-pae i686 bits: 32 gcc: 6.2.1 Desktop: Xfce 4.12.3 (Gtk 2.24.31)
           Distro: Debian GNU/Linux 9 (stretch)
Info:      Processes: 270 Uptime: 1 day Memory: 2922.1/8110.6MB Init: systemd runlevel: 5 Gcc sys: 6.3.0
           Client: Shell (bash 4.4.121) binxi: 2.3.56-3-b

binxi -ISxx -! 31
System:    Kernel: 4.9.0-3.1-liquorix-686-pae i686 bits: 32 gcc: 6.2.1
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) dm: lightdm Distro: Debian GNU/Linux 9 (stretch)
Info:      Processes: 270 Uptime: 1 day Memory: 2922.6/8110.6MB
           Init: systemd v: 233 runlevel: 5 default: 3 Gcc sys: 6.3.0 alt: 4.0/4.2/4.4/4.5/4.6/4.7/4.8/4.9/5/7
           Client: Shell (bash 4.4.121 running in xfce4-terminal) binxi: 2.3.56-3-b

binxi -ISxxx -! 31
System:    Kernel: 4.9.0-3.1-liquorix-686-pae i686 bits: 32 gcc: 6.2.1
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) info: xfce4-panel dm: lightdm Distro: Debian GNU/Linux 9 (stretch)
Info:      Processes: 270 Uptime: 1 day Memory: 2923.2/8110.6MB
           Init: systemd v: 233 runlevel: 5 default: 3 Gcc sys: 6.3.0 alt: 4.0/4.2/4.4/4.5/4.6/4.7/4.8/4.9/5/7
           Client: Shell (bash 4.4.121 running in xfce4-terminal) binxi: 2.3.56-3-b
As you can see, the main difference is I moved data into its own key/value pair, which is required for json/xml export, and in general just to look cleaner and more organized. Almost all the combined data in one field has been removed and put into its own key value pairs. Note that while I made sure that all data in binxi would also be in inxi, I did not want to duplicate the sometimes sloppy data structures that were in binxi.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
anticapitalista
Developer
Posts: 4158
Joined: Sat Jul 15, 2006 10:40 am

Re: inxi / pinxi 2.9.00 beta testers!

#138 Post by anticapitalista »

New error with inxi: 2.9.07

Code: Select all

Use of uninitialized value $server in lc at /usr/local/bin/inxi line 7626.
inxi -zv8 --debug 22 sent
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
h2-1
Posts: 208
Joined: Sat Nov 15, 2008 3:16 pm

Re: inxi / pinxi 2.9.00 beta testers!

#139 Post by h2-1 »

Thanks, I have to admit, I still have not adjusted to the very strict, C-like requirements of Perl, that was something I did just the other day without thinking about it, but in Perl, you can't just use variables, you have to make sure they are defined first, without exception when it comes to doing string operations on them (like lower case, lc...)

However, to see the difference, run: time binxi -v7 and time inxi -v7 (or -Fxxx) and you see where all that strictness gets you as the execution time and complexity increase. The shorter the output the less this actual speed of language is visible, since at those shorter points, virtually all of the time for both binxi and inxi are taken by executing subshell commands.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
anticapitalista
Developer
Posts: 4158
Joined: Sat Jul 15, 2006 10:40 am

Re: inxi / pinxi 2.9.00 beta testers!

#140 Post by anticapitalista »

My error 2 above is now fixed in 2.9.08. Great!
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

Post Reply

Return to “antiX”