to get the latest versions of firefox and thunderbird for ubuntu do the ff
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update
sudo apt-get thunderbird
sudo apt-get firefox
to get the latest versions of firefox and thunderbird for ubuntu do the ff
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update
sudo apt-get thunderbird
sudo apt-get firefox
hardware drivers
http://elrepo.org
Download NUT
*
groupadd nut
adduser -g nut ups
*
./configure –with-user=ups –with-group=nut –with-usb –with-snmp –with-cgi –prefix=/ups –localstatedir=/ups/var –with-pidpath=/ups/var/state/ups –with-statepath=/ups/var/state/ups –enable-static
*
make
*
make install
*
cd /ups
mkdir -p /ups/var/state/ups
chmod 0770 /ups/var/state/ups
chown root:nut /ups/var/state/ups
copy libz.so to /ups/lib
copy libz.a to /ups/lib
*
chmod 0660 /dev/ttyS0
chown root:nut /dev/ttyS0
*
vi /etc/udev/rules.d/99-my.rules
SUBSYSTEM==”tty”, KERNEL==”ttyS0″, OWNER=”root”, GROUP=”nut”
*
prepare upsd.conf upsmon.conf ups.conf upssched.conf upsd.users
*
chown root:nut *.conf upsd.users
chmod 0640 *.conf upsd.users
*
add the following to /etc/init.d/halt
LD_LIBRARY_PATH=/ups/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
if(test -f /etc/killpower)
then
echo “***************SHUTTING DOWN UPS*************”
sleep 1
echo “5″
sleep 1
echo “4″
sleep 1
echo “3″
sleep 1
echo “2″
sleep 1
echo “1″
sleep 1
echo “bye!”
sleep 1
/ups/bin/upsdrvctl -u root shutdown
echo “UPS should be off by now”
sleep 20
fi
*
add upsd upsmon startup scripts to /etc/rc.local
*
vi /ups/etc/alerthandler
#! /bin/sh
case $1 in
onbattwarn)
echo “The UPS has been on battery for awhile”
/ups/sbin/upsmon -c fsd
;;
ups-back-on-power)
/bin/rm -f /ups/var/state/ups-on-battery
;;
*)
logger -t alerthandler “Unrecognized command: $1″
;;
esac
*
chmod 0760 /ups/etc/alerthandler
chown root:nut /ups/etc/alerthandler
*
TEST
fuser /dev/ttyS0 – should produce no output
*
upsdrvctl start
output:
Network UPS Tools – UPS driver controller 2.4.3
Network UPS Tools – Megatec protocol driver 1.6 (2.4.3)
Megatec protocol UPS detected.
*
upsd
output:
Network UPS Tools upsd 2.4.3
listening on 127.0.0.1 port 3493
listening on 192.168.1.145 port 3493
Connected to UPS [myups]: megatec-myups
*
upsc myups@localhost
output:
battery.charge: 100.0
….
ups.type: standby
website: http://iuscommunity.org/
download: epel-release-* ; ius-release-*
to update PHP:
remove rhel packages:
rpm -qa | grep php
yum shell
> remove php-gd php-cli php-odbc php-mbstring php-pdo php php-xml php-common php-ldap php-mysql php-imap
Setting up Remove Process
> install php52-gd php52-cli php52-odbc php52-mbstring php52-pdo php52 php52-xml php52-common php52-ldap php52-mysql php52-imap php52-mcrypt
> transaction solve
> transaction run
Me and my wife are almost done mapping the east side of puerto princesa city proper, i think its time to move on to the west side, I wonder if westcom tactical compound will allow us to map the roads inside there premises hmmm…
I just recently joined Openstreetmap.org.ph and now Im totally addicted to it. visit Puerto Princesa using the following links
OpenStreetMap
GSM Controller
most annoying interfacing i ever done, panay debugging ng serial port.
DIY airsoft .6mm BB chronometer
My very own chronometer. Tech specs:
PIC16F877a 20Mhz
Demo using my Classic Army SLR105 A1 w/ Guarder SP120 spring
uses PORTB interrupts for BB detection.
Welcome to my blogblogblog. This is what i do when there’s nothing to do.
Nikko V2.0. tech specs:
PIC16F877a 20Mhz
Mission in life: to follow wall.