Additional "copy system information" icon on dashboard

I really appreciate that you guys added my suggestion to have an simple icon to copy system-information from Webmin.

The general Idea was to easily find and copy needed info’s to paste it here in the forum.

But the click on the Icon copy the whole information of this dashboard-widget.
Would it be possible to change this, or add another button, which only generate the Info which are always needed here for new posts:

SYSTEM INFORMATION
OS type and version REQUIRED
Webmin version REQUIRED
Virtualmin version REQUIRED
Related packages SUGGESTED

Hi,

Thank you for your suggestions. Although, why not manually remove one or two fields from it or just use the whole system information, that looks both pretty harmless and complete?

SYSTEM INFORMATION     
System hostname ubuntu20-pro.local (10.211.55.11)
Operating system Ubuntu Linux 20.04.2
Time on system Monday, April 4, 2022 5:02 PM
Kernel and CPU Linux 5.4.0-105-generic on x86_64
Processor information Intel(R) Core™ i7-1068NG7 CPU @ 2.30GHz, 2 cores
System uptime 15 hours, 57 minutes
Running processes 153
CPU load averages 0.27 (1 min) 0.14 (5 mins) 0.14 (15 mins)
Real memory 821.13 MiB used / 732.48 MiB cached / 1.92 GiB total
Virtual memory 82.75 MiB used / 1.99 GiB total
Local disk space 10.49 GiB used / 10.02 GiB free / 20.51 GiB total
Package updates 10 package updates are available
SOFTWARE VERSIONS       
Webmin version 1.990
Usermin version 1.834
Virtualmin version 6.17-3 Pro
Authentic theme version 19.91.1
Path to Perl /usr/bin/perl
Python version 2.7.18
Path to Python /usr/bin/python2
BIND version 9.16
Postfix version 3.4.13
Mail injection command /usr/lib/sendmail -t
Apache version 2.4.41
PHP versions 7.4.3
Webalizer version 2.23-08
Logrotate version 3.14.0
MySQL version 8.0.28-0ubuntu0.20.04.3
ProFTPD version 1.36
SpamAssassin version 3.4.4
VIRTUALMIN COUNTS        
Virtual servers 1
DNS domains 1
Virtual websites 1
SSL websites 1
Mail domains 1
Databases 4
Mail/FTP users 2
Mail aliases 6

Although, we should wrap it into accordion. We will fix that.


ubuntu20-pro.local system information
SYSTEM INFORMATION     
System hostname ubuntu20-pro.local (10.211.55.11)
Operating system Ubuntu Linux 20.04.2
Time on system Monday, April 4, 2022 5:37 PM
Kernel and CPU Linux 5.4.0-105-generic on x86_64
Processor information Intel(R) Core™ i7-1068NG7 CPU @ 2.30GHz, 2 cores
System uptime 16 hours, 29 minutes
Running processes 156
CPU load averages 0.17 (1 min) 0.31 (5 mins) 0.26 (15 mins)
Real memory 812.65 MiB used / 718.4 MiB cached / 1.92 GiB total
Virtual memory 83 MiB used / 1.99 GiB total
Local disk space 10.49 GiB used / 10.01 GiB free / 20.51 GiB total
Package updates 10 package updates are available
SOFTWARE VERSIONS       
Webmin version 1.990
Usermin version 1.834
Virtualmin version 6.17-3 Pro
Authentic theme version 19.91.1
Path to Perl /usr/bin/perl
Python version 2.7.18
Path to Python /usr/bin/python2
BIND version 9.16
Postfix version 3.4.13
Mail injection command /usr/lib/sendmail -t
Apache version 2.4.41
PHP versions 7.4.3
Webalizer version 2.23-08
Logrotate version 3.14.0
MySQL version 8.0.28-0ubuntu0.20.04.3
ProFTPD version 1.36
SpamAssassin version 3.4.4
VIRTUALMIN COUNTS        
Virtual servers 1
DNS domains 1
Virtual websites 1
SSL websites 1
Mail domains 1
Databases 4
Mail/FTP users 2
Mail aliases 6

In my opinion its about two reasons:

  1. data economy
    I also don’t like to spread my used services and it’s version-numbers on the internet. Sure, I try to keep the system up to date, but if here is a one-day-exploit, or I missed some updates… it’s like a Sign… “come here and hack me” (yep, I know, I’m the paranoid kind of admin :wink: )

  2. It’s a bit like a striptease, especially if you act like something like an hoster for multiple customers :smiley:
    My customers or competitors didn’t need to know which server I do use, or how much customer-accounts are on it, how stable the server run’s (e.g. uptime), etc.

In my opinion it’s some kind of “data economy”. And at least it’s much easier to read to have only the needed information in a forum-post.

I think that removing few lines is easier than adding more manually. Besides, sharing that kind of package versions details doesn’t really raises the risks of being hacked, as it’s assumed that the latest packages are always installed.

Also, usually users don’t fill tickets everyday (that often).

Category template already provides a very basic set of product versions to fill. I could technically add holding shift to copy basics only, like on the template.

Okay, I reviewed the logic and I think you’re right. It’s better not to copy all info by default.

So I changed a little bit the functionality. By default it will copy only basic data, like:

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.2
Webmin version 1.990
Usermin version 1.834
Virtualmin version 6.17-3 Pro
Theme version 19.91.1
Package updates 10 package updates are available

… then if holding Shift it will copy extended system information wrapped in accordion, like:

ubuntu20-pro.local system information
SYSTEM INFORMATION     
System hostname ubuntu20-pro.local (10.211.55.11)
Operating system Ubuntu Linux 20.04.2
Time on system Monday, April 4, 2022 10:36 PM
Kernel and CPU Linux 5.4.0-105-generic on x86_64
Processor information Intel(R) Core™ i7-1068NG7 CPU @ 2.30GHz, 2 cores
System uptime 21 hours, 15 minutes
Running processes 164
CPU load averages 0.18 (1 min) 0.31 (5 mins) 0.27 (15 mins)
Real memory 816.42 MiB used / 718.26 MiB cached / 1.92 GiB total
Virtual memory 137.25 MiB used / 1.99 GiB total
Local disk space 10.8 GiB used / 9.7 GiB free / 20.51 GiB total
Package updates 10 package updates are available
SOFTWARE VERSIONS       
Webmin version 1.990
Usermin version 1.834
Virtualmin version 6.17-3 Pro
Authentic theme version 19.91.1
Path to Perl /usr/bin/perl
Python version 2.7.18
Path to Python /usr/bin/python2
BIND version 9.16
Postfix version 3.4.13
Mail injection command /usr/lib/sendmail -t
Apache version 2.4.41
PHP versions 7.4.3
Webalizer version 2.23-08
Logrotate version 3.14.0
MySQL version 8.0.28-0ubuntu0.20.04.3
ProFTPD version 1.36
SpamAssassin version 3.4.4
VIRTUALMIN COUNTS        
Virtual servers 3
DNS domains 3
Virtual websites 3
SSL websites 3
Mail domains 1
Databases 6
Mail/FTP users 4
Mail aliases 6

… and holding default modifier key (like Alt) will copy plain text.

It will also be reflected on the tooltip:

image

3 Likes

Thats an awesome solution. Thanks a lot.

2 Likes