Você tem uma máquina em casa com Banda Larga? Speedy ou outra qualquer?

Você deseja acessá-la de qualquer outra máquina mas não sabe como? Qual o IP da sua máquina nesse momento?

Uma forma seria anotar o IP da sua máquina que o site www.showip.com mostra.

Outra forma é utilizar o DynDNS que fica responsável pela atualização frequente do seu IP.
E para acessá-la basta digitar o endereço que você escolheu no site www.dyndns.com.
Daí fica fácil!! E sua máquina pode estar tanto no Windows quanto no Linux, tanto faz, basta instalar o software client fornecido pelo site e pronto!

Como eu devo proceder?

Primeiro acesse o site https://www.dyndns.com e faça o seu cadastro. Anote seu login e sua senha.

Depois acesse o

DDCLIENT v3.6.7

ddclient is a Perl client used to update dynamic DNS entries for accounts
on many dynamic DNS services.

IMPORTANT: The format and options used by ddclient have CHANGED.
Please examine the sample configuration file.
It is highly recommended that you take advantage of the
new daemon mode of operation.

IMPORTANT: The installation location for the ddclient script has changed from
/root/bin/
to
/usr/sbin/

===============================================================================

Dynamic DNS services currently supported include:

DynDNS.com - See http://www.dyndns.com for details on obtaining a free account.
Hammernode - See http://www.hn.org for details on obtaining a free account.
Zoneedit - See http://www.zoneedit.com for details.
EasyDNS - See http://www.easydns.com for details.
NameCheap - See http://www.namecheap.com for details
ConCont - See http://www.dydns.za.net for details
DnsPark - See http://www.dnspark.com for details
DslReports - See http://www.dslreports.com for details
Sitelutions - see http://www.sitelutions.com for details

DDclient now supports many of cable/dsl broadband routers.

Comments, suggestions and requests: use the forums on
http://sourceforge.net/projects/ddclient/

The code was originally written by Paul Burry and is now hosted and maintained
through sourceforge.net. Please check out http://ddclient.sf.net

-------------------------------------------------------------------------------
REQUIREMENTS:

- one or more accounts from one of the dynamic DNS services

- Perl 5.004 or later
(you need the IO::Socket::SSL perl library for ssl-support)

- Linux or probably any common Unix system

-------------------------------------------------------------------------------
INSTALLATION:

cp ddclient /usr/sbin/
mkdir /etc/ddclient
cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
vi /etc/ddclient/ddclient.conf
-- and change hostnames, logins, and passwords appropriately

## For those using Redhat style rc files and using daemon-mode:
cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
## enable automatic startup when booting
/sbin/chkconfig --add ddclient
## start the first time by hand
/etc/rc.d/init.d/ddclient start

## If you are not using daemon-mode, configure cron and dhcp or ppp
## as described below.

 

Ficou fácil configurar o Fedora agora!! (Site Oficial)

"easyLife é um programa para realizar instalações automáticas no Fedora."

Novidades:

1 - "Fedora Fácil" mudou de nome para easyLife.

2 - Baixe a versão do easyLife para o Fedora 8 no link mais abaixo.


Atenção:

Este programa é LIVRE. O uso é recomendado para usuários novatos e mesmo para usuários experientes que não queriam repetir diversos passos de instalação de programas a cada nova instalação do Fedora. Ele só funciona, por enquanto, para o FEDORA(TM) 8 VERSÃO 32 bits (i386, i586, i686).

Use livremente, copie livremente, modifique livremente e sinta-se a vontade para fazer sugestões e críticas.

- Duli

O que é

O "easyLife" é um programa que permite ao usuário instalar diversos aplicativos e ajustar algumas configurações no Fedora 8 (32bits) simplesmente respondendo sim ou não.

Dentre outras, essas são algumas funções do "easyLife":

. Ajusta o comando "sudo" para o seu usuário;

. Instala o plugin do Flash Player;

. Instala Mídia Players e Codecs;

. Instala fontes adicionais no sistema;

. Instala o repositório Livna;

. Instala o Skype;

. Instala o Java da SUN e o plugin Java para firefox;

. Instala o Adobe Reader;

. E muitos outros.


Download/Instalação e Screenshots

A instalação do "easyLife" é muito simples.

01) Clique neste link e escolha a opção "Abrir com: system-install-packages" ou "Abrir com: Instalador de Programas":

OBS: Se não aparecer a opção "system-install-packages", escolha "Outro programa..." e procure em "Sistema de Arquivos" > usr > bin > system-install-packages.

02) Após, clique em "Instalar mesmo assim":

Caso queira instalar a chave pública e evitar essa mensagem futuramente, digite, como root, no terminal:

rpm --import http://www.duli.googlepages.com/RPM-GPG-KEY-duli.asc

Pronto, está instalado. O programa ficará disponível em um ícone na sua área de trabalho:

Ou então no menu Aplicações > Ferramentas do Sistema > Fedora Fácil:


Uma vez iniciado, basta seguir as orientações que irão aparecer na janela:


Pronto. É isso! Faça bom proveito!

Como remover o programa?

Para remover o "easyLife" basta digitar, como root, em um terminal:

yum remove -y easylife

Código Fonte do easyLife

Clique aqui para fazer o download do source rpm do easyLife.

 

A Revista Linux é uma ótima publicação online, voltada para artigos e dicas sobre Linux e software livre, de periodicidade bimestral, disponível gratuitamente em PDF.

A revista foi criada por um grupo de estudantes portugueses de informática, por isso ela é publicada em português de Portugal, mas não possui nenhum impencilio maior que possa dificultar o entendimento dos leitores brasileiros.

Criada em Dezembro do ano passado, a publicação conta atualmente com 4 edições lançadas, todas gratuitas para download.

Faça o Download da sua revista

 

Web 2.0

By Palinux

Este vídeo mostra um pouco do que é essa tecnologia:



 

Retirado de: http://felipetonello.com/blog/2007/02/28/zend-framework-para-um-php-mais-poderoso/

Esse tutorial tem como objetivo mostrar para as pessoas que nunca viram nada sobre o ZF(Zend Framework) e estão querendo saber como ele funciona.

Quem já ouviu falar do Zend Framework? Resumidamente a Zend é uma empresa responsável pela manutenção e desenvolvimento do PHP.
A engine de orientação a objetos do php5 foi totalmente reescrita pelo pessoal da Zend.

Mas o que seria um framework?

O framework é um conjunto de classes com objetivo de reutilização de um design, provendo um guia para uma solução de arquitetura em um domínio específico de software. (Wikipedia)
Pode-se dizer que ele seria um conjunto de bibliotecas específicas.

Falando nossa lingua, o framework é um conjuntão de bibliotecas que ajuda em nosso trabalho do dia a dia, e nos trabalhos mais complicados também.

Esse artigo utiliza a versão 0.8 do framework. (dia 28/02/07)
[atualizado]
Versão atual: 1.0.1 (01/08/07)
[/atualizado]

Entendendo o Zend Framework

O Zend Framework segue o padrão MVC - Model View Controller. É um padrão de arquitetura onde separa o GUI, templates, etc(View) da lógica(Model) e do controle(Controller).
Então nele você pode usar a mesma lógica e/ou controle em diversas interfaçes com o usuário.

Usando o Zend Framework

Agora vamos arrumar a estrutura de diretórios necessária para o correto funcionamento do ZF.

diretórios

PS: a pasta ZF-tutorial fica dentro do DocumentRoot, que é onde fica suas páginas no servidor(padrão do apache: htdocs/ ou /var/www/).

No caso a pasta controllers, models e views estão dentro da pasta app(application, nome sugestivo). publico é onde vai suas outras coisas normais como imagens e css, js e assim por diante. E lib é a pasta onde vai ficar o ZF.

Entre na pasta onde você descompactou o arquivo tarball(.tar.gz), depois entre na pasta library e copie a pasta zend para a sua pasta lib(na ZF-tutorial) do seu sistema. Talvez você precise mudar(ou copiar) como root, aqui no exemplo vou usar sem o root.

Code (bash)
  1. cd ~/ZendFramework-1.0.1/library
  2. cp -Rfv Zend/ documentRoot_do_apache/ZF-tutorial/lib/

Aí depois no diretório lib irá ter lib/Zend, certo?

lib/Zend

Configurando o Apache

Primeira coisa que temos a fazer é abilitar o módulo rewrite do apache.
Edite o arquivo de configuração do apache, httpd.conf.
Descomente(tirando o #) a linha onde está escrito:

Code (apache)
  1. LoadModule rewrite_module modules/mod_rewrite.so
  2. AddModule mod_rewrite.c

Defina o AccessFileName (pode ser no final do arquivo):

Code (apache)
  1. AccessFileName .htaccess

Setar a opção AllowOverride como All.

Trocar as linhas abaixo:

Code (apache)
  1. #
  2. # Options Indexes FollowSymLinks
  3. # AllowOverride None
  4. #

por:

Code (apache)
  1. Options FollowSymLinks Includes
  2. AllowOverride All

Criando o Bootstrapping

O controller do ZF, Zend_Controller, é feito para suportar websites com urls limpas.
Então, todas as requisições precisam ser feitas diretamente em um arquivo index.php, essa prática é conhecida como bootstrapping.
E para isso precisamos criar alguns arquivos .htaccess.

ZF-tutorial/.htaccess

Code (apache)
  1. RewriteEngine on
  2. RewriteRule .* index.php
  3. php_flag magic_quotes_gpc off
  4. php_flag register_globals off

Essa RewriteRule quer dizer que para qualquer coisa escrita ele(apache) irá redirecionar para o index.php(que fica dentro do ZF-tutorial, calma que ainda vamos cria-lo). :)
Alí também setamos algumas configurações do PHP.ini. Essas configurações provavelmente já estão setadas como padrão, mas é bom ter certeza né. Elas só vão funcionar se estiver habilitado o mod_php no httpd.conf do apache.

Agora vamos setar nosso .htaccess na pasta público. Lá estará os arquivos JavaScript, CSS, imagens e assim por diante. Então vamos habilitar tudo por lá.

ZF-tutorial/publico/.htaccess

Code (apache)
  1. RewriteEngine off

Agora na pasta app e no lib não queremos que nenhum intruso acesse, porque lá estão nossos arquivos preciosos. :P
ZF-tutorial/app/.htaccess

Code (apache)
  1. deny from all

ZF-tutorial/lib/.htaccess

Code (apache)
  1. deny from all

Esse esquema de bootstrapping é recomendação dos desenvolvedores do ZF, ok? Motivo de segurança, sabe como é né.

Criando o nosso index.php(bootstrap file)

Agora vamos criar nossa index.php na pasta ZF-tutorial.
ZF-tutorial/index.php

Code (php)
  1. error_reporting(E_ALL|E_STRICT); // para mostrar os erros, apenas nos testes(precisa estar setado no PHP.ini)
  2. // Seta o timezone pra são paulo (>=PHP 5.1)
  3. setlocale (LC_ALL, ‘pt_BR’);
  4. date_default_timezone_set(‘America/Sao_Paulo’);
  5. /* Seta include path para o funcionamento correto do framework ***OBRIGATÓRIO*** */
  6. set_include_path(‘.’.PATH_SEPARATOR.‘./lib’
  7. .PATH_SEPARATOR.‘./app/models/’ //facilitar depois ao loadar as nossos modelos
  8. .PATH_SEPARATOR.get_include_path());
  9. /* Necessário para loadar qualquer outra classe do framework ***OBRIGATÓRIO*** */
  10. include "Zend/Loader.php";
  11. //loada o controller front
  12. Zend_Loader::loadClass(‘Zend_Controller_Front’);
  13. /*
  14. Essa classe se encontra em Zend/Controller/Front.php
  15. Pode ser loadado diretamente pelo nome se preferir
  16. Para começar nós precisamos loadar primeiro o front controller
  17. Ele faz um controle automático para detectar a base URL e fazer o redirecionamento correto
  18. */
  19. $controlador = Zend_Controller_Front::getInstance();
  20. $controlador->throwExceptions(true); // mostrar excessões(apenas para testes)
  21. $controlador->setControllerDirectory(‘./app/controllers’); // seta diretório com nossos controllers
  22. //Roda o sistema
  23. $controlador->dispatch();
  24. //sem fechar a tag php

Note que agente não fecha a tag php para nos previnir de erros usando o header(), no caso de espaços em branco adicionais depois do ?>.

Agora na pasta controllers vamos criar um IndexController.php. Esse controller vai entrar em ação sempre que o index for chamado.
Para entender como funciona, precisamos saber como o Zend_Controller_Front trabalha.
O ZF usa um sistema de Controllers(Controladores) e Actions(Ações). E isso é setado diretamente na url(lembra do bootstrapping?). Como?
Usando o nosso exemplo, no formato http://localhost/ZF-tutorial/index/teste o index é o Controller e o teste é o Action. Outro exemplo, http://localhost/ZF-tutorial/foo/bar o foo é o Controller e o bar é o Action.
E quando você não coloca nada? Exemplo, http://localhost/ZF-tutorial/ o Zend_Controller_Front considera como index o Controller e index a Action.
O que vem depois é parâmetro, mas isso é assunto pra depois :P

Vamos fazer nosso IndexController então
ZF-tutorial/app/controllers/IndexController.php

Code (php)
  1. class IndexController extends Zend_Controller_Action
  2. {
  3. public function indexAction()
  4. {
  5. $this->view->titulo = ‘Primeiro Tutorial de Zend Framework’;
  6. $this->view->detalhe = ‘Olá Mundo!’;
  7. }
  8. }

 

Saiba como fazer uma instalação elétrica através do manual da Eletropaulo.

Fonte: http://www.scite.pro.br/principal.php

Download Manual

 

h1

Seu MSN não entra? Corrija este erro!

Sempre quando estamos com o XP recém-formatado e instalamos o MSN, geralmente sempre dá um erro bem irritante, que diz que não é possível entrar no MSN, mais para resolver este problema é bem simples, basta permitir no Firewall do Windows a permissão para o MSN entrar e pronto! :)

Pessoal para liberar o MSN no Firewall do Windows realmente é bem simples, primeiramente vá no menu iniciar>Painel de Controle, painel de controle vá na opção “Central de Segurança”.

Agora na nova janela que aparecer abaixe ela até o fim da janela e clique em Firewall do Windows, veja na imagem abaixo como é a opção:

Agora nessa nova janela que aparecer vá a aba “Exceções” clique no botão “Adicionar Porta” na janela nova janela que aparecer em nome escreva “msnmsgr” sem aspas obviamente e em Número da Porta digite o número “1863″ e abaixo marque a opção UDP, olhe na imagem abaixo deverá ficar:

Agora basta dar Ok e pronto! Seu MSN entrará normalmente agora sem problema algum! ;)

 

EXAMPLES

find /home -user joe
Find every file under the directory /home owned by the user joe.

find /usr -name *stat
Find every file under the directory /usr ending in ".stat".

find /var/spool -mtime +60
Find every file under the directory /var/spool that was modified more than 60 days ago.

find /tmp -name core -type f -print | xargs /bin/rm -f
Find files named core in or below the directory /tmp and delete them. Note that this will work incorrectly if there are any filenames containing newlines, single or double quotes, or spaces.

find /tmp -name core -type f -print0 | xargs -0 /bin/rm -f

Find files named core in or below the directory /tmp and delete them, processing filenames in such a way that file or directory names containing single or double quotes, spaces or newlines are correctly handled. The -name test comes before the -type test in order to avoid having to call stat(2) on every file.

find . -type f -exec file '{}' \;
Runs `file' on every file in or below the current directory. Notice that the braces are enclosed in single quote marks to protect them from interpretation as shell script punctuation. The semicolon is similarly protected by the use of a backslash, though ';' could have been used in that case also.

find /       \( -perm -4000 -fprintf /root/suid.txt '%#m %u %p\n' \) , \
\( -size +100M -fprintf /root/big.txt '%-10s %p\n' \)
Traverse the filesystem just once, listing setuid files and directories into /root/suid.txt and large files into /root/big.txt.

find $HOME  -mtime 0
Search for files in your home directory which have been modified in the last twenty-four hours. This command works this way because the time since each file was last modified is divided by 24 hours and any remainder is discarded. That means that to match -mtime

0, a file will have to have a modification in the past which is less than 24 hours ago.

find . -perm 664
Search for files which have read and write permission for their owner, and group, but which other users can read but not write to. Files which meet these criteria but have other permissions bits set (for example if someone can execute the file) will not be matched.

find . -perm -664
Search for files which have read and write permission for their owner and group, and which other users can read, without regard to the presence of any extra permission bits (for example the executable bit). This will match a file which has mode 0777, for example.

find . -perm /222
Search for files which are writable by somebody (their owner, or their group, or anybody else).

find . -perm /220
find . -perm /u+w,g+w
find . -perm /u=w,g=w
All three of these commands do the same thing, but the first one uses the octal representation of the file mode, and the other two use the symbolic form. These commands all search for files which are writable by either their owner or their group. The files don't have to be writable by both the owner and group to be matched; either will do.

find . -perm -220
find . -perm -g+w,u+w
Both these commands do the same thing; search for files which are writable by both their owner and their group.

find . -perm -444 -perm /222 ! -perm /111
find . -perm -a+r -perm /a+w ! -perm /a+x
These two commands both search for files that are readable for everybody (-perm -444 or -perm -a+r), have at least on write bit set (-perm /222 or -perm /a+w) but are not executable for anybody (! -perm /111 and ! -perm /a+x respectively)

Admittedly, the find command does not help itself by using X-style parameters. The Unix standard is -c, -s, and so on, whereas the GNU standard is --dosomething, --mooby, and so forth. X-style parameters merge the two by having words preceded by only one dash. The most basic usage is this:

find -name "*.txt"

That query searches the current directory and all subdirectories for files that end in .txt. The previous search finds files ending in .txt but not .TXT, .Txt, or other case variations. To search without case sensitivity, use -iname instead of -name. You can optionally specify where the search should start before the -name parameter, like this:

find /home -name "*.txt"

Another useful test is -size, which lets you specify how big the files should be to match. You can specify your size in kilobytes and optionally also use + or - to specify greater than or less than. For example:

 find /home -name "*.txt" -size 100k 
 find /home -name "*.txt" -size +100k 
 find /home -name "*.txt" -size -100k 

The first brings up files of exactly 100KB, the second only files greater than 100KB, and the last only files less than 100KB.

The -user option enables you to specify the user that owns the files you are looking for. So, to search for all files in /home that end with .txt, are under 100KB, and are owned by user paul, you would use this:

find /home -name "*.txt" -size -100k -user paul

You can flip any of the conditions by specifying -not before them. For example, you can add a -not before -user paul to find matching files owned by everyone but paul:

find /home -name "*.txt" -size -100k -not -user paul

You can add as many -not parameters as you need, even using -not -not to cancel each other out! (Yes, that is pointless.) Keep in mind, though, that -not -size -100k is essentially equivalent to -size +100k, with the exception that the former will match files of exactly 100KB whereas the latter will not.

You can use -perm to specify which permissions a file should have for it to be matched. This is tricky, so read carefully. The permissions are specified in the same way as with the chmod command: u for user, g for group, o for others, r for read, w for write, and x for execute. However, before you give the permissions, you need to specify a plus, a minus, or a blank space. If you specify neither a plus nor a minus, the files must exactly match the mode you give. If you specify -, the files must match all the modes you specify. If you specify +, the files must match any the modes you specify. Confused yet?

The confusion can be cleared up with some examples. This next command finds all files that have permission o=r (readable for other users). Notice that if you remove the -name parameter, it is equivalent to * because all filenames are matched.

find /home -perm -o=r

Any files that have o=r set are returned from that query. Those files also might have u=rw and other permissions, but as long as they have o=r, they will match. This next query matches all files that have o=rw set:

find /home -perm -o=rw

However, that query does not match files that are o=r or o=w. To be matched, a file must be readable and writeable by other users. If you want to match readable or writeable (or both), you need to use +, like this:

find /home -perm +o=rw

Similarly, this next query matches files that are only readable by user, group, and others:

find /home -perm -ugo=r

Whereas this query matches files as long as they are readable by the user, or by the group, or by others, or by any combination of the three:

find /home -perm +ugo=r

If you use neither + nor -, you are specifying the exact permissions to search for. For example, the next query searches for files that are readable by user, group, and others but not writeable or executable by anyone:

find /home -perm ugo=r

You can be as specific as you need to be with the permissions. For example, this query finds all files that are readable for the user, group, and others and writeable by the user:

find /home -perm ugo=r,u=w

To find files that are not readable by others, use the -not condition, like this:

find /home -not -perm +o=r

Now, on to the most advanced aspect of the find command: the -exec parameter. This enables you to execute an external program each time a match is made, passing in the name of the matched file wherever you want it. This has very specific syntax: Your command and its parameters should follow immediately after -exec, terminated by \;. You can insert the filename match at any point using {} (an opening and a closing brace side by side).

So, you can match all text files on the entire system (that is, searching recursively from / rather than from /home as in our previous examples) over 10KB, owned by paul, that are not readable by other users, and then use chmod to enable reading, like this:

find / -name "*.txt" -size +10k -user paul -not -perm +o=r -exec chmod o+r {} \;

When you type your own -exec parameters, be sure to include a space before \;. Otherwise, you might see an error such as missing argument to ´-exec'.

Do you see now why some people think the find command is scary? Many people learn just enough about find to be able to use it in a very basic way, but hopefully you will see how much it can do if you give it a chance.

 

KnowledgeTree é um sistema de gerenciamento de documento comercial open source


  • Gerencia as informações de uma organização, tornando-a salva, e fácil de localizar.
  • Baixe a versão open source sem taxas, tenha acesso ao código fonte
  • Tenha suporte comercial e características adicionais se você precisar

Wiki: http://wiki.knowledgetree.com/Main_Page
Forum: http://forums.knowledgetree.com/
Forge: http://forge.knowledgetree.com/
Blogs: http://people.knowledgetree.com

 

Vá em Iniciar -> Executar -> cmd

Depois digite o comando: ipconfig /all

Até +