hardinfo icon indicating copy to clipboard operation
hardinfo copied to clipboard

How to Install

Open dan83m opened this issue 6 years ago • 11 comments

hi i'm new in linux or ubuntu, and i wanted to know how i can install this program thx

dan83m avatar Dec 07 '18 20:12 dan83m

use the package manager from your distribution... or read the README t the repository!

if you are new in linux you must READ a lot, and always analize before doing anything, that are not just "click click click" ok

mckaygerhard avatar Dec 08 '18 13:12 mckaygerhard

@mckaygerhard Hey, there's no need to be this offensive. @dan83m only asked a question.

@dan83m, it's been a while since there was a proper HardInfo release, so your distribution might not carry an up-to-date version. There has been quite a lot of improvements since then, both in stability and new features. Your best bet would be obtaining HardInfo from source and compiling it yourself. Don't hesitate to ask if you need help with that.

lpereira avatar Dec 09 '18 13:12 lpereira

thx i come from windows so for me installation mean clikcing only on file exe, so it's kind new for me "compiling" things, so yes would be wonderful if i have help to make this work thx

dan83m avatar Dec 09 '18 14:12 dan83m

umm was not an attemp to be offensive, was a advertisement i'll explain:

i am from america and travel to japan, if i pretent to that people and myselft will make things like i does in my country i'm very f¿wrong! that's the point!

mckaygerhard avatar Dec 09 '18 14:12 mckaygerhard

So the installation is a little longer and is not as straight forward as the README would like you to believe. If you don't have all the necessary packages, you're going to have a bad time. Here's what I did.

Assuming you're running from a fresh version of Ubuntu 18.04 (haven't tested others) this is what I had done.

    1  sudo apt install git
    2  cd Downloads/
    3  git clone https://github.com/lpereira/hardinfo.git
    4  cd hardinfo/
    5  mkdir build
    6  cd build/
    7  sudo apt-get update
    8  sudo apt install cmake
    9  sudo apt-get install -y build-essential
   10  sudo apt-get install pkg-config
   11  cmake ..
   12  make

tisaconundrum2 avatar May 06 '19 03:05 tisaconundrum2

umm makes sense @tisaconundrum2 that we need build tools and cmake.. umm ok.. so REAME must include gcc and cmake and that's all i think!

mckaygerhard avatar May 06 '19 12:05 mckaygerhard

To build/install/run from the latest source in Ubuntu:

sudo apt-get install build-essential git cmake libgtk2.0-dev
git clone https://github.com/lpereira/hardinfo.git
cd hardinfo
mkdir build
cd build
cmake ..
make -j
sudo make install
hardinfo

Note that libgtk2.0-dev requires the "universe" repo in Ubuntu 19.04 (disco).

bp0 avatar May 20 '19 01:05 bp0

currently today now in readme must be includes two kind of requirements.. the runtime requirements and buildtime requirements... as i read recently seems udisk2 are now required

mckaygerhard avatar Jun 19 '19 15:06 mckaygerhard

@mckaygerhard udisks2 is not required. If udisks2 is not present or fails to detect any storage devices, hardinfo will fallback to another method to detect drives. However udisks2 is recommended as fallback methods cannot detect NVMe drives nor provide all information about storage devices.

ocerman avatar Jun 19 '19 15:06 ocerman

If you're using Ubuntu, you can use a PPA with up-to-date packages: https://launchpad.net/~lafp/+archive/ubuntu/hardinfo

lpereira avatar Jun 19 '20 16:06 lpereira

Recent notes about this:

  1. That PPA no longer has up-to-date packages
  2. Building in Ubuntu also required installing this package:
    apt install libjson-glib-dev
    

alkisg avatar Jan 17 '22 09:01 alkisg