Friday, September 23, 2011

Speed up FreeBSD ports download.

I find FreeBSD ports randomly gets it's source server list from /usr/ports/Mk/bsd.sites.mk, as defined by the port maintainer.

But the problem is, sometimes the server chosen is just to damn slow.

In steps fastest_sites.

All you need to do is:
1) Install port
2) Run /usr/local/bin/fastest_sites > /usr/local/etc/ports_sites.conf
3) echo ".include \"/usr/local/etc/ports_sites.conf\"" >> /etc/make.conf

And thats that.

If you want to cron it.

0 6 * * * /usr/local/bin/fastest_sites > /usr/local/etc/ports_sites.conf
 
HTH
Brent 

Friday, September 2, 2011

Im fortunate that I work for a very large web hosting company.
So you can imagine, I SSH to a large number of hosts. Im ashamed to say it, but Ive just disabled SSH checking.

The way I have achieved that is:

alias ssh="ssh -c arcfour -o TCPKeepAlive=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"