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.
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.