Linux System Stats Script - Version 2.2.1 Released


Recommended Posts

Added a small update that you can get from the git :)

 

The Gnome version would only pick up three digits i.e 3.4.2 if for example the version was 3.4.2.1 the version would not be picked up resulting in an error, change implemented so that it will pick up full version number no matter how long.

I dont know how to package yet so will need Orangekiller to do that

 

but i will try get gentoo installed tonight to test too

 

question for you is there like a snapshot i can install or do i have to compile everything even in a VM?

Sorry for the late reply. I will try to find some time to review the Gentoo support patch later today. I have been busy with another project recently.

 

Off topic rant: The libparted documentation needs some serious improvement! I have to read the libparted source to understand almost everything. And sometimes even that doesn't make the intended use of each function obvious, so I have to read the parted front-end source too. The parted source would even be helpful if there wasn't so much indirection to initialize each Ped* struct. Also, why does the libparted source include a healthy amount of Doxygen documentation but no doxy file to generate a reference manual?

 

I have been a little hesitant to incorporate official support for more distributions into Stats because it makes new releases increasingly difficult to sufficiently test (without hundreds of gigs of virtual machines, that is). Therefore I have been (slowly) working on a proper integration testing framework to drastically reduce the support burden of testing new releases. It is currently far from complete (therefore I have not pushed its development branch to GitHub, not to mention merged it into master), but it will hopefully appear in a future release. The diagnostic reports Stats 2.x can generate are extremely helpful for implementing this framework. FizzyWidget, would you mind generating a diagnostic report for me on your Gentoo system? I would greatly appreciate it.

Just an FYI, since having the issue with the funky window borders and it screenshotting minimized windows, I've upgraded from Ubuntu 13.04 to Xubuntu 13.10, and the issue doesn't seem to exist any more.  Not sure if it was the switch from Ubuntu to Xubuntu, the upgrade from 13.04 to 13.10, or what, but it's working great for me now, :-)

Sorry for the late reply. I will try to find some time to review the Gentoo support patch later today. I have been busy with another project recently.

 

Off topic rant: The libparted documentation needs some serious improvement! I have to read the libparted source to understand almost everything. And sometimes even that doesn't make the intended use of each function obvious, so I have to read the parted front-end source too. The parted source would even be helpful if there wasn't so much indirection to initialize each Ped* struct. Also, why does the libparted source include a healthy amount of Doxygen documentation but no doxy file to generate a reference manual?

 

I have been a little hesitant to incorporate official support for more distributions into Stats because it makes new releases increasingly difficult to sufficiently test (without hundreds of gigs of virtual machines, that is). Therefore I have been (slowly) working on a proper integration testing framework to drastically reduce the support burden of testing new releases. It is currently far from complete (therefore I have not pushed its development branch to GitHub, not to mention merged it into master), but it will hopefully appear in a future release. The diagnostic reports Stats 2.x can generate are extremely helpful for implementing this framework. FizzyWidget, would you mind generating a diagnostic report for me on your Gentoo system? I would greatly appreciate it.

 

I would do if it hadnt crashed and seems to have wiped itself out - and in the mood I am in atm, I am not inclined to put linux back on that laptop any time soon, seems not matter what distro i use i get issue  :angry:

Just an FYI, since having the issue with the funky window borders and it screenshotting minimized windows, I've upgraded from Ubuntu 13.04 to Xubuntu 13.10, and the issue doesn't seem to exist any more.  Not sure if it was the switch from Ubuntu to Xubuntu, the upgrade from 13.04 to 13.10, or what, but it's working great for me now, :-)

 

I had trouble replicating your issue, hence the lack of a commit with a fix for it. I suspect that it is actually a bug in Compiz, not Stats (and by extension ImageMagick::Import or Scrot). Since XFCE does not use Compiz (unlike Unity, which is literally built on it), your switch to Xubuntu seems to support that theory.

 

I would do if it hadnt crashed and seems to have wiped itself out - and in the mood I am in atm, I am not inclined to put linux back on that laptop any time soon, seems not matter what distro i use i get issue  :angry:

 

I understand, and I appreciate your contributions regardless. However, Gentoo seems like an odd choice of distro if you want something relatively effortless and stable. If you decide to try again with another distro, I recommend Debian. I can't promise that you will have no issues with it (especially without knowing what problems you had with the distros you previously ran), but it is generally counted as one of the best supported and most stable Linux distributions.

I have an image i can use to get it back up and working, but a simple ext4 defrag of /home should not cause the kernel to spaz out and take the partition with it - i will see what i can do, I think the laptop is just too new and none of the kernels seem to play nice, so debian using an older kernel may not be an issue for me

seeing as you asked so nicely - here is the report you wanted  :)

 

http://pastebin.com/DbTp2vrT

 

set to expire in a week

 

Thank you. I downloaded it. I'm sure it will help. Sorry I didn't have time to review your patch yesterday. I likely won't have time tonight either, but I will try to get to it by this weekend.

there was something i found when i put the clean image back on that will need to be added to the readme should you decide to implement the changes

Required applications for gentoo (should be on a working system) If not please run emerge and make sure you have the following installed

lsb_release
xrandr
xdpyinfo
perl-Switcher
scrot

If any of the packages above are not installed, then run

emerge lsb_release xrandr xdpyinfo perl-Switcher scrot

Seeing as Gentoo decides to have files in different places as other distributions you will need to make a symlink in /etc to the hostname file in /etc/conf.d/hostname

This is done by using

ln -s /etc/conf.d/hostname /etc/hostname

 
Should I have some time tomorrow I will try and sort that out and upload a newer version

Should I have some time tomorrow I will try and sort that out and upload a newer version

 

If you could provide a diff of your changes that would be fantastic. A diff would make it much easier for me to review the changes (and import them into Git); otherwise I have to handle the merger myself when I commit the changes to the repository. If you make a copy of the pristine source directory before making changes, you can generate a clean diff as follows:

$ diff -rupN haggis-stats-orig/ haggis-stats/ > stats-add-gentoo-support-v1.patch

One patch as requested, it may seem large but i think thats because when you look at the patch it thinks all your files are from 1970, and everything needs to be replaced :D

 

http://pastebin.com/9CJB0FGV - Will expire in 1 week

 

I still cant get it to not show the host name as

 

Hostname: Hostname='name'

 

as I say I am not that great in perl, everything else seems to work fine though :)

One patch as requested, it may seem large but i think thats because when you look at the patch it thinks all your files are from 1970, and everything needs to be replaced :D

 

http://pastebin.com/9CJB0FGV - Will expire in 1 week

 

I still cant get it to not show the host name as

 

Hostname: Hostname='name'

 

as I say I am not that great in perl, everything else seems to work fine though :)

 

That diff is very noisy, and I think I know why. It is likely that your text editor munged with the spacing and/or line endings. Therefore virtually every line appears to be new whereas it really is not. Although the improper dates are certainly indicative of... something, I don't think they are the source of the problem since diff only captures substantive changes. I can work with the diff you provided as-is if necessary, but would you be willing to produce it again with --ignore-space-change, --ignore-tab-expansion, and --strip-trailing-cr? I would greatly appreciate it if that produces a cleaner diff. The modified command is below.

$ diff -rupNEb --strip-trailing-cr haggis-stats-orig/ haggis-stats/ > stats-add-gentoo-support-v1.patch

FizzyWidget, I just committed official Gentoo support to the Stats repository. You can check it out here. It is based the latest version of your patch, which I enhanced it further to integrate better with the existing Stats codebase. I also added support for the Gentoo hostname file to the script rather than merely mentioning a workaround in the documentation.

 

I am not ready to do another release just yet, but you are welcome to check out the latest commit in the Stats repository. We try to keep the master branch in working condition at all times. You can either download a zip of master generated by GitHub or clone the repository to try it.

$ git clone https://github.com/xorangekiller/haggis-stats.git
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Yeah, this is absolutely nothing new and EA have done it before. Burnout Paradise, released in 2008, had dynamic advertising billboards that were updated via the internet and targeted people based on location and what EA knew about them from their profile. It was particularly notable for the fact that the Obama presidential campaign ran ads in the game, in an attempt to reach a younger audience who didn't watch broadcast TV any more. It was by no means the first though. Battlefield 2142 from 2006 had the same thing. In fact, Neowin wrote a story about it back then. https://www.neowin.net/news/ba...-in-game-ads-clarification/
    • This is obviously aimed at the education where Apple has lost so much ground to Chromebooks in the last few years, but unless they come up with a comparable management system for education why would anyone switch back?
    • Here's how we arrived at that claim: Note that this is just Play Store downloads. The app is also available on the Galaxy App Store
    • Google Play states the app had more than 50 million downloads. What other metric do you suggest should be used?
    • MSN defined our generation in some ways, kind of like Snapchat and TikTok have done for future generations. I have great memories of the MSN era in the late 90s / early 2000s. In the UK everyone seemed to come home from School and go on MSN for the evening. We didn't really have mobile phones then, so other than going and knocking on your friends door it was a totally new way of interacting with people. I also loved how I could talk to people I’d met playing online games from around the world. Inviting people to NetMeeting and messing about with the shared white board and webcams was pretty fun, even if webcams only ran at a couple of fps over dial-up. All the random things you could do with MsgPlus! were really fun - I suspect that made a few people jump with /shello randomly blasting Mr Hankey out their speakers! Maybe I’m just nostalgic, however I do feel the internet and computers were more fun back then.
  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      532
    2. 2
      +Edouard
      206
    3. 3
      PsYcHoKiLLa
      132
    4. 4
      Steven P.
      90
    5. 5
      neufuse
      75
  • Tell a friend

    Love Neowin? Tell a friend!