LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   UPS under SLACKWARE - how to? (https://www.linuxquestions.org/questions/linux-software-2/ups-under-slackware-how-to-108613/)

petarsabev 10-26-2003 04:52 AM

UPS under SLACKWARE - how to?
 
Hi, I have UPS ( PowerMust 800VA Pro). Can someone explain what source to use to communicate with it via serial port cabe wich is connetced to my box.
I'm using Slackware 9.0

thanatos_horus 07-17-2007 12:54 PM

UPS under SLACKWARE - how to?
 
This is written for Slackware 12 with 2.6.21.5-smp kernel (Linux x86) and UPS PowerMust 1000VA (600W) which is connected on COM1 or /dev/ttyS0 (Linux).

1. Insert cd which came with the ups, and if there is any "autorun" cancel it.
2. Open the Konsole and enter following command as root:
2.1 su
2.2 you enter root pass
2.3 mount /dev/dvd /mnt/dvd/
2.4 cd /mnt/dvd/Linux/
2.5 ./setup.bin
then there will be an installation dialog, enter serial and etc.
3. After installation you'll need to enable "permissions" to ttyS0 or COM1 port so you as limited user can use it.
4. From the "K Menu" coose "Run Command...", enter "kwrite", and check option Run as different user, that will be root, enter pass,
4.1 go to /etc/rc.d/rc.local and add the following string "chmod a=rwx /dev/ttyS0" without
quotes of course. So now everyone can use COM1 port.
4.2 after all this you must restart linux so environment variables in /etc/profile can be set correctly.
5. After restart enter in Konsole:
5.1 cd /opt/upspilot/ (which is default install location if you didn't change it)
5.2 ./agent start
5.3 ./monitor
5.4 It should find UPS automatically, and UPS Status Normal, but if not do this:
5.4.1 System/Act as Administrator, enter pass "Administrator", select Auto Search UPS.
6. This step is not necessary but if you are bored to always activate agent on system startup you can do the following:
6.1 Open Konsole, as ordinary user
6.2 kwrite
6.3 copy paste the following:

#!/bin/bash
cd /opt/upspilot/
./agent start

6.4 click save and in "Location" enter without quotes of course "~/.kde/Autostart/ups", close kwrite
6.5 in Konsole type "chmod a+x ~/.kde/Autostart/ups"
6.6 now every time when you restart computer your "UPS Agent" will be automatically started for you.


All times are GMT -5. The time now is 05:53 AM.