<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>knithx.net &#187; Linux</title>
	<atom:link href="http://www.knithx.net/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.knithx.net</link>
	<description>Weblog sobre tecnología por el knithx team</description>
	<pubDate>Sun, 05 Oct 2008 12:27:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>The Linux Vault</title>
		<link>http://www.knithx.net/2007/09/03/the-linux-vault/</link>
		<comments>http://www.knithx.net/2007/09/03/the-linux-vault/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 01:41:08 +0000</pubDate>
		<dc:creator>knithx</dc:creator>
		
		<category><![CDATA[Anuncios]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[releases]]></category>

		<guid isPermaLink="false">http://www.knithx.net/2007/09/03/the-linux-vault/</guid>
		<description><![CDATA[The Linux Vault es un nuevo proyecto wiki creado por knithx que ha nacido con la misión de crear un lugar común y centralizado con lo referente a la información sobre GNU/Linux, algo así como &#8220;La Wikipedia de Linux&#8221;. Acaba de ser creado, por lo que le estamos pidiendo a todo el mundo su colaboración [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thelinuxvault.net">The Linux Vault</a> es un nuevo proyecto wiki creado por knithx que ha nacido con la misión de crear un lugar común y centralizado con lo referente a la información sobre GNU/Linux, algo así como &#8220;La Wikipedia de Linux&#8221;. Acaba de ser creado, por lo que le estamos pidiendo a todo el mundo su colaboración escribiendo artículos y una oportunidad para convertirlo en un sitio donde escribir guías, HOW-TO&#8217;s, configuraciones, trucos, consejos de administración o cualquier otro tema que tenga que ver con los sistemas GNU/Linux.</p>
<p>Por ahora los artículos de The Linux Vault serán escritos en inglés, pero si se da el caso de popularizarse, no habría inconveniente en hacer una versión en español.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.knithx.net/2007/09/03/the-linux-vault/feed/</wfw:commentRss>
		</item>
		<item>
		<title>sidux 2007-02 &#8220;Τάρταρος&#8221;</title>
		<link>http://www.knithx.net/2007/06/24/sidux-2007-02-%cf%84%ce%ac%cf%81%cf%84%ce%b1%cf%81%ce%bf%cf%82/</link>
		<comments>http://www.knithx.net/2007/06/24/sidux-2007-02-%cf%84%ce%ac%cf%81%cf%84%ce%b1%cf%81%ce%bf%cf%82/#comments</comments>
		<pubDate>Sun, 24 Jun 2007 16:26:10 +0000</pubDate>
		<dc:creator>knithx</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[sidux]]></category>

		<guid isPermaLink="false">http://www.knithx.net/2007/06/24/sidux-2007-02-%cf%84%ce%ac%cf%81%cf%84%ce%b1%cf%81%ce%bf%cf%82/</guid>
		<description><![CDATA[Ya hace un mes que salió la segunda versión de la que para mi es, hoy por hoy, la distribución de Linux más estable, rápida, sólida y potente que podemos encontrar en el &#8220;mercado libre&#8221;. Sidux está basada en Debian Sid y esta versión está actualizada a día de 28 de Mayo, y corre un [...]]]></description>
			<content:encoded><![CDATA[<p>Ya hace un mes que salió la segunda versión de la que para mi es, hoy por hoy, la distribución de Linux más estable, rápida, sólida y potente que podemos encontrar en el &#8220;mercado libre&#8221;. Sidux está basada en Debian Sid y esta versión está actualizada a día de 28 de Mayo, y corre un kernel ya bien de 32 o 64bits <code>2.6.21.3-slh-smp-4</code>, KDE 3.5.7 y numerosos scripts que hacen que el arranque del sistema y su fluidez a nivel de escritorio sean de lo más rápido que haya visto hasta ahora. Incluso la instalación desde el Live-CD al disco duro es irrisoria: en mi caso tardó unos escasos 3 minutos.</p>
<p>En cuanto a software, sidux ofrece dos versiones: la versión <code>lite</code>, que se configura como un sistema con lo mínimo instalado óptimo para construir la distribución que justo necesitamos instalando los paquetes a nuestra elección; también está disponible la versión <code>full</code>, que trae de serie un escritorio KDE completo y una suite de aplicaciones de ofimática, multimedia&#8230; En mi caso, siempre opto por descargar la Lite, para aprovechar así al máximo las capacidades de personalización que ofrece Linux de por si. Sin embargo, en ambas versiones, todo el software presente es <code>dsfg</code>, así que debemos de olvidarnos de paquetes <code>non-free</code> como drivers para tarjetas ATi <code>FGLRX</code> o tarjetas gráficas con chipsets Atheros Madwifi o Intel <code>iwxxxx</code>. Dado este último contratiempo, siempre que reinstalo sidux he de cargar con el ordenador hasta donde está el router, para conectarlo mediante eth0 y así bajarme los drivers de mi tarjeta wifi Atheros, por la cual me conecto a internet de ahí en adelante. Aún así, merece la pena.</p>
<p>En conclusión y dejando los detalles para una posterior y más amplia review de esta distribución, os recomiendo su descarga, y al menos su testeo en modo LiveCD para comprobar la velocidad y la estabilidad de un sistema operativo <em>como Tux manda</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.knithx.net/2007/06/24/sidux-2007-02-%cf%84%ce%ac%cf%81%cf%84%ce%b1%cf%81%ce%bf%cf%82/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Intensive Linux tweaking and optimization</title>
		<link>http://www.knithx.net/2007/05/23/intensive-linux-tweaking-and-optimization/</link>
		<comments>http://www.knithx.net/2007/05/23/intensive-linux-tweaking-and-optimization/#comments</comments>
		<pubDate>Wed, 23 May 2007 15:00:02 +0000</pubDate>
		<dc:creator>knithx</dc:creator>
		
		<category><![CDATA[Artículos]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[tweaking]]></category>

		<guid isPermaLink="false">http://www.knithx.net/2007/05/23/intensive-linux-tweaking-and-optimization/</guid>
		<description><![CDATA[Linux distributions (specially Debian and based on, which I am going to use through this guide) have a perfectly stable configuration out-of-the-box, but it is always possible to tweak things to speed up the performance in our system, including general response, boot time, network speed, and many others. Also, I&#8217;d like to share this guide [...]]]></description>
			<content:encoded><![CDATA[<p>Linux distributions (specially Debian and based on, which I am going to use through this guide) have a perfectly stable configuration out-of-the-box, but it is always possible to tweak things to speed up the performance in our system, including general response, boot time, network speed, and many others. Also, I&#8217;d like to share this guide to encourage you to collaborate on it, especially in adding tweaks in the comments for those applications or hardware I am not user of, like Gnome or nVidia. As it was said: This guide will head you to different tweaks that will increase the performance of your system, BUT:</p>
<p><em>Be aware that all modifications are made as root user, so you may need to omit some steps if you don&#8217;t know what exactly are you doing!</em></p>
<h2>System tweaking</h2>
<h3>Swappiness</h3>
<p>Swappiness is the ammount of virtual memory (swap partition) your computer is ordered to use. It is set to 60% in newer kernels, but computers with a high ammount of RAM can run faster if less memory is swapped and more is directly used. For computers with 1GB RAM or more, a value between 0 and 5 works well. You can check the performance you get modifying  the swappiness with the command:</p>
<p><span id="more-393"></span></p>
<p><code>sysctl -w vm.swappiness=[value]</code></p>
<p>Where value is the amount of memory that will be swapped. When you find a value which fits you (I use 0 or 5), you can make the changes permanent editing the file <em>/etc/sysctl.conf</em> by adding this line at the end:</p>
<p><code>vm.swappiness=5</code></p>
<h3>DMA</h3>
<p>Direct memory access (DMA) is a feature of modern computers, that allows certain hardware subsystems within the computer to access system memory for reading and/or writing independently of the central processing unit. Enabling DMA may improve performance in your disk drives.</p>
<p>Let&#8217;s imagine the unit where DMA wants to be enabled is <em>/dev/hdb</em>. You can check whether you have DMA enabled or not with the command:</p>
<p><code>hdparm /dev/hdb</code></p>
<p>If you get the output:</p>
<p><code>using_dma    =  1 (on)</code></p>
<p>DMA is already enabled. If not, you can enable it by typing:</p>
<p><code>hdparm -d1 /dev/hdb</code></p>
<p>or, for setting it to the highest level:</p>
<p><code>hdparm -u1 -S60 -a1024 /dev/hda</code></p>
<p>However, in order for the settings to be automatically applied at boot there you need to edit the <em>/etc/hdparm.conf</em> script, adding the following to the end of it:</p>
<p><code>/dev/hdb {<br />
dma = on<br />
}</code></p>
<h3>Removing unused tty&#8217;s</h3>
<p>By default, many Linux distributions have six tty&#8217;s (command prompts) which are accessible through the key bindings <em>CTRL+ALT+F1</em> to <em>CTRL+ALT+F6</em>. They are a handy option in case X server crashes or you have any other problems with tty7 (the visual enviroment), but you may not need the six of them, and deactivating some of them will speed up your system. For doing that, edit the file <em>/etc/inittab</em> and comment the lines:</p>
<p><code>2:23:respawn:/sbin/getty 38400 tty2<br />
3:23:respawn:/sbin/getty 38400 tty3</p>
<p>4:23:respawn:/sbin/getty 38400 tty4<br />
5:23:respawn:/sbin/getty 38400 tty5<br />
6:23:respawn:/sbin/getty 38400 tty6</code></p>
<p>if you want to deactivate tty2, 3, 4, 5 and 6.</p>
<h3>Prelinking</h3>
<p>Prelink is intended to speed up a system by reducing the time a program needs to begin. Actual results have been mixed, but it seems to aid systems with a large number of libraries by sharing them between programs, such as KDE. To install Prelink just type:</p>
<p><code>apt-get install prelink</code></p>
<p>And configure it editing the file <em>/etc/default/prelink</em> by modifying the line:</p>
<p><code>PRELINKING=unknown</code></p>
<p>to:</p>
<p><code>PRELINKING=yes</code></p>
<p>You should execute prelink periodically in order to refresh its library database. It takes a while the first time, and it should be called with:</p>
<p><code>/etc/cron.daily/prelink</code></p>
<h3>Removing junk files</h3>
<p>Several commands are using for cleaning up rubbish in your system (in case you don&#8217;t have them, you can install them with <em>apt-get install [commandname]</em>, like:</p>
<p><code>apt-get clean</code></p>
<p><code>apt-get autoclean</code></p>
<p><code>deborphan</code></p>
<p>or</p>
<p><code>debfoster</code></p>
<p><code>localepurge</code></p>
<p>An automated way for cleaning up is:</p>
<p><code>sudo apt-get update; apt-get dist-upgrade; apt-get remove; apt-get autoremove; apt-get clean; apt-get autoclean; rm -r /tmp/*</code></p>
<h3>X.Org</h3>
<p>You all know the excellent <a href="http://sidux.com/PNphpBB2-viewtopic-t-24.html">h2&#8217;s script</a>. In order to get 3D acceleration (and much more stuff) use it. Once you are done, we can tweak the file <em>/etc/X11/xorg.conf</em> when using OpenSource Drivers by modifying the <em>Device</em> section, as it shows below:</p>
<p><code>Option "EnablePageFlip" # improves performance on 3d acceleration<br />
Option "AGPMode"  "1/2/4/8" # agp speed (choose one)<br />
Option "AGPSize"  "32/64/128" # manually set agp aperture, kinda like shared memory (choose one)<br />
Option "AccelMethod"  "xaa"  # exa is still rigged, use xaa until they solve the 2d acceleration issues.<br />
Option "XAANoOffscreenPixmaps" # generic optimization for 2d acceleration, disables XAA offscreen pixmaps<br />
Option "DynamicClocks" "on"<br />
Option "ColorTiling" "on"<br />
Option "FBTexPercent" "95"</code></p>
<p>If you don&#8217;t mind, you also can improve the general performance of the visual environment reducing <em>DefaultDeph</em> color from &#8220;24&#8243; to &#8220;16&#8243;.</p>
<h3>Turn off (mute) system beep</h3>
<p>To permanently disable the PC speaker even after reboots, add this to <em>/etc/rc.local</em> before the last line <em>(exit 0)</em>:</p>
<p><code>modprobe -r pcspkr</code></p>
<h3>Redistributing RAM usage</h3>
<p>The following command will redistribute the way your RAM memory does output graphic information. This would considerably speed up the way buttons, scrollbars, and other items show up when a window is maximized or restored, for example.</p>
<p><code>echo "base=0x98000000 size=0x8000000 type=write-combining" >| /proc/mtrr</code></p>
<h3>Optimizing KDE</h3>
<p>Executing <em>kcontrol</em>, we can modify a lot of parameter about the visual environment, and some of them can be set in order to improve performance. Those are:</p>
<p><em>Look &amp; Feel - Style - Effects - Deactivate all effects.</em><br />
<em>Look &amp; Feel - Background - No background (if you don&#8217;t need it).</em><br />
<em>Look &amp; Feel - Launch Notification - Busy passive cursor, set all values to 0 seconds.</em></p>
<p><em>Desktop - Window Behaviour - Animate minimizing and restoring - Deactivate it.</em><br />
<em>Desktop - Desktops - Set it to 1 (if you don&#8217;t need more).</em></p>
<p><em>Sounds and Multimedia - Notifications - Deactivate all sounds.</em><br />
<em>Sounds and Multimedia - Sound system - Deactivate it (use ALSA instead).</em></p>
<p>I also recommend to install Dolphin instead Konqueror. It is much faster and lightweight.</p>
<h2>Speeding up boot time</h2>
<h3>Removing unnecessary services</h3>
<p>We can speed up our boot time by reducing the number of services started with the system. For doing that, we are going to use the tool <strong>sysv-rc-conf</strong>, which can let us manage easily the services we want to enable or not when my computer boots. We can install it through the official repositories:</p>
<p><code>apt-get install sysv-rc-conf</code></p>
<p>When executed on a terminal, we will see the list of services we have activated and in which init mode they are. It is important to say that there are some services you shouldn&#8217;t change in order to keep things functioning internally. Those are:</p>
<p><em>acpid, binfmt-support, bootlogd,  dbus, klogd, halt, ifplugd, ifupdown, kdm,  klogd, libdevmap, module-init-tools, networking, rc.local, reboot, sendsigs, single, stop-bootlogd, sysklogd, udev, udev-mtab, umontfs, umountroot, urandom, x11-common&#8230;</em></p>
<p>Plus any others you should need due to specific hardware, as <em>alsa-utils, atievetsd, bluetooth, fuse</em>&#8230; </p>
<p>More information is available <a href="http://ubuntuforums.org/showthread.php?t=89491">on here</a> in case of doubt: Please make sure you know what you are doing; otherwise, you may harm your system.</p>
<h3>Starting services in concurrency mode</h3>
<p>Another way for improving our boot time is to make all services start parallel. To do so, you only need to open the file:</p>
<p><code>/etc/init.d/rc</code></p>
<p>and change:</p>
<p><code>CONCURRENCY=none</code></p>
<p>to:</p>
<p><code>CONCURRENCY=shell</code></p>
<p>Done. Now your boot time should be much quicker than before. If not, <a href="http://www-128.ibm.com/developerworks/linux/library/l-boot.html?ca=dgr-lnxw04BootFaster">here you have more possible tweaks</a> for it.</p>
<h2>Internet Tweaking</h2>
<h3>IPV6</h3>
<p>To deactivate IPV6, you need to edit the file:</p>
<p><code>/etc/modprobe.d/aliases</code></p>
<p>by adding the lines:</p>
<p><code>alias net-pf-10 ipv6 off<br />
alias net-pf-10 off<br />
alias ipv6 off</code></p>
<p>and commenting / removing the line:</p>
<p><code>alias net-pf-10 ipv6</code></p>
<p>This will speed up noticeably Internet applications, including Firefox and Google Earth.</p>
<h3>Firefox</h3>
<p>You can access quite a lot of network parameters in Firefox by typing in the address bar <em>about:config</em>. Once there, the following variables may be modified / added:</p>
<p><code>network.dns.disableIPv6 of the type boolean, set to true<br />
nglayout.initialpaint.delay of the type integer, set it to 10<br />
content.interrupt.parsing of the type boolean, set to true<br />
content.max.tokenizing.time of the type integer, set it to 8<br />
content.notify.backoffcount of the type integer, set it to -1<br />
content.notify.interval of the type integer, set it to 2<br />
content.notify.ontimer of the type boolean, set to true</code></p>
<p>For general tweaking in Firefox / IceWeasel / Swiftfox, <a href="http://ftp.iasi.roedu.net/mirrors/mozdev.org/fasterfox/fasterfox-2.0.1-fx.xpi">get FasterFox</a>, a very powerful extension that will greatly increase your browsing speed in these clients.</p>
<p>As for the system networking tweaking, this command will speed things up a bit:</p>
<p><code>perl -pi -e s/ipv6/off/ /etc/modprobe.d/aliases &amp;&amp; echo "net.ipv4.tcp_moderate_rcvbuf=0" >> /etc/sysctl.conf &amp;&amp; echo "net.ipv4.tcp_default_win_scale=0" >> /etc/sysctl.conf</code></p>
<h3>MTU</h3>
<p>The term Maximum Transmission Unit (MTU) refers to the size (in bytes) of the largest packet that a given layer of a communications protocol can pass onwards. MTU parameters usually appear in association with a communications interface (NIC, serial port, etc.). Adjusting MTU can improve your network experience, and in some cases even speed it up. You can adjust the MTU with the following command:</p>
<p><code>ifconfig [interface] mtu [value]</code></p>
<p>Where [interface] refers to your network interface (in my case, <em>ath0</em>) and [value] to the value you want to assign MTU. I&#8217;ve experienced that 1450 works fairly good in my box, so I adjusted:</p>
<p><code>ifconfig ra0 mtu 1450</code></p>
<h3>Checking /etc/resolv.conf</h3>
<p>Make sure that you <em>/etc/resolv.conf</em> file only has your DNS servers, in order to let the system access faster to them. In my case, I use OpenDNS, which I highly recommend, so my entire content of this file is:</p>
<p><code>nameserver 208.67.222.222<br />
nameserver 208.67.220.220</code></p>
<p>A corrupted <em>/etc/resolv.conf</em> file may cause several problems in DNS look up, so double-checking this file is more important than it seems to be, as far as some distributions add rubbish lines to this file.</p>
<h3>/etc/hosts</h3>
<p>The file <em>/etc/hosts</em> may content by default:</p>
<p><code>127.0.0.1 localhost<br />
127.0.1.1 [youhostname]</code></p>
<p>Replacing the previously lines with:</p>
<p><code>127.0.0.1 localhost [yourhostname]<br />
127.0.1.1 [yourhostname]</code></p>
<p>is believed to speed up applications launch which use network functions.</p>
<h3>Checking /etc/syctl.conf</h3>
<p>This are some values to optimize broadband settings, although <strong>they are not tested</strong></p>
<p><code>net.core.rmem_default = 524288<br />
net.core.rmem_max = 524288<br />
net.core.wmem_default = 524288<br />
net.core.wmem_max = 524288<br />
net.ipv4.tcp_wmem = 4096 87380 524288<br />
net.ipv4.tcp_rmem = 4096 87380 524288<br />
net.ipv4.tcp_mem = 524288 524288 524288<br />
net.ipv4.tcp_rfc1337 = 1<br />
net.ipv4.ip_no_pmtu_disc = 0<br />
net.ipv4.tcp_sack = 1<br />
net.ipv4.tcp_fack = 1<br />
net.ipv4.tcp_window_scaling = 1<br />
net.ipv4.tcp_timestamps = 1<br />
net.ipv4.tcp_ecn = 0<br />
net.ipv4.route.flush = 1</code></p>
<p>You have to reset your sysctl for these to take effect.</p>
<p><code>sudo sysctl -p</code></p>
<h2>Concluding&#8230;</h2>
<p>You have just made a lot of changes to your system. Re profiling your boot will reorganize it and make it faster on boots afterwards. For doing so, Reboot your PC. When you come to your grub list, hit escape to see your grub menu and edit the topmost line and add the word below to the end of it:</p>
<p><code>profile</code></p>
<p>One last reboot and you are done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.knithx.net/2007/05/23/intensive-linux-tweaking-and-optimization/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fuentes sin antialias (II) - repositorio</title>
		<link>http://www.knithx.net/2007/05/15/fuentes-sin-antialias-ii-repositorio/</link>
		<comments>http://www.knithx.net/2007/05/15/fuentes-sin-antialias-ii-repositorio/#comments</comments>
		<pubDate>Tue, 15 May 2007 19:46:03 +0000</pubDate>
		<dc:creator>knithx</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[tweaking]]></category>

		<guid isPermaLink="false">http://www.knithx.net/2007/05/15/fuentes-sin-antialias-ii-repositorio/</guid>
		<description><![CDATA[Personalmente, odio el antialiasing. En Linux, la mayoría de las distribuciones vienen con dicha opción activada por defecto, y conseguir un rendering claro puede ser un proceso un tanto tedioso. Tras darle alguna que otra vuelta, conseguí resolver este &#8220;borroso&#8221; problema mediante el procedimiento descrito a continuación:
su
apt-get install msttcorefonts #debes tener activados los repositorios non-free
wget [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.knithx.net/files/edit.png" alt="Novuext 1.6" class="right" style="border:0;" />Personalmente, odio el antialiasing. En Linux, la mayoría de las distribuciones vienen con dicha opción activada por defecto, y conseguir un <em>rendering</em> claro puede ser un proceso un tanto tedioso. Tras darle alguna que otra vuelta, conseguí resolver este &#8220;borroso&#8221; problema mediante el procedimiento descrito a continuación:</p>
<p><code>su<br />
apt-get install msttcorefonts #debes tener activados los repositorios <em>non-free</em><br />
<span>wget</span> http://www.knithx.net/files/linux/fontconfig.tbz<br />
tar xvjpf fontconfig.tbz -C /etc/fonts/</code></p>
<p>Reinicia sesión (<em>ctrl+alt+backspace</em>) y configura las fuentes en <em>Menú KDE - Centro de Control - Apariencia y Temas - Fuentes - Ajustar todas las fuentes: Tahoma 8pt</em>. También debemos desactivar el antialias desmarcando la casilla que se encuentra más abajo que <em>Ajustar todas las fuentes</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.knithx.net/2007/05/15/fuentes-sin-antialias-ii-repositorio/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
