quarta-feira, 2 de março de 2011

script for change route following dynamic ip

#!/bin/bash
# filename: dynhost.sh
#
# this script is to change the route, following the change of client Dynamic IP
# using dyndns.org or other
##
# written by Olympio Renno http://www.linkedin.com/in/olympiorenno
# based on scrit firewall-dynhosts.sh by: Dave Horner
# (http://dave.thehorners.com)
# Released into public domain.
#
# Run this script in your cron table to update ips.
# /5 * * * * /sbin/dynhost.sh "host1".dyndns.org
# /5 * * * * /sbin/dynhost.sh "host2".dyndns.org
#
#

HOST=$1
GATEWAY="201.27.129.1"
HOSTFILE="/root/dynhosts/host-$HOST"
ROUTE="/sbin/route"
DATA=`date +%Y-%m-%d-%H.%M`
ARQLOG="/var/log/dynhost.log"

# check to make sure we have enough args passed.
if [ "${#@}" -ne "1" ]; then
echo "$0 hostname x" >> $ARQLOG
echo "You must supply a hostname to update route."
exit
fi

# lookup host name from dns tables
IP=`/usr/bin/dig +short $HOST | /usr/bin/tail -n 1`
if [ "${#IP}" = "0" ]; then
echo "Couldn't lookup hostname for $HOST, failed." >> $ARQLOG
exit
fi

OLDIP=""
if [ -a $HOSTFILE ]; then
OLDIP=`cat $HOSTFILE`
fi

if [ $OLDIP = $IP ]; then
exit
fi

# save off new ip.
echo $IP>$HOSTFILE

echo "Updating $HOST in iptables."
if [ "${#OLDIP}" != "0" ]; then
echo "$DATA new ip = $IP old ip = $OLDIP" >> $ARQLOG
echo "Removing old rule ($OLDIP)" >>$ARQLOG
`$ROUTE del $OLDIP gw $GATEWAY`
fi
echo "Inserting new rule ($IP)" >>$ARQLOG
`$ROUTE add $IP gw $GATEWAY`

quinta-feira, 12 de novembro de 2009

Google APPS

Conheça mais, sobre esta ferramenta

1- http://services.google.com/apps/resources/overviews/welcome/topicWelcome/index.html

2- video google apps

http://www.youtube.com/watch?v=M_TzCpYGpzw&feature=email
Google Apps for Business Overview - including Gmail, Google Calendar, Google Spreadsheets, Google Sites and Google Video


3-webimar
http://www.youtube.com/watch?v=9liUx_8WWJM&feature=email
Google Apps Product Overview
The needs for sharing enterprise information have evolved dramatically in the last few years. Yet, enterprise tools for sharing this information have remained in the past. Systems, tools and user interfaces that were designed for a world driven by paper documents are now outdated as the volume of digital information has exploded.

That gap between current information sharing needs and current tools have left users asking: Why cant it just work like Google? The answer is that it can work just like Google. And it should.

Google Apps addresses todays needs end users have for communicating, sharing and collaborating. At the same time, Google Apps for Enterprise tackles the most common business pains IT organizations face when trying to provide a secure, scalable and cost-effective collaboration infrastructure.

Our offering includes hosted email, instant messaging, shared scheduling , document editing & collaboration, video sharing, and web-page sharing.

quinta-feira, 22 de janeiro de 2009

GMail Drive

Uma soluçáo ainda experimental, de uma alternativa para usar o gmail como storage,
o táo esperado gdisk ou coisa assim.

sábado, 10 de janeiro de 2009

sexta-feira, 14 de novembro de 2008

Skype para celular

Finalmente, embora ainda em beta, a Skype lanca o seu software para celular em java.
Link
a ma noticie é que vc tem que usar a linha do celular para fazer e receber chamadas através de um numero de telefone fixo da SKYPE no Rio ou Sáo Paulo

sábado, 8 de novembro de 2008

Suporte Remoto

O nivel dos programas de suporte remoto vao muito alem do esperado...

veja www.logmein.com
existem varios serviços com diversos preços a parte gratuita atende a necessidade de suporte remoto

veja www.showmypc.com
um mais simples com limite de uma hora de uso por conexáo na versao gratis.