Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 18 Aug 2018, 19:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Neofetch : Simple system information tool
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Author Message
Mike Walsh


Joined: 28 Jun 2014
Posts: 4022
Location: King's Lynn, UK.

PostPosted: Tue 12 Jun 2018, 21:51    Post subject:  Neofetch : Simple system information tool
Subject description: View basic information about your system...
 

Morning, all.

I found this on OMG!Ubuntu earlier yesterday evening.

https://www.omgubuntu.co.uk/2016/11/neofetch-terminal-system-info-app

It's simply a script, which fetches basic system information about your computer, and I immediately thought it would be an easy way for newbies to be able to give us information about their systems, if and when we request it when trying to help with problems.

It is, as we're all aware, one of the first things we usually want to know....

Available as a .deb file, or a tarball, I've simply turned the tarball into a .pet package. Well, actually I've turned it into two .pet packages. One, you install, then run the single command

Code:
neofetch


...in the terminal.

Code:
neofetch --travis


...will add some extra info.

Here, I have it running in Sakura, in Slacko 560:-





The supplied packages will run in urxvt, since it's the standard terminal in the majority of Pups.

-----------------------------------------

The other one, for absolute beginners to Linux, who don't even know what a terminal is, much less where to find it, or how to use it, adds a Menu Entry. So all they need to do is download the .pet, install it, then go into Menu->Utility, and click on 'Neofetch System Info'.....and the command will then run in the terminal, and display the output.

Hopefully, this might help to make things easier for everybody all round. My thanks to nosystemdthanks, mjmikulcik, dancytron, and one or two others earlier on, for helping to make the 'beginners' package possible with advice about the terminal commands and flags.

------------------------------------------

You can find the .pet packages at my Google Drive a/c. The CLI version for those who know what they're doing is here:-

https://drive.google.com/file/d/1XxhFL35blV_SRuuZ7uRTuo70FusxrsF3/view?usp=sharing

.....and the 'beginner's' version (with GUI) can be found here:-

https://drive.google.com/file/d/1chE_Kg3qTctYdoFXZpNX8uWTq8l4G7HY/view?usp=sharing


Enjoy.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------


Last edited by Mike Walsh on Fri 15 Jun 2018, 11:48; edited 8 times in total
Back to top
View user's profile Send private message Visit poster's website 
Sylvander

Joined: 15 Dec 2008
Posts: 4370
Location: West Lothian, Scotland, UK

PostPosted: Wed 13 Jun 2018, 04:09    Post subject:  

neofetch-4.0.2_1-noarch-v2.pet installed and menu entry is working well on my Slacko-5.7.0-pae. Very Happy

Saved the session changes.

Last edited by Sylvander on Wed 13 Jun 2018, 14:00; edited 1 time in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 10871
Location: Charleston S.C. USA

PostPosted: Wed 13 Jun 2018, 13:27    Post subject:  

I strongly agree with the idea-> give new users something easy to use, to get info about there computer!!!!!!!!

Not too bad a program and thanks for this!!!

However, now you got to tell them how to copy and paste from a terminal. Shocked Rolling Eyes Laughing Laughing Laughing Laughing Laughing Laughing

I still get best info by telling them how to find stuff in Pup-Sysinfo.

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 10871
Location: Charleston S.C. USA

PostPosted: Wed 13 Jun 2018, 13:41    Post subject:  

Maybe we could make this even better.

There is a configuration file that can control what info is displayed and how it is displayed.
In Puppy, I found it in /root/.config/neofetch/config.conf

Here is the Wiki page with info on how to use this Neofetch config file.
https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
Seems to be a lot of options that could be setup.

A quick play with the config file and I get this now for dispaly of info.
capture27694.jpg
 Description   
 Filesize   24.76 KB
 Viewed   244 Time(s)

capture27694.jpg


_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked

Last edited by bigpup on Wed 13 Jun 2018, 14:16; edited 1 time in total
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4022
Location: King's Lynn, UK.

PostPosted: Wed 13 Jun 2018, 14:11    Post subject:  

Hi, bigpup.

bigpup wrote:
strongly agree with the idea-> give new users something easy to use, to get info about there computer!!!!!!!!

Not too bad a program and thanks for this!!!

However, now you got to tell them how to copy and paste from a terminal.


Hell, you can't win 'em all, bigpup. Laughing Laughing

bigpup wrote:
Maybe we could make this even better.

There is a configuration file that can control what info is displayed and how it is displayed.
In Puppy, I found it in /root/.config/neofetch/config

Here is the Wiki page with info on how to use this Neofetch config file.
https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
Seems to be a lot of options that could be setup.


Well, that's what we really need. I haven't gone into it in any real detail, yet, but I suspect that .config file won't be there until it's installed, or more commonly after the first run. That's the way it usually works, as I'm sure you're aware yourself.

I'll have a look at the Wiki; see what they say. What would you say are the items which are most commonly requested (because I don't think it's necessarily displaying these by default)?

It could be set up to display those items, then have a ready-configured config file present in the package. I think that would work.

It works for me, the way I have remote apps on my external data partition sym-linked into each Puppy. That includes .config files, so that each Pup is reading the same set of data.

No reason at all why that data can't be present at install time.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
darry19662018

Joined: 31 Mar 2018
Posts: 223

PostPosted: Wed 13 Jun 2018, 14:24    Post subject:  

Nice one Mike I will make this available for AnitaOS.
Thanks.
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 10871
Location: Charleston S.C. USA

PostPosted: Wed 13 Jun 2018, 14:33    Post subject:  

Quote:
What would you say are the items which are most commonly requested (because I don't think it's necessarily displaying these by default)?

This is how I changed the config to display what I think we need. (just modified the top section of the config)
I deleted an entry or deleted the (#) in front of an entry.

Code:
 info "OS" distro
    info "Host" model
    info "Kernel" kernel
    info "Resolution" resolution
    info "WM" wm
    info "Terminal Font" term_font
    info "CPU" cpu
    info "GPU" gpu
    info "Memory" memory

    info "GPU Driver" gpu_driver  # Linux/macOS only
    # info "CPU Usage" cpu_usage
     info "Disk" disk
    #info "Battery" battery
    # info "Font" font
    # info "Song" song
    # info "Local IP" local_ip
    # info "Public IP" public_ip
    # info "Users" users
    # info "Install Date" install_date
    # info "Locale" locale  # This only works on glibc systems.

Notice the items with a (#) are already available by removing the (#)

See my above image.

Other info needed would be very Puppy specific and I do not think this could show that.
How Puppy is installed?
On what device?
How you did the install?
Using a save file or save folder?

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4022
Location: King's Lynn, UK.

PostPosted: Wed 13 Jun 2018, 16:29    Post subject:  

Hm. 'Kay...

So; this kinda thing, yes?





Out of curiosity, how did you manage to get it to show the exact Puppy distro? In my experience so far, this thing shows the version of Ubuntu that 'buntu-based Pups are derived from, and for Slackos, it just shows a generic kernel reference.

Having decided what we want to show in the output, it's simple enough to just include a config.conf file at /root/.config/neofetch with the .pet itself. Like that, it's 'pre-set' with the commonly-required information...

According to the Wiki, it's supposed to draw its info from /etc/neofetch/config, in much the same way that for alterations to /root/.jwmrc, you're supposed to edit /etc/xdg/templates/_root_.jwmrc instead (since that's where JWM reads its data from upon a restart of 'X'.) But apparently that's with a 'proper' install...(??!)

If you're happy with that output, I'll rebuild the 'beginners' .pet with that specific config variation included.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4022
Location: King's Lynn, UK.

PostPosted: Wed 13 Jun 2018, 16:40    Post subject:  

darry19662018 wrote:
Nice one Mike I will make this available for AnitaOS.
Thanks.


You're very welcome, mate. I daresay it's been around for a while, but it's the first time I've come across it. As far as I'm concerned, the simpler and more fool-proof the better!

Enjoy.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 10871
Location: Charleston S.C. USA

PostPosted: Wed 13 Jun 2018, 19:34    Post subject:  

That output looks good to me.

Quote:
how did you manage to get it to show the exact Puppy distro?

No idea Question
It just shows the Puppy version for me.
This is running in Xenialpup64 7.5

Can you tell where it is getting the OS info from?????

Maybe this file Idea
/etc/os-release

Neofetch is a script file.
Seems to be setup to try and work with different OS.

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 10871
Location: Charleston S.C. USA

PostPosted: Wed 13 Jun 2018, 20:02    Post subject:  

Figure out if you could get it to show a Puppy logo Idea
_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 10871
Location: Charleston S.C. USA

PostPosted: Wed 13 Jun 2018, 20:11    Post subject:  

Found this info about OS info.
Quote:
[Linux] Neofetch reports inaccurate distro name

It's supposed to be [insert a downstream distro here], but it shows [insert an upstream distro here] instead!

When Neofetch detects a Linux distro it first looks for the lsb_release command before searching for the /etc/os-release file. Since some downstream distros mostly utilize their upstream distro's repositories they'll include the upstream distro's version of lsb_release. The prominent case is with Antergos and Arch with lsb_release installed, Antergos will be detected as "Arch" instead.

When the upstream's version of lsb_release is executed the output will be that of the upstream distro. (Arch output on Antergos and etc). This means that unless the downstream distro supplies their own version of lsb_release in their own repository, the output will be the upstream distro's.

We had deleted support for lsb_release but more complaints came up because it proved to be very useful in detecting a wide number of distros. Almost all distros we officially support provide their own lsb_release package which makes lsb_release output the correct information. See issues/493

So, shouldn't you add an exception rule in cases like these?

A good distro will always provide their own lsb-release file, otherwise they will be practically seen as the upstream distro with fancy modifications.

So, is there any workaround?

Yes, actually. You'd have to remove your lsb-release (or any equivalent) package. (That is, if the distro filled their /etc/*-release properly. Contact your distro's maintainers if they don't).

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4022
Location: King's Lynn, UK.

PostPosted: Wed 13 Jun 2018, 20:56    Post subject:  

bigpup wrote:
Figure out if you could get it to show a Puppy logo Idea


Well.....if you look at the main neofetch script in /usr/bin, starting line 7629, there's the ASCII character picture for Puppy. (The last 3600 lines or so, starting line 5088, with Aix, are all the ASCII 'art' logos...)

Just need to figure out how you get the script to actually show it, and we're in business!

This thing must be fairly recent, 'cos one of the ASCII character 'logos' is for System76's Pop!_OS.....and that was only released late last year, just after 'Artful' was released by Ubuntu.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 12939
Location: Arizona USA

PostPosted: Wed 13 Jun 2018, 22:52    Post subject:  

Mike, could you change the name for the .pet? A newcomer to Puppy will have no idea what "Neofetch" might do when he finds it in the menu. Most of us have learned the hard way not to click on stuff when we have no idea what might happen if we do.
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1158
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Thu 14 Jun 2018, 00:07    Post subject:  

Mike Walsh wrote:
Just need to figure out how you get the script to actually show it, and we're in business!


Line 629 of config: change to > ascii_distro="Puppy"

Edit: Change line 640 to > ascii_colors="Puppy" and image is white.
Screenshot.jpg
 Description   
 Filesize   65.14 KB
 Viewed   163 Time(s)

Screenshot.jpg

Screenshot(1).jpg
 Description   
 Filesize   58.2 KB
 Viewed   166 Time(s)

Screenshot(1).jpg


_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0642s ][ Queries: 15 (0.0038s) ][ GZIP on ]