sexta-feira, 30 de maio de 2014

Procurar por txt e copiar para outro diretório

find . -name "*.txt" -exec cp {} "textos" \;

Procura por arquivos .txt no diretório atual "." e copia cada um deles para o diretório textos

segunda-feira, 5 de maio de 2014

Linux Mint IP estático

Usando o live cd, na configuração da internet, o botão salvar fica desabilitado impossibilitando o salvamento dos valores de gateway, dns, e ip static quando no modo manual.

Pode-se tentar parar as tentativas de conexão, deixando em OFF. Então, abrir a janela de configuração e entrar com valores, pode ser que assim o botão salvar fique habilitado.

Caso contrário, necessita editar os valores de gateway, IP, etc em interfaces:


Set a static IP address

We have a little more work to do for configurationg a network interface with a static IP address. Edit your /etc/network/interfaces file again, so that it looks like this (these are my IP addresses, replace them with yours.) :
auto eth0
iface eth0 inet static
address 192.168.10.5
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1
Explanation:
  • auto eth0 – enable at startup the eth0 interface
  • iface eth0 inet static- consider that iface eth0 comes from interface eth0, inet tells you that the network configuration is IPv4 and static that your network interface has static ip adresses.
  • address – the network’s IP address
  • netmask – the network’s mask address
  • network – the network’s address
  • broadcast – the broadcast address
  • gateway – the gateway address
http://linuxg.net/how-to-setup-static-or-dynamic-ip-addresses-on-debian-based-linux-systems/


FUNCIONOU COM AS CONFIGURAÇÕES ABAIXO:
O ÍCONE DE GERENCIAMENTO DE CONEXÃO FICA DESABILITADO, JÁ QUE AS CONFIGURAÇÕES PADRÕES FORAM DEFINIDAS.

# cat /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
#iface lo inet loopback
#auto lo
#iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.x.x
netmask 255.255.255.0
gateway 192.168.x.x