úterý 17. února 2015

Disable IPv6 in Ubuntu

Good when you don`t know much about stuff and don`t know how to configure IPv6 firewall.

Edit /etc/sysctl.conf

Paste to the end:

net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1

Run sysctl -p

After that if you check,

$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6

You will get result as,

1

If you get result as 1, ipv6 disabled successfully.

Install MySQL Server in Ubuntu Without a Password prompt

debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password rootpass'

debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password rootpass'

apt-get update

apt-get -y install mysql-server-5.5

úterý 29. července 2014

Windows XP update registry hack

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\WPA\PosReady] "Installed"=dword:00000001

čtvrtek 23. ledna 2014

One hour SIP dumps

tcpdump -nq -s 0 -i any -G3600 -w /tmp/trace/sip-%F--%H-%M-%S.pcap port 5060

Re-enable MDRAID

mdadm –assemble –scan

ssh-agent how-to


#!/bin/bash

ssh-agent
ssh-add /home/user/key

čtvrtek 27. září 2012

GPSD debugging

gpsd -n -N -D4 /dev/ttyUSB0