|
Installation
Installing From SourcesImportant: If you are upgrading to a new build of ApcUps, you should uninstall the old one first. Follow the uninstallation instructions at the end of this document before continuing. ApcUps consists of these two components:
Plasma data engine that talks to apcupsd daemons. This also provides a D-BUS service (eu.navlost.apcupsmon) Plasmoid that shows some basic information about an UPS. To build, make sure you have the prerequisites.
openSUSE 11.2 or later users can run this to get the required packages: zypper install cmake libqt4-devel libkde4-devel Once you have the required libraries, you can build and install with: cd <apcups_dir> ./install.sh The script will escalate your privileges to root (using "sudo") to complete the installation. If that makes you nervous, you can do each step manually. Just take a look at what "install.sh" does and do the same thing at the console. IMPORTANT: The last step of the installation is to restart your Plasma desktop session. You will very likely get an error if you try to use the widget before doing this. To restart Plasma, you can log out and then log back in. Or at the console, type: kquitapp plasma-desktop plasma-desktop Installing ApcUps From PackagesBinary installation packages for certain Linux distributions are available via the openSUSE Build Service's home:licehunter repository (http://download.opensuse.org/repositories/home:/licehunter/). These can be installed through your distro's native package manager. You can also add our repositories to be notified about future upgrades. IMPORTANT: The last step of the installation is to restart your Plasma desktop session. You will very likely get an error if you try to use the widget before doing this. To restart Plasma, you can log out and then log back in. Or at the console, type: kquitapp plasma-desktop plasma-desktop Note that these packages are not "official" packages maintained by the distro developers. If your distro provides its own packages, you should use those instead unless you want the absolute latest code. You can also build the distro packages yourself if you have an account at the openSUSE Build Service (OBS). To do this, first run the "./obs-staging.sh" script from the top-level project directory. This will prepare a tarball of the source code and also generate the meta-package files, all of which are placed in a subdirectory called "staging". Simply upload the contents of this directory to OBS or use the command line "osc" tool to build packages locally. Instructions for OBS are available at http://build.opensuse.org. Uninstalling ApcUpsTo remove ApcUps or before upgrading, follow these steps:
cd <apcups_dir>/build; make uninstall |