Trocar nome do placa de rede do CentOS 6

Trocar nome do placa de rede do CentOS 6 Edite o arquivo abaixo: /etc/udev/rules.d/70-persistent-net.rules Copio o verifique se o mac da placa de rede esta de correto. e defina e NAME # PCI device 0x15ad:0x07b0 (vmxnet3) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:b2:23:e0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″

Windows colocar placa wifi em modo AP

1 2 3 4 netsh wlan set hostednetwork mode=allow ssid=SONY key=1234567890 keyUsage=persistent netsh wlan set hostednetwork mode=allow netsh wlan start hostednetwork netsh wlan show drivernetsh wlan set hostednetwork mode=allow ssid=SONY key=1234567890 keyUsage=persistent netsh wlan set hostednetwork mode=allow netsh wlan start hostednetwork netsh wlan show driver

Criar usuário no MYSQL

#Criar usuário 1 2 CREATE USER ‘site’@’%’ IDENTIFIED BY ‘site’; CREATE USER ‘site’@’localhost’ IDENTIFIED BY ‘site’;CREATE USER ‘site’@’%’ IDENTIFIED BY ‘site’; CREATE USER ‘site’@’localhost’ IDENTIFIED BY ‘site’; #Liberar acesso 1 2 GRANT ALL ON site.* TO ‘site’@’%’ IDENTIFIED BY ‘site’ WITH GRANT OPTION; GRANT ALL ON site.* TO ‘site’@’localhost’ IDENTIFIED BY ‘site’ WITH GRANT OPTION;GRANT
Continue reading Criar usuário no MYSQL

Converter ppk to private-openssh

#Baixar repositorio 1 wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpmwget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm #Instalar repositorio 1 rpm –ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpmrpm –ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm #Instalar Putty tools 1 yum install puttyyum install putty # Converter ppk 1 puttygen -i private.ppk -O private-openssh -i id_rsaputtygen -i private.ppk -O private-openssh -i id_rsa #acesso ssh com a chave gerada 1 ssh -i id_rsa usuario@187.45.195.22ssh -i id_rsa usuario@187.45.195.22

Como alterar nome das interfaces no Debian Linux

O Debian Linux possui um arquivo que permite alterar os nomes das interfaces de rede: eth0, eth1 etc. Este arquivo no Lenny é o /etc/udev/rules.d/70-persistent-net.rules. Para editá-lo utilizando o editor vi: # vi /etc/udev/rules.d/70-persistent-net.rules # PCI device 0x8086:0x105e (e1000e) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:15:17:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″

Instalando Tomcat 8 no Debian 7 Wheezy

wget -c “http://apache.mirror.pop-sc.rnp.br/apache/tomcat/tomcat-7/v7.0.37/bin/apache-tomcat-7.0.37.zip” Após feito o download do Tomcat, vamos copiar para o diretório /opt, extrair, setar permissão de execução nos scripts catalina.sh e startup.sh, por fim startamos o tomcat, posteriormente testamos no navegador. #cp apache-tomcat-7.0.37.zip /opt #cd /opt #unzip apache-tomcat-7.0.37.zip #ln -s apache-tomcat-7.0.37 tomcat #cd tomcat/bin #chmod +x catalina.sh #chmod +x startup.sh #chmod +x
Continue reading Instalando Tomcat 8 no Debian 7 Wheezy