It is currently Wed Jul 24, 2019 10:05 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Linux system information tool
PostPosted: Sun Jul 07, 2019 8:25 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 220
Location: Germany
A hopefully useful linux utility that i needed as base for a linux installer project.
Please try it on your favorite linux distribution.

Linux system information tool

This tool is the base for an universal GUI based linux installer for Purebasic, with selection of GTK and QT packages and installation. Please ignore the rest of the homepage as it is heavily work in progress and only half done currently.

Enjoy and if you have any tips what and how to improve, please tell me :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux system information tool
PostPosted: Sun Jul 07, 2019 11:31 am 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1008
Location: right here
Thanks! :)

text mode seems to work
Code:
[user]~/Downloads/pb_bitblazer_sysinfotool/systeminfo09>./textmode tell all
Name = Ubuntu
Version = 18.04.2 LTS (Bionic Beaver)
ID = ubuntu
ID Like = debian
PrettyName = Ubuntu 18.04.2 LTS
URL = https://www.ubuntu.com/
Code Name = bionic
Ubuntu Name = bionic
GTK2Version = 2.24.32-1ubuntu1
GTK3Version = 3.22.30-1ubuntu3
QTVersion = 5.9.5
VersionID = 18.04
Package Manager = apt-get
IPV4 = a02:810a:8340:7508:81d8:377e:3484:9c68


gui mode shows the window with empty values in the general tab and shows a message (then closes):
Quote:
Fatal error
something went terribly wrong!
emergency exit


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux system information tool
PostPosted: Sun Jul 07, 2019 1:25 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 220
Location: Germany
Thanks for testing it :)

#NULL wrote:
gui mode shows the window with empty values in the general tab and shows a message (then closes):
Quote:
Fatal error
something went terribly wrong!
emergency exit


Yes i am still trying to find that problem. Sometimes the textmode version simply seems to hang and the gui version gets endless empty lines or something like that. Thats why i made that silly emergency exit for 0.9 ;) V 1.0 will have that fixed. It seems like your ipv6 is shown as ipv4 ....


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux system information tool
PostPosted: Mon Jul 08, 2019 8:15 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 220
Location: Germany
Version 0.92 is up and should fix the mentioned problem and had a bit of a source cleanup. It was really one of the basic linux mistakes i made - to spawn an executable directly while relying on a shell functionality - duh. As a 'standard' linux STDIO fix, i now spawn '/bin/sh textmode' instead of 'textmode'.

btw. the guiclient first looks if a file textmode.txt exists and uses that instead of executing textmode. I added that behaviour to avoid having to make repeated ip lookups during development and as a result, maybe getting blocked by the ip service. So in case a problem like this shows up, use "textmode tell all >textmode.txt" and then launch guiclient.


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux system information tool
PostPosted: Mon Jul 08, 2019 9:41 am 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1008
Location: right here
IP shows as 'IPV6' now.

guiclient has a problem:
Code:
[user]~/Downloads/pb_bitblazer_sysinfotool/SystemInfo092>sudo ./guiclient
error, could'nt launch '/home/user/Downloads/pb_bitblazer_sysinfotool/SystemInfo092/textmode'.
The printed filepath is correct and the file has the execution flag set. It starts fine after creating the textmode.txt and shows data in all tabs.

btw, it's couldn't, not could'nt :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux system information tool
PostPosted: Mon Jul 08, 2019 12:51 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 220
Location: Germany
Version 0.94 is up and hopefully finally fixes the guiclient/textmode communication problem. I will ask google about the correct writing of couldn't now ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux system information tool
PostPosted: Mon Jul 08, 2019 1:32 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1008
Location: right here
Works now without textmode.txt. :)
Both textmode and guiclient give output if run as a normal user. Why is guiclient saying is wants to run as super-user?


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux system information tool
PostPosted: Mon Jul 08, 2019 3:45 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 220
Location: Germany
#NULL wrote:
Works now without textmode.txt. :)
Both textmode and guiclient give output if run as a normal user. Why is guiclient saying is wants to run as super-user?


Good to hear, thanks.

The guiclient uses lshw to get a lot more detailed hardware info for the tabs and lshw needs root rights for some informations. If you need all informations, do "sudo bin/sh" in advance. Thats up to the user :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye