Category: gentoo

  • Fixing Firefox stalling in Gentoo

    Filesystem mught be blocking sync, try to adjust values nano -w /etc/sysctl.d/98-caching.conf 128MB and 10% ratio vm.dirty_background_bytes = 134217728 vm.dirty_ratio = 10

  • Apache configuration for pylons

    Recently some of our pylons servers experienced mysql overflow. Pylons app is served via apache 2.2 using worker mpm on gentoo with kernel 3.2. It uses sqlalchemy to access mysql server. The pylons error is: >> self.pool.connect(), Module sqlalchemy.pool:210 in connect >> return _ConnectionFairy(self).checkout() Module sqlalchemy.pool:371 in __init__ >> rec = self._connection_record = pool._do_get() Module […]

  • Brother MFC-7460DN on 64bit gentoo

    Network printer Brother MFC-7460DN is not supported by standard cups drivers, but it does work on ubuntu by following instructions from manufacturer web site. Here is how this network printer can be properly configured on 64 bit gentoo (I am using kernel gentoo-sources-3.0.6) Printer Cups and other needed packages Emerge cups and few other needed […]

  • Awstats & virtual hosts

    Gentoo has finaly moved away from webapp-config and simplified updating awstats. The example of apache config file setting awstats for apache virtual hosts runnig wsgi application is given bellow. Prerequisites are apache proxy for wsgi app, and awstats visible at www.some_domain.com/awstats.pl using authentication. <VirtualHost *:80> ServerName www.some_domain.com Serveralias some_domain.com ServerAdmin admin@some_domain.com ErrorLog /var/log/apache2/www.some_domain.com-error.log CustomLog /var/log/apache2/www.some_domain.com-access.log […]

  • Socks5 proxy and wget

    I’ve tried to set wget bash loop over socks5 proxy and was surprised to find out that wget does not have included proxy support. First start your proxy tunnel on port 8080 with ssh -o “ServerAliveInterval 60” -o “ServerAliveCountMax 3” -f -C -N -D *:8080 user@my.proxy.server &> tunnel.log My firefox utilizes this tunnel perfectly – […]