Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Add an "About Your Computer" item into the mx-welcome GUI

Post Reply
Message
Author
User avatar
oops
Forum Regular
Forum Regular
Posts: 162
Joined: Tue Apr 10, 2018 5:07 pm

Add an "About Your Computer" item into the mx-welcome GUI

#1 Post by oops » Sat May 19, 2018 8:52 am

Hello,
A Request / suggestion to add an icon for the computer information summary ("About Your Computer") into the mx-welcome GUI - first page , even for non root user.
It is useful and user friendly for simple user.

PS: Does not work into mx-tools GUI here (inxi -F) and I do not know why (no terminal opened by this way) ...

For example this output, or with hardinfo, etc..

Code: Select all

inxi --full

System:    Host: Kernel: 4.16.0- x86_64 bits: 64 Desktop: Xfce 4.12.3 
           Distro: MX-17.1_x64 Horizon March 14, 2018 
Machine:   Type: Desktop Mobo: MSI model: B75MA-E33 (MS-7808) v: 1.0 serial: N/A 
           UEFI: American Megatrends v: V1.7 date: 09/30/2013 
CPU:       Topology: Quad Core model: Intel Core i5-2320 bits: 64 type: MCP L2 cache: 6144 KiB 
           Speed: 1596 MHz min/max: 1600/3300 MHz Core speeds (MHz): 1: 1596 2: 1596 3: 1596 
           4: 1596 
Graphics:  Card-1: AMD Caicos PRO [Radeon HD 7450] driver: radeon v: kernel 
           Display: x11 server: X.Org 1.19.2 driver: ati,radeon unloaded: fbdev,modesetting,vesa 
           resolution: 1024x768~75Hz 
           OpenGL: 
           renderer: Gallium 0.4 on AMD CAICOS (DRM 2.50.0 / 4.16.0 LLVM 3.9.1) 
           v: 3.3 Mesa 13.0.6 
Audio:     Card-1: Intel 7 Series/C216 Family High Definition Audio driver: snd_hda_intel 
           Sound Server: ALSA v: k4.16.0 
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: d4:3e:7e:a8:26:03 
Drives:    HDD Total Size: 931.51 GiB used: 428.91 GiB (46.0%) 
           ID-1: /dev/sda vendor: Seagate model: ST31000524AS size: 931.51 GiB 
Partition: ID-1: / size: 26.03 GiB used: 11.30 GiB (43.4%) fs: ext4 dev: /dev/sda1 
           ID-2: /home size: 536.51 GiB used: 417.61 GiB (77.8%) fs: ext4 dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: radeon temp: 49 C 
           Fan Speeds (RPM): N/A 
... And Add memory & usb with the inxi -F option

Code: Select all

inxi -m
Memory:    RAM: total: 5.76 GiB used: 2.52 GiB (43.7%) 
           RAM Report: permissions: Unable to run dmidecode. Are you root?
 
 inxi --usb
USB:       Hub: 1:1 usb: 2.0 type: Full speed (or root) hub 
           Device-1: HP PR1101U / Primax PMX-KPR1101U Keyboard bus ID: 1:2 type: Keyboard 
           Device-2: Primax HP Optical Mouse bus ID: 1:3 type: Mouse 
           Hub: 2:1 usb: 3.0 type: Full speed (or root) hub 
           Hub: 3:1 usb: 2.0 type: Full speed (or root) hub 
           Hub: 3:2 usb: 2.0 type: Intel Integrated Rate Matching Hub 
           Device-3: Alcor Micro Multi Flash Reader bus ID: 3:5 type: Mass Storage 
           Hub: 4:1 usb: 2.0 type: Full speed (or root) hub 
           Hub: 4:2 usb: 2.0 type: Intel Integrated Rate Matching Hub                    
            
Edit: Sorry --usb is not needed with the -v 7 paramater (maybe -v7 or -v 8 can be done by default ?)

Code: Select all

inxi --full -v 7
Last edited by oops on Sat May 19, 2018 10:42 am, edited 3 times in total.
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 8674
Joined: Sun Dec 16, 2007 1:17 pm

Re: Add an "About Your Computer" item into the mx-welcome GUI

#2 Post by dolphin_oracle » Sat May 19, 2018 10:31 am

check out "Quick-system-info" in the menu, which already does what you propose, and copies the output to the clipboard.

adding it to welcome is a good idea...will keep in mind for the next iteration of mx-welcome.
http://www.youtube.com/runwiththedolphin
eeepc 904ha antix 17 32 bit (streaming media player)
lenovo ThinkPad T530 - MX-17
lenovo s21e - antiX-17, MX17(live-usb)

User avatar
oops
Forum Regular
Forum Regular
Posts: 162
Joined: Tue Apr 10, 2018 5:07 pm

Re: Add an "About Your Computer" item into the mx-welcome GUI

#3 Post by oops » Sat May 19, 2018 11:04 am

Is it the cmd: "inxi -F" (with apparently the "-v 4" option) into the mx-tools command line ? (in French it is named " Outils/Utilitise/Information système")
If so, this command does not always work here to open a terminal with these info. The first time is always OK, but if I try again the terminal sometime not reopen.

But to a more friendly user way:
"inxi --full -v 4" should IMO be "inxi --full -v 7 " (or v 8 ) to show IP address too.

And with the missing info too.
Memory: RAM: total: 5.76 GiB used: 2.52 GiB (43.7%)

Thank you Dolphin_Oracle.
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 8674
Joined: Sun Dec 16, 2007 1:17 pm

Re: Add an "About Your Computer" item into the mx-welcome GUI

#4 Post by dolphin_oracle » Sat May 19, 2018 11:28 am

oops wrote:
Sat May 19, 2018 11:04 am
Is it the cmd: "inxi -F" (with apparently the "-v 4" option) into the mx-tools command line ? (in French it is named " Outils/Utilitise/Information système")
If so, this command does not always work here to open a terminal with these info. The first time is always OK, but if I try again the terminal sometime not reopen.

But to a more friendly user way:
"inxi --full -v 4" should IMO be "inxi --full -v 7 " (or v 8 ) to show IP address too.

And with the missing info too.
Memory: RAM: total: 5.76 GiB used: 2.52 GiB (43.7%)

Thank you Dolphin_Oracle.
the script is in /usr/bin/quick-system-info-mx.

its called from the menu with

Code: Select all

x-terminal-emulator -e bash -c "/usr/bin/quick-system-info-mx"

http://www.youtube.com/runwiththedolphin
eeepc 904ha antix 17 32 bit (streaming media player)
lenovo ThinkPad T530 - MX-17
lenovo s21e - antiX-17, MX17(live-usb)

User avatar
oops
Forum Regular
Forum Regular
Posts: 162
Joined: Tue Apr 10, 2018 5:07 pm

Re: Add an "About Your Computer" item into the mx-welcome GUI

#5 Post by oops » Sat May 19, 2018 2:18 pm

Ah I see, so it's the same script than into mx-tools GUI ... But not so detailed than "inxi --full -v 7 " and with missing info like memory, etc. for normal users.

Thanks for the precision.

Then I have modified the script to:
/usr/bin/quick-system-info-mx

Code: Select all

#    bash -c 'inxi -F 2>/dev/null'
    bash -c 'date && inxi -m && inxi --full -v 8 2>/dev/null'
    

#or, for printers, and,  the antivirus update status (for checking e-mail),  and error:    
     bash -c 'date ; inxi -m ; inxi --full -v 8 ; echo "--> Microcode CPU Version & Bugs:" ; grep -e 'model name' -e 'cpu family' -e 'cpu cores' -e model -e microcode -e bugs /proc/cpuinfo | sort -dr | uniq ; echo "--> List Printers:" ; /usr/bin/lpstat -p -d ; echo "--> Ativirus Version, NB, Date Update signatures:" ; /usr/bin/clamdscan -V ; echo "--> dmesg error|critical|failed:" ; dmesg | egrep -i --color "error|critical|failed" 2>/dev/null'
    
EDIT:
In fact I have created my personal script. (so no need to modify the default one)

Code: Select all

1- here with chmod 755
/usr/bin/quick-system-info-mx-custom.sh


2- here .desktop :
/usr/share/applications/quick-system-info-mx-custom.sh.desktop

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=quick-system-info-mx-custom.sh
Comment=Info System custom
Exec=/usr/bin/quick-system-info-mx-custom.sh
Icon=multimedia-photo-viewer-symbolic
Path=/usr/bin/
Terminal=true
StartupNotify=false
Name[fr_FR]=quick-system-info-mx-custom.sh.desktop
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


Post Reply

Return to “Package Requests/Status - MX 17”