sexta-feira, 26 de abril de 2013

Curl download FTP [Linux]

curl --ftp-pasv -v -O "ftp://usuario:senha@xxx.xxx.xxx.xxx/arquivo.hmi"

quarta-feira, 17 de abril de 2013

Linux Brigde (Switch) [Linux]

CRIAÇÃO DE BRIDGE NO LINUX

ip addr flush dev eth1
ip addr flush dev eth2
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 eth2
ip link set br0 up
ip link set eth1 up
ip link set eth2 up
ip addr add xxx.xxx.xxx.xxx(interface 1)/24 dev br0
ip addr add xxx.xxx.xxx.xxx(interface 2)/24 dev br0
ip route add default via xxx.xxx.xxx.xxx(gateway)

____________________________________________________

USANDO IPTABLES EM BRIDGE

terça-feira, 16 de abril de 2013

Associar aplicativo a extensão [Linux]

The file manager (Nautilus, by default) uses the MIME type of a file to determine which program to open it with. When an application is installed, it can specify what MIME types it can open and the command to use to open the files in the .desktop file which is placed in /usr/share/applications. This is the file used for menus, desktop shortcuts, etc.