ú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