Páginas

sexta-feira, 12 de dezembro de 2014

Como habilitar o repositório RPMForge no RHEL/CentOS 7.x/6.x/5.x


Repositório RPMForge é um utilitário que é usado para instalar pacotes de software de terceiros sob o Red Hat Enterprise Linux (RHEL) e CentOS.

Ele fornece mais de 5000 pacotes de software no formato rpm.

RPMForge não faz parte do RHEL ou CentOS, mas é projetado para trabalhar com esses sistemas operacionais. A lista completa dos pacotes RPMForge pode ser obtida em http://packages.sw.be/
Install RPMForge Repository in Centos

Matéria completa em: www.tecmint.com

terça-feira, 12 de agosto de 2014

OMNISPEED – average speed and current speed of running and completed sessions

To calculate the speed of your backup jobs is still not a easy task within Data Protector, you need to monitor the session, to write down the start time, to write down the GB written and finally you need to calculate the speed. So, here are the good news, this is now automated. Just hold on! Was this article not already posted previously.
Yes, you are right the old article can be found here: http://www.data-protector.org/wordpress/2012/07/omnispeed/.

Because of the many changes in the new version a new article was created. To use the tool download and extract the version into the bin folder in omniback on your Windows cell server or on a client with installed GUI and execute it, thats it. If you are not running on Windows, please have a look at the help screen. Please keep in mind: the values displayed are the average throughput for the currently running sessions. What’s new? The current troughput for a currently running session is displayed. What else? See below.

Download: 


terça-feira, 18 de fevereiro de 2014

IP Ratings (Ingress Protection)

A two-digit number established by the International Electro Technical Commission, is used to provide an Ingress Protection rating to a piece of electronic equipment or to an enclosure for electronic equipment.
The protection class after EN60529 are indicated by short symbols that consist of the two code letters IP and a code numeral for the amount of the protection.
Example: IP65 (NEMA 4)
The two digits represent different forms of environmental influence:
 • The first digit represents protection against ingress of solid objects.
 • The second digit represents protection against ingress of liquids.
The larger the value of each digit, the greater the protection. As an example, a product rated IP54 would be better protected against environmental factors than another similar product rated as IP42.

IP TABLE:

IP.. First digit:
Ingress of solid objects
Second digit:
Ingress of liquids
0 No protection No protection
1 Protected against solid objects over 50mm e.g. hands, large tools. Protected against vertically falling drops of water or condensation.
2 Protected against solid objects over 12.5mm e.g. hands, large tools. Protected against falling drops of water, if the case is disposed up to 15 from vertical.
3 Protected against solid objects over 2.5mm e.g. wire, small tools. Protected against sprays of water from any direction, even if the case is disposed up to 60from vertical.
4 Protected against solid objects over 1.0mm e.g. wires. Protected against splash water from any direction.
5 Limited protection against dust ingress.
(no harmful deposit)
Protected against low pressure water jets from any direction. Limited ingress permitted.
6 Totally protected against dust ingress. Protected against high pressure water jets from any direction. Limited ingress permitted.
7 N/A Protected against short periods of immersion in water.
8 N/A Protected against long, durable periods of immersion in water.
9k N/A Protected against close-range high pressure, high temperature spray downs.

IP protection of the PIP:

A PIP in the standard PIP housing is generally IP51 protected. Higher IP protection level with the standard PIP housing (up to IP54) can be reached with good positioning / orientation of the PIP. In other special PIP-housings, like a MIL-housing up to IP67 protection is possible.

IP protection of the PANEL-PIP:

The PANEL-PIP is available in various housings. Those allow a protection level of up to all around IP65.

Fonte: http://www.mpl.ch/info/IPratings.html

LED IP Ratings- LED Flex strip waterproofing explained - Waterproof v nonwaterproof LED strip lights

What are LED IP Ratings?

LEDs come in waterproof and non-waterproof applications. To choose the right LED strip light, first assess the conditions that the LED lights will be subjected to. Will they be indoor? Outdoor? Rainy areas? Desert climate? etc.IP ratings measure the amount of protection flexible LED strip lights get from the elements.
IP ratings are here to specify the amount of protection the LED received from the elements. The IP stands for Ingress Protection. Each IP rating has 2 numbers. The first number refers to the protection against solid objects (dust, etc) and the second number refers to liquid protection. Look below for our chart on IP Ratings. Our 5050 LED strip light and 3528 LED strip lights come waterproof or non waterproof!
LED strip light IP ratings what is an IP rating
Example :With an IP65 , The LEDs can be used in an outside setting and are water-resistant, but they are not waterproof and are not OK to be submerged. An IP68 can be submerged in water.
Note: These flexible LED strips are not to be used in or around chlorinated or salt water, waterproof LEDs are fully submersible in untreated water.
Waterproof LEDs also have higher protection against foot traffic. Example would be movie theater aisles, yard pathways, staircases, restaurant bars, club floors, yacht deck lighting. Our waterproof LED flexible strip lights are perfect for bathroom or kitchen applications. Undercabinets near showers, sinks, or other high splash areas. These LED strip lights can be placed just about anywhere.

Fonte:  http://www.flexfireleds.com/pages/LED-IP-Ratings%252d-LED-Flex-strip-waterproofing-explained-%252d-Waterproof-v-nonwaterproof-LED-strip-lights.html

segunda-feira, 3 de fevereiro de 2014

Grunt JS: Automatize tarefas e otimize o seu workflow

 
GruntJS-JavaScript-Task-Runner

O Grunt JS é um poderoso task runner, que roda no terminal, e é gerenciado pelo NPM, o gerenciador de pacotes para Node.js.

Maiores informações: http://blog.henriquesilverio.com/javascript-e-jquery/grunt-js-automatize-tarefas-e-otimize-o-seu-workflow/

sexta-feira, 24 de janeiro de 2014

Primeiro computador pessoal acessível, Macintosh completa 30 anos

A chegada do primeiro Macintosh, com 128 k de memória, por US$ 2.500 tornou os computadores mais acessíveis à população, principalmente pelas facilidades como o uso do mouse.

terça-feira, 17 de setembro de 2013

Estatisticas da utilização dos navegadores de março a agosto / 2013


Source: StatCounter Global Stats - Browser Version Market Share

Arquivo de conexão com banco de dados de alguns CMSs

Este tópico relaciona a localização dos arquivos de conexão com o banco de dados de algumas das ferramentas CMS's como:

Saber o nome e a localização desses arquivos é muito importante, isso lhe ajudará por exemplo, não hora de migrar seu site, pois cada servidor tem uma configuração e casa não esteja igual será necessário mudar o Host, Nome do Banco de Dados, e Login e Senha para o banco.

São eles:

Wordpress - /diretorioinstalado/wp-config.php

Joomla - /diretorioinstalado/configuration.php

Media Wiki - /diretorioinstalado/LocalSettings.php

Gallery - /diretorioinstalado/var/database.php

Drupal - /diretorioinstalado/default/settings.php

PHPbb - /diretorioinstalado/config.php

Zenphoto - /diretorioinstalado/zp-core/zp-config.php

Sugar CRM - /diretorioinstalado/config.php

OsCommerce - /diretorioinstalado/catalog/includes/configure.php

Magento - /diretorioinstalado/app/etc/local.xml

Django - /diretorioinstalado/settings.php;

PHPNuke - /diretorioinstalado/html/config.php

CMS Xoops - diretorioinstalado/mainfile.php

-Fonte: http://faq.hostgator.com.br/content/48/300/pt-br/arquivo-de-conex%C3%A3o-com-banco-de-dados-de-alguns-cms_s.html#sthash.agkfZWh4.dpuf
Este tópico relaciona a localização dos arquivos de conexão com o banco de dados de algumas das ferramentas CMS's como:
   Galeria, Blog, Portal de conteúdo, fórum, E-commerce, entre outros que estão disponíveis nos instaladores automáticos Quickinstall e Fantastico Deluxe.
   Saber o nome e a localização desses arquivos é muito importante, isso lhe ajudará por exemplo, não hora de migrar seu site, pois cada servidor tem uma configuração e casa não esteja igual será necessário mudar o Host, Nome do Banco de Dados, e Login e Senha para o banco.
São eles:

Wordpress

/diretorioinstalado/wp-config.php

Joomla

/diretorioinstalado/configuration.php

Media Wiki

/diretorioinstalado/LocalSettings.php 

Gallery

/diretorioinstalado/var/database.php

Drupal

/diretorioinstalado/default/settings.php 

PHPbb

/diretorioinstalado/config.php

Zenphoto

/diretorioinstalado/zp-core/zp-config.php

Sugar CRM

/diretorioinstalado/config.php

OsCommerce

/diretorioinstalado/catalog/includes/configure.php

Magento

/diretorioinstalado/app/etc/local.xml

Django

/diretorioinstalado/settings.php;

PHPNuke

/diretorioinstalado/html/config.php 

CMS Xoops

diretorioinstalado/mainfile.php
- See more at: http://faq.hostgator.com.br/content/48/300/pt-br/arquivo-de-conex%C3%A3o-com-banco-de-dados-de-alguns-cms_s.html#sthash.agkfZWh4.dpuf

quarta-feira, 10 de julho de 2013

Outlook 2010 e 2013 - Como atrasar a entrega de todas as mensagens

  1. Clique na guia Arquivo.
  2. Clique em Gerenciar Regras e Alertas.
  3. Clique em Nova Regra.
  4. Na caixa Etapa 1: selecione um modelo, em Iniciar com base em uma regra em branco, clique em Verificar mensagens após enviar e clique em Avançar.
  5. Na lista Etapa 1: selecione as condições, marque as opções desejadas e clique em Avançar.
Se você não marcar uma caixa, será exibida uma caixa de diálogo e, se você clicar em Sim, a regra que está sendo criada será aplicada a todas as mensagens enviadas.
  1. Na lista Etapa 1: selecione as ações, selecione adiar entrega por um número de minutos.
  2. Na caixa Etapa 2: edite a descrição da regra (clique em um valor sublinhado), clique na frase sublinhada, um número de e digite o número de minutos durante os quais deseja que as mensagens sejam mantidas antes do envio.
A entrega pode ser atrasada em até 120 minutos.
  1. Clique em OK e clique em Avançar.
  2. Selecione as exceções desejadas.
  3. Clique em Avançar.
  4. Na caixa Etapa 1: especifique um nome para esta regra, digite um nome para a regra.
  5. Marque a caixa de seleção Ativar esta regra.
  6. Clique em Concluir.
Depois que você clica em Enviar, todos os emails permanecem na pasta Caixa de Saída pelo tempo especificado.

segunda-feira, 21 de janeiro de 2013

Reading FTP Logs in xferlog Format

For some reason I can never remember the xferlog format that is used by daemons such as Pure-FTP. Although xferlog is well documented, I am always fumbling to find the doc when I need it, and it's never bad to have information duplicated in many places!

Anyways, on with the description. Here is a sample log entry from my server (with access IPs and dirs changed):

Fri May 14 05:16:12 2010 0 ::ffff:1.2.3.4 11974 /home/user/public_html/index.php a _ i r user ftp 0 * c

I'll step through each item individually. The delimiter here is whitespace, so each new token represents a unique piece of data, with the exception of the date at the beginning.

Fri May 14 05:16:12 2010
Date/time stamp, nothing complicated.

0
Transfer time, in whole seconds (this transfer took less than a second, so zero).

::ffff:1.2.3.4
Remote host where the user connected from.

11974
Size of the transferred file (in bytes).

/home/user/public_html/index.php
Full path to the uploaded file.

a
Transfer type, a = ASCII (plain-text files), b = binary (everything else)

_
Action flag, C = compressed, U = uncompressed; T = tar'ed; _ = no action was taken.

i
Direction, i = incoming, o = outgoing, d = deleted.

r
Access mode, a = anonymous user, r = real (normal) user.

user
Local username authenticated with.

ftp
The service being invoked (almost always FTP).

0
Authentication method, 0 = none, 1 = RFC931 authetication.

*
User ID or * if not available (virtual user).

c
Completion status, c = completed, i = incomplete.

Fonte: http://www.gnode.net/reading-ftp-logs-in-xferlog-format

terça-feira, 2 de outubro de 2012

quarta-feira, 2 de maio de 2012


Trocar a senha via um script

chpasswd
Com o comando "chpasswd" da seguinte maneira:
echo "nom:password" | chpasswd

sexta-feira, 13 de abril de 2012

Authentication refused: bad ownership or modes for file .ssh/authorized_keys

When configuring SSH keys to be able to login to a server without a password you mighkeys2t run into a permissions error. If the authorized_keys or authorized_keys2 file has the incorrect permissions it will not authenticate with your ssh-rsa key but instead still require a password. If you are having trouble configuring SSH keys you should check the /var/log/secure file to see if there is an error displaying in that log. You may see the error displayed below.

Error: Authentication refused: bad ownership or modes for file .ssh/authorized_keys

If you see this error it means that the authorized_keys or authorized_keys2 file has the incorrect ownership or permissions. Make sure that the authorized_keys file is owned by the user that will be logged into and the permissions are 600. So if the username is backup you would want the file to look like the below when issuing the “ls -alh” command.

1        -rw------- 1 backup backup 409 Mar 23 19:56 authorized_keys

If the ownership or permissions are different than the above you can accomplish setting the proper ownership and permissions by using the below two commands.
1        chown backup.backup authorized_keys
2        chmod 600 authorized_keys

That should resolve your problems and now from the remote server you should be able to SSH to this server and login without a password.

quarta-feira, 4 de abril de 2012

A configuração do Certificado digital no IIS 7 é excluída automaticamente.

Sintoma:
O certificado digital desaparece da configuração do IIS e no event view é exibido a mensagem:
SSL Certificate Settings deleted for Port : 172.17.0.22:443 .

Solução:
Locate the following property in the section of the applicationHost.config file, and delete it:
     5506" dataType="Binary" userType="1" attributes="None" value="oXiHOzFAMOF0YxIuI7soWvDFEzg=" />

This property is a legacy feature from Internet Information Services (IIS) 6.0 and is no longer needed.


O arquivo applicationHost.config pode ser encontrado em:

%windir%\system32\inetsrv\config\applicationHost.config

quinta-feira, 29 de março de 2012

 Como testar as operações de SMTP utilizando o Telnet

1. Ligar o Telnet ao Exchange Server que aloja o serviço IMS utilizando a porta 25.
Comando telnet 25
 

2. Ligar o local echo no cliente de telnet para poder ver o que está a escrever.
No Telnet do Win 9x e NT 3.5/4.0 fá-lo através da opção “preferences” do menu “terminal”, e seleccionando o botão de opção do local echo. No Telnet do Windows 2000, escreva o comando "set local_echo", no command prompt.

3. Execute a seguinte sequência de comandos smtp
helo                  
a resposta deve ser a seguinte
250 OK
mail from:
a resposta deve ser a seguinte
250 OK - mail from
rcpt to:
a resposta deve ser a seguinte
250 OK - Recipient
data
a resposta deve ser a seguinte
354 Send data.  Finalizar com CRLF.CRLF
To:
From:
Subject:

.
a resposta deve ser a seguinte
250 OK
quit


Fonte: http://www.rsoutlook.com/exc/telnetsmtp.htm

sexta-feira, 16 de março de 2012

Performance commands for AIX

How to monitor the utilization for all logical CPUs:

gz@aix~# sar -P ALL 1 4
AIX lpar1 3 5 0XXXXXXXXXXX    12/07/11

System configuration: lcpu=4 ent=0.50 mode=Uncapped 

15:19:45 cpu    %usr    %sys    %wio   %idle   physc   %entc
15:19:46  0       57      37       6       0    0.19    37.3
          1       32      22      12      35    0.07    14.9
          2        0      26       0      74    0.00     0.1
          3        0      32       0      68    0.00     0.1
          U        -       -      11      37    0.24    47.7
          -       26      17      15      42    0.26    52.3
15:19:47  0       53      41       6       0    0.18    35.1
          1       24      23       7      46    0.07    13.9
          2        0      27       0      73    0.00     0.1
          3        0      30       0      70    0.00     0.1
          U        -       -      12      39    0.25    50.9
          -       22      18      15      46    0.25    49.1
15:19:48  0       49      37      13       1    0.29    58.4
          1       17      65      10       9    0.19    38.2
          2        0      26       0      74    0.00     0.1
          3        0      34       0      66    0.00     0.1
          U        -       -       1       3    0.02     3.3
          -       35      46      12       7    0.48    96.7
15:19:49  0       53      42       5       1    0.17    33.9
          1       41      21      21      18    0.08    16.9
          2        0      28       0      72    0.00     0.1
          3        0      30       0      70    0.00     0.1
          U        -       -      14      35    0.25    49.1
          -       25      18      19      39    0.25    50.9

Average   0       52      39       8       0    0.21    41.2
          1       25      41      12      21    0.10    20.9
          2        0      27       0      73    0.00     0.1
          3        0      31       0      69    0.00     0.1
          U        -       -       9      29    0.19    37.8
          -       27      25      15      33    0.31    62.2

How to monitor the system wide processor utilization:

gz@aix~# lparstat 1 3  

System configuration: type=Shared mode=Uncapped smt=On lcpu=4 mem=4096 psize=10 ent=0.50 

%user  %sys  %wait  %idle physc %entc  lbusy  vcsw phint
----- ----- ------ ------ ----- ----- ------ ----- -----
 30.5  39.9    7.7   21.9  0.38  76.4   37.0  1550   286 
 27.3  39.7    6.7   26.2  0.36  72.5   40.5  1641   285 
 35.4  46.1    6.5   12.0  0.43  87.0   37.7  1849   369 
 
How to display micropartition statistics with topas:

gz@aix~# topas -L
Interval:    2    Logical Partition: lpar1              Wed Dec  7 15:21:00 2011
Psize:       -                Shared SMT  ON           Online Memory:   4096.0
Ent: 0.50                      Mode: UnCapped          Online Logical CPUs:   4
Partition CPU Utilization                              Online Virtual CPUs:   2
%usr %sys %wait %idle physc  %entc %lbusy    app    Vcsw    phint   %hypv   hcalls
  47   33     9    11   0.4  89.44  26.16      -    2492      411    55.9    40144
==================================================================================
LCPU  minpf majpf  intr    csw   icsw runq lpa  scalls usr sys _wt idl   pc   lcsw
Cpu0    292     0  1456   5072   1093    3 100    9643  52  41   6   1 0.24   1166
Cpu1    344     0   706   3622    849    0 100   11180  54  33   8   6 0.21   1285
Cpu2      0     0    10      0      0    0   0       0   0  26   0  74 0.00     20
Cpu3      0     0    11      0      0    0   0       0   0  29   0  71 0.00     20

How to display cpu utilization of all active partitions in the management system:

gz@aix~# topas -C
Topas CEC Monitor             Interval:  10             Wed Dec  7 15:18:23 2011
Partitions Memory (GB)           Processors
Shr:  5    Mon:79.0  InUse:75.0  Shr:8.5  PSz: 10   Don: 0.0 Shr_PhysB  7.29
Ded:  0    Avl:   -              Ded:  0  APP:  1.3 Stl: 0.0 Ded_PhysB  0.00

Host         OS  M Mem InU Lp  Us Sy Wa Id  PhysB  Vcsw Ent  %EntC PhI
-------------------------------------shared-------------------------------------
lpar1        A53 U   28  27 12  89  8  0  2   4.70    0  4.00 117.6   0
lpar2        A53 U   16  14  8  84  9  0  6   1.55 3188  1.50 103.5 1206
lpar3        A53 U   12  12  6  88  5  0  5   0.72 1426  0.50 143.2 610
lpar4        A53 U   16  15  8   3 10  0 85   0.29 3338  1.50  19.1 399
lpar5        A53 U  8.0 7.8  4   0  1  0 97   0.03    0  1.00   3.4   0

Host         OS  M Mem InU Lp  Us Sy Wa Id  PhysB  Vcsw  %istl %bstl
------------------------------------dedicated-----------------------------------

How to collect and display performance statistics for all logical CPUs in the system. In the example below, we will show one time the 20 seconds data:

gz@aix~# mpstat 20 1

System configuration: lcpu=2 ent=0.8 mode=Uncapped 

cpu  min  maj  mpc  int   cs  ics   rq  mig lpa sysc us sy wa id   pc  %ec  lcs
  0  301    0  160  450  556  262    0   22 100 3808 30 60  0 10 0.05  6.8  392
  1   17    0  160  220   59   41    0   23 100  290 14 48  0 38 0.01  0.8  228
  U    -    -    -    -    -    -    -    -   -    -  -  -  0 92 0.74 92.4    -
ALL  318    0  320  670  615  303    0   45 100 4098  2  4  0 93 0.06  7.6  620

List of processes sorted by swap usage:
gz@aix~# ps gv | head -n 1; ps gv | egrep -v "RSS" | sort +5n
to calculate total used:
gz@aix~# ps gv | egrep -v "RSS" | awk '{total+=$5} END{print total}'

List of processes sorted by memory usage:
gz@aix~# ps gv | head -n 1; ps gv | egrep -v "RSS" | sort +6n
to calculate total used:
gz@aix~# ps gv | egrep -v "RSS" | awk '{total+=$6} END{print total}'

How to artificially limit the amount of memory:

gz@aix~# rmss -c 3000 
Simulated memory size changed to 3000 Mb. 

Tool to check the memory and paging space is allocation:
gz@aix~# svmon (with -P you can see per process allocation)

How to determine the amount of asynchronous I/O (legacy) servers configured on your system:
gz@aix~# pstat -a | egrep ' aioserver' | wc -l
or
gz@aix~# ps -ek | grep aioserver | grep -v posix_aioserver | wc -l

How to display virtual memory statistics:

root@aix53# vmstat -w 1 10 

System configuration: lcpu=34 mem=30976MB ent=5.80

 kthr          memory                         page                       faults                 cpu          
------- --------------------- ------------------------------------ ------------------ -----------------------
  r   b        avm        fre    re    pi    po    fr     sr    cy    in     sy    cs us sy id wa    pc    ec
  0   0    7061457     115394     0     0     0     0      0     0  9595   1833 34264 10 11 77  2  1.27  21.9
  1   0    7061454     115397     0     0     0     0      0     0  9201   1709 33079  9 11 77  2  1.23  21.2
 16   0    7061463     115192     0     0     0     0      0     0 12316   9676 33034 11 19 69  1  1.80  31.0
  3   0    7061464     114619     0     0     0     0      0     0 10842   6207 33429 10 17 68  5  1.66  28.6
  2   0    7061638     114443     0     0     0     0      0     0  6906   4124 28329  7 13 69 12  1.23  21.2
  0   0    7061131     114942     0     2     0     0      0     0  5757   2354 23583  5  9 75 11  0.90  15.5
  5   0    7061613     114457     0     2     0     0      0     0  6230   7724 23951  6  9 77  8  0.96  16.6
  1   0    7062157     113913     0     0     0     0      0     0  6340   2021 24501  6  8 81  5  0.90  15.4
  0   0    7062334     113736     0     0     0     0      0     0  5897   2530 22285  5  7 84  4  0.80  13.7
  2   0    7062425     113645     0     0     0     0      0     0  7378   2931 28937  6  9 82  3  0.92  15.8

A script to get memory utilization:

gz@aix~# cat meminfo
#!/usr/bin/ksh
#
# Quick view of memory usage under AIX
#
 
USED=`svmon -G | head -2 | tail -1 | awk '{ print $3 }'`
USED=`expr $USED / 256`
TOTAL=`lsattr -El sys0 -a realmem | awk '{ print $2 }'`
TOTAL=`expr $TOTAL / 1000`
FREE=`expr $TOTAL - $USED`
 
echo "\nMemory Information"
echo "=================="
echo "total memory = $TOTAL MB"
echo "free memory  = $FREE MB"
echo "used memory  = $USED MB"
 
exit 0 
 
Fonte: http://docs.gz.ro/aix-performance-commands