Author: sasa

  • Partitioning of 3T hard drives

    use parted with parted /dev/sdX Most disks on x86/amd64 are prepared using an msdos label, thus supporting partitions up to 2T in size. To create larger partitions (2 TB and more), one must use a gpt label (the GUID Partition Type). With parted, this can be accomplished with mklabel gpt: (parted) help (parted) print (parted) […]

  • WebApp Error: : [Errno 24] Too many open files

    Most likely the number of file descriptors not enough. Check for number of file descriptors with ulimit -a ulimit -n Increase in /etc/security/limits.conf username hard nofile 3072 username soft nofile 2048 Another things to do, if above solution doesn’t help. As suggested at slashdot, increase number of max open connections in sysctl.conf, kernel headers and […]

  • Mounting USB devices in KDE

    After updating KDE to 4.9.5 my system stopped auto mounting external USB devices. The fix was to change udisk policy in /usr/share/polkit-1/actions/org.freedesktop.udisks.policy <action id=”org.freedesktop.udisks.filesystem-mount”> <description>Mount a device</description> <message>Authentication is required to mount the device</message> <defaults> <allow_any>no</allow_any> <allow_inactive>yes</allow_inactive> <allow_active>yes</allow_active> </defaults> </action>

  • Linux command-line cheatsheet

    Using help apropos topic_name Show list of manual pages related to topic man topic_name Show manual page for specified topic info topic_name Show info page for specified topic (sometimes easier to read than man) whatis command_name One-line summary for command whereis command_name Displays information where binary command is located; alternatively: “type command_name”

  • 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 […]

  • ATI Radeon HD6950 2GB on gentoo

    ATI HD6950 is a great GPU which is supposed be full supported by opensource radeon drivers. After lot of pain with opensource driver, I have installed closed source ati-drivers and the card works well. During the process I have tried to follow number of ati/radeon/fglrx guides. My goal was to get the card working on […]

  • Kate and cleaning Byte Order Mark

    Once upon time BOM stole a few hours…. Over the years, Kate editor become my favorite editor and even more. With constant active development kate is more powerful than ever. Initially, I needed a light kde editor for my python projects: kate performed great. Over the time, I used kate more and more, and now […]

  • 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 […]

  • Dora saves the Snow Princess

    Today Ania completed on her own her first video game. Wii version of Dora saves the Snow Princess doesn’t teach much, but helps kids to figure out the basics of using wii game controller. In order to complete a specific action in a game a certain controller motion is needed. The game itself is repetitive […]