Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have questions in regards to using a different version of NUT than what is available through apt-get for Ubuntu server 12.04. The version of NUT that is available in Ubuntu server 12.04 is 2.6.3. Unfortunately for me, the driver for my UPS was not added to NUT until version 2.7.1, which is what is available for NUT on Ubuntu 14.04.

I want to know if someone either knows of a place I can find a step-by-step guide for compiling and installing this particular version of NUT on Ubuntu server 12.04, or if someone can walk me through it. I've tried several times with no success. I think my biggest questions right now is where in the file structure should I put my downloaded tar, where should I extract it, and where should I compile and install it? Do I need to be in a particular directory when I do any of this, or does Ubuntu "just know" what to do with it when I am compiling and installing. Or, is there an easy way to just add the required information for my UPS into NUT so it will be recognized by NUT 2.6.3.

Hardware information:

Server is custom built using Asus P8B-X motherboard. Graphics driver for motherboard had to be installed (AST 2050 driver I believe). 32Gb server RAM. E3-1230v2 processor. OS is on a 32Gb flash drive. Virtual Machines are stored on another 16Gb flash drive (both flash drives are installed directly on motherboard USB headers). Two VMs run FreeNAS. These VMs mount up access to the Seagate 2TB NAS HDDs in the system (6 total currently). All of this is tucked away in a Rosewell 4U case. Everything is integrated into a Windows Domain and everything works as expected with the exception of communication with the UPS (Tripp-Lite Smart1500LCDXL).

Additional non-essential information:

I have tested my UPS with Ubuntu 14.04 (both server and desktop versions) and NUT 2.7.1 and it works as expected. However there lies my dilemma. The server that is running 12.04 has lot of configurations done to it, many of which I don't remember doing or don't remember how I did it. I can say that the server is running exactly how I want it to without upgrading the distro to 14.04. I did test upgrading from 12.04 to 14.04 on my server's hardware by using a different flash drive and receive an error in regards to possible issues with the install related to the graphics driver that is required by my motherboard. I know there are security risks to having a gui installed on a server, but given the environment I think it is okay; it is behind a firewall and no part of it is exposed outside the internal network, plus I don't necessarily need a gui, but it does make some things for me easier like managing VMs.

All I really care about is gracefully shutting down the VMs during a power outage. FreeBSD and FreeNAS do not recognize the UPS either. My thoughts were to have Ubuntu receive the shutdown command as the VMs go up and down gracefully with the system; they are receiving power up and shut down commands from Ubuntu already.

share|improve this question

closed as too broad by bodhi.zazen, Braiam, BuZZ-dEE, Kevin Bowen, psusi May 16 at 2:13

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Your options are to compile from source or upgrade to a more recent version of Ubuntu. My advice is to upgrade to 14.04. Server upgrades usually go smoother then desktops due to the lower number of packages. Otherwise, download the source code and read the README. You will have to manually install all the dependencies. –  bodhi.zazen May 8 at 16:50
    
See the instructions here - networkupstools.org/download.html –  bodhi.zazen May 8 at 16:54
    
Thank you for your time comments, and suggestions. However, I have been through that guide countless times. I guess what I am really after is some guidance into the internal workings of Ubuntu. More specifically, from what directory is it recommended that I run the compile, make, and install commands? Can I do this all within my downloads directory, or should I be somewhere else in the directory structure when I am doing this. Sorry for such the noob questions. I haven't previously installed anything outside of apt-get and I can't seem to figure it out; my attempts fail. –  jkmurphy1 May 8 at 17:09
    
There is no one single way to do this, see help.ubuntu.com/community/CompilingEasyHowTo and help.ubuntu.com/community/CompilingSoftware . Ask a question when you get stuck or get a specific error message. Otherwise the question is too broad . –  bodhi.zazen May 8 at 17:15
    
Thank you again for your assistance. The first link I have not seen before and helps a bunch. While not specific to NUT, it does outlay information pertaining to both resolving dependencies and a file location to build in, or at least a starting point to build in which I didn't know before. If I have any more questions that are not overly broad while attempting this again, I'll be sure to google then open a new topic if needed. –  jkmurphy1 May 8 at 19:23

Browse other questions tagged or ask your own question.