Enviado em 22/04/2010 - 12:44h
Quero criar um script, para toda vez que instalar o ubuntu, não ter que digitar os comandos abaixo.
ifconfig eth0 down
ifconfig eth0 192.168.1.212 netmask 255.255.255.0 up
route add default gw 192.168.1.1 dev eth0
echo nameserver 192.168.1.1 > /etc/resolv.conf
Como faço?
Já digitei os comando acima no gedit, coloquei !bin/bash no começo.
Preciso digitar chmod +x /script de coneçao ?
ifconfig eth0 down
ifconfig eth0 192.168.1.212 netmask 255.255.255.0 up
route add default gw 192.168.1.1 dev eth0
echo nameserver 192.168.1.1 > /etc/resolv.conf
Como faço?
Já digitei os comando acima no gedit, coloquei !bin/bash no começo.
Preciso digitar chmod +x /script de coneçao ?