Category Archives: centos

nfs export on centos7

So I wanted to export my /backup to some machines so I don’t have to scp stuff to it.

On the server:

yum install nfs-utils nfs-utils-lib
systemctl enable nfs-server.service
systemctl enable nfs-lock.service
systemctl enable nfs-rquotad.service
systemctl enable nfs-idmap.service
systemctl enable nfs-mountd.service
systemctl enable rpcbind.service
echo '/backup,sync,no_root_squash),sync,no_root_squash)' >/etc/exports
systemctl start rpcbind.service
systemctl start nfs-server.service
systemctl start nfs-lock.service
systemctl start nfs-idmap.service

On the client:

yum install nfs-utils nfs-utils-lib
# mount -t nfs /backup/
echo ' /backup/ nfs rw,sync 0 0' >>/etc/fstab
mount /backup

http proxy ipv4 only for yum

So, I needed a fast way to install dovecot on a centos 7 server in a private network that had access to my own network but not to the internet.

I set up a proxy and then saw that yum wants to use ipv6 here’s what I did

export http_proxy=""
echo 'ip_resolve=4'>> /etc/yum.conf
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
yum update