User Tools

Site Tools


zz_deprecated:home_microserver

This is an old revision of the document!


Table of Contents

pkg list

pacman -Q | awk '{print $1}' > pkgs.txt
acl
alsa-lib
apr
apr-util
archlinux-keyring
attr
autoconf
automake
avahi
bash
binutils
bison
bluez
bluez-firmware
bluez-libs
bzip2
ca-certificates
cifs-utils
cloog
coreutils
cracklib
cryptsetup
curl
damageproto
db
dbus
desktop-file-utils
device-mapper
dhcpcd
diffutils
dirmngr
dnssec-anchors
e2fsprogs
elfutils
elinks
enca
ethtool
expat
fakeroot
ffmpeg
file
filesystem
findutils
fixesproto
flac
flex
fontconfig
freetype2
fribidi
gamin
gawk
gc
gcc
gcc-libs
gd
gdbm
gettext
glib2
glibc
gmp
gnupg
gnutls
gpgme
gpm
graphite
grep
groff
gsm
guile
gzip
harfbuzz
hdparm
htop
hwids
iana-etc
inetutils
iniparser
inputproto
iproute2
iptables
iputils
isl
jfsutils
js185
json-c
kbd
kbproto
keyutils
kmod
krb5
lame
ldb
ldns
less
libaio
libarchive
libass
libassuan
libasyncns
libatomic_ops
libbluray
libbsd
libcap
libcap-ng
libcups
libdaemon
libdbus
libdrm
libedit
libevent
libexif
libffi
libgcrypt
libgpg-error
libgssglue
libical
libice
libid3tag
libidn
libjpeg-turbo
libksba
libldap
libltdl
libmariadbclient
libmodplug
libmpc
libnl
libogg
libpcap
libpciaccess
libpipeline
libpng
libpulse
librpcsecgss
libsasl
libseccomp
libsm
libsndfile
libssh2
libsystemd
libtasn1
libtheora
libtiff
libtirpc
libtool
libunistring
libusb
libusb-compat
libutil-linux
libva
libvdpau
libvorbis
libvpx
libwbclient
libx11
libx264
libxau
libxcb
libxdamage
libxdmcp
libxext
libxfixes
libxi
libxml2
libxrender
libxshmfence
libxtst
libxxf86vm
licenses
linux
linux-api-headers
linux-firmware
linux-headers
llvm-libs
logrotate
lsof
lua51
lvm2
lzo2
m4
make
man-db
man-pages
mdadm
mesa
mesa-libgl
minidlna
mkinitcpio
mkinitcpio-busybox
mlocate
mpfr
nano
ncurses
netctl
netstat-nat
nettle
nfs-utils
nfsidmap
nspr
opencore-amr
openjpeg
openresolv
openssh
openssl
openvpn
opus
orc
p11-kit
pacman
pacman-mirrorlist
pam
pambase
patch
pbzip2
pciutils
pcmciautils
pcre
perl
pigz
pinentry
pkg-config
pkgfile
pm-quirks
pm-utils
popt
ppp
procps-ng
psmisc
pth
python
python2
readline
recode
recordproto
reiserfsprogs
renderproto
rpcbind
rsync
rtmpdump
run-parts
s-nail
samba
schroedinger
screen
sdl
sed
serf
shadow
smbclient
speex
sqlite
strace
subversion
sudo
sysfsutils
syslinux
systemd
systemd-sysvcompat
talloc
tar
tcpdump
tdb
tevent
texinfo
tmux
tre
tzdata
usbutils
util-linux
v4l-utils
vi
vim
vim-runtime
wayland
wget
which
wvdial
wvstreams
x265
xcb-proto
xextproto
xf86vidmodeproto
xfsprogs
xplc
xproto
xvidcore
xz
zlib

nut

wget "http://www.networkupstools.org/source/2.7/nut-2.7.2.tar.gz"
./configure \
	--prefix=/apps/nut \
	--with-usb \
	--without-doc \
	--with-serial \
	--without-ipmi \
	--without-freeipmi \
	--without-macosx_ups \
	--without-avahi \
	--with-cgi \
	--with-statepath=/apps/nut/var/state/ups \
	--with-systemdsystemunitdir=/usr/lib/systemd/system
make -j2
make install
mv /usr/apps/nut/lib/systemd/system/*.service /usr/lib/systemd/system/
useradd -r  -d /apps/nut/home -m -s /sbin/nologin nut

Config files (cleaned):

cat> ./upsd.conf<<EOF
MAXAGE 15
STATEPATH /apps/nut/var/state/ups
LISTEN 127.0.0.1 3493
MAXCONN 30
EOF
cat> ./upsd.users<<EOF
[upsmonitor]
        password = s2J2Vmjkn3izUtSAM2SK
[admin]
        password = zVVTDCFXi4Exv9nXrTmz
        actions = SET
        instcmds = ALL
EOF
cat> ./nut.conf<<EOF
MODE=standalone
EOF
cat> ./upssched.conf<<EOF
CMDSCRIPT /apps/nut/bin/upssched-cmd
EOF
cat> ./ups.conf<<EOF
[salicru]
driver = blazer_usb
port    = auto
desc    = "Sai Salicru 700"
EOF
cat> ./upsmon.conf<<EOF
RUN_AS_USER nut
MONITOR salicru@localhost:3493 1 upsmonitor s2J2Vmjkn3izUtSAM2SK master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /home/apps/nut/scripts/notifyme.sh
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYMSG ONLINE        "UPS  on line power"
NOTIFYMSG ONBATT        "UPS  on battery"
NOTIFYMSG LOWBATT       "UPS  battery is low"
NOTIFYMSG FSD           "UPS : forced shutdown in progress"
NOTIFYMSG COMMOK        "Communications with UPS  established"
NOTIFYMSG COMMBAD       "Communications with UPS  lost"
NOTIFYMSG SHUTDOWN      "Auto logout and shutdown proceeding"
NOTIFYMSG REPLBATT      "UPS  battery needs to be replaced"
NOTIFYMSG NOCOMM        "UPS  is unavailable"
NOTIFYMSG NOPARENT      "upsmon parent process died - shutdown impossible"
NOTIFYFLAG ONLINE     SYSLOG+WALL+EXEC
NOTIFYFLAG ONBATT     SYSLOG+WALL+EXEC
NOTIFYFLAG LOWBATT    SYSLOG+WALL+EXEC
NOTIFYFLAG FSD        SYSLOG+EXEC
NOTIFYFLAG COMMOK     SYSLOG+EXEC
NOTIFYFLAG COMMBAD    SYSLOG+EXEC
NOTIFYFLAG SHUTDOWN   SYSLOG+EXEC
NOTIFYFLAG REPLBATT   SYSLOG+EXEC
NOTIFYFLAG NOCOMM     SYSLOG+EXEC
NOTIFYFLAG NOPARENT   SYSLOG+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
EOF

asterisk

wget "http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz"
 
 
 
 
zz_deprecated/home_microserver.1405502868.txt.gz · Last modified: 2014/07/16 09:27 by dodger