<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>Shadows of epiphany</title>
	<link>http://blog.bodhizazen.net</link>
	<description>A LAMP in the Samsara</description>
	<lastBuildDate>Wed, 11 Aug 2010 22:42:18 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>How to improve resolution in KVM</title>
		<description><![CDATA[Once again I found myself trying to &#8220;fix&#8221; something that has been bothering me for some time &#8211; the Resolution in KVM guests is sometimes poor, as low as 800&#215;600.
As it turns out, one can increase the resolution of the guests much higher by using a custom xorg.conf and the std vga driver.
Save the following in /etc/X11/xorg.conf in the Guest OS.
Direct download &#8211; bodhi.zazen&#8217;s kvm xorg.conf
As root run:
wget http://bodhizazen.net/adblock/kvm.xorg.conf -O /etc/X11/xorg.conf
xorg.conf
Section &#34;ServerLayout&#34;
	Identifier     &#34;BodhiZazen&#8217;s KVM xorg.conf&#34;
	Screen      0  &#34;Screen0&#34; 0 0
	InputDevice    &#34;Mouse0&#34; &#34;CorePointer&#34;
	InputDevice    &#34;Keyboard0&#34; &#34;CoreKeyboard&#34;
EndSection
Section &#34;Module&#34;
	Load  &#34;record&#34;
	Load  &#34;dri&#34;
	Load  &#34;extmod&#34;
	Load  &#34;glx&#34;
	Load  &#34;dbe&#34;
	Load  &#34;dri2&#34;
EndSection
Section &#34;InputDevice&#34;
	Identifier  &#34;Keyboard0&#34;
	Driver      &#34;kbd&#34;
EndSection
Section &#34;InputDevice&#34;
	Identifier  &#34;Mouse0&#34;
	Driver      &#34;vmmouse&#34;
	Option	    &#34;Protocol&#34; &#34;SysMouse&#34;
	Option	    &#34;Device&#34; &#34;/dev/sysmouse&#34;
	Option	    &#34;ZAxisMapping&#34; &#34;4 5 6 7&#34;
EndSection
Section &#34;Monitor&#34;
	Identifier  [...]]]></description>
		<link>http://blog.bodhizazen.net/linux/how-to-improve-resolution-in-kvm/</link>
			</item>
	<item>
		<title>How to use UFW in OpenVZ templates</title>
		<description><![CDATA[I was looking at iptables / UFW in openvz templates and was able to work through some of the problems with UFW.
In this blog I will outline how to get ufw working.
The issues with UFW and OpenVZ guests are:
1. Openvz has limited options for iptables, and UFW scripts fail when these options are called.
See this link for a discussion (and some hints).
2. The other problem with ufw is that it attempts to load kernel modules via modprobe and change sysctl settings. Since you can not load kernel modules in an openvz guest ufw fails. Because sysctl does not work, we get error messages.
3. Issues with logging. By default Ubuntu (and many distros) use rsyslog, which does not work well in OpenVZ guests.
4. Fix the ufw init script (otherwise we receive errors).
5. ipv6 is not fully functional in openvz guests.
6. Some things are still broken &#8230; The ufw scripts for Applications [...]]]></description>
		<link>http://blog.bodhizazen.net/linux/how-to-use-ufw-in-openvz-templates/</link>
			</item>
	<item>
		<title>Upgrade Ubuntu 9.10 OpenVZ Templates</title>
		<description><![CDATA[This post is for those wanting to upgrade existing Ubuntu 9.10 openvz templates to Ubuntu 10.04 (Lucid Lynx) which is a LTS release (supported server side for 5 years).
Caution: Back up your data before you upgrade. This upgrade works on a minimal server and you may need to edit (upstart) init scripts (mysql in particular) and I make no guarantees this upgrade procedure will work for you (use at your own risk).
Assuming your template is 101 &#8230;
sudo vzctrl enter 101
Update 9.10
Start by updating 9.10:
apt-get update
apt-get dist-upgrade
Upgrade to 10.04
Upgrade &#8211; Instructions from This link
apt-get install -y update-manager-core
Edit /etc/update-manager/release-upgrades , make sure Prompt=normal
Prompt=normal
It was normal already on my VPS &#8230;
Upgrade to 10.04
do-release-upgrade
Follow the on screen directions, accept the new configuration files.
Continue installing without GURB &#8211; answer &#8220;yes&#8221;
At the end of the upgrade, do not restart (yet)
Post -upgrade
We need some post-upgrade configuration:
Start by removing unnecessary packages
apt-get purge eject kbd laptop-detect linux-generic linux-image-2.6.32-21-generic os-prober [...]]]></description>
		<link>http://blog.bodhizazen.net/linux/upgrade-ubuntu-9-10-openvz-templates/</link>
			</item>
	<item>
		<title>&#8220;Fix&#8221; wordpress rendering of &#8220;code&#8221;</title>
		<description><![CDATA[When posting code , wordpress often changes text into gibbersih making code boxes hard to read and copy-paste of code difficult or impossible.
Examples two &#8211; show up as &#8212; (one).
To fix this, use html code.
Single quote  &#8216;  = &#38;#39; yields &#39;
Double quote &#8221; = &#38;#34; yields &#34;
Single dash &#8211; = &#38;#45; Yields &#45;
Double dash &#8212; = &#38;#45;&#38;#45; yields &#45;&#45;
&#62; = &#38;gt; yields &#62;
&#60; = &#38;lt; yields &#60;
The result is &#8220;code&#8221; that people who follow your blog can copy-paste into their terminals.
Alternately you may use a wordpress plugin. Here is a nice option with links to to other plugins.
]]></description>
		<link>http://blog.bodhizazen.net/linux/fix-wordpress-rendering-of-code/</link>
			</item>
	<item>
		<title>apt-get how to fix very broken packages</title>
		<description><![CDATA[I recently upgraded from Ubuntu 8.04.3 to Ubuntu 10.04 and things went well, except a few broken packages.
Apt-get / synaptic was very broken due to the flashplugin-nonfree.
sudo apt&#45;get &#45;f
[clip]
dpkg: error processing flashplugin&#45;nonfree (&#45;&#45;remove):
 Package is in a very bad inconsistent state &#8211; you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 flashplugin&#45;nonfree
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo dpkg &#45;&#45;configure &#45;a
dpkg: dependency problems prevent configuration of realplayer:
 realplayer depends on libstdc++5 (&#62;= 1:3.3.4&#45;1); however:
  Package libstdc++5 is not installed.
dpkg: error processing realplayer (&#45;&#45;configure):
 dependency problems &#45; leaving unconfigured
Errors were encountered while processing:
 realplayer
Not looking very good &#8230; and forcing things did not help (same results with &#45;&#45;remove &#45;&#45;force&#45;remove&#45;reinstreq.

dpkg &#45;&#45;remove &#45;&#45;force&#45;all flashplugin&#45;nonfree
dpkg: warning: overriding problem because &#45;&#45;force enabled:
 Package is in a very bad inconsistent state &#45; you should
 reinstall it before attempting a removal.
(Reading database ... 239938 files and directories currently installed.)
Removing flashplugin&#45;nonfree ...
update&#45;alternatives: error: [...]]]></description>
		<link>http://blog.bodhizazen.net/linux/apt-get-how-to-fix-very-broken-packages/</link>
			</item>
	<item>
		<title>Download Ubuntu 10.04 OpenVZ Templates</title>
		<description><![CDATA[This is in follow up to my previous post on Ubuntu OpenVZ templates .
I have made a set of Ubuntu 10.04 openvz templates available for download HERE .
The templates *should* be compatible with the Proxmox Web Interface (thus the seemingly odd names) as well as any other OpenVZ host (Centos / Debian).
There are both 32 and 64 bit templates.
Minimal templates
The &#8220;minimal&#8221; templates are approximately 85 Mb and are, as the name implies, minimal.
lamp
As the name implies, these templates include Apache and MySQL and PHP5.
Both Apache and MySQL have been optimized for use with openvz and use signifigantly less ram then the defaults.
Here is what the 32 bit LAMP template looks like:

root@ubuntu-minimal:/# free -m
                      total     used    free    shared   [...]]]></description>
		<link>http://blog.bodhizazen.net/linux/download-ubuntu-10-04-openvz-templates/</link>
			</item>
	<item>
		<title>Ubuntu 10.04 OpenVZ Templates</title>
		<description><![CDATA[
OpenVZ is used for Virtualization and is both light weight (minimal software on the host, guests have small footprints on the hard drive, and minimal use of RAM) and fast (native speed).
I know there are some fans of Openvz out there who wish to use Ubuntu templates (you know who you are).
Cautionary note: The init scripts in Ubuntu 10.04 are problematic and you may have problems starting servers. For example , mysql will not start on boot unless you edit /etc/init/mysql.conf . Updates (to upstart and or the boot scripts [ mountall ] ) may break any fixes you add.
Because of these issues, I would hold off on using Ubuntu 10.04 on a &#8220;Production&#8221; server.
In this post I will walk you through how I create Ubuntu Lucid (10.04) Templates. There have been a few glitches along the way, and I would like to especially thank Stéphane Graber for the Openvz [...]]]></description>
		<link>http://blog.bodhizazen.net/linux/ubuntu-10-04-openvz-templates/</link>
			</item>
	<item>
		<title>Ubuntu how to faillog</title>
		<description><![CDATA[I cam across an interesting command &#8211; faillog
With faillog you can lock a user&#8217;s account after x number of failed log in attempts.
HOWEVER &#8211; it is not so straight forward &#8211; see man pam_tally
In order to enable this option you need to edit a few of the pam configuration files located in /etc/pam.d
What makes this confusing, as with sudo, THE ORDER OF RULES IS CRITICAL.
So, we can not just add a few lines at the bottom of the file, we need to add them in order
In particular, using any editor, open /etc/pam.d/common-auth and add the line AT THE TOP OF THE FILE:
auth  required pam_tally.so per_user magic_root onerr=fail
Use the silent option if you do not want pam_tally to give error messages.
auth  required pam_tally.so per_user magic_root onerr=fail silent
You may set the number of failed log in attempts and lock out time by either adding additional options to the above line [...]]]></description>
		<link>http://blog.bodhizazen.net/linux/ubuntu-how-to-faillog/</link>
			</item>
	<item>
		<title>NIDS &#8211; psad and fwsnort</title>
		<description><![CDATA[I have been playing with psad and fwsnort as a NIDS tool. They are light weight and very capable tools and I highly recommend both of them.
I was going to post a blog about these tools, but it kept growing longer and longer and involved init scripts, selinux policies, and apparmor profiles.
Rather then spamming the Ubuntu planet with all the details, I made a web page.
Nids &#8211; psad &#038; fwsnort
Sorry this blog is brief, but the above link will get you started using psad / fwsnort on Debian (squeeze) , Fedora 13 , or Ubuntu 10.04.
Feel free to post any feedback or comments here.
]]></description>
		<link>http://blog.bodhizazen.net/linux/nids-psad-and-fwsnort/</link>
			</item>
	<item>
		<title>Improve KVM performance</title>
		<description><![CDATA[In this post I would like to share two tips I have found that greatly improve the performance of KVM guests. Both tips work with Linux guests, although only the second tip will work with windows or BSD guests.
With these tips you should notice an immediate improvement in performance including boot times, general performance, and responsiveness to inputs (mouse / keyboard).
Kernel option noop
With this tip we will use the kernel (boot) option elevator=noop to optimize your virtual hard drive I/O.
For a technical discussion of this option, see this link . If you want a more detailed discussion see this second link.
Grub 2
Using any editor, open /etc/default/grub
sudo -e /etc/default/grub
Look for the line :
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Add elevator=noop at the end of the line
GRUB_CMDLINE_LINUX_DEFAULT=&#8221;quiet splash elevator=noop&#8221;
Save your changes and exit your editor.
update grub
sudo update-grub
Reboot &#8211; One of the few times you will need to reboot.
Grub 1
With most distros you edit /boot/grub/menu.lst
Using any editor, open [...]]]></description>
		<link>http://blog.bodhizazen.net/linux/improve-kvm-performance/</link>
			</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.126 seconds -->
