Due to my new job, I have to deal with GNU Linux. I've taken a 50 videos tutorial series, and I don't know how to install software from a terminal, or do it properly, at least, because when I restarted the terminal no change had been saved! I did it all as root, not sudo from my user.
I'll put an example, but I don't want you to focus on a particular software. I need the more generalized method. I'm trying to install modpoll, a software for ModBus emulating communications. I've download it from internet, so it should be OK. It comes in a zip file that, once unzipped, showed a .tgz archive. Using tar -xvzf modpoll.3.15.tgz I unzipped the .tgz archive.
The unpacked file shows other directories with the names of GNU Linux versions architecture (X86, ARM,i686...). I have no idea what's mine, so I tried to install them all. It seems to be simple - get into one of those and type modpoll to run modpoll.
I must advise an USB serial port adapter was properly installed and plugged at the time I was trying to launch modpoll. There's a problem here since it didn't recognize the device even when I already checked it out in /dev plugging and unplugging usbtty0 device (so it was right), but that's not my problem now.
The next, as I've already read, is to create a permanent path to the binaries so Ubuntu will find it when I eventually call modpoll from wherever in my terminal. So I've typed PATH=$PATH:/home/user/Apps/modpoll (the path to modpoll binary files in my system).
Then it seemed to work alright since, al least, modpoll is responding a communication error with the device and I don't have to stay in modpoll installation directories. Just from my home directory I can call modpoll and it is there.
I repeat, I'm logging as root, I type su then the root password and then I did it all I've mentioned, but when I restart the terminal and tried to run modpoll then I get modpoll: command not found. I restarted Ubuntu, and as before no modpoll command is located. What am I doing wrong?