Ssh-agent
ssh-agent bash
ssh-add /location/of/key
ssh-add -l
http://sshkeychain.sourceforge.net/mirrors/SSH-with-Keys-HOWTO/SSH-with…
Excelente artigo sobre SSH Host Key Protection
Mover dispositivos de arranque na bios
The key right of the "0" shifts boot device entries down in the list.
On the German keyboard this key is labelled with " ß ? \ ".
The next key on the right and left of the "Backward-Erase"-key, labelled with " ´ ` ",
pressed together with the Shift-key, moves list entries up.
http://forums.lenovo.com/t5/IdeaPad-S-series-Netbooks/S10-3-Change-BIOS…
Ips de um domínio
dig @8.8.8.8 _spf.google.com txt
dig @8.8.8.8 _netblocks.google.com txt
Redimensionar um disco no virtualbox
Correção de côr
Remover todos os logs dum sistema
rm -rfv /var/log/{*.[0-9],*.[0-9].gz}
for i in `find /var/log/ -type f`; do
if [ -f $i ] && [ -s $i ]; then
echo "" > $i
fi
done
http://serverfault.com/questions/350891/how-to-delete-all-debian-squeez…
Wget myip
wget -qO- http://ipecho.net/plain ; echo
uci set wireless.@wifi-iface[1].disabled=1
uci set wireless.radio0.disabled=1
uci set network.wan.dns='37.235.1.174 208.67.220.220'
uci commit
Redirecionar consultas dns
iptables -t nat -A PREROUTING -i ethX -p udp --dport 53 -j DNAT --to $(get lan_ipaddr)
iptables -t nat -A PREROUTING -i ethX -p tcp --dport 53 -j DNAT --to $(get lan_ipaddr)
iptables -t nat -L -v -n # shows nat table
melhor:
iptables -t nat -A PREROUTING -s 10.0.100.0/24 -p udp --dport 53 -j DNAT --to 9.9.9.9:53
iptables -t nat -A PREROUTING -s 10.0.100.0/24 -p tcp --dport 53 -j DNAT --to 9.9.9.9:53